Home
last modified time | relevance | path

Searched refs:rix (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/sys/dev/ath/ath_rate/sample/
H A Dsample.c293 dot11rate(const HAL_RATE_TABLE *rt, int rix) in dot11rate() argument
295 if (rix < 0) in dot11rate()
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
304 if (rix < 0) in dot11rate_label()
306 return rt->info[rix].phy == IEEE80211_T_HT ? "MCS" : "Mb "; in dot11rate_label()
320 int rix, tt, pct; in pick_best_rate() local
325 for (mask = sn->ratemask, rix = 0; mask != 0; mask >>= 1, rix++) { in pick_best_rate()
331 (rt->info[rix].phy != IEEE80211_T_HT)) { in pick_best_rate()
[all …]
H A Dsample.h115 #define IS_RATE_DEFINED(sn, rix) (((uint64_t) (sn)->ratemask & (1ULL<<((uint64_t) rix))) != 0) argument
132 int rix, int short_retries, in calc_usecs_unicast_packet() argument
149 if (rix >= rt->rateCount) { in calc_usecs_unicast_packet()
151 rix, rt->rateCount, sc->sc_curmode); in calc_usecs_unicast_packet()
154 cix = rt->info[rix].controlRate; in calc_usecs_unicast_packet()
160 switch (rt->info[rix].phy) { in calc_usecs_unicast_packet()
188 rt->info[rix].phy == IEEE80211_T_OFDM) { in calc_usecs_unicast_packet()
215 ctsduration += ath_hal_pkt_txtime(sc->sc_ah, rt, length, rix, in calc_usecs_unicast_packet()
226 tt += (long_retries+1)*ath_hal_pkt_txtime(sc->sc_ah, rt, length, rix, in calc_usecs_unicast_packet()
229 tt += (long_retries+1)*(t_sifs + rt->info[rix].spAckDuration); in calc_usecs_unicast_packet()
/freebsd/tools/tools/ath/athratestats/
H A Dmain.c91 dot11rate(struct ath_rateioctl_rt *rt, int rix) in dot11rate() argument
94 if (rt->ratecode[rix] & IEEE80211_RATE_MCS) in dot11rate()
95 return rt->ratecode[rix] & ~(IEEE80211_RATE_MCS); in dot11rate()
97 return (rt->ratecode[rix] / 2); in dot11rate()
101 dot11str(struct ath_rateioctl_rt *rt, int rix) in dot11str() argument
103 if (rix == -1) in dot11str()
105 else if (rt->ratecode[rix] & IEEE80211_RATE_MCS) in dot11str()
116 int rix, y; in ath_sample_stats() local
151 for (mask = sn->ratemask, rix = 0; mask != 0; mask >>= 1, rix++) { in ath_sample_stats()
156 if (sn->stats[y][rix].total_packets == 0) in ath_sample_stats()
[all …]
/freebsd/sys/net80211/
H A Dieee80211_rssadapt.c242 int rix, rssi; in rssadapt_rate() local
261 for (rix = rs->rs_nrates-1; rix >= 0; rix--) in rssadapt_rate()
262 if ((*thrs)[rix] < (rssi << 8)) in rssadapt_rate()
264 if (rix != ra->ra_rix) { in rssadapt_rate()
266 ni->ni_txrate = ni->ni_rates.rs_rates[rix] & IEEE80211_RATE_VAL; in rssadapt_rate()
267 ra->ra_rix = rix; in rssadapt_rate()
273 return rix; in rssadapt_rate()
287 u_int rix; in rssadapt_lower_rate() local
291 rix = ra->ra_rix; in rssadapt_lower_rate()
292 last_thr = (*thrs)[rix]; in rssadapt_lower_rate()
[all …]
H A Dieee80211_phy.h144 uint8_t rix = rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]; in ieee80211_rate2phytype() local
145 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_rate2phytype()
146 return rt->info[rix].phy; in ieee80211_rate2phytype()
172 uint8_t rix = rt->rateCodeToIndex[rate]; in ieee80211_ack_duration() local
174 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_duration()
176 KASSERT(rt->info[rix].spAckDuration != 0, in ieee80211_ack_duration()
178 return rt->info[rix].spAckDuration; in ieee80211_ack_duration()
180 KASSERT(rt->info[rix].lpAckDuration != 0, in ieee80211_ack_duration()
182 return rt->info[rix].lpAckDuration; in ieee80211_ack_duration()
H A Dieee80211_amrr.c251 int rix = amn->amn_rix; in amrr_update()
268 rs->rs_rates[rix] & IEEE80211_RATE_VAL, in amrr_update()
283 rix + 1 < rs->rs_nrates) { in amrr_update()
286 rix++; in amrr_update()
291 rs->rs_rates[rix] & IEEE80211_RATE_VAL, in amrr_update()
298 if (rix > 0) { in amrr_update()
309 rix--; in amrr_update()
314 rs->rs_rates[rix] & IEEE80211_RATE_VAL, in amrr_update()
324 return rix; in amrr_update()
338 int rix; in amrr_rate()
250 int rix = amn->amn_rix; amrr_update() local
337 int rix; amrr_rate() local
[all...]
H A Dieee80211_ratectl_none.c76 int rix = 0; in none_rate() local
78 ni->ni_txrate = ni->ni_rates.rs_rates[rix] & IEEE80211_RATE_VAL; in none_rate()
79 return rix; in none_rate()
H A Dieee80211_phy.c505 uint8_t rix = rt->rateCodeToIndex[rate]; in ieee80211_compute_duration() local
509 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_compute_duration()
510 kbps = rt->info[rix].rateKbps; in ieee80211_compute_duration()
514 switch (rt->info[rix].phy) { in ieee80211_compute_duration()
517 if (isShortPreamble && rt->info[rix].shortPreamble) in ieee80211_compute_duration()
565 rt->info[rix].phy, rate); in ieee80211_compute_duration()
H A Dieee80211_proto.c643 int i, j, rix, error; in ieee80211_fix_rate() local
712 rix = findrix(srs, r); in ieee80211_fix_rate()
714 if (rix < 0) { in ieee80211_fix_rate()
729 nrs->rs_rates[i] = srs->rs_rates[rix]; in ieee80211_fix_rate()
732 if ((flags & IEEE80211_F_DODEL) && rix < 0) { in ieee80211_fix_rate()
742 if (rix >= 0) in ieee80211_fix_rate()
/freebsd/sys/dev/ath/ath_rate/amrr/
H A Damrr.c106 u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur, in ath_rate_findrate() argument
111 *rix = amn->amn_tx_rix0; in ath_rate_findrate()
135 rc[0].rix = amn->amn_tx_rate0; in ath_rate_getxtxrates()
136 rc[1].rix = amn->amn_tx_rate1; in ath_rate_getxtxrates()
137 rc[2].rix = amn->amn_tx_rate2; in ath_rate_getxtxrates()
138 rc[3].rix = amn->amn_tx_rate3; in ath_rate_getxtxrates()
148 struct ath_desc *ds, int shortPreamble, u_int8_t rix) in ath_rate_setupxtxdesc() argument
230 u_int8_t rix; in ath_rate_update() local
259 rix = sc->sc_rixmap[ in ath_rate_update()
261 amn->amn_tx_rate1 = rt->info[rix].rateCode; in ath_rate_update()
[all …]
/freebsd/tools/tools/net80211/wlantxtime/
H A Dwlantxtime.c330 uint8_t rix = rt->rateCodeToIndex[rate]; in ieee80211_compute_duration() local
334 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_compute_duration()
335 kbps = rt->info[rix].rateKbps; in ieee80211_compute_duration()
339 switch (rt->info[rix].phy) { in ieee80211_compute_duration()
342 if (isShortPreamble && rt->info[rix].shortPreamble) in ieee80211_compute_duration()
390 rt->info[rix].phy, rate); in ieee80211_compute_duration()
467 checkpreamble(const struct ieee80211_rate_table *rt, uint8_t rix, in checkpreamble() argument
471 if (rt->info[rix].phy != IEEE80211_T_CCK) { in checkpreamble()
475 } else if (!rt->info[rix].shortPreamble) { in checkpreamble()
479 srate(rt->info[rix].dot11Rate &~ IEEE80211_RATE_BASIC)); in checkpreamble()
[all …]
/freebsd/sys/dev/ath/ath_rate/onoe/
H A Donoe.c114 u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur, in ath_rate_findrate() argument
119 *rix = on->on_tx_rix0; in ath_rate_findrate()
143 rc[0].rix = on->on_tx_rate0; in ath_rate_getxtxrates()
144 rc[1].rix = on->on_tx_rate1; in ath_rate_getxtxrates()
145 rc[2].rix = on->on_tx_rate2; in ath_rate_getxtxrates()
146 rc[3].rix = on->on_tx_rate3; in ath_rate_getxtxrates()
156 struct ath_desc *ds, int shortPreamble, u_int8_t rix) in ath_rate_setupxtxdesc() argument
205 u_int8_t rix; in ath_rate_update() local
240 rix = sc->sc_rixmap[ in ath_rate_update()
242 on->on_tx_rate1 = rt->info[rix].rateCode; in ath_rate_update()
[all …]
/freebsd/sys/dev/ath/
H A Dif_ath_tx_ht.c260 rate = rt->info[rc[i].rix].rateCode; in ath_tx_rate_fill_rcflags()
266 rate |= rt->info[rc[i].rix].shortPreamble; in ath_tx_rate_fill_rcflags()
413 uint8_t rc, rix, flags; in ath_compute_num_delims() local
494 rix = first_bf->bf_state.bfs_rc[0].rix; in ath_compute_num_delims()
495 rc = rt->info[rix].rateCode; in ath_compute_num_delims()
526 __func__, pktlen, minlen, rix, rc, width, half_gi, ndelim); in ath_compute_num_delims()
662 series[i].Rate = rt->info[rc[i].rix].rateCode; in ath_rateseries_setup()
663 series[i].RateIndex = rc[i].rix; in ath_rateseries_setup()
706 rt->info[rc[i].rix].shortPreamble; in ath_rateseries_setup()
709 rt, pktlen, rc[i].rix, shortPreamble, AH_TRUE); in ath_rateseries_setup()
H A Dif_ath_tx.c1047 uint8_t rix; in ath_tx_calc_protection() local
1054 rix = bf->bf_state.bfs_rc[0].rix; in ath_tx_calc_protection()
1072 rt->info[rix].phy == IEEE80211_T_OFDM && in ath_tx_calc_protection()
1100 rt->info[rix].phy == IEEE80211_T_HT && in ath_tx_calc_protection()
1120 uint8_t rix; in ath_tx_calc_duration() local
1128 rix = bf->bf_state.bfs_rc[0].rix; in ath_tx_calc_duration()
1139 dur = rt->info[rix].spAckDuration; in ath_tx_calc_duration()
1141 dur = rt->info[rix].lpAckDuration; in ath_tx_calc_duration()
1156 rix, shortPreamble, in ath_tx_calc_duration()
1201 ath_tx_calc_ctsduration(struct ath_hal *ah, int rix, int cix, in ath_tx_calc_ctsduration() argument
[all …]
H A Dif_ath_tdma.c256 int rix; in ath_tdma_config() local
277 rix = ath_tx_findrix(sc, tp->ucastrate); in ath_tdma_config()
279 rix = ath_tx_findrix(sc, tp->mcastrate); in ath_tdma_config()
291 if_getmtu(vap->iv_ifp) + IEEE80211_MAXOVERHEAD, rix, AH_TRUE, in ath_tdma_config()
369 int rix; in ath_tdma_update() local
405 rix = rt->rateCodeToIndex[rs->rs_rate]; in ath_tdma_update()
431 rix, in ath_tdma_update()
433 (rix & 0x80) ? in ath_tdma_update()
434 (! (rs->rs_flags & HAL_RX_GI)) : rt->info[rix].shortPreamble, in ath_tdma_update()
H A Dif_athrate.h91 uint8_t rix; /* ratetable index, not rate code */ member
141 u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur,
148 struct ath_desc *, int shortPreamble, u_int8_t rix);
H A Dif_ath_led.c193 ath_led_event(struct ath_softc *sc, int rix) in ath_led_event() argument
198 ath_led_blink(sc, sc->sc_hwmap[rix].ledon, sc->sc_hwmap[rix].ledoff); in ath_led_event()
H A Dif_ath_beacon.c278 u_int8_t rix, rate; in ath_beacon_setup() local
321 rix = 0; in ath_beacon_setup()
323 rate = rt->info[rix].rateCode; in ath_beacon_setup()
325 rate |= rt->info[rix].shortPreamble; in ath_beacon_setup()
349 rc[0].Rate = rt->info[rix].rateCode; in ath_beacon_setup()
350 rc[0].RateIndex = rix; in ath_beacon_setup()
354 rix, 0, AH_TRUE); in ath_beacon_setup()
H A Dif_ath_led.h34 extern void ath_led_event(struct ath_softc *sc, int rix);
H A Dif_ath_rx.c583 uint8_t rix; in ath_rx_tap() local
587 rix = rt->rateCodeToIndex[rs->rs_rate]; in ath_rx_tap()
588 sc->sc_rx_th.wr_rate = sc->sc_hwmap[rix].ieeerate; in ath_rx_tap()
589 sc->sc_rx_th.wr_flags = sc->sc_hwmap[rix].rxflags; in ath_rx_tap()
910 uint8_t rix = rt->rateCodeToIndex[rs->rs_rate]; in ath_rx_pkt() local
913 sc->sc_hwmap[rix].ieeerate, rs->rs_rssi); in ath_rx_pkt()
/freebsd/sys/dev/ral/
H A Drt2560var.h59 uint8_t rix; member
H A Drt2661var.h55 uint8_t rix; member
H A Drt2560.c939 if (data->rix != IEEE80211_FIXED_RATE_NONE) in rt2560_tx_intr()
950 if (data->rix != IEEE80211_FIXED_RATE_NONE) in rt2560_tx_intr()
961 if (data->rix != IEEE80211_FIXED_RATE_NONE) in rt2560_tx_intr()
1549 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2560_tx_mgt()
1618 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2560_sendprot()
1824 data->rix = ni->ni_txrate; in rt2560_tx_data()
1828 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2560_tx_data()
H A Drt2661.c886 if (data->rix != IEEE80211_FIXED_RATE_NONE) in rt2661_tx_intr()
897 if (data->rix != IEEE80211_FIXED_RATE_NONE) in rt2661_tx_intr()
1317 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2661_tx_mgt()
1387 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2661_sendprot()
1518 data->rix = ni->ni_txrate; in rt2661_tx_data()
1522 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2661_tx_data()
/freebsd/sys/dev/iwm/
H A Dif_iwm.c3475 int rix = ieee80211_ratectl_rate(vap->iv_bss, NULL, 0); in iwm_rx_tx_cmd_single() local
3479 iwm_setrates(sc, in, rix); in iwm_rx_tx_cmd_single()
4242 iwm_setrates(struct iwm_softc *sc, struct iwm_node *in, int rix) in iwm_setrates() argument
4251 KASSERT(rix >= 0 && rix < nrates, ("invalid rix")); in iwm_setrates()
4264 nrates = imin(rix + 1, nrates); in iwm_setrates()
4293 int rate = rs->rs_rates[rix - i] & IEEE80211_RATE_VAL; in iwm_setrates()
4531 int rix = ieee80211_ratectl_rate(&in->in_ni, NULL, 0); in iwm_newstate() local
4532 iwm_setrates(sc, in, rix); in iwm_newstate()

12