Home
last modified time | relevance | path

Searched refs:rateidx (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mac.c283 rateidx = ffs(mask->control[band]._mcs[i]) - 1; \
285 rateidx += 8 * i; \
301 int rateidx = 0, mcast_rate; in mt76_connac2_mac_tx_rate_val() local
307 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val()
321 rateidx = ffs(mask->control[band].legacy) - 1; in mt76_connac2_mac_tx_rate_val()
328 rateidx = mcast_rate - 1; in mt76_connac2_mac_tx_rate_val()
330 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val()
333 rateidx = mt76_calculate_default_rate(mphy, vif, rateidx); in mt76_connac2_mac_tx_rate_val()
334 mode = rateidx >> 8; in mt76_connac2_mac_tx_rate_val()
335 rateidx &= GENMASK(7, 0); in mt76_connac2_mac_tx_rate_val()
[all …]
H A Dmac80211.c1812 struct ieee80211_vif *vif, int rateidx) in mt76_calculate_default_rate() argument
1824 if (rateidx < 0) in mt76_calculate_default_rate()
1825 rateidx = 0; in mt76_calculate_default_rate()
1827 rateidx += offset; in mt76_calculate_default_rate()
1828 if (rateidx >= ARRAY_SIZE(mt76_rates)) in mt76_calculate_default_rate()
1829 rateidx = offset; in mt76_calculate_default_rate()
1831 return mt76_rates[rateidx].hw_value; in mt76_calculate_default_rate()
H A Dmt76.h1195 struct ieee80211_vif *vif, int rateidx);
/linux/net/mac80211/
H A Dairtime.c763 int rateidx; in ieee80211_calc_expected_tx_airtime() local
832 rateidx = basic_rates ? ffs(basic_rates) - 1 : 0; in ieee80211_calc_expected_tx_airtime()
833 rate = sband->bitrates[rateidx].bitrate; in ieee80211_calc_expected_tx_airtime()
834 cck = sband->bitrates[rateidx].flags & IEEE80211_RATE_MANDATORY_B; in ieee80211_calc_expected_tx_airtime()
/linux/drivers/net/wireless/ath/ath9k/
H A Dbeacon.c73 struct ath_buf *bf, int rateidx) in ath9k_beacon_setup() argument
84 rate = sband->bitrates[rateidx].hw_value; in ath9k_beacon_setup()
86 rate |= sband->bitrates[rateidx].hw_value_short; in ath9k_beacon_setup()
H A Dxmit.c1179 u8 rateidx, bool is_40, bool is_cck, bool is_mcs) in ath_get_rate_txpower() argument
1197 use_stbc = is_mcs && rateidx < 8 && (info->flags & in ath_get_rate_txpower()
1201 rateidx += is_5ghz ? ATH9K_PWRTBL_11NA_HT_SHIFT in ath_get_rate_txpower()
1204 rateidx += ATH9K_PWRTBL_11NG_OFDM_SHIFT; in ath_get_rate_txpower()
1206 rateidx += ATH9K_PWRTBL_11NA_OFDM_SHIFT; in ath_get_rate_txpower()
1242 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower()
1252 max_power = min_t(u8, ah->tx_power_stbc[rateidx], in ath_get_rate_txpower()
1255 max_power = min_t(u8, ah->tx_power[rateidx], in ath_get_rate_txpower()
/linux/drivers/net/wireless/ath/ath11k/
H A Dmac.h143 int ath11k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx,
H A Dmac.c383 int ath11k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, in ath11k_mac_hw_ratecode_to_legacy_rate() argument
398 *rateidx = i; in ath11k_mac_hw_ratecode_to_legacy_rate()
3510 u8 rateidx; in ath11k_mac_op_bss_info_changed() local
3713 rateidx = mcast_rate - 1; in ath11k_mac_op_bss_info_changed()
3715 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath11k_mac_op_bss_info_changed()
3718 rateidx += ATH11K_MAC_FIRST_OFDM_RATE_IDX; in ath11k_mac_op_bss_info_changed()
3720 bitrate = ath11k_legacy_rates[rateidx].bitrate; in ath11k_mac_op_bss_info_changed()
3721 hw_value = ath11k_legacy_rates[rateidx].hw_value; in ath11k_mac_op_bss_info_changed()
/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.c383 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, in ath12k_mac_hw_ratecode_to_legacy_rate() argument
398 *rateidx = i; in ath12k_mac_hw_ratecode_to_legacy_rate()
3246 u8 rateidx; in ath12k_mac_bss_info_changed() local
3424 rateidx = mcast_rate - 1; in ath12k_mac_bss_info_changed()
3426 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath12k_mac_bss_info_changed()
3429 rateidx += ATH12K_MAC_FIRST_OFDM_RATE_IDX; in ath12k_mac_bss_info_changed()
3431 bitrate = ath12k_legacy_rates[rateidx].bitrate; in ath12k_mac_bss_info_changed()
3432 hw_value = ath12k_legacy_rates[rateidx].hw_value; in ath12k_mac_bss_info_changed()
/linux/drivers/net/wireless/ath/ath10k/
H A Dmac.c6089 u8 rate, rateidx; in ath10k_bss_info_changed() local
6278 rateidx = mcast_rate - 1; in ath10k_bss_info_changed()
6280 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath10k_bss_info_changed()
6283 rateidx += ATH10K_MAC_FIRST_OFDM_RATE_IDX; in ath10k_bss_info_changed()
6285 bitrate = ath10k_wmi_legacy_rates[rateidx].bitrate; in ath10k_bss_info_changed()
6286 hw_value = ath10k_wmi_legacy_rates[rateidx].hw_value; in ath10k_bss_info_changed()