Home
last modified time | relevance | path

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

/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmcu.c113 mt7996_mcu_get_sta_nss(u16 mcs_map) in mt7996_mcu_get_sta_nss() argument
118 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7996_mcu_get_sta_nss()
130 __le16 *he_mcs, u16 mcs_map) in mt7996_mcu_set_sta_he_mcs() argument
139 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7996_mcu_set_sta_he_mcs()
169 mcs_map &= ~(0x3 << (nss * 2)); in mt7996_mcu_set_sta_he_mcs()
170 mcs_map |= mcs << (nss * 2); in mt7996_mcu_set_sta_he_mcs()
173 *he_mcs = cpu_to_le16(mcs_map); in mt7996_mcu_set_sta_he_mcs()
180 u16 mcs, mcs_map = le16_to_cpu(link_sta->vht_cap.vht_mcs.rx_mcs_map); in mt7996_mcu_set_sta_vht_mcs() local
183 for (nss = 0; nss < max_nss; nss++, mcs_map >>= 2) { in mt7996_mcu_set_sta_vht_mcs()
184 switch (mcs_map & 0x3) { in mt7996_mcu_set_sta_vht_mcs()
[all …]
H A Dinit.c1394 u16 mcs_map = 0; in mt7996_init_he_caps() local
1398 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7996_init_he_caps()
1400 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7996_init_he_caps()
1482 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7996_init_he_caps()
1483 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7996_init_he_caps()
1484 he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); in mt7996_init_he_caps()
1485 he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); in mt7996_init_he_caps()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmcu.c47 mt7915_mcu_get_sta_nss(u16 mcs_map) in mt7915_mcu_get_sta_nss() argument
52 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss()
63 u16 mcs_map) in mt7915_mcu_set_sta_he_mcs() argument
74 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7915_mcu_set_sta_he_mcs()
104 mcs_map &= ~(0x3 << (nss * 2)); in mt7915_mcu_set_sta_he_mcs()
105 mcs_map |= mcs << (nss * 2); in mt7915_mcu_set_sta_he_mcs()
113 *he_mcs = cpu_to_le16(mcs_map); in mt7915_mcu_set_sta_he_mcs()
122 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in mt7915_mcu_set_sta_vht_mcs() local
126 for (nss = 0; nss < max_nss; nss++, mcs_map >>= 2) { in mt7915_mcu_set_sta_vht_mcs()
127 switch (mcs_map & 0x3) { in mt7915_mcu_set_sta_vht_mcs()
[all …]
H A Dinit.c1024 u16 mcs_map = 0; in mt7915_init_he_caps() local
1039 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7915_init_he_caps()
1041 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7915_init_he_caps()
1157 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
1158 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/
H A Dmain.c18 u16 mcs_map = 0; in mt7921_init_he_caps() local
22 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7921_init_he_caps()
24 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7921_init_he_caps()
147 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
148 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
150 he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
151 he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
/freebsd/sys/dev/fxp/
H A Dif_fxpvar.h195 bus_dmamap_t mcs_map; /* DMA map for the multicast setup */ member
H A Dif_fxp.c730 BUS_DMA_NOWAIT | BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->mcs_map); in fxp_attach()
736 error = bus_dmamap_load(sc->mcs_tag, sc->mcs_map, sc->mcsp, in fxp_attach()
947 bus_dmamap_unload(sc->mcs_tag, sc->mcs_map); in fxp_release()
948 bus_dmamem_free(sc->mcs_tag, sc->mcsp, sc->mcs_map); in fxp_release()
3024 bus_dmamap_sync(sc->mcs_tag, sc->mcs_map, in fxp_mc_setup()
3029 fxp_dma_wait(sc, &mcsp->cb_status, sc->mcs_tag, sc->mcs_map); in fxp_mc_setup()
/freebsd/sys/contrib/dev/rtw88/
H A Dmain.c1092 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in get_vht_ra_mask() local
1097 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask()
1098 vht_mcs_cap = mcs_map & 0x3; in get_vht_ra_mask()
1691 u16 mcs_map = 0; in rtw_init_vht_cap() local
1718 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2); in rtw_init_vht_cap()
1720 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << (i * 2); in rtw_init_vht_cap()
1725 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
1726 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7925/
H A Dmain.c24 u16 mcs_map = 0; in mt7925_init_he_caps() local
28 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7925_init_he_caps()
30 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7925_init_he_caps()
125 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7925_init_he_caps()
126 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7925_init_he_caps()
127 he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); in mt7925_init_he_caps()
128 he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); in mt7925_init_he_caps()
H A Dmcu.c1676 struct ieee80211_eht_mcs_nss_supp *mcs_map; in mt7925_mcu_sta_eht_tlv() local
1684 mcs_map = &link_sta->eht_cap.eht_mcs_nss_supp; in mt7925_mcu_sta_eht_tlv()
1696 memcpy(eht->mcs_map_bw20, &mcs_map->only_20mhz, sizeof(eht->mcs_map_bw20)); in mt7925_mcu_sta_eht_tlv()
1697 memcpy(eht->mcs_map_bw80, &mcs_map->bw._80, sizeof(eht->mcs_map_bw80)); in mt7925_mcu_sta_eht_tlv()
1698 memcpy(eht->mcs_map_bw160, &mcs_map->bw._160, sizeof(eht->mcs_map_bw160)); in mt7925_mcu_sta_eht_tlv()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmac80211.c268 u16 mcs_map = 0; in mt76_init_stream_cap() local
291 mcs_map |= (IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2)); in mt76_init_stream_cap()
293 mcs_map |= in mt76_init_stream_cap()
296 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
297 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
/freebsd/sys/contrib/dev/rtw89/
H A Dphy.c53 static u64 get_mcs_ra_mask(u16 mcs_map, u8 highest_mcs, u8 gap) in get_mcs_ra_mask() argument
59 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 12) { in get_mcs_ra_mask()
60 mcs_cap = mcs_map & 0x3; in get_mcs_ra_mask()
82 u16 mcs_map; in get_he_ra_mask() local
88 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_80p80); in get_he_ra_mask()
90 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_160); in get_he_ra_mask()
93 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_80); in get_he_ra_mask()
97 return get_mcs_ra_mask(mcs_map, 11, 2); in get_he_ra_mask()
360 u16 mcs_map = le16_to_cpu(link_sta->vht_cap.vht_mcs.rx_mcs_map); in rtw89_phy_ra_sta_update() local
366 ra_mask |= get_mcs_ra_mask(mcs_map, 8, 1); in rtw89_phy_ra_sta_update()
[all …]
H A Dcore.c4523 u16 mcs_map = 0; in rtw89_init_he_cap() local
4528 mcs_map |= IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2); in rtw89_init_he_cap()
4530 mcs_map |= IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2); in rtw89_init_he_cap()
4600 he_cap->he_mcs_nss_supp.rx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
4601 he_cap->he_mcs_nss_supp.tx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
4603 he_cap->he_mcs_nss_supp.rx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
4604 he_cap->he_mcs_nss_supp.tx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dmac.c183 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument
185 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map()
2508 u16 mcs_map; in ath10k_peer_assoc_h_vht_limit() local
2512 mcs_map = ath10k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath10k_peer_assoc_h_vht_limit()
2515 if (mcs_map) in ath10k_peer_assoc_h_vht_limit()
2516 idx_limit = fls(mcs_map) - 1; in ath10k_peer_assoc_h_vht_limit()
4907 u16 mcs_map; in ath10k_create_vht_cap() local
4932 mcs_map = 0; in ath10k_create_vht_cap()
4935 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2); in ath10k_create_vht_cap()
4937 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << (i * 2); in ath10k_create_vht_cap()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dmac.c2061 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument
2063 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map()
2077 u16 mcs_map; in ath11k_peer_assoc_h_vht_limit() local
2081 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit()
2084 if (mcs_map) in ath11k_peer_assoc_h_vht_limit()
2085 idx_limit = fls(mcs_map) - 1; in ath11k_peer_assoc_h_vht_limit()
2281 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument
2283 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map()
2296 u16 mcs_map; in ath11k_peer_assoc_h_he_limit() local
2300 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit()
[all …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Dmac.c1455 static int ath12k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath12k_mac_get_max_vht_mcs_map() argument
1457 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath12k_mac_get_max_vht_mcs_map()
1471 u16 mcs_map; in ath12k_peer_assoc_h_vht_limit() local
1475 mcs_map = ath12k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath12k_peer_assoc_h_vht_limit()
1478 if (mcs_map) in ath12k_peer_assoc_h_vht_limit()
1479 idx_limit = fls(mcs_map) - 1; in ath12k_peer_assoc_h_vht_limit()
/freebsd/contrib/wpa/hostapd/
H A Dctrl_iface.c2854 u16 mcs_map; in hostapd_maxnss() local
2868 mcs_map = le_to_host16( in hostapd_maxnss()
2885 mcs = (mcs_map >> (2 * i)) & 0x03; in hostapd_maxnss()