Home
last modified time | relevance | path

Searched refs:rate_idx (Results 1 – 25 of 106) sorted by relevance

12345

/linux-6.12.1/drivers/net/wireless/ti/wl1251/
Drx.c88 status->rate_idx = 1; in wl1251_rx_status()
91 status->rate_idx = 2; in wl1251_rx_status()
94 status->rate_idx = 3; in wl1251_rx_status()
97 status->rate_idx = 4; in wl1251_rx_status()
100 status->rate_idx = 5; in wl1251_rx_status()
103 status->rate_idx = 7; in wl1251_rx_status()
106 status->rate_idx = 8; in wl1251_rx_status()
109 status->rate_idx = 9; in wl1251_rx_status()
112 status->rate_idx = 10; in wl1251_rx_status()
115 status->rate_idx = 11; in wl1251_rx_status()
[all …]
/linux-6.12.1/net/mac80211/
Drate.c431 static bool rate_idx_match_legacy_mask(s8 *rate_idx, int n_bitrates, u32 mask) in rate_idx_match_legacy_mask() argument
436 for (j = *rate_idx; j >= 0; j--) { in rate_idx_match_legacy_mask()
439 *rate_idx = j; in rate_idx_match_legacy_mask()
445 for (j = *rate_idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask()
448 *rate_idx = j; in rate_idx_match_legacy_mask()
455 static bool rate_idx_match_mcs_mask(s8 *rate_idx, u8 *mcs_mask) in rate_idx_match_mcs_mask() argument
460 ridx = *rate_idx / 8; in rate_idx_match_mcs_mask()
461 rbit = *rate_idx % 8; in rate_idx_match_mcs_mask()
471 *rate_idx = i * 8 + j; in rate_idx_match_mcs_mask()
478 ridx = (*rate_idx + 1) / 8; in rate_idx_match_mcs_mask()
[all …]
Dstatus.c219 if (status_rate && !(status_rate->rate_idx.flags & in ieee80211_tx_radiotap_len()
240 if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_MCS) in ieee80211_tx_radiotap_len()
242 else if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_VHT_MCS) in ieee80211_tx_radiotap_len()
244 else if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_HE_MCS) in ieee80211_tx_radiotap_len()
291 if (!(status_rate->rate_idx.flags & in ieee80211_add_tx_radiotap_header()
297 legacy_rate = status_rate->rate_idx.legacy; in ieee80211_add_tx_radiotap_header()
334 if (status_rate && (status_rate->rate_idx.flags & RATE_INFO_FLAGS_MCS)) in ieee80211_add_tx_radiotap_header()
340 if (status_rate->rate_idx.flags & RATE_INFO_FLAGS_SHORT_GI) in ieee80211_add_tx_radiotap_header()
342 if (status_rate->rate_idx.bw == RATE_INFO_BW_40) in ieee80211_add_tx_radiotap_header()
344 pos[2] = status_rate->rate_idx.mcs; in ieee80211_add_tx_radiotap_header()
[all …]
Dairtime.c539 idx = status->rate_idx; in ieee80211_get_rate_duration()
543 streams = ((status->rate_idx >> 3) & 3) + 1; in ieee80211_get_rate_duration()
544 idx = status->rate_idx & 7; in ieee80211_get_rate_duration()
549 idx = status->rate_idx; in ieee80211_get_rate_duration()
554 idx = status->rate_idx; in ieee80211_get_rate_duration()
603 if (!sband || status->rate_idx >= sband->n_bitrates) in ieee80211_calc_rx_airtime()
606 rate = &sband->bitrates[status->rate_idx]; in ieee80211_calc_rx_airtime()
637 stat->rate_idx = ri->mcs; in ieee80211_fill_rate_info()
665 stat->rate_idx = 0; in ieee80211_fill_rate_info()
670 stat->rate_idx = i; in ieee80211_fill_rate_info()
[all …]
Dsta_info.h996 r |= STA_STATS_FIELD(VHT_MCS, s->rate_idx); in sta_stats_encode_rate()
1000 r |= STA_STATS_FIELD(HT_MCS, s->rate_idx); in sta_stats_encode_rate()
1005 r |= STA_STATS_FIELD(LEGACY_IDX, s->rate_idx); in sta_stats_encode_rate()
1010 r |= STA_STATS_FIELD(HE_MCS, s->rate_idx); in sta_stats_encode_rate()
1018 r |= STA_STATS_FIELD(EHT_MCS, s->rate_idx); in sta_stats_encode_rate()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/
Dbase.c983 int rate_idx; in rtlwifi_rate_mapping() local
988 rate_idx = 0; in rtlwifi_rate_mapping()
991 rate_idx = 1; in rtlwifi_rate_mapping()
994 rate_idx = 2; in rtlwifi_rate_mapping()
997 rate_idx = 3; in rtlwifi_rate_mapping()
1000 rate_idx = 4; in rtlwifi_rate_mapping()
1003 rate_idx = 5; in rtlwifi_rate_mapping()
1006 rate_idx = 6; in rtlwifi_rate_mapping()
1009 rate_idx = 7; in rtlwifi_rate_mapping()
1012 rate_idx = 8; in rtlwifi_rate_mapping()
[all …]
/linux-6.12.1/drivers/net/wireless/ath/ath9k/
Ddebug_sta.c116 if (rxs->rate_idx >= ARRAY_SIZE(rstats->ht_stats)) in ath_debug_rate_stats()
120 rstats->ht_stats[rxs->rate_idx].ht40_cnt++; in ath_debug_rate_stats()
122 rstats->ht_stats[rxs->rate_idx].ht20_cnt++; in ath_debug_rate_stats()
125 rstats->ht_stats[rxs->rate_idx].sgi_cnt++; in ath_debug_rate_stats()
127 rstats->ht_stats[rxs->rate_idx].lgi_cnt++; in ath_debug_rate_stats()
134 rstats->cck_stats[rxs->rate_idx].cck_sp_cnt++; in ath_debug_rate_stats()
136 rstats->cck_stats[rxs->rate_idx].cck_lp_cnt++; in ath_debug_rate_stats()
143 rstats->ofdm_stats[rxs->rate_idx - 4].ofdm_cnt++; in ath_debug_rate_stats()
145 rstats->ofdm_stats[rxs->rate_idx].ofdm_cnt++; in ath_debug_rate_stats()
Dcommon.c193 rxs->rate_idx = rx_stats->rs_rate & 0x7f; in ath9k_cmn_process_rate()
199 rxs->rate_idx = i; in ath9k_cmn_process_rate()
204 rxs->rate_idx = i; in ath9k_cmn_process_rate()
/linux-6.12.1/drivers/net/wireless/intel/iwlegacy/
D3945.c80 il3945_get_prev_ieee_rate(u8 rate_idx) in il3945_get_prev_ieee_rate() argument
82 u8 rate = il3945_rates[rate_idx].prev_ieee; in il3945_get_prev_ieee_rate()
85 rate = rate_idx; in il3945_get_prev_ieee_rate()
308 int rate_idx; in il3945_hdl_tx() local
336 rate_idx = il3945_hwrate_to_plcp_idx(tx_resp->rate); in il3945_hdl_tx()
338 rate_idx -= IL_FIRST_OFDM_RATE; in il3945_hdl_tx()
342 info->status.rates[0].idx = rate_idx; in il3945_hdl_tx()
548 rx_status.rate_idx = il3945_hwrate_to_plcp_idx(rx_hdr->rate); in il3945_hdl_rx()
550 rx_status.rate_idx -= IL_FIRST_OFDM_RATE; in il3945_hdl_rx()
584 rx_status.signal, rx_status.signal, rx_status.rate_idx); in il3945_hdl_rx()
[all …]
D4965-rs.c538 struct il_scale_tbl_info *tbl, int *rate_idx) in il4965_rs_get_tbl_info_from_mcs() argument
546 *rate_idx = il4965_hwrate_to_plcp_idx(rate_n_flags); in il4965_rs_get_tbl_info_from_mcs()
548 if (*rate_idx == RATE_INVALID) { in il4965_rs_get_tbl_info_from_mcs()
549 *rate_idx = -1; in il4965_rs_get_tbl_info_from_mcs()
2136 int rate_idx; in il4965_rs_initialize_lq() local
2169 il4965_rs_get_tbl_info_from_mcs(rate, il->band, tbl, &rate_idx); in il4965_rs_initialize_lq()
2173 rate = il4965_rate_n_flags_from_tbl(il, tbl, rate_idx, use_green); in il4965_rs_initialize_lq()
2191 int rate_idx; in il4965_rs_get_rate() local
2215 rate_idx = lq_sta->last_txrate_idx; in il4965_rs_get_rate()
2218 rate_idx -= IL_FIRST_OFDM_RATE; in il4965_rs_get_rate()
[all …]
/linux-6.12.1/drivers/net/wireless/ath/carl9170/
Drx.c364 status->rate_idx = 0; in carl9170_rx_mac_status()
367 status->rate_idx = 1; in carl9170_rx_mac_status()
370 status->rate_idx = 2; in carl9170_rx_mac_status()
373 status->rate_idx = 3; in carl9170_rx_mac_status()
389 status->rate_idx = 0; in carl9170_rx_mac_status()
392 status->rate_idx = 1; in carl9170_rx_mac_status()
395 status->rate_idx = 2; in carl9170_rx_mac_status()
398 status->rate_idx = 3; in carl9170_rx_mac_status()
401 status->rate_idx = 4; in carl9170_rx_mac_status()
404 status->rate_idx = 5; in carl9170_rx_mac_status()
[all …]
/linux-6.12.1/drivers/staging/vt6655/
Ddpc.c37 u8 rate_idx = 0; in vnt_rx_data() local
63 rate_idx = ii; in vnt_rx_data()
100 rx_status.rate_idx = rate_idx; in vnt_rx_data()
Dbaseband.c1710 unsigned int rate_idx = (unsigned int)tx_rate; in bb_get_frame_time() local
1713 if (rate_idx > RATE_54M) in bb_get_frame_time()
1716 rate = (unsigned int)awc_frame_time[rate_idx]; in bb_get_frame_time()
1718 if (rate_idx <= 3) { /* CCK mode */ in bb_get_frame_time()
/linux-6.12.1/drivers/net/wireless/silabs/wfx/
Ddata_rx.c61 hdr->rate_idx = arg->rxed_rate - 14; in wfx_rx_cb()
63 hdr->rate_idx = arg->rxed_rate - 2; in wfx_rx_cb()
65 hdr->rate_idx = arg->rxed_rate; in wfx_rx_cb()
/linux-6.12.1/drivers/net/wireless/mediatek/mt7601u/
Dmac.c108 u8 phy, rate_idx; in mt76_mac_tx_rate_val() local
113 rate_idx = rate->idx; in mt76_mac_tx_rate_val()
132 rate_idx = val & 0xff; in mt76_mac_tx_rate_val()
136 rateval = FIELD_PREP(MT_RXWI_RATE_MCS, rate_idx); in mt76_mac_tx_rate_val()
407 status->rate_idx = idx; in mt76_mac_process_rate()
418 status->rate_idx = idx; in mt76_mac_process_rate()
425 status->rate_idx = idx; in mt76_mac_process_rate()
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/dvm/
Drs.c565 int *rate_idx) in rs_get_tbl_info_from_mcs() argument
572 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs()
574 if (*rate_idx == IWL_RATE_INVALID) { in rs_get_tbl_info_from_mcs()
575 *rate_idx = -1; in rs_get_tbl_info_from_mcs()
2612 int rate_idx; in rs_initialize_lq() local
2648 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx); in rs_initialize_lq()
2652 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); in rs_initialize_lq()
2671 int rate_idx; in rs_get_rate() local
2688 rate_idx = lq_sta->last_txrate_idx; in rs_get_rate()
2691 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate()
[all …]
Dtx.c112 int rate_idx; in iwlagn_tx_cmd_build_rate() local
153 rate_idx = info->control.rates[0].idx; in iwlagn_tx_cmd_build_rate()
155 (rate_idx < 0) || (rate_idx > IWL_RATE_COUNT_LEGACY)) in iwlagn_tx_cmd_build_rate()
156 rate_idx = rate_lowest_index( in iwlagn_tx_cmd_build_rate()
160 rate_idx += IWL_FIRST_OFDM_RATE; in iwlagn_tx_cmd_build_rate()
162 rate_plcp = iwl_rates[rate_idx].plcp; in iwlagn_tx_cmd_build_rate()
167 if ((rate_idx >= IWL_FIRST_CCK_RATE) && (rate_idx <= IWL_LAST_CCK_RATE)) in iwlagn_tx_cmd_build_rate()
/linux-6.12.1/drivers/net/wireless/ti/wlcore/
Dtx.c252 int ac, rate_idx; in wl1271_tx_fill_hdr() local
309 rate_idx = 0; in wl1271_tx_fill_hdr()
317 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr()
319 rate_idx = wlvif->sta.p2p_rate_idx; in wl1271_tx_fill_hdr()
321 rate_idx = wlvif->sta.ap_rate_idx; in wl1271_tx_fill_hdr()
323 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr()
326 rate_idx = wlvif->ap.mgmt_rate_idx; in wl1271_tx_fill_hdr()
334 rate_idx = wlvif->ap.bcast_rate_idx; in wl1271_tx_fill_hdr()
336 rate_idx = wlvif->ap.ucast_rate_idx[ac]; in wl1271_tx_fill_hdr()
339 tx_attr |= rate_idx << TX_HW_ATTR_OFST_RATE_POLICY; in wl1271_tx_fill_hdr()
/linux-6.12.1/drivers/net/wireless/realtek/rtw88/
Drx.c218 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; in rtw_rx_fill_rx_status()
222 rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M; in rtw_rx_fill_rx_status()
224 rtw_desc_to_mcsrate(pkt_stat->rate, &rx_status->rate_idx, in rtw_rx_fill_rx_status()
Dphy.c550 static u32 rtw_phy_get_rrsr_mask(struct rtw_dev *rtwdev, u8 rate_idx) in rtw_phy_get_rrsr_mask() argument
554 rate_order = rate_idx; in rtw_phy_get_rrsr_mask()
556 if (rate_idx >= DESC_RATEVHT4SS_MCS0) in rtw_phy_get_rrsr_mask()
558 else if (rate_idx >= DESC_RATEVHT3SS_MCS0) in rtw_phy_get_rrsr_mask()
560 else if (rate_idx >= DESC_RATEVHT2SS_MCS0) in rtw_phy_get_rrsr_mask()
562 else if (rate_idx >= DESC_RATEVHT1SS_MCS0) in rtw_phy_get_rrsr_mask()
564 else if (rate_idx >= DESC_RATEMCS24) in rtw_phy_get_rrsr_mask()
566 else if (rate_idx >= DESC_RATEMCS16) in rtw_phy_get_rrsr_mask()
568 else if (rate_idx >= DESC_RATEMCS8) in rtw_phy_get_rrsr_mask()
570 else if (rate_idx >= DESC_RATEMCS0) in rtw_phy_get_rrsr_mask()
[all …]
/linux-6.12.1/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c1337 int rate_idx; in rs_get_best_rate() local
1351 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG); in rs_get_best_rate()
1353 while (rate_idx != IWL_RATE_INVALID) { in rs_get_best_rate()
1354 if (target_tpt < (100 * tpt_tbl[rate_idx])) in rs_get_best_rate()
1357 high_low = rs_get_adjacent_rate(mvm, rate_idx, rate_mask, in rs_get_best_rate()
1360 rate_idx = (high_low >> 8) & 0xff; in rs_get_best_rate()
1364 rate_idx, target_tpt, in rs_get_best_rate()
1365 rate_idx != IWL_RATE_INVALID ? in rs_get_best_rate()
1366 100 * tpt_tbl[rate_idx] : IWL_INVALID_VALUE); in rs_get_best_rate()
1368 return rate_idx; in rs_get_best_rate()
[all …]
/linux-6.12.1/drivers/net/wireless/broadcom/b43/
Dxmit.c643 int padding, rate_idx; in b43_rx() local
744 rate_idx = b43_plcp_get_bitrate_idx_ofdm(plcp, in b43_rx()
747 rate_idx = b43_plcp_get_bitrate_idx_cck(plcp); in b43_rx()
748 if (unlikely(rate_idx == -1)) { in b43_rx()
754 status.rate_idx = rate_idx; in b43_rx()
/linux-6.12.1/drivers/staging/vt6656/
Dusbpipe.c274 u8 rate_idx = 0; in vnt_rx_data() local
315 rate_idx = ii; in vnt_rx_data()
352 rx_status->rate_idx = rate_idx; in vnt_rx_data()
/linux-6.12.1/drivers/net/wireless/purelifi/plfxlc/
Dintf.h28 u8 rate_idx; member
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.c183 u8 phy, rate_idx, nss, bw = 0; in mt76x02_mac_tx_rate_val() local
187 rate_idx = rate->idx; in mt76x02_mac_tx_rate_val()
195 rate_idx = rate->idx; in mt76x02_mac_tx_rate_val()
214 rate_idx = val & 0xff; in mt76x02_mac_tx_rate_val()
218 rateval = FIELD_PREP(MT_RXWI_RATE_INDEX, rate_idx); in mt76x02_mac_tx_rate_val()
671 status->rate_idx = idx; in mt76x02_mac_process_rate()
682 status->rate_idx = idx; in mt76x02_mac_process_rate()
689 status->rate_idx = idx; in mt76x02_mac_process_rate()
695 status->rate_idx = FIELD_GET(MT_RATE_INDEX_VHT_IDX, idx); in mt76x02_mac_process_rate()

12345