Home
last modified time | relevance | path

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

12

/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/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()
/haiku/src/libs/compat/freebsd_wlan/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 (enum ieee80211_phytype)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() local
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() 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.c652 int i, j, rix, error; in ieee80211_fix_rate() local
721 rix = findrix(srs, r); in ieee80211_fix_rate()
723 if (rix < 0) { in ieee80211_fix_rate()
738 nrs->rs_rates[i] = srs->rs_rates[rix]; in ieee80211_fix_rate()
741 if ((flags & IEEE80211_F_DODEL) && rix < 0) { in ieee80211_fix_rate()
751 if (rix >= 0) in ieee80211_fix_rate()
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/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 …]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/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 …]
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
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_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_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_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()
1140 dur = rt->info[rix].spAckDuration; in ath_tx_calc_duration()
1142 dur = rt->info[rix].lpAckDuration; in ath_tx_calc_duration()
1157 rix, shortPreamble, in ath_tx_calc_duration()
1202 ath_tx_calc_ctsduration(struct ath_hal *ah, int rix, int cix, in ath_tx_calc_ctsduration() argument
[all …]
H A Dif_ath_led.h34 extern void ath_led_event(struct ath_softc *sc, int rix);
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_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()
/haiku/src/add-ons/kernel/drivers/network/wlan/ralinkwifi/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()
1551 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2560_tx_mgt()
1623 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2560_sendprot()
1829 data->rix = ni->ni_txrate; in rt2560_tx_data()
1833 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()
1319 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2661_tx_mgt()
1391 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2661_sendprot()
1522 data->rix = ni->ni_txrate; in rt2661_tx_data()
1526 data->rix = IEEE80211_FIXED_RATE_NONE; in rt2661_tx_data()
/haiku/src/add-ons/translators/raw/
H A DRAW.cpp1725 ushort (*pix)[4], (*rix)[3]; in _AHDInterpolate() local
1782 rix = &rgb[d][row - top][col - left]; in _AHDInterpolate()
1786 - rix[-1][1] - rix[1][1] ) >> 1); in _AHDInterpolate()
1787 rix[0][2-c] = CLIP(val); in _AHDInterpolate()
1790 - rix[-TS][1] - rix[TS][1] ) >> 1); in _AHDInterpolate()
1792 val = rix[0][1] + ((pix[-fInputWidth - 1][c] in _AHDInterpolate()
1796 - rix[-TS - 1][1] - rix[-TS + 1][1] in _AHDInterpolate()
1797 - rix[TS - 1][1] - rix[TS + 1][1] + 1) >> 2); in _AHDInterpolate()
1799 rix[0][c] = CLIP(val); in _AHDInterpolate()
1801 rix[0][c] = pix[0][c]; in _AHDInterpolate()
[all …]
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/
H A Dif_malo.c904 malo_updatetxrate(struct ieee80211_node *ni, int rix) in malo_updatetxrate() argument
908 if (rix < nitems(ieeerates)) in malo_updatetxrate()
909 ni->ni_txrate = ieeerates[rix]; in malo_updatetxrate()
/haiku/src/add-ons/kernel/drivers/network/wlan/broadcom43xx/dev/bwi/
H A Dif_bwi.c2925 int type, ismcast, pkt_len, error, rix; in bwi_encap() local
2952 rix = ieee80211_ratectl_rate(ni, NULL, pkt_len); in bwi_encap()
2955 if (rix > 0) { in bwi_encap()
2956 rate_fb = ni->ni_rates.rs_rates[rix-1] & in bwi_encap()

12