| /Linux-v6.6/drivers/net/wireless/mediatek/mt76/ |
| D | mt76_connac_mac.c | 299 rateidx = ffs(mask->control[band]._mcs[i]) - 1; \ 301 rateidx += 8 * i; \ 314 int rateidx = 0, mcast_rate; in mt76_connac2_mac_tx_rate_val() local 320 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val() 334 rateidx = ffs(mask->control[band].legacy) - 1; in mt76_connac2_mac_tx_rate_val() 341 rateidx = mcast_rate - 1; in mt76_connac2_mac_tx_rate_val() 343 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val() 346 rateidx = mt76_calculate_default_rate(mphy, rateidx); in mt76_connac2_mac_tx_rate_val() 347 mode = rateidx >> 8; in mt76_connac2_mac_tx_rate_val() 348 rateidx &= GENMASK(7, 0); in mt76_connac2_mac_tx_rate_val() [all …]
|
| D | mac80211.c | 1700 u16 mt76_calculate_default_rate(struct mt76_phy *phy, int rateidx) in mt76_calculate_default_rate() argument 1708 if (rateidx < 0) in mt76_calculate_default_rate() 1709 rateidx = 0; in mt76_calculate_default_rate() 1711 rateidx += offset; in mt76_calculate_default_rate() 1712 if (rateidx >= ARRAY_SIZE(mt76_rates)) in mt76_calculate_default_rate() 1713 rateidx = offset; in mt76_calculate_default_rate() 1715 return mt76_rates[rateidx].hw_value; in mt76_calculate_default_rate()
|
| D | mt76.h | 1103 u16 mt76_calculate_default_rate(struct mt76_phy *phy, int rateidx);
|
| /Linux-v6.6/drivers/net/wireless/ath/ath12k/ |
| D | mac.h | 54 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx,
|
| D | mac.c | 367 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() 2505 u8 rateidx; in ath12k_mac_op_bss_info_changed() local 2683 rateidx = mcast_rate - 1; in ath12k_mac_op_bss_info_changed() 2685 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath12k_mac_op_bss_info_changed() 2688 rateidx += ATH12K_MAC_FIRST_OFDM_RATE_IDX; in ath12k_mac_op_bss_info_changed() 2690 bitrate = ath12k_legacy_rates[rateidx].bitrate; in ath12k_mac_op_bss_info_changed() 2691 hw_value = ath12k_legacy_rates[rateidx].hw_value; in ath12k_mac_op_bss_info_changed()
|
| /Linux-v6.6/net/mac80211/ |
| D | airtime.c | 635 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()
|
| /Linux-v6.6/drivers/net/wireless/ath/ath9k/ |
| D | beacon.c | 73 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()
|
| D | xmit.c | 1180 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()
|
| /Linux-v6.6/drivers/net/wireless/ath/ath11k/ |
| D | mac.h | 142 int ath11k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx,
|
| D | mac.c | 385 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() 3415 u8 rateidx; in ath11k_mac_op_bss_info_changed() local 3619 rateidx = mcast_rate - 1; in ath11k_mac_op_bss_info_changed() 3621 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath11k_mac_op_bss_info_changed() 3624 rateidx += ATH11K_MAC_FIRST_OFDM_RATE_IDX; in ath11k_mac_op_bss_info_changed() 3626 bitrate = ath11k_legacy_rates[rateidx].bitrate; in ath11k_mac_op_bss_info_changed() 3627 hw_value = ath11k_legacy_rates[rateidx].hw_value; in ath11k_mac_op_bss_info_changed()
|
| /Linux-v6.6/drivers/staging/rtl8723bs/include/ |
| D | rtw_mp.h | 229 u8 rateidx; member
|
| /Linux-v6.6/drivers/net/wireless/intersil/hostap/ |
| D | hostap_ap.c | 1144 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()
|
| /Linux-v6.6/drivers/net/wireless/ath/ath10k/ |
| D | mac.c | 6086 u8 rate, rateidx; in ath10k_bss_info_changed() local 6276 rateidx = mcast_rate - 1; in ath10k_bss_info_changed() 6278 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath10k_bss_info_changed() 6281 rateidx += ATH10K_MAC_FIRST_OFDM_RATE_IDX; in ath10k_bss_info_changed() 6283 bitrate = ath10k_wmi_legacy_rates[rateidx].bitrate; in ath10k_bss_info_changed() 6284 hw_value = ath10k_wmi_legacy_rates[rateidx].hw_value; in ath10k_bss_info_changed()
|