Lines Matching defs:sc

103 ath_rate_node_init(struct ath_softc *sc, struct ath_node *an)
109 ath_rate_node_cleanup(struct ath_softc *sc, struct ath_node *an)
114 ath_rate_findrate(struct ath_softc *sc, struct ath_node *an,
138 ath_rate_getxtxrates(struct ath_softc *sc, struct ath_node *an,
157 ath_rate_setupxtxdesc(struct ath_softc *sc, struct ath_node *an,
162 ath_hal_setupxtxdesc(sc->sc_ah, ds
170 ath_rate_tx_complete(struct ath_softc *sc, struct ath_node *an,
183 ath_rate_ctl(sc, &an->an_node);
189 ath_rate_newassoc(struct ath_softc *sc, struct ath_node *an, int isnew)
192 ath_rate_ctl_start(sc, &an->an_node);
196 ath_rate_update_rx_rssi(struct ath_softc *sc, struct ath_node *an, int rssi)
201 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate)
206 const HAL_RATE_TABLE *rt = sc->sc_currates;
209 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode));
227 on->on_tx_rix0 = sc->sc_rixmap[ni->ni_txrate];
232 if (sc->sc_mrretry) {
242 rix = sc->sc_rixmap[
251 rix = sc->sc_rixmap[
286 ath_rate_ctl_start(struct ath_softc *sc, struct ieee80211_node *ni)
300 if (sc->sc_curmode != IEEE80211_MODE_11B) {
328 ath_rate_update(sc, ni, srate < 0 ? 0 : srate);
338 struct ath_softc *sc = arg;
375 sc->sc_stats.ast_rate_drop++;
386 sc->sc_stats.ast_rate_raise++;
397 ath_rate_update(sc, ni, nrate);
403 ath_rate_sysctlattach(struct ath_softc *sc)
405 struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(sc->sc_dev);
406 struct sysctl_oid *tree = device_get_sysctl_tree(sc->sc_dev);
421 ath_rate_fetch_node_stats(struct ath_softc *sc, struct ath_node *an,
429 ath_rate_attach(struct ath_softc *sc)
437 ath_rate_sysctlattach(sc);