Home
last modified time | relevance | path

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

/linux/drivers/clk/
H A Dclk-rpmi.c214 int ret, rateidx, j; in rpmi_clk_get_supported_rates() local
246 for (rateidx = 0; rateidx < le32_to_cpu(resp->returned); rateidx++) { in rpmi_clk_get_supported_rates()
247 rpmi_clk->rates->discrete[rateidx] = in rpmi_clk_get_supported_rates()
248 rpmi_clkrate_u64(le32_to_cpu(rate_discrete[rateidx].hi), in rpmi_clk_get_supported_rates()
249 le32_to_cpu(rate_discrete[rateidx].lo)); in rpmi_clk_get_supported_rates()
279 if (rateidx >= clk_rate_idx + le32_to_cpu(resp->returned)) in rpmi_clk_get_supported_rates()
281 rpmi_clk->rates->discrete[rateidx++] = in rpmi_clk_get_supported_rates()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mac.c286 rateidx = ffs(mask->control[band]._mcs[i]) - 1; \
288 rateidx += 8 * i; \
301 int rateidx = 0, offset = 0, mcast_rate; in mt76_connac2_mac_tx_rate_val() local
313 rateidx = ffs(conf->basic_rates) - 1; in mt76_connac2_mac_tx_rate_val()
327 rateidx = ffs(mask->control[band].legacy) - 1; in mt76_connac2_mac_tx_rate_val()
334 rateidx = mcast_rate - 1; in mt76_connac2_mac_tx_rate_val()
336 rateidx = ffs(conf->basic_rates) - 1; in mt76_connac2_mac_tx_rate_val()
343 if (rateidx < 0) in mt76_connac2_mac_tx_rate_val()
344 rateidx = 0; in mt76_connac2_mac_tx_rate_val()
346 rateidx += offset; in mt76_connac2_mac_tx_rate_val()
[all …]
/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.c1175 u8 rateidx, bool is_40, bool is_cck, bool is_mcs) in ath_get_rate_txpower() argument
1193 use_stbc = is_mcs && rateidx < 8 && (info->flags & in ath_get_rate_txpower()
1197 rateidx += is_5ghz ? ATH9K_PWRTBL_11NA_HT_SHIFT in ath_get_rate_txpower()
1200 rateidx += ATH9K_PWRTBL_11NG_OFDM_SHIFT; in ath_get_rate_txpower()
1202 rateidx += ATH9K_PWRTBL_11NA_OFDM_SHIFT; in ath_get_rate_txpower()
1238 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower()
1248 max_power = min_t(u8, ah->tx_power_stbc[rateidx], in ath_get_rate_txpower()
1251 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()
3522 u8 rateidx; in ath11k_mac_op_bss_info_changed() local
3725 rateidx = mcast_rate - 1; in ath11k_mac_op_bss_info_changed()
3727 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath11k_mac_op_bss_info_changed()
3730 rateidx += ATH11K_MAC_FIRST_OFDM_RATE_IDX; in ath11k_mac_op_bss_info_changed()
3732 bitrate = ath11k_legacy_rates[rateidx].bitrate; in ath11k_mac_op_bss_info_changed()
3733 hw_value = ath11k_legacy_rates[rateidx].hw_value; in ath11k_mac_op_bss_info_changed()
/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.h157 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx,
H A Dmac.c469 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, in ath12k_mac_hw_ratecode_to_legacy_rate() argument
484 *rateidx = i; in ath12k_mac_hw_ratecode_to_legacy_rate()
4687 u8 rateidx; in ath12k_mac_bss_info_changed() local
4908 rateidx = mcast_rate - 1; in ath12k_mac_bss_info_changed()
4911 rateidx = __ffs(info->basic_rates); in ath12k_mac_bss_info_changed()
4913 rateidx = 0; in ath12k_mac_bss_info_changed()
4917 rateidx += ATH12K_MAC_FIRST_OFDM_RATE_IDX; in ath12k_mac_bss_info_changed()
4919 bitrate = ath12k_legacy_rates[rateidx].bitrate; in ath12k_mac_bss_info_changed()
4920 hw_value = ath12k_legacy_rates[rateidx].hw_value; in ath12k_mac_bss_info_changed()
/linux/drivers/net/wireless/ath/ath10k/
H A Dmac.c6117 u8 rate, rateidx; in ath10k_bss_info_changed() local
6306 rateidx = mcast_rate - 1; in ath10k_bss_info_changed()
6308 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath10k_bss_info_changed()
6311 rateidx += ATH10K_MAC_FIRST_OFDM_RATE_IDX; in ath10k_bss_info_changed()
6313 bitrate = ath10k_wmi_legacy_rates[rateidx].bitrate; in ath10k_bss_info_changed()
6314 hw_value = ath10k_wmi_legacy_rates[rateidx].hw_value; in ath10k_bss_info_changed()