| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/mt7996/ |
| HD | 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() 147 u16 mcs, mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in mt7996_mcu_set_sta_vht_mcs() local 150 for (nss = 0; nss < max_nss; nss++, mcs_map >>= 2) { in mt7996_mcu_set_sta_vht_mcs() 151 switch (mcs_map & 0x3) { in mt7996_mcu_set_sta_vht_mcs() [all …]
|
| HD | 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-stable/sys/contrib/dev/mediatek/mt76/mt7915/ |
| HD | 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() 118 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in mt7915_mcu_set_sta_vht_mcs() local 122 for (nss = 0; nss < max_nss; nss++, mcs_map >>= 2) { in mt7915_mcu_set_sta_vht_mcs() 123 switch (mcs_map & 0x3) { in mt7915_mcu_set_sta_vht_mcs() [all …]
|
| HD | 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-stable/sys/contrib/dev/mediatek/mt76/mt7921/ |
| HD | 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-stable/sys/contrib/dev/rtw88/ |
| HD | main.c | 1034 u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map); in get_vht_ra_mask() local 1039 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask() 1040 vht_mcs_cap = mcs_map & 0x3; in get_vht_ra_mask() 1628 u16 mcs_map; in rtw_init_vht_cap() local 1652 mcs_map = IEEE80211_VHT_MCS_SUPPORT_0_9 << 0 | in rtw_init_vht_cap() 1661 mcs_map |= IEEE80211_VHT_MCS_SUPPORT_0_9 << 2; in rtw_init_vht_cap() 1664 mcs_map |= IEEE80211_VHT_MCS_NOT_SUPPORTED << 2; in rtw_init_vht_cap() 1667 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap() 1668 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(mcs_map); in rtw_init_vht_cap()
|
| /freebsd-14-stable/sys/dev/fxp/ |
| HD | if_fxpvar.h | 195 bus_dmamap_t mcs_map; /* DMA map for the multicast setup */ member
|
| HD | if_fxp.c | 730 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() 949 bus_dmamap_unload(sc->mcs_tag, sc->mcs_map); in fxp_release() 950 bus_dmamem_free(sc->mcs_tag, sc->mcsp, sc->mcs_map); in fxp_release() 3026 bus_dmamap_sync(sc->mcs_tag, sc->mcs_map, in fxp_mc_setup() 3031 fxp_dma_wait(sc, &mcsp->cb_status, sc->mcs_tag, sc->mcs_map); in fxp_mc_setup()
|
| /freebsd-14-stable/sys/contrib/dev/mediatek/mt76/ |
| HD | 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-stable/sys/contrib/dev/rtw89/ |
| HD | phy.c | 53 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() 358 u16 mcs_map = le16_to_cpu(link_sta->vht_cap.vht_mcs.rx_mcs_map); in rtw89_phy_ra_sta_update() local 364 ra_mask |= get_mcs_ra_mask(mcs_map, 8, 1); in rtw89_phy_ra_sta_update() [all …]
|
| HD | core.c | 4184 u16 mcs_map = 0; in rtw89_init_he_cap() local 4189 mcs_map |= IEEE80211_HE_MCS_SUPPORT_0_11 << (i * 2); in rtw89_init_he_cap() 4191 mcs_map |= IEEE80211_HE_MCS_NOT_SUPPORTED << (i * 2); in rtw89_init_he_cap() 4261 he_cap->he_mcs_nss_supp.rx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap() 4262 he_cap->he_mcs_nss_supp.tx_mcs_80 = cpu_to_le16(mcs_map); in rtw89_init_he_cap() 4264 he_cap->he_mcs_nss_supp.rx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap() 4265 he_cap->he_mcs_nss_supp.tx_mcs_160 = cpu_to_le16(mcs_map); in rtw89_init_he_cap()
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath10k/ |
| HD | 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 2488 mcs_map = ath10k_mac_get_max_vht_mcs_map(tx_mcs_set, nss) & in ath10k_peer_assoc_h_vht_limit() 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() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath11k/ |
| HD | mac.c | 1973 static int ath11k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath11k_mac_get_max_vht_mcs_map() argument 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() [all …]
|
| /freebsd-14-stable/sys/contrib/dev/athk/ath12k/ |
| HD | 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-stable/contrib/wpa/hostapd/ |
| HD | 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()
|