/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/realtek/rtlwifi/ |
D | base.c | 890 int rate_idx; in rtlwifi_rate_mapping() local 895 rate_idx = 0; in rtlwifi_rate_mapping() 898 rate_idx = 1; in rtlwifi_rate_mapping() 901 rate_idx = 2; in rtlwifi_rate_mapping() 904 rate_idx = 3; in rtlwifi_rate_mapping() 907 rate_idx = 4; in rtlwifi_rate_mapping() 910 rate_idx = 5; in rtlwifi_rate_mapping() 913 rate_idx = 6; in rtlwifi_rate_mapping() 916 rate_idx = 7; in rtlwifi_rate_mapping() 919 rate_idx = 8; in rtlwifi_rate_mapping() [all …]
|
/drivers/net/wireless/intel/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 | 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 | 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/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 | 52 u8 rate_idx = 0; in vnt_rx_data() local 79 rate_idx = ii; in vnt_rx_data() 117 rx_status.rate_idx = rate_idx; in vnt_rx_data()
|
/drivers/staging/vt6656/ |
D | dpc.c | 54 u8 rate_idx = 0; in vnt_rx_data() local 107 rate_idx = ii; in vnt_rx_data() 163 rx_status.rate_idx = rate_idx; in vnt_rx_data()
|
D | card.c | 98 static u16 vnt_get_cck_rate(struct vnt_private *priv, u16 rate_idx) in vnt_get_cck_rate() argument 100 u16 ui = rate_idx; in vnt_get_cck_rate() 124 static u16 vnt_get_ofdm_rate(struct vnt_private *priv, u16 rate_idx) in vnt_get_ofdm_rate() argument 126 u16 ui = rate_idx; in vnt_get_ofdm_rate() 133 __func__, rate_idx); in vnt_get_ofdm_rate() 134 if (rate_idx > RATE_24M) in vnt_get_ofdm_rate() 135 rate_idx = RATE_24M; in vnt_get_ofdm_rate() 136 return rate_idx; in vnt_get_ofdm_rate()
|
/drivers/net/wireless/mediatek/mt7601u/ |
D | mac.c | 100 u8 phy, rate_idx; in mt76_mac_tx_rate_val() local 105 rate_idx = rate->idx; in mt76_mac_tx_rate_val() 124 rate_idx = val & 0xff; in mt76_mac_tx_rate_val() 128 rateval = FIELD_PREP(MT_RXWI_RATE_MCS, rate_idx); in mt76_mac_tx_rate_val() 399 status->rate_idx = idx; in mt76_mac_process_rate() 410 status->rate_idx = idx; in mt76_mac_process_rate() 417 status->rate_idx = idx; in mt76_mac_process_rate()
|
/drivers/net/wireless/intel/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() 2658 int rate_idx; in rs_initialize_lq() local 2694 rs_get_tbl_info_from_mcs(rate, priv->band, tbl, &rate_idx); in rs_initialize_lq() 2698 rate = rate_n_flags_from_tbl(priv, tbl, rate_idx, use_green); in rs_initialize_lq() 2717 int rate_idx; in rs_get_rate() local 2742 rate_idx = lq_sta->last_txrate_idx; in rs_get_rate() 2745 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/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/intel/iwlwifi/mvm/ |
D | rs.c | 1572 int rate_idx; in rs_get_best_rate() local 1586 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG); in rs_get_best_rate() 1588 while (rate_idx != IWL_RATE_INVALID) { in rs_get_best_rate() 1589 if (target_tpt < (100 * tpt_tbl[rate_idx])) in rs_get_best_rate() 1592 high_low = rs_get_adjacent_rate(mvm, rate_idx, rate_mask, in rs_get_best_rate() 1595 rate_idx = (high_low >> 8) & 0xff; in rs_get_best_rate() 1599 rate_idx, target_tpt, in rs_get_best_rate() 1600 rate_idx != IWL_RATE_INVALID ? in rs_get_best_rate() 1601 100 * tpt_tbl[rate_idx] : IWL_INVALID_VALUE); in rs_get_best_rate() 1603 return rate_idx; in rs_get_best_rate() [all …]
|
D | tx.c | 308 int rate_idx; in iwl_mvm_set_tx_cmd_rate() local 346 rate_idx = info->control.rates[0].idx; in iwl_mvm_set_tx_cmd_rate() 348 if (rate_idx < 0 || rate_idx >= IWL_RATE_COUNT_LEGACY) in iwl_mvm_set_tx_cmd_rate() 349 rate_idx = rate_lowest_index( in iwl_mvm_set_tx_cmd_rate() 354 rate_idx += IWL_FIRST_OFDM_RATE; in iwl_mvm_set_tx_cmd_rate() 360 rate_plcp = iwl_mvm_mac80211_idx_to_hwrate(rate_idx); in iwl_mvm_set_tx_cmd_rate() 374 if ((rate_idx >= IWL_FIRST_CCK_RATE) && (rate_idx <= IWL_LAST_CCK_RATE)) in iwl_mvm_set_tx_cmd_rate()
|
D | rx.c | 449 rx_status->rate_idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_rx_rx_mpdu() 457 rx_status->rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_mvm_rx_rx_mpdu() 463 rx_status->rate_idx = in iwl_mvm_rx_rx_mpdu()
|
D | rxmq.c | 933 rx_status->rate_idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_rx_mpdu_mq() 941 rx_status->rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_mvm_rx_mpdu_mq() 947 rx_status->rate_idx = in iwl_mvm_rx_mpdu_mq()
|
/drivers/net/wireless/broadcom/b43/ |
D | xmit.c | 669 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/ralink/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/staging/xgifb/ |
D | XGI_main_26.c | 545 xgifb_info->rate_idx = 0; in XGIfb_search_refresh_rate() 550 xgifb_info->rate_idx = XGIfb_vrate[i].idx; in XGIfb_search_refresh_rate() 556 xgifb_info->rate_idx = in XGIfb_search_refresh_rate() 566 xgifb_info->rate_idx = in XGIfb_search_refresh_rate() 575 xgifb_info->rate_idx = XGIfb_vrate[i].idx; in XGIfb_search_refresh_rate() 581 if (xgifb_info->rate_idx > 0) in XGIfb_search_refresh_rate() 582 return xgifb_info->rate_idx; in XGIfb_search_refresh_rate() 686 (xgifb_info->rate_idx & 0x0F)); in XGIfb_pre_setmode() 990 xgifb_info->rate_idx = 1; in XGIfb_do_set_var() 1908 xgifb_info->rate_idx = 1; in xgifb_probe()
|
D | XGIfb.h | 58 int rate_idx; member
|
/drivers/net/wireless/ath/ath10k/ |
D | wmi.c | 2342 status->rate_idx = ath10k_mac_bitrate_to_idx(sband, rate / 100); in ath10k_wmi_event_mgmt_rx() 2379 status->rate_idx); in ath10k_wmi_event_mgmt_rx() 4175 u32 rate_idx, u32 num_chains, in ath10k_tpc_config_get_rate() argument 4184 tpc = min_t(u8, ev->rates_array[rate_idx], ev->max_reg_allow_pow[ch]); in ath10k_tpc_config_get_rate() 4286 u8 rate_code[WMI_TPC_RATE_MAX], rate_idx; in ath10k_wmi_event_pdev_tpc_config() local 4298 rate_idx = 0; in ath10k_wmi_event_pdev_tpc_config() 4303 rate_code[rate_idx] = in ath10k_wmi_event_pdev_tpc_config() 4305 rate_idx++; in ath10k_wmi_event_pdev_tpc_config() 4307 pream_table[pream_idx] = rate_idx; in ath10k_wmi_event_pdev_tpc_config() 4312 rate_code[rate_idx] = in ath10k_wmi_event_pdev_tpc_config() [all …]
|
/drivers/video/fbdev/sis/ |
D | sis_main.c | 557 int mode_idx, int rate_idx, int rate) in sisfb_verify_rate() argument 594 &htotal, &vtotal, rate_idx)) { in sisfb_verify_rate() 686 ivideo->rate_idx = 0; in sisfb_search_refresh_rate() 690 ivideo->rate_idx = sisfb_vrate[i].idx; in sisfb_search_refresh_rate() 696 ivideo->rate_idx = sisfb_vrate[i].idx; in sisfb_search_refresh_rate() 702 ivideo->rate_idx = sisfb_vrate[i-1].idx; in sisfb_search_refresh_rate() 709 ivideo->rate_idx = sisfb_vrate[i].idx; in sisfb_search_refresh_rate() 715 if(ivideo->rate_idx > 0) { in sisfb_search_refresh_rate() 716 return ivideo->rate_idx; in sisfb_search_refresh_rate() 1251 ivideo->rate_idx = sisbios_mode[ivideo->sisfb_mode_idx].rate_idx; in sisfb_do_set_var() [all …]
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | xmit.c | 538 status.rate_idx = b43legacy_plcp_get_bitrate_idx_ofdm(plcp, false); in b43legacy_rx() 540 status.rate_idx = b43legacy_plcp_get_bitrate_idx_cck(plcp); in b43legacy_rx()
|