Home
last modified time | relevance | path

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

123

/drivers/net/wireless/ti/wl1251/
Drx.c102 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/staging/rtlwifi/phydm/
Dphydm_rainfo.c225 u8 rate_idx = rate & 0x7f; /*remove bit7 SGI*/ in phydm_print_rate() local
226 u8 vht_en = (rate_idx >= ODM_RATEVHTSS1MCS0) ? 1 : 0; in phydm_print_rate()
230 ((rate_idx >= ODM_RATEVHTSS1MCS0) && in phydm_print_rate()
231 (rate_idx <= ODM_RATEVHTSS1MCS9)) ? in phydm_print_rate()
234 ((rate_idx >= ODM_RATEVHTSS2MCS0) && in phydm_print_rate()
235 (rate_idx <= ODM_RATEVHTSS2MCS9)) ? in phydm_print_rate()
238 ((rate_idx >= ODM_RATEVHTSS3MCS0) && in phydm_print_rate()
239 (rate_idx <= ODM_RATEVHTSS3MCS9)) ? in phydm_print_rate()
242 (rate_idx >= ODM_RATEMCS0) ? "MCS " : "", in phydm_print_rate()
243 (vht_en) ? ((rate_idx - ODM_RATEVHTSS1MCS0) % 10) : in phydm_print_rate()
[all …]
Dphydm_debug.c1438 u8 rate_idx; in phydm_get_per_path_txagc() local
1447 for (rate_idx = 0; rate_idx <= 0x53; rate_idx++) { in phydm_get_per_path_txagc()
1448 if (rate_idx == ODM_RATE1M) in phydm_get_per_path_txagc()
1451 else if (rate_idx == ODM_RATE6M) in phydm_get_per_path_txagc()
1454 else if (rate_idx == ODM_RATEMCS0) in phydm_get_per_path_txagc()
1457 else if (rate_idx == ODM_RATEMCS8) in phydm_get_per_path_txagc()
1460 else if (rate_idx == ODM_RATEMCS16) in phydm_get_per_path_txagc()
1463 else if (rate_idx == ODM_RATEMCS24) in phydm_get_per_path_txagc()
1466 else if (rate_idx == ODM_RATEVHTSS1MCS0) in phydm_get_per_path_txagc()
1469 else if (rate_idx == ODM_RATEVHTSS2MCS0) in phydm_get_per_path_txagc()
[all …]
/drivers/net/wireless/realtek/rtlwifi/
Dbase.c911 int rate_idx; in rtlwifi_rate_mapping() local
916 rate_idx = 0; in rtlwifi_rate_mapping()
919 rate_idx = 1; in rtlwifi_rate_mapping()
922 rate_idx = 2; in rtlwifi_rate_mapping()
925 rate_idx = 3; in rtlwifi_rate_mapping()
928 rate_idx = 4; in rtlwifi_rate_mapping()
931 rate_idx = 5; in rtlwifi_rate_mapping()
934 rate_idx = 6; in rtlwifi_rate_mapping()
937 rate_idx = 7; in rtlwifi_rate_mapping()
940 rate_idx = 8; in rtlwifi_rate_mapping()
[all …]
/drivers/staging/rtlwifi/
Dbase.c988 int rate_idx; in rtlwifi_rate_mapping() local
993 rate_idx = 0; in rtlwifi_rate_mapping()
996 rate_idx = 1; in rtlwifi_rate_mapping()
999 rate_idx = 2; in rtlwifi_rate_mapping()
1002 rate_idx = 3; in rtlwifi_rate_mapping()
1005 rate_idx = 4; in rtlwifi_rate_mapping()
1008 rate_idx = 5; in rtlwifi_rate_mapping()
1011 rate_idx = 6; in rtlwifi_rate_mapping()
1014 rate_idx = 7; in rtlwifi_rate_mapping()
1017 rate_idx = 8; in rtlwifi_rate_mapping()
[all …]
/drivers/net/wireless/intel/iwlegacy/
D3945.c95 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 …]
D4965-rs.c553 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/
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()
/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 …]
/drivers/staging/vt6656/
Ddpc.c54 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()
Dcard.c98 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/staging/vt6655/
Ddpc.c48 u8 rate_idx = 0; in vnt_rx_data() local
75 rate_idx = ii; in vnt_rx_data()
113 rx_status.rate_idx = rate_idx; in vnt_rx_data()
/drivers/net/wireless/mediatek/mt7601u/
Dmac.c100 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/
Drs.c601 int *rate_idx) in rs_get_tbl_info_from_mcs() argument
608 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs()
610 if (*rate_idx == IWL_RATE_INVALID) { in rs_get_tbl_info_from_mcs()
611 *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 …]
Dtx.c133 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/
Dtx.c269 int ac, rate_idx; in wl1271_tx_fill_hdr() local
327 rate_idx = 0; in wl1271_tx_fill_hdr()
335 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr()
337 rate_idx = wlvif->sta.p2p_rate_idx; in wl1271_tx_fill_hdr()
339 rate_idx = wlvif->sta.ap_rate_idx; in wl1271_tx_fill_hdr()
341 rate_idx = wlvif->sta.basic_rate_idx; in wl1271_tx_fill_hdr()
344 rate_idx = wlvif->ap.mgmt_rate_idx; in wl1271_tx_fill_hdr()
352 rate_idx = wlvif->ap.bcast_rate_idx; in wl1271_tx_fill_hdr()
354 rate_idx = wlvif->ap.ucast_rate_idx[ac]; in wl1271_tx_fill_hdr()
357 tx_attr |= rate_idx << TX_HW_ATTR_OFST_RATE_POLICY; in wl1271_tx_fill_hdr()
/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c1597 int rate_idx; in rs_get_best_rate() local
1611 rate_idx = find_first_bit(&rate_mask, BITS_PER_LONG); in rs_get_best_rate()
1613 while (rate_idx != IWL_RATE_INVALID) { in rs_get_best_rate()
1614 if (target_tpt < (100 * tpt_tbl[rate_idx])) in rs_get_best_rate()
1617 high_low = rs_get_adjacent_rate(mvm, rate_idx, rate_mask, in rs_get_best_rate()
1620 rate_idx = (high_low >> 8) & 0xff; in rs_get_best_rate()
1624 rate_idx, target_tpt, in rs_get_best_rate()
1625 rate_idx != IWL_RATE_INVALID ? in rs_get_best_rate()
1626 100 * tpt_tbl[rate_idx] : IWL_INVALID_VALUE); in rs_get_best_rate()
1628 return rate_idx; in rs_get_best_rate()
[all …]
Dtx.c311 int rate_idx; in iwl_mvm_get_tx_rate() local
321 rate_idx = info->control.rates[0].idx; in iwl_mvm_get_tx_rate()
323 if (rate_idx < 0 || rate_idx >= IWL_RATE_COUNT_LEGACY) in iwl_mvm_get_tx_rate()
324 rate_idx = rate_lowest_index( in iwl_mvm_get_tx_rate()
329 rate_idx += IWL_FIRST_OFDM_RATE; in iwl_mvm_get_tx_rate()
335 rate_plcp = iwl_mvm_mac80211_idx_to_hwrate(rate_idx); in iwl_mvm_get_tx_rate()
345 if ((rate_idx >= IWL_FIRST_CCK_RATE) && (rate_idx <= IWL_LAST_CCK_RATE)) in iwl_mvm_get_tx_rate()
Drx.c454 rx_status->rate_idx = rate_n_flags & RATE_HT_MCS_INDEX_MSK; in iwl_mvm_rx_rx_mpdu()
462 rx_status->rate_idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_mvm_rx_rx_mpdu()
477 rx_status->rate_idx = rate; in iwl_mvm_rx_rx_mpdu()
/drivers/net/wireless/broadcom/b43/
Dxmit.c669 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/
Drt2x00dev.c322 u8 rate_idx, rate_flags, retry_rates; in rt2x00lib_fill_tx_status() local
325 rate_idx = skbdesc->tx_rate_idx; in rt2x00lib_fill_tx_status()
343 tx_info->status.rates[i].idx = rate_idx - i; in rt2x00lib_fill_tx_status()
346 if (rate_idx - i == 0) { in rt2x00lib_fill_tx_status()
758 int rate_idx; in rt2x00lib_rxdone() local
825 rate_idx = rt2x00lib_rxdone_read_signal(rt2x00dev, &rxdesc); in rt2x00lib_rxdone()
865 rx_status->rate_idx = rate_idx; in rt2x00lib_rxdone()
/drivers/staging/xgifb/
DXGI_main_26.c544 xgifb_info->rate_idx = 0; in XGIfb_search_refresh_rate()
549 xgifb_info->rate_idx = XGIfb_vrate[i].idx; in XGIfb_search_refresh_rate()
555 xgifb_info->rate_idx = in XGIfb_search_refresh_rate()
565 xgifb_info->rate_idx = in XGIfb_search_refresh_rate()
574 xgifb_info->rate_idx = XGIfb_vrate[i].idx; in XGIfb_search_refresh_rate()
580 if (xgifb_info->rate_idx > 0) in XGIfb_search_refresh_rate()
581 return xgifb_info->rate_idx; in XGIfb_search_refresh_rate()
689 (xgifb_info->rate_idx & 0x0F)); in XGIfb_pre_setmode()
968 xgifb_info->rate_idx = 1; in XGIfb_do_set_var()
1884 xgifb_info->rate_idx = 1; in xgifb_probe()
DXGIfb.h59 int rate_idx; member
/drivers/net/wireless/ath/ath10k/
Dwmi.c2378 status->rate_idx = ath10k_mac_bitrate_to_idx(sband, rate / 100); in ath10k_wmi_event_mgmt_rx()
2415 status->rate_idx); in ath10k_wmi_event_mgmt_rx()
4227 u32 rate_idx, u32 num_chains, in ath10k_tpc_config_get_rate() argument
4236 tpc = min_t(u8, ev->rates_array[rate_idx], ev->max_reg_allow_pow[ch]); in ath10k_tpc_config_get_rate()
4338 u8 rate_code[WMI_TPC_RATE_MAX], rate_idx; in ath10k_wmi_event_pdev_tpc_config() local
4350 rate_idx = 0; in ath10k_wmi_event_pdev_tpc_config()
4355 rate_code[rate_idx] = in ath10k_wmi_event_pdev_tpc_config()
4357 rate_idx++; in ath10k_wmi_event_pdev_tpc_config()
4359 pream_table[pream_idx] = rate_idx; in ath10k_wmi_event_pdev_tpc_config()
4364 rate_code[rate_idx] = in ath10k_wmi_event_pdev_tpc_config()
[all …]

123