| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mcu.c | 80 mt7996_mcu_get_sta_nss(u16 mcs_map) in mt7996_mcu_get_sta_nss() argument 85 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7996_mcu_get_sta_nss() 96 u16 mcs_map) in mt7996_mcu_set_sta_he_mcs() argument 106 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7996_mcu_set_sta_he_mcs() 136 mcs_map &= ~(0x3 << (nss * 2)); in mt7996_mcu_set_sta_he_mcs() 137 mcs_map |= mcs << (nss * 2); in mt7996_mcu_set_sta_he_mcs() 140 *he_mcs = cpu_to_le16(mcs_map); in mt7996_mcu_set_sta_he_mcs() 151 switch (mcs_map & 0x3) { in mt7996_mcu_set_sta_vht_mcs() 963 struct ieee80211_he_mcs_nss_supp mcs_map; in mt7996_mcu_sta_he_tlv() local 991 le16_to_cpu(mcs_map.rx_mcs_160)); in mt7996_mcu_sta_he_tlv() [all …]
|
| H A D | init.c | 605 u16 mcs_map = 0; in mt7996_init_he_caps() local 609 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7996_init_he_caps() 611 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7996_init_he_caps() 691 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7996_init_he_caps() 692 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7996_init_he_caps() 693 he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); in mt7996_init_he_caps() 694 he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); in mt7996_init_he_caps()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | mcu.c | 43 mt7915_mcu_get_sta_nss(u16 mcs_map) in mt7915_mcu_get_sta_nss() argument 48 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss() 59 u16 mcs_map) in mt7915_mcu_set_sta_he_mcs() argument 70 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7915_mcu_set_sta_he_mcs() 100 mcs_map &= ~(0x3 << (nss * 2)); in mt7915_mcu_set_sta_he_mcs() 101 mcs_map |= mcs << (nss * 2); in mt7915_mcu_set_sta_he_mcs() 109 *he_mcs = cpu_to_le16(mcs_map); in mt7915_mcu_set_sta_he_mcs() 123 switch (mcs_map & 0x3) { in mt7915_mcu_set_sta_vht_mcs() 720 struct ieee80211_he_mcs_nss_supp mcs_map; in mt7915_mcu_sta_he_tlv() local 822 le16_to_cpu(mcs_map.rx_mcs_160)); in mt7915_mcu_sta_he_tlv() [all …]
|
| H A D | init.c | 976 u16 mcs_map = 0; in mt7915_init_he_caps() local 991 mcs_map |= (IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2)); in mt7915_init_he_caps() 993 mcs_map |= (IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2)); in mt7915_init_he_caps() 1109 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps() 1110 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7915_init_he_caps()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7921/ |
| H A D | main.c | 18 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() 140 he_mcs->rx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps() 141 he_mcs->tx_mcs_80 = cpu_to_le16(mcs_map); in mt7921_init_he_caps() 143 he_mcs->rx_mcs_160 = cpu_to_le16(mcs_map); in mt7921_init_he_caps() 144 he_mcs->tx_mcs_160 = cpu_to_le16(mcs_map); in mt7921_init_he_caps()
|
| /freebsd-14.2/sys/contrib/dev/rtw88/ |
| H A D | main.c | 1005 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in get_vht_ra_mask() local 1010 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask() 1011 vht_mcs_cap = mcs_map & 0x3; in get_vht_ra_mask() 1600 u16 mcs_map; in rtw_init_vht_cap() local 1624 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in rtw_init_vht_cap() 1633 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << 2; in rtw_init_vht_cap() 1636 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << 2; in rtw_init_vht_cap() 1639 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap() 1640 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
|
| /freebsd-14.2/sys/dev/fxp/ |
| H A D | if_fxpvar.h | 195 bus_dmamap_t mcs_map; /* DMA map for the multicast setup */ member
|
| H A D | if_fxp.c | 731 BUS_DMA_NOWAIT | BUS_DMA_COHERENT | BUS_DMA_ZERO, &sc->mcs_map); in fxp_attach() 737 error = bus_dmamap_load(sc->mcs_tag, sc->mcs_map, sc->mcsp, in fxp_attach() 950 bus_dmamap_unload(sc->mcs_tag, sc->mcs_map); in fxp_release() 951 bus_dmamem_free(sc->mcs_tag, sc->mcsp, sc->mcs_map); in fxp_release() 3040 bus_dmamap_sync(sc->mcs_tag, sc->mcs_map, in fxp_mc_setup() 3045 fxp_dma_wait(sc, &mcsp->cb_status, sc->mcs_tag, sc->mcs_map); in fxp_mc_setup()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/ |
| H A D | mac80211.c | 260 u16 mcs_map = 0; in mt76_init_stream_cap() local 283 mcs_map |= (IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2)); in mt76_init_stream_cap() 285 mcs_map |= in mt76_init_stream_cap() 288 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap() 289 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in mt76_init_stream_cap()
|
| /freebsd-14.2/sys/contrib/dev/rtw89/ |
| H A D | phy.c | 44 static u64 get_mcs_ra_mask(u16 mcs_map, u8 highest_mcs, u8 gap) in get_mcs_ra_mask() argument 50 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 12) { in get_mcs_ra_mask() 51 mcs_cap = mcs_map & 0x3; in get_mcs_ra_mask() 73 u16 mcs_map; in get_he_ra_mask() local 79 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_80p80); in get_he_ra_mask() 81 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_160); in get_he_ra_mask() 84 mcs_map = le16_to_cpu(cap.he_mcs_nss_supp.rx_mcs_80); in get_he_ra_mask() 88 return get_mcs_ra_mask(mcs_map, 11, 2); in get_he_ra_mask() 270 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in rtw89_phy_ra_sta_update() local 275 ra_mask |= get_mcs_ra_mask(mcs_map, 9, 1); in rtw89_phy_ra_sta_update()
|
| H A D | core.c | 3237 u16 mcs_map = 0; in rtw89_init_he_cap() local 3248 mcs_map |= IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2); in rtw89_init_he_cap() 3250 mcs_map |= IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2); in rtw89_init_he_cap() 3339 he_cap->he_mcs_nss_supp.rx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap() 3340 he_cap->he_mcs_nss_supp.tx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap() 3342 he_cap->he_mcs_nss_supp.rx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap() 3343 he_cap->he_mcs_nss_supp.tx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
|
| /freebsd-14.2/sys/contrib/dev/athk/ath11k/ |
| H A D | mac.c | 1975 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_vht_mcs_map() 1989 u16 mcs_map; in ath11k_peer_assoc_h_vht_limit() local 1993 mcs_map = ath11k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_vht_limit() 1996 if (mcs_map) in ath11k_peer_assoc_h_vht_limit() 1997 idx_limit = fls(mcs_map) - 1; in ath11k_peer_assoc_h_vht_limit() 2193 static int ath11k_mac_get_max_he_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_he_mcs_map() argument 2195 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath11k_mac_get_max_he_mcs_map() 2208 u16 mcs_map; in ath11k_peer_assoc_h_he_limit() local 2212 mcs_map = ath11k_mac_get_max_he_mcs_map(tx_mcs_set, nss) & in ath11k_peer_assoc_h_he_limit() 2215 if (mcs_map) in ath11k_peer_assoc_h_he_limit() [all …]
|
| /freebsd-14.2/sys/contrib/dev/athk/ath10k/ |
| H A D | mac.c | 179 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument 181 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map() 2484 u16 mcs_map; in ath10k_peer_assoc_h_vht_limit() local 2491 if (mcs_map) in ath10k_peer_assoc_h_vht_limit() 2492 idx_limit = fls(mcs_map) - 1; in ath10k_peer_assoc_h_vht_limit() 4879 u16 mcs_map; in ath10k_create_vht_cap() local 4904 mcs_map = 0; in ath10k_create_vht_cap() 4907 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << (i * 2); in ath10k_create_vht_cap() 4909 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << (i * 2); in ath10k_create_vht_cap() 4915 vht_cap.vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in ath10k_create_vht_cap() [all …]
|
| /freebsd-14.2/sys/contrib/dev/athk/ath12k/ |
| H A D | mac.c | 1455 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-14.2/contrib/wpa/hostapd/ |
| H A D | ctrl_iface.c | 2854 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()
|