/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
D | rx.c | 88 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 …]
|
/kernel/linux/linux-5.10/net/mac80211/ |
D | rate.c | 426 static bool rate_idx_match_legacy_mask(s8 *rate_idx, int n_bitrates, u32 mask) in rate_idx_match_legacy_mask() argument 431 for (j = *rate_idx; j >= 0; j--) { in rate_idx_match_legacy_mask() 434 *rate_idx = j; in rate_idx_match_legacy_mask() 440 for (j = *rate_idx + 1; j < n_bitrates; j++) { in rate_idx_match_legacy_mask() 443 *rate_idx = j; in rate_idx_match_legacy_mask() 450 static bool rate_idx_match_mcs_mask(s8 *rate_idx, u8 *mcs_mask) in rate_idx_match_mcs_mask() argument 455 ridx = *rate_idx / 8; in rate_idx_match_mcs_mask() 456 rbit = *rate_idx % 8; in rate_idx_match_mcs_mask() 466 *rate_idx = i * 8 + j; in rate_idx_match_mcs_mask() 473 ridx = (*rate_idx + 1) / 8; in rate_idx_match_mcs_mask() [all …]
|
D | airtime.c | 438 idx = status->rate_idx; in ieee80211_get_rate_duration() 442 streams = ((status->rate_idx >> 3) & 3) + 1; in ieee80211_get_rate_duration() 443 idx = status->rate_idx & 7; in ieee80211_get_rate_duration() 448 idx = status->rate_idx; in ieee80211_get_rate_duration() 487 if (!sband || status->rate_idx >= sband->n_bitrates) in ieee80211_calc_rx_airtime() 490 rate = &sband->bitrates[status->rate_idx]; in ieee80211_calc_rx_airtime() 521 stat->rate_idx = ri->mcs; in ieee80211_fill_rate_info() 540 stat->rate_idx = 0; in ieee80211_fill_rate_info() 545 stat->rate_idx = i; in ieee80211_fill_rate_info() 581 stat->rate_idx = rate->idx; in ieee80211_fill_rx_status() [all …]
|
D | sta_info.h | 900 r |= STA_STATS_FIELD(VHT_MCS, s->rate_idx); in sta_stats_encode_rate() 904 r |= STA_STATS_FIELD(HT_MCS, s->rate_idx); in sta_stats_encode_rate() 909 r |= STA_STATS_FIELD(LEGACY_IDX, s->rate_idx); in sta_stats_encode_rate() 914 r |= STA_STATS_FIELD(HE_MCS, s->rate_idx); in sta_stats_encode_rate()
|
D | rx.c | 468 *pos++ = status->rate_idx; in ieee80211_add_rx_radiotap_header() 532 *pos = (status->rate_idx << 4) | status->nss; in ieee80211_add_rx_radiotap_header() 590 he.data3 |= HE_PREP(DATA3_DATA_MCS, status->rate_idx); in ieee80211_add_rx_radiotap_header() 3816 rate = &sband->bitrates[status->rate_idx]; in ieee80211_rx_handlers_result() 4080 int rate_idx; in ieee80211_accept_frame() local 4082 rate_idx = 0; /* TODO: HT/VHT rates */ in ieee80211_accept_frame() 4084 rate_idx = status->rate_idx; in ieee80211_accept_frame() 4086 BIT(rate_idx)); in ieee80211_accept_frame() 4100 int rate_idx; in ieee80211_accept_frame() local 4102 rate_idx = 0; /* TODO: HT rates */ in ieee80211_accept_frame() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/ |
D | base.c | 984 int rate_idx; in rtlwifi_rate_mapping() local 989 rate_idx = 0; in rtlwifi_rate_mapping() 992 rate_idx = 1; in rtlwifi_rate_mapping() 995 rate_idx = 2; in rtlwifi_rate_mapping() 998 rate_idx = 3; in rtlwifi_rate_mapping() 1001 rate_idx = 4; in rtlwifi_rate_mapping() 1004 rate_idx = 5; in rtlwifi_rate_mapping() 1007 rate_idx = 6; in rtlwifi_rate_mapping() 1010 rate_idx = 7; in rtlwifi_rate_mapping() 1013 rate_idx = 8; in rtlwifi_rate_mapping() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
D | debug_sta.c | 116 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()
|
D | common.c | 193 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/ |
D | 3945.c | 80 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 …]
|
D | 4965-rs.c | 538 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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
D | rx.c | 364 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 …]
|
/kernel/linux/linux-5.10/drivers/staging/vt6655/ |
D | dpc.c | 39 u8 rate_idx = 0; in vnt_rx_data() local 65 rate_idx = ii; in vnt_rx_data() 102 rx_status.rate_idx = rate_idx; in vnt_rx_data()
|
D | baseband.c | 1713 unsigned int rate_idx = (unsigned int)tx_rate; in bb_get_frame_time() local 1716 if (rate_idx > RATE_54M) in bb_get_frame_time() 1719 rate = (unsigned int)awcFrameTime[rate_idx]; in bb_get_frame_time() 1721 if (rate_idx <= 3) { /* CCK mode */ in bb_get_frame_time()
|
/kernel/linux/linux-5.10/drivers/staging/wfx/ |
D | data_rx.c | 62 hdr->rate_idx = arg->rxed_rate - 14; in wfx_rx_cb() 64 hdr->rate_idx = arg->rxed_rate - 2; in wfx_rx_cb() 66 hdr->rate_idx = arg->rxed_rate; in wfx_rx_cb()
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/ |
D | mac.c | 108 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
D | rx.c | 166 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; in rtw_rx_fill_rx_status() 170 rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M; in rtw_rx_fill_rx_status() 172 rtw_desc_to_mcsrate(pkt_stat->rate, &rx_status->rate_idx, in rtw_rx_fill_rx_status()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 587 int *rate_idx) in rs_get_tbl_info_from_mcs() argument 594 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs() 596 if (*rate_idx == IWL_RATE_INVALID) { in rs_get_tbl_info_from_mcs() 597 *rate_idx = -1; in rs_get_tbl_info_from_mcs() 2634 int rate_idx; in rs_initialize_lq() local 2670 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx); in rs_initialize_lq() 2674 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); in rs_initialize_lq() 2693 int rate_idx; in rs_get_rate() local 2714 rate_idx = lq_sta->last_txrate_idx; in rs_get_rate() 2717 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate() [all …]
|
D | tx.c | 116 int rate_idx; in iwlagn_tx_cmd_build_rate() local 157 rate_idx = info->control.rates[0].idx; in iwlagn_tx_cmd_build_rate() 159 (rate_idx < 0) || (rate_idx > IWL_RATE_COUNT_LEGACY)) in iwlagn_tx_cmd_build_rate() 160 rate_idx = rate_lowest_index( in iwlagn_tx_cmd_build_rate() 164 rate_idx += IWL_FIRST_OFDM_RATE; in iwlagn_tx_cmd_build_rate() 166 rate_plcp = iwl_rates[rate_idx].plcp; in iwlagn_tx_cmd_build_rate() 171 if ((rate_idx >= IWL_FIRST_CCK_RATE) && (rate_idx <= IWL_LAST_CCK_RATE)) in iwlagn_tx_cmd_build_rate()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/ |
D | tx.c | 255 int ac, rate_idx; in wl1271_tx_fill_hdr() local 312 rate_idx = 0; in wl1271_tx_fill_hdr() 320 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr() 322 rate_idx = wlvif->sta.p2p_rate_idx; in wl1271_tx_fill_hdr() 324 rate_idx = wlvif->sta.ap_rate_idx; in wl1271_tx_fill_hdr() 326 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr() 329 rate_idx = wlvif->ap.mgmt_rate_idx; in wl1271_tx_fill_hdr() 337 rate_idx = wlvif->ap.bcast_rate_idx; in wl1271_tx_fill_hdr() 339 rate_idx = wlvif->ap.ucast_rate_idx[ac]; in wl1271_tx_fill_hdr() 342 tx_attr |= rate_idx << TX_HW_ATTR_OFST_RATE_POLICY; in wl1271_tx_fill_hdr()
|
/kernel/linux/linux-5.10/drivers/staging/vt6656/ |
D | usbpipe.c | 274 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/ |
D | xmit.c | 643 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.c | 1384 int rate_idx; in rs_get_best_rate() local 1398 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG); in rs_get_best_rate() 1400 while (rate_idx != IWL_RATE_INVALID) { in rs_get_best_rate() 1401 if (target_tpt < (100 * tpt_tbl[rate_idx])) in rs_get_best_rate() 1404 high_low = rs_get_adjacent_rate(mvm, rate_idx, rate_mask, in rs_get_best_rate() 1407 rate_idx = (high_low >> 8) & 0xff; in rs_get_best_rate() 1411 rate_idx, target_tpt, in rs_get_best_rate() 1412 rate_idx != IWL_RATE_INVALID ? in rs_get_best_rate() 1413 100 * tpt_tbl[rate_idx] : IWL_INVALID_VALUE); in rs_get_best_rate() 1415 return rate_idx; in rs_get_best_rate() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_mac.c | 183 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() 668 status->rate_idx = idx; in mt76x02_mac_process_rate() 679 status->rate_idx = idx; in mt76x02_mac_process_rate() 686 status->rate_idx = idx; in mt76x02_mac_process_rate() 692 status->rate_idx = FIELD_GET(MT_RATE_INDEX_VHT_IDX, idx); in mt76x02_mac_process_rate()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00dev.c | 311 u8 rate_idx, rate_flags, retry_rates; in rt2x00lib_fill_tx_status() local 314 rate_idx = skbdesc->tx_rate_idx; in rt2x00lib_fill_tx_status() 332 tx_info->status.rates[i].idx = rate_idx - i; in rt2x00lib_fill_tx_status() 335 if (rate_idx - i == 0) { in rt2x00lib_fill_tx_status() 744 int rate_idx; in rt2x00lib_rxdone() local 811 rate_idx = rt2x00lib_rxdone_read_signal(rt2x00dev, &rxdesc); in rt2x00lib_rxdone() 851 rx_status->rate_idx = rate_idx; in rt2x00lib_rxdone()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wcn36xx/ |
D | txrx.c | 296 status.rate_idx = rate->mcs_or_legacy_index; in wcn36xx_rx_skb() 301 status.rate_idx >= 4) { in wcn36xx_rx_skb() 303 status.rate_idx -= 4; in wcn36xx_rx_skb() 309 status.rate_idx = 0; in wcn36xx_rx_skb()
|