Lines Matching refs:rt
176 #define MCS_IDX(ix) (rt->info[ix].dot11Rate) in ath_rate_sample_find_min_pktlength()
177 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_sample_find_min_pktlength() local
186 if (rt->info[rix0].phy != IEEE80211_T_HT) { in ath_rate_sample_find_min_pktlength()
293 dot11rate(const HAL_RATE_TABLE *rt, int rix) in dot11rate() argument
297 return rt->info[rix].phy == IEEE80211_T_HT ? in dot11rate()
298 rt->info[rix].dot11Rate : (rt->info[rix].dot11Rate & IEEE80211_RATE_VAL) / 2; in dot11rate()
302 dot11rate_label(const HAL_RATE_TABLE *rt, int rix) in dot11rate_label() argument
306 return rt->info[rix].phy == IEEE80211_T_HT ? "MCS" : "Mb "; in dot11rate_label()
314 pick_best_rate(struct ath_node *an, const HAL_RATE_TABLE *rt, in pick_best_rate() argument
331 (rt->info[rix].phy != IEEE80211_T_HT)) { in pick_best_rate()
370 rt->info[best_rate_rix].dot11Rate, in pick_best_rate()
374 rt->info[rix].dot11Rate, in pick_best_rate()
415 const HAL_RATE_TABLE *rt, int size_bin) in pick_sample_rate() argument
417 #define DOT11RATE(ix) (rt->info[ix].dot11Rate & IEEE80211_RATE_VAL) in pick_sample_rate()
418 #define MCS(ix) (rt->info[ix].dot11Rate | IEEE80211_RATE_MCS) in pick_sample_rate()
438 if (++rix >= rt->rateCount) in pick_sample_rate()
461 (rt->info[rix].phy != IEEE80211_T_HT)) { in pick_sample_rate()
524 #define DOT11RATE(_ix) (rt->info[(_ix)].dot11Rate & IEEE80211_RATE_VAL) in ath_rate_get_static_rix()
574 #define DOT11RATE(ix) (rt->info[ix].dot11Rate & IEEE80211_RATE_VAL) in ath_rate_pick_seed_rate_legacy()
575 #define MCS(ix) (rt->info[ix].dot11Rate | IEEE80211_RATE_MCS) in ath_rate_pick_seed_rate_legacy()
578 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_pick_seed_rate_legacy() local
583 for (rix = rt->rateCount-1; rix > 0; rix--) { in ath_rate_pick_seed_rate_legacy()
588 if (rt->info[rix].phy == IEEE80211_T_HT) in ath_rate_pick_seed_rate_legacy()
615 #define DOT11RATE(ix) (rt->info[ix].dot11Rate & IEEE80211_RATE_VAL) in ath_rate_pick_seed_rate_ht()
616 #define MCS(ix) (rt->info[ix].dot11Rate | IEEE80211_RATE_MCS) in ath_rate_pick_seed_rate_ht()
619 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_pick_seed_rate_ht() local
624 for (rix = rt->rateCount-1; rix > 0; rix--) { in ath_rate_pick_seed_rate_ht()
630 if (rt->info[rix].phy == IEEE80211_T_HT) in ath_rate_pick_seed_rate_ht()
634 if (rt->info[rix].phy != IEEE80211_T_HT) in ath_rate_pick_seed_rate_ht()
664 #define DOT11RATE(ix) (rt->info[ix].dot11Rate & IEEE80211_RATE_VAL) in ath_rate_findrate()
665 #define MCS(ix) (rt->info[ix].dot11Rate | IEEE80211_RATE_MCS) in ath_rate_findrate()
670 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_findrate() local
718 best_rix = pick_best_rate(an, rt, size_bin, !mrr); in ath_rate_findrate()
750 rix = pick_sample_rate(ssc, an, rt, size_bin); in ath_rate_findrate()
757 dot11rate(rt, rix), in ath_rate_findrate()
758 dot11rate_label(rt, rix), in ath_rate_findrate()
759 dot11rate(rt, sn->current_rix[size_bin]), in ath_rate_findrate()
760 dot11rate_label(rt, sn->current_rix[size_bin])); in ath_rate_findrate()
838 dot11rate(rt, sn->current_rix[size_bin]), in ath_rate_findrate()
839 dot11rate_label(rt, sn->current_rix[size_bin]), in ath_rate_findrate()
843 dot11rate(rt, best_rix), in ath_rate_findrate()
844 dot11rate_label(rt, best_rix), in ath_rate_findrate()
858 (rt->info[best_rix].phy == IEEE80211_T_HT) ? in ath_rate_findrate()
873 if (rix < 0 || rix >= rt->rateCount) { in ath_rate_findrate()
877 rt->rateCount); in ath_rate_findrate()
880 KASSERT(rix >= 0 && rix < rt->rateCount, ("rix is %d", rix)); in ath_rate_findrate()
883 *txrate = rt->info[rix].rateCode in ath_rate_findrate()
884 | (shortPreamble ? rt->info[rix].shortPreamble : 0); in ath_rate_findrate()
930 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_setupxtxdesc() local
935 s1code = rt->info[rix1].rateCode in ath_rate_setupxtxdesc()
936 | (shortPreamble ? rt->info[rix1].shortPreamble : 0); in ath_rate_setupxtxdesc()
938 s2code = rt->info[rix2].rateCode in ath_rate_setupxtxdesc()
939 | (shortPreamble ? rt->info[rix2].shortPreamble : 0); in ath_rate_setupxtxdesc()
941 s3code = rt->info[rix3].rateCode in ath_rate_setupxtxdesc()
942 | (shortPreamble ? rt->info[rix3].shortPreamble : 0); in ath_rate_setupxtxdesc()
971 const HAL_RATE_TABLE *rt = sc->sc_currates; in update_stats() local
1068 dot11rate(rt, rix0), in update_stats()
1069 dot11rate_label(rt, rix0), in update_stats()
1098 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_tx_complete() local
1102 final_rix = rt->rateCodeToIndex[ts->ts_rate]; in ath_rate_tx_complete()
1180 dot11rate(rt, final_rix), dot11rate_label(rt, final_rix), in ath_rate_tx_complete()
1205 dot11rate(rt, rc[0].rix), in ath_rate_tx_complete()
1206 dot11rate_label(rt, rc[0].rix), rc[0].tries, in ath_rate_tx_complete()
1207 dot11rate(rt, rc[1].rix), in ath_rate_tx_complete()
1208 dot11rate_label(rt, rc[1].rix), rc[1].tries, in ath_rate_tx_complete()
1209 dot11rate(rt, rc[2].rix), in ath_rate_tx_complete()
1210 dot11rate_label(rt, rc[2].rix), rc[2].tries, in ath_rate_tx_complete()
1211 dot11rate(rt, rc[3].rix), in ath_rate_tx_complete()
1212 dot11rate_label(rt, rc[3].rix), rc[3].tries, in ath_rate_tx_complete()
1297 #define DOT11RATE(_ix) (rt->info[(_ix)].dot11Rate & IEEE80211_RATE_VAL) in ath_rate_ctl_reset()
1301 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_ctl_reset() local
1304 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); in ath_rate_ctl_reset()
1331 if (!rt->info[rix].valid) in ath_rate_ctl_reset()
1345 if (!rt->info[rix].valid) in ath_rate_ctl_reset()
1360 printf(" %d %s/%d", dot11rate(rt, rix), dot11rate_label(rt, rix), in ath_rate_ctl_reset()
1433 const HAL_RATE_TABLE *rt = sc->sc_currates; in ath_rate_fetch_node_stats() local
1470 tv->nentries = rt->rateCount; in ath_rate_fetch_node_stats()
1471 for (y = 0; y < rt->rateCount; y++) { in ath_rate_fetch_node_stats()
1472 tv->ratecode[y] = rt->info[y].dot11Rate & IEEE80211_RATE_VAL; in ath_rate_fetch_node_stats()
1473 if (rt->info[y].phy == IEEE80211_T_HT) in ath_rate_fetch_node_stats()
1519 const HAL_RATE_TABLE *rt = sc->sc_currates; in sample_stats() local
1526 dot11rate(rt, sn->static_rix), in sample_stats()
1527 dot11rate_label(rt, sn->static_rix), in sample_stats()
1532 dot11rate(rt, sn->current_rix[y]), in sample_stats()
1533 dot11rate_label(rt, sn->current_rix[y]), in sample_stats()
1537 dot11rate(rt, sn->last_sample_rix[y]), in sample_stats()
1538 dot11rate_label(rt, sn->last_sample_rix[y]), in sample_stats()
1539 dot11rate(rt, sn->current_sample_rix[y]), in sample_stats()
1540 dot11rate_label(rt, sn->current_sample_rix[y]), in sample_stats()
1553 dot11rate(rt, rix), dot11rate_label(rt, rix), in sample_stats()