Lines Matching refs:osc
772 ath_rate_sysctlattach(struct ath_softc *sc, struct sample_softc *osc) in ath_rate_sysctlattach() argument
782 if ((rc = SYSCTL_PFX_INT(osc->ath_, CTLFLAG_READWRITE, smoothing_rate, in ath_rate_sysctlattach()
787 if ((rc = SYSCTL_PFX_INT(osc->ath_, CTLFLAG_READWRITE, sample_rate, in ath_rate_sysctlattach()
799 struct sample_softc *osc; in ath_rate_attach() local
802 osc = malloc(sizeof(struct sample_softc), M_DEVBUF, M_WAITOK|M_ZERO); in ath_rate_attach()
803 osc->arc.arc_space = sizeof(struct sample_node); in ath_rate_attach()
804 osc->ath_smoothing_rate = 95; /* ewma percentage (out of 100) */ in ath_rate_attach()
805 osc->ath_sample_rate = 10; /* send a different bit-rate 1/X packets */ in ath_rate_attach()
806 ath_rate_sysctlattach(sc, osc); in ath_rate_attach()
807 return &osc->arc; in ath_rate_attach()
813 struct sample_softc *osc = (struct sample_softc *) arc; in ath_rate_detach() local
815 free(osc, M_DEVBUF); in ath_rate_detach()