/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 …]
|
/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 …]
|
/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 …]
|
/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()
|
/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 …]
|
/drivers/staging/vt6655/ |
D | dpc.c | 37 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()
|
D | baseband.c | 1710 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()
|
/drivers/net/wireless/silabs/wfx/ |
D | data_rx.c | 61 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()
|
/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()
|
/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rs.c | 582 int *rate_idx) in rs_get_tbl_info_from_mcs() argument 589 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs() 591 if (*rate_idx == IWL_RATE_INVALID) { in rs_get_tbl_info_from_mcs() 592 *rate_idx = -1; in rs_get_tbl_info_from_mcs() 2629 int rate_idx; in rs_initialize_lq() local 2665 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx); in rs_initialize_lq() 2669 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); in rs_initialize_lq() 2688 int rate_idx; in rs_get_rate() local 2709 rate_idx = lq_sta->last_txrate_idx; in rs_get_rate() 2712 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate() [all …]
|
D | tx.c | 112 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()
|
/drivers/net/wireless/realtek/rtw88/ |
D | rx.c | 177 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; in rtw_rx_fill_rx_status() 181 rx_status->rate_idx = pkt_stat->rate - DESC_RATE1M; in rtw_rx_fill_rx_status() 183 rtw_desc_to_mcsrate(pkt_stat->rate, &rx_status->rate_idx, in rtw_rx_fill_rx_status()
|
D | phy.c | 550 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 …]
|
/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()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.c | 1336 int rate_idx; in rs_get_best_rate() local 1350 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG); in rs_get_best_rate() 1352 while (rate_idx != IWL_RATE_INVALID) { in rs_get_best_rate() 1353 if (target_tpt < (100 * tpt_tbl[rate_idx])) in rs_get_best_rate() 1356 high_low = rs_get_adjacent_rate(mvm, rate_idx, rate_mask, in rs_get_best_rate() 1359 rate_idx = (high_low >> 8) & 0xff; in rs_get_best_rate() 1363 rate_idx, target_tpt, in rs_get_best_rate() 1364 rate_idx != IWL_RATE_INVALID ? in rs_get_best_rate() 1365 100 * tpt_tbl[rate_idx] : IWL_INVALID_VALUE); in rs_get_best_rate() 1367 return rate_idx; in rs_get_best_rate() [all …]
|
D | utils.c | 170 u8 iwl_mvm_mac80211_idx_to_hwrate(const struct iwl_fw *fw, int rate_idx) in iwl_mvm_mac80211_idx_to_hwrate() argument 176 return (rate_idx >= IWL_FIRST_OFDM_RATE ? in iwl_mvm_mac80211_idx_to_hwrate() 177 rate_idx - IWL_FIRST_OFDM_RATE : in iwl_mvm_mac80211_idx_to_hwrate() 178 rate_idx); in iwl_mvm_mac80211_idx_to_hwrate() 180 return iwl_fw_rate_idx_to_plcp(rate_idx); in iwl_mvm_mac80211_idx_to_hwrate()
|
/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()
|
/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()
|
/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() 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()
|
/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()
|
/drivers/net/wireless/purelifi/plfxlc/ |
D | intf.h | 28 u8 rate_idx; member
|
D | mac.c | 428 if (status->rate_idx > 7) in plfxlc_mac_rx() 429 stats.rate_idx = 0; in plfxlc_mac_rx() 431 stats.rate_idx = status->rate_idx; in plfxlc_mac_rx()
|
/drivers/net/wireless/ath/wcn36xx/ |
D | txrx.c | 391 status.rate_idx = rate->mcs_or_legacy_index; in wcn36xx_rx_skb() 396 status.rate_idx >= 4) { in wcn36xx_rx_skb() 398 status.rate_idx -= 4; in wcn36xx_rx_skb() 404 status.rate_idx = 0; in wcn36xx_rx_skb()
|