Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mac.c282 rateidx = ffs(mask->control[band]._mcs[i]) - 1; \
284 rateidx += 8 * i; \
300 int rateidx = 0, mcast_rate; in mt76_connac2_mac_tx_rate_val() local
306 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val()
320 rateidx = ffs(mask->control[band].legacy) - 1; in mt76_connac2_mac_tx_rate_val()
327 rateidx = mcast_rate - 1; in mt76_connac2_mac_tx_rate_val()
329 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val()
332 rateidx = mt76_calculate_default_rate(mphy, vif, rateidx); in mt76_connac2_mac_tx_rate_val()
333 mode = rateidx >> 8; in mt76_connac2_mac_tx_rate_val()
334 rateidx &= GENMASK(7, 0); in mt76_connac2_mac_tx_rate_val()
[all …]
H A Dmac80211.c1747 struct ieee80211_vif *vif, int rateidx) in mt76_calculate_default_rate() argument
1759 if (rateidx < 0) in mt76_calculate_default_rate()
1760 rateidx = 0; in mt76_calculate_default_rate()
1762 rateidx += offset; in mt76_calculate_default_rate()
1763 if (rateidx >= ARRAY_SIZE(mt76_rates)) in mt76_calculate_default_rate()
1764 rateidx = offset; in mt76_calculate_default_rate()
1766 return mt76_rates[rateidx].hw_value; in mt76_calculate_default_rate()
H A Dmt76.h1109 struct ieee80211_vif *vif, int rateidx);
/openbmc/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.h54 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx,
H A Dmac.c367 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, in ath12k_mac_hw_ratecode_to_legacy_rate() argument
382 *rateidx = i; in ath12k_mac_hw_ratecode_to_legacy_rate()
2509 u8 rateidx; in ath12k_mac_op_bss_info_changed() local
2687 rateidx = mcast_rate - 1; in ath12k_mac_op_bss_info_changed()
2689 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath12k_mac_op_bss_info_changed()
2692 rateidx += ATH12K_MAC_FIRST_OFDM_RATE_IDX; in ath12k_mac_op_bss_info_changed()
2694 bitrate = ath12k_legacy_rates[rateidx].bitrate; in ath12k_mac_op_bss_info_changed()
2695 hw_value = ath12k_legacy_rates[rateidx].hw_value; in ath12k_mac_op_bss_info_changed()
/openbmc/linux/net/mac80211/
H A Dairtime.c635 int rateidx, shift = 0; in ieee80211_calc_expected_tx_airtime() local
706 rateidx = basic_rates ? ffs(basic_rates) - 1 : 0; in ieee80211_calc_expected_tx_airtime()
707 rate = sband->bitrates[rateidx].bitrate << shift; in ieee80211_calc_expected_tx_airtime()
708 cck = sband->bitrates[rateidx].flags & IEEE80211_RATE_MANDATORY_B; in ieee80211_calc_expected_tx_airtime()
/openbmc/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.c1180 u8 rateidx, bool is_40, bool is_cck, bool is_mcs) in ath_get_rate_txpower() argument
1198 use_stbc = is_mcs && rateidx < 8 && (info->flags & in ath_get_rate_txpower()
1202 rateidx += is_5ghz ? ATH9K_PWRTBL_11NA_HT_SHIFT in ath_get_rate_txpower()
1205 rateidx += ATH9K_PWRTBL_11NG_OFDM_SHIFT; in ath_get_rate_txpower()
1207 rateidx += ATH9K_PWRTBL_11NA_OFDM_SHIFT; in ath_get_rate_txpower()
1243 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower()
1253 max_power = min_t(u8, ah->tx_power_stbc[rateidx], in ath_get_rate_txpower()
1256 max_power = min_t(u8, ah->tx_power[rateidx], in ath_get_rate_txpower()
/openbmc/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.c385 int ath11k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, in ath11k_mac_hw_ratecode_to_legacy_rate() argument
400 *rateidx = i; in ath11k_mac_hw_ratecode_to_legacy_rate()
3413 u8 rateidx; in ath11k_mac_op_bss_info_changed() local
3617 rateidx = mcast_rate - 1; in ath11k_mac_op_bss_info_changed()
3619 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath11k_mac_op_bss_info_changed()
3622 rateidx += ATH11K_MAC_FIRST_OFDM_RATE_IDX; in ath11k_mac_op_bss_info_changed()
3624 bitrate = ath11k_legacy_rates[rateidx].bitrate; in ath11k_mac_op_bss_info_changed()
3625 hw_value = ath11k_legacy_rates[rateidx].hw_value; in ath11k_mac_op_bss_info_changed()
/openbmc/linux/drivers/staging/rtl8723bs/include/
H A Drtw_mp.h229 u8 rateidx; member
/openbmc/linux/drivers/net/wireless/intersil/hostap/
H A Dhostap_ap.c1144 static int ap_tx_rate_ok(int rateidx, struct sta_info *sta, in ap_tx_rate_ok() argument
1147 if (rateidx > sta->tx_max_rate || in ap_tx_rate_ok()
1148 !(sta->tx_supp_rates & (1 << rateidx))) in ap_tx_rate_ok()
1152 !(local->tx_rate_control & (1 << rateidx))) in ap_tx_rate_ok()
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dmac.c6087 u8 rate, rateidx; in ath10k_bss_info_changed() local
6277 rateidx = mcast_rate - 1; in ath10k_bss_info_changed()
6279 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath10k_bss_info_changed()
6282 rateidx += ATH10K_MAC_FIRST_OFDM_RATE_IDX; in ath10k_bss_info_changed()
6284 bitrate = ath10k_wmi_legacy_rates[rateidx].bitrate; in ath10k_bss_info_changed()
6285 hw_value = ath10k_wmi_legacy_rates[rateidx].hw_value; in ath10k_bss_info_changed()