Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
D11ac.c44 u8 bands, u16 mcs_map) in mwifiex_convert_mcsmap_to_maxrate() argument
59 mcs = GET_VHTNSSMCS(mcs_map, i); in mwifiex_convert_mcsmap_to_maxrate()
63 mcs = GET_VHTNSSMCS(mcs_map, nss); in mwifiex_convert_mcsmap_to_maxrate()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7915/
Dmcu.c36 mt7915_mcu_get_sta_nss(u16 mcs_map) in mt7915_mcu_get_sta_nss() argument
41 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss()
52 u16 mcs_map) in mt7915_mcu_set_sta_he_mcs() argument
63 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7915_mcu_set_sta_he_mcs()
93 mcs_map &= ~(0x3 << (nss * 2)); in mt7915_mcu_set_sta_he_mcs()
94 mcs_map |= mcs << (nss * 2); in mt7915_mcu_set_sta_he_mcs()
102 *he_mcs = cpu_to_le16(mcs_map); in mt7915_mcu_set_sta_he_mcs()
111 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in mt7915_mcu_set_sta_vht_mcs() local
115 for (nss = 0; nss < max_nss; nss++, mcs_map >>= 2) { in mt7915_mcu_set_sta_vht_mcs()
116 switch (mcs_map & 0x3) { in mt7915_mcu_set_sta_vht_mcs()
[all …]
Dinit.c840 u16 mcs_map = 0; in mt7915_init_he_caps() local
852 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7915_init_he_caps()
854 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7915_init_he_caps()
965 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
966 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7921/
Dmain.c39 u16 mcs_map = 0; in mt7921_init_he_caps() local
43 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7921_init_he_caps()
45 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7921_init_he_caps()
161 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
162 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
164 he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
165 he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Dmain.c947 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in get_vht_ra_mask() local
952 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask()
953 vht_mcs_cap = mcs_map & 0x3; in get_vht_ra_mask()
1539 u16 mcs_map; in rtw_init_vht_cap() local
1563 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in rtw_init_vht_cap()
1572 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << 2; in rtw_init_vht_cap()
1575 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << 2; in rtw_init_vht_cap()
1578 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
1579 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/
Dbase.c230 u16 mcs_map; in _rtl_init_hw_vht_capab() local
246 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in _rtl_init_hw_vht_capab()
255 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
258 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
262 u16 mcs_map; in _rtl_init_hw_vht_capab() local
278 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in _rtl_init_hw_vht_capab()
287 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
290 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in _rtl_init_hw_vht_capab()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Dmac80211.c240 u16 mcs_map = 0; in mt76_init_stream_cap() local
263 mcs_map |= (IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2)); in mt76_init_stream_cap()
265 mcs_map |= in mt76_init_stream_cap()
268 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
269 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Dphy.c42 static u64 get_mcs_ra_mask(u16 mcs_map, u8 highest_mcs, u8 gap) in get_mcs_ra_mask() argument
48 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 12) { in get_mcs_ra_mask()
49 mcs_cap = mcs_map & 0x3; in get_mcs_ra_mask()
71 u16 mcs_map; in get_he_ra_mask() local
77 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_80p80); in get_he_ra_mask()
79 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_160); in get_he_ra_mask()
82 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_80); in get_he_ra_mask()
86 return get_mcs_ra_mask(mcs_map, 11, 2); in get_he_ra_mask()
268 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in rtw89_phy_ra_sta_update() local
273 ra_mask |= get_mcs_ra_mask(mcs_map, 9, 1); in rtw89_phy_ra_sta_update()
Dcore.c2714 u16 mcs_map = 0; in rtw89_init_he_cap() local
2725 mcs_map |= IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2); in rtw89_init_he_cap()
2727 mcs_map |= IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2); in rtw89_init_he_cap()
2816 he_cap->he_mcs_nss_supp.rx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
2817 he_cap->he_mcs_nss_supp.tx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
2819 he_cap->he_mcs_nss_supp.rx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
2820 he_cap->he_mcs_nss_supp.tx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dmac.c1789 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
1791 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
1805 u16 mcs_map; in ath11k_peer_assoc_h_vht_limit() local
1809 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
1812 if (mcs_map) in ath11k_peer_assoc_h_vht_limit()
1813 idx_limit = fls(mcs_map) - 1; in ath11k_peer_assoc_h_vht_limit()
2009 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2011 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2024 u16 mcs_map; in ath11k_peer_assoc_h_he_limit() local
2028 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
[all …]
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dmac.c177 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument
179 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map()
2482 u16 mcs_map; in ath10k_peer_assoc_h_vht_limit() local
2486 mcs_map = ath10k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath10k_peer_assoc_h_vht_limit()
2489 if (mcs_map) in ath10k_peer_assoc_h_vht_limit()
2490 idx_limit = fls(mcs_map) - 1; in ath10k_peer_assoc_h_vht_limit()
4867 u16 mcs_map; in ath10k_create_vht_cap() local
4892 mcs_map = 0; in ath10k_create_vht_cap()
4895 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2); in ath10k_create_vht_cap()
4897 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << (i * 2); in ath10k_create_vht_cap()
[all …]
/linux-6.1.9/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dcfg80211.c6785 u16 mcs_map; in brcmf_get_mcs_map() local
6788 for (i = 0, mcs_map = 0xFFFF; i < nchain; i++) in brcmf_get_mcs_map()
6789 mcs_map = (mcs_map << 2) | supp; in brcmf_get_mcs_map()
6791 return cpu_to_le16(mcs_map); in brcmf_get_mcs_map()
6798 __le16 mcs_map; in brcmf_update_vht_cap() local
6812 mcs_map = brcmf_get_mcs_map(nchain, IEEE80211_VHT_MCS_SUPPORT_0_9); in brcmf_update_vht_cap()
6813 band->vht_cap.vht_mcs.rx_mcs_map = mcs_map; in brcmf_update_vht_cap()
6814 band->vht_cap.vht_mcs.tx_mcs_map = mcs_map; in brcmf_update_vht_cap()
/linux-6.1.9/net/mac80211/
Drc80211_minstrel_ht.c287 minstrel_get_valid_vht_rates(int bw, int nss, __le16 mcs_map) in minstrel_get_valid_vht_rates() argument
303 switch ((le16_to_cpu(mcs_map) >> (2 * (nss - 1))) & 3) { in minstrel_get_valid_vht_rates()