/drivers/net/wireless/rtlwifi/rtl8821ae/ |
D | trx.c | 75 int rate_idx; in _rtl8821ae_rate_mapping() local 81 rate_idx = 0; in _rtl8821ae_rate_mapping() 84 rate_idx = 1; in _rtl8821ae_rate_mapping() 87 rate_idx = 2; in _rtl8821ae_rate_mapping() 90 rate_idx = 3; in _rtl8821ae_rate_mapping() 93 rate_idx = 4; in _rtl8821ae_rate_mapping() 96 rate_idx = 5; in _rtl8821ae_rate_mapping() 99 rate_idx = 6; in _rtl8821ae_rate_mapping() 102 rate_idx = 7; in _rtl8821ae_rate_mapping() 105 rate_idx = 8; in _rtl8821ae_rate_mapping() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8723ae/ |
D | trx.c | 72 int rate_idx; in _rtl8723e_rate_mapping() local 78 rate_idx = 0; in _rtl8723e_rate_mapping() 81 rate_idx = 1; in _rtl8723e_rate_mapping() 84 rate_idx = 2; in _rtl8723e_rate_mapping() 87 rate_idx = 3; in _rtl8723e_rate_mapping() 90 rate_idx = 4; in _rtl8723e_rate_mapping() 93 rate_idx = 5; in _rtl8723e_rate_mapping() 96 rate_idx = 6; in _rtl8723e_rate_mapping() 99 rate_idx = 7; in _rtl8723e_rate_mapping() 102 rate_idx = 8; in _rtl8723e_rate_mapping() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8723be/ |
D | trx.c | 74 int rate_idx; in _rtl8723be_rate_mapping() local 80 rate_idx = 0; in _rtl8723be_rate_mapping() 83 rate_idx = 1; in _rtl8723be_rate_mapping() 86 rate_idx = 2; in _rtl8723be_rate_mapping() 89 rate_idx = 3; in _rtl8723be_rate_mapping() 92 rate_idx = 4; in _rtl8723be_rate_mapping() 95 rate_idx = 5; in _rtl8723be_rate_mapping() 98 rate_idx = 6; in _rtl8723be_rate_mapping() 101 rate_idx = 7; in _rtl8723be_rate_mapping() 104 rate_idx = 8; in _rtl8723be_rate_mapping() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8188ee/ |
D | trx.c | 74 int rate_idx; in _rtl88ee_rate_mapping() local 80 rate_idx = 0; in _rtl88ee_rate_mapping() 83 rate_idx = 1; in _rtl88ee_rate_mapping() 86 rate_idx = 2; in _rtl88ee_rate_mapping() 89 rate_idx = 3; in _rtl88ee_rate_mapping() 92 rate_idx = 4; in _rtl88ee_rate_mapping() 95 rate_idx = 5; in _rtl88ee_rate_mapping() 98 rate_idx = 6; in _rtl88ee_rate_mapping() 101 rate_idx = 7; in _rtl88ee_rate_mapping() 104 rate_idx = 8; in _rtl88ee_rate_mapping() [all …]
|
/drivers/net/wireless/ti/wl1251/ |
D | rx.c | 102 status->rate_idx = 1; in wl1251_rx_status() 105 status->rate_idx = 2; in wl1251_rx_status() 108 status->rate_idx = 3; in wl1251_rx_status() 111 status->rate_idx = 4; in wl1251_rx_status() 114 status->rate_idx = 5; in wl1251_rx_status() 117 status->rate_idx = 7; in wl1251_rx_status() 120 status->rate_idx = 8; in wl1251_rx_status() 123 status->rate_idx = 9; in wl1251_rx_status() 126 status->rate_idx = 10; in wl1251_rx_status() 129 status->rate_idx = 11; in wl1251_rx_status() [all …]
|
/drivers/net/wireless/rtlwifi/rtl8192ee/ |
D | trx.c | 74 int rate_idx; in _rtl92ee_rate_mapping() local 80 rate_idx = 0; in _rtl92ee_rate_mapping() 83 rate_idx = 1; in _rtl92ee_rate_mapping() 86 rate_idx = 2; in _rtl92ee_rate_mapping() 89 rate_idx = 3; in _rtl92ee_rate_mapping() 92 rate_idx = 4; in _rtl92ee_rate_mapping() 95 rate_idx = 5; in _rtl92ee_rate_mapping() 98 rate_idx = 6; in _rtl92ee_rate_mapping() 101 rate_idx = 7; in _rtl92ee_rate_mapping() 104 rate_idx = 8; in _rtl92ee_rate_mapping() [all …]
|
/drivers/net/wireless/iwlegacy/ |
D | 3945.c | 95 il3945_get_prev_ieee_rate(u8 rate_idx) in il3945_get_prev_ieee_rate() argument 97 u8 rate = il3945_rates[rate_idx].prev_ieee; in il3945_get_prev_ieee_rate() 100 rate = rate_idx; in il3945_get_prev_ieee_rate() 323 int rate_idx; in il3945_hdl_tx() local 351 rate_idx = il3945_hwrate_to_plcp_idx(tx_resp->rate); in il3945_hdl_tx() 353 rate_idx -= IL_FIRST_OFDM_RATE; in il3945_hdl_tx() 357 info->status.rates[0].idx = rate_idx; in il3945_hdl_tx() 563 rx_status.rate_idx = il3945_hwrate_to_plcp_idx(rx_hdr->rate); in il3945_hdl_rx() 565 rx_status.rate_idx -= IL_FIRST_OFDM_RATE; in il3945_hdl_rx() 599 rx_status.signal, rx_status.signal, rx_status.rate_idx); in il3945_hdl_rx() [all …]
|
D | 4965-rs.c | 553 struct il_scale_tbl_info *tbl, int *rate_idx) in il4965_rs_get_tbl_info_from_mcs() argument 561 *rate_idx = il4965_hwrate_to_plcp_idx(rate_n_flags); in il4965_rs_get_tbl_info_from_mcs() 563 if (*rate_idx == RATE_INVALID) { in il4965_rs_get_tbl_info_from_mcs() 564 *rate_idx = -1; in il4965_rs_get_tbl_info_from_mcs() 2151 int rate_idx; in il4965_rs_initialize_lq() local 2186 il4965_rs_get_tbl_info_from_mcs(rate, il->band, tbl, &rate_idx); in il4965_rs_initialize_lq() 2190 rate = il4965_rate_n_flags_from_tbl(il, tbl, rate_idx, use_green); in il4965_rs_initialize_lq() 2208 int rate_idx; in il4965_rs_get_rate() local 2236 rate_idx = lq_sta->last_txrate_idx; in il4965_rs_get_rate() 2239 rate_idx -= IL_FIRST_OFDM_RATE; in il4965_rs_get_rate() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | debug_sta.c | 130 if (rxs->rate_idx >= ARRAY_SIZE(rstats->ht_stats)) in ath_debug_rate_stats() 134 rstats->ht_stats[rxs->rate_idx].ht40_cnt++; in ath_debug_rate_stats() 136 rstats->ht_stats[rxs->rate_idx].ht20_cnt++; in ath_debug_rate_stats() 139 rstats->ht_stats[rxs->rate_idx].sgi_cnt++; in ath_debug_rate_stats() 141 rstats->ht_stats[rxs->rate_idx].lgi_cnt++; in ath_debug_rate_stats() 148 rstats->cck_stats[rxs->rate_idx].cck_sp_cnt++; in ath_debug_rate_stats() 150 rstats->cck_stats[rxs->rate_idx].cck_lp_cnt++; in ath_debug_rate_stats() 157 rstats->ofdm_stats[rxs->rate_idx - 4].ofdm_cnt++; in ath_debug_rate_stats() 159 rstats->ofdm_stats[rxs->rate_idx].ofdm_cnt++; in ath_debug_rate_stats()
|
D | common.c | 192 rxs->rate_idx = rx_stats->rs_rate & 0x7f; in ath9k_cmn_process_rate() 198 rxs->rate_idx = i; in ath9k_cmn_process_rate() 203 rxs->rate_idx = i; in ath9k_cmn_process_rate()
|
/drivers/net/wireless/rtlwifi/ |
D | base.c | 888 int rate_idx; in rtlwifi_rate_mapping() local 894 rate_idx = 0; in rtlwifi_rate_mapping() 897 rate_idx = 1; in rtlwifi_rate_mapping() 900 rate_idx = 2; in rtlwifi_rate_mapping() 903 rate_idx = 3; in rtlwifi_rate_mapping() 906 rate_idx = 4; in rtlwifi_rate_mapping() 909 rate_idx = 5; in rtlwifi_rate_mapping() 912 rate_idx = 6; in rtlwifi_rate_mapping() 915 rate_idx = 7; in rtlwifi_rate_mapping() 918 rate_idx = 8; in rtlwifi_rate_mapping() [all …]
|
/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/vt6656/ |
D | dpc.c | 57 u8 rate_idx = 0; in vnt_rx_data() local 111 rate_idx = ii; in vnt_rx_data() 167 rx_status.rate_idx = rate_idx; in vnt_rx_data()
|
D | card.c | 101 static u16 vnt_get_cck_rate(struct vnt_private *priv, u16 rate_idx) in vnt_get_cck_rate() argument 103 u16 ui = rate_idx; in vnt_get_cck_rate() 127 static u16 vnt_get_ofdm_rate(struct vnt_private *priv, u16 rate_idx) in vnt_get_ofdm_rate() argument 129 u16 ui = rate_idx; in vnt_get_ofdm_rate() 136 __func__, rate_idx); in vnt_get_ofdm_rate() 137 if (rate_idx > RATE_24M) in vnt_get_ofdm_rate() 138 rate_idx = RATE_24M; in vnt_get_ofdm_rate() 139 return rate_idx; in vnt_get_ofdm_rate()
|
/drivers/net/wireless/iwlwifi/dvm/ |
D | rs.c | 604 int *rate_idx) in rs_get_tbl_info_from_mcs() argument 611 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs() 613 if (*rate_idx == IWL_RATE_INVALID) { in rs_get_tbl_info_from_mcs() 614 *rate_idx = -1; in rs_get_tbl_info_from_mcs() 2667 int rate_idx; in rs_initialize_lq() local 2703 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx); in rs_initialize_lq() 2707 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); in rs_initialize_lq() 2726 int rate_idx; in rs_get_rate() local 2751 rate_idx = lq_sta->last_txrate_idx; in rs_get_rate() 2754 rate_idx -= IWL_FIRST_OFDM_RATE; in rs_get_rate() [all …]
|
D | tx.c | 133 int rate_idx; in iwlagn_tx_cmd_build_rate() local 174 rate_idx = info->control.rates[0].idx; in iwlagn_tx_cmd_build_rate() 176 (rate_idx < 0) || (rate_idx > IWL_RATE_COUNT_LEGACY)) in iwlagn_tx_cmd_build_rate() 177 rate_idx = rate_lowest_index( in iwlagn_tx_cmd_build_rate() 181 rate_idx += IWL_FIRST_OFDM_RATE; in iwlagn_tx_cmd_build_rate() 183 rate_plcp = iwl_rates[rate_idx].plcp; in iwlagn_tx_cmd_build_rate() 188 if ((rate_idx >= IWL_FIRST_CCK_RATE) && (rate_idx <= IWL_LAST_CCK_RATE)) in iwlagn_tx_cmd_build_rate()
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | tx.c | 159 int rate_idx; in iwl_mvm_set_tx_cmd_rate() local 195 rate_idx = info->control.rates[0].idx; in iwl_mvm_set_tx_cmd_rate() 197 if (rate_idx < 0 || rate_idx > IWL_RATE_COUNT_LEGACY) in iwl_mvm_set_tx_cmd_rate() 198 rate_idx = rate_lowest_index( in iwl_mvm_set_tx_cmd_rate() 203 rate_idx += IWL_FIRST_OFDM_RATE; in iwl_mvm_set_tx_cmd_rate() 209 rate_plcp = iwl_mvm_mac80211_idx_to_hwrate(rate_idx); in iwl_mvm_set_tx_cmd_rate() 223 if ((rate_idx >= IWL_FIRST_CCK_RATE) && (rate_idx <= IWL_LAST_CCK_RATE)) in iwl_mvm_set_tx_cmd_rate()
|
D | rs.c | 1381 int rate_idx; in rs_get_best_rate() local 1395 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG); in rs_get_best_rate() 1397 while (rate_idx != IWL_RATE_INVALID) { in rs_get_best_rate() 1398 if (target_tpt < (100 * tpt_tbl[rate_idx])) in rs_get_best_rate() 1401 high_low = rs_get_adjacent_rate(mvm, rate_idx, rate_mask, in rs_get_best_rate() 1404 rate_idx = (high_low >> 8) & 0xff; in rs_get_best_rate() 1408 rate_idx, target_tpt, in rs_get_best_rate() 1409 rate_idx != IWL_RATE_INVALID ? in rs_get_best_rate() 1410 100 * tpt_tbl[rate_idx] : IWL_INVALID_VALUE); in rs_get_best_rate() 1412 return rate_idx; in rs_get_best_rate() [all …]
|
D | rx.c | 373 rx_status.rate_idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_rx_rx_mpdu() 381 rx_status.rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_mvm_rx_rx_mpdu() 387 rx_status.rate_idx = in iwl_mvm_rx_rx_mpdu()
|
/drivers/net/wireless/ti/wlcore/ |
D | tx.c | 270 int ac, rate_idx; in wl1271_tx_fill_hdr() local 328 rate_idx = 0; in wl1271_tx_fill_hdr() 336 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr() 338 rate_idx = wlvif->sta.p2p_rate_idx; in wl1271_tx_fill_hdr() 340 rate_idx = wlvif->sta.ap_rate_idx; in wl1271_tx_fill_hdr() 342 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr() 345 rate_idx = wlvif->ap.mgmt_rate_idx; in wl1271_tx_fill_hdr() 353 rate_idx = wlvif->ap.bcast_rate_idx; in wl1271_tx_fill_hdr() 355 rate_idx = wlvif->ap.ucast_rate_idx[ac]; in wl1271_tx_fill_hdr() 358 tx_attr |= rate_idx << TX_HW_ATTR_OFST_RATE_POLICY; in wl1271_tx_fill_hdr()
|
/drivers/net/wireless/b43/ |
D | xmit.c | 667 int padding, rate_idx; in b43_rx() local 770 rate_idx = b43_plcp_get_bitrate_idx_ofdm(plcp, in b43_rx() 773 rate_idx = b43_plcp_get_bitrate_idx_cck(plcp); in b43_rx() 774 if (unlikely(rate_idx == -1)) { in b43_rx() 780 status.rate_idx = rate_idx; in b43_rx()
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00dev.c | 327 u8 rate_idx, rate_flags, retry_rates; in rt2x00lib_txdone() local 388 rate_idx = skbdesc->tx_rate_idx; in rt2x00lib_txdone() 406 tx_info->status.rates[i].idx = rate_idx - i; in rt2x00lib_txdone() 409 if (rate_idx - i == 0) { in rt2x00lib_txdone() 690 int rate_idx; in rt2x00lib_rxdone() local 757 rate_idx = rt2x00lib_rxdone_read_signal(rt2x00dev, &rxdesc); in rt2x00lib_rxdone() 797 rx_status->rate_idx = rate_idx; in rt2x00lib_rxdone()
|
/drivers/net/wireless/ath/ath10k/ |
D | htt_rx.c | 689 u8 cck, rate, rate_idx, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local 702 rate_idx = 0; in ath10k_htt_rx_h_rates() 711 rate_idx = rx_legacy_rate_idx[rate]; in ath10k_htt_rx_h_rates() 714 rate_idx = rx_legacy_rate_idx[rate]; in ath10k_htt_rx_h_rates() 718 rate_idx -= 4; in ath10k_htt_rx_h_rates() 724 status->rate_idx = rate_idx; in ath10k_htt_rx_h_rates() 734 status->rate_idx = mcs; in ath10k_htt_rx_h_rates() 750 status->rate_idx = mcs; in ath10k_htt_rx_h_rates() 886 status->rate_idx, in ath10k_process_rx()
|
/drivers/staging/xgifb/ |
D | XGI_main_26.c | 555 xgifb_info->rate_idx = 0; in XGIfb_search_refresh_rate() 560 xgifb_info->rate_idx = XGIfb_vrate[i].idx; in XGIfb_search_refresh_rate() 566 xgifb_info->rate_idx = in XGIfb_search_refresh_rate() 576 xgifb_info->rate_idx = in XGIfb_search_refresh_rate() 585 xgifb_info->rate_idx = XGIfb_vrate[i].idx; in XGIfb_search_refresh_rate() 591 if (xgifb_info->rate_idx > 0) in XGIfb_search_refresh_rate() 592 return xgifb_info->rate_idx; in XGIfb_search_refresh_rate() 696 (xgifb_info->rate_idx & 0x0F)); in XGIfb_pre_setmode() 1000 xgifb_info->rate_idx = 1; in XGIfb_do_set_var() 1921 xgifb_info->rate_idx = 1; in xgifb_probe()
|
D | XGIfb.h | 58 int rate_idx; member
|