| /linux/drivers/net/wireless/nxp/nxpwifi/ |
| H A D | 11ac.c | 40 u8 i, nss, mcs; in nxpwifi_convert_mcsmap_to_maxrate() local 51 nss = 1; in nxpwifi_convert_mcsmap_to_maxrate() 55 nss = i; in nxpwifi_convert_mcsmap_to_maxrate() 57 mcs = GET_VHTNSSMCS(mcs_map, nss); in nxpwifi_convert_mcsmap_to_maxrate() 65 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs]; in nxpwifi_convert_mcsmap_to_maxrate() 68 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs - 1]; in nxpwifi_convert_mcsmap_to_maxrate() 70 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs]; in nxpwifi_convert_mcsmap_to_maxrate() 73 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs - 1]; in nxpwifi_convert_mcsmap_to_maxrate() 99 u16 mcs_user, mcs_resp, nss, tmp; in nxpwifi_fill_vht_cap_tlv() local 109 for (nss = 1; nss <= 8; nss++) { in nxpwifi_fill_vht_cap_tlv() [all …]
|
| H A D | 11ax.c | 102 u8 nss; in nxpwifi_fill_he_cap_tlv() local 125 for (nss = 1; nss <= 8; nss++) { in nxpwifi_fill_he_cap_tlv() 126 cfg_value = nxpwifi_get_he_nss_mcs(he_cap->rx_mcs_80, nss); in nxpwifi_fill_he_cap_tlv() 127 hw_value = nxpwifi_get_he_nss_mcs(hw_he_cap->rx_mcs_80, nss); in nxpwifi_fill_he_cap_tlv() 128 if (rx_nss != 0 && nss > rx_nss) in nxpwifi_fill_he_cap_tlv() 131 nxpwifi_set_he_nss_mcs(&he_cap->rx_mcs_80, nss, in nxpwifi_fill_he_cap_tlv() 134 nxpwifi_set_he_nss_mcs(&he_cap->rx_mcs_80, nss, in nxpwifi_fill_he_cap_tlv() 138 for (nss = 1; nss <= 8; nss++) { in nxpwifi_fill_he_cap_tlv() 139 cfg_value = nxpwifi_get_he_nss_mcs(he_cap->tx_mcs_80, nss); in nxpwifi_fill_he_cap_tlv() 140 hw_value = nxpwifi_get_he_nss_mcs(hw_he_cap->tx_mcs_80, nss); in nxpwifi_fill_he_cap_tlv() [all …]
|
| H A D | 11ax.h | 18 nxpwifi_get_he_nss_mcs(__le16 mcs_map_set, int nss) { in nxpwifi_get_he_nss_mcs() argument 19 return ((le16_to_cpu(mcs_map_set) >> (2 * (nss - 1))) & 0x3); in nxpwifi_get_he_nss_mcs() 23 nxpwifi_set_he_nss_mcs(__le16 *mcs_map_set, int nss, int value) { in nxpwifi_set_he_nss_mcs() argument 27 temp |= ((value & 0x3) << (2 * (nss - 1))); in nxpwifi_set_he_nss_mcs()
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | 11ac.c | 46 u8 i, nss, mcs; in mwifiex_convert_mcsmap_to_maxrate() local 57 nss = 1; in mwifiex_convert_mcsmap_to_maxrate() 61 nss = i; in mwifiex_convert_mcsmap_to_maxrate() 63 mcs = GET_VHTNSSMCS(mcs_map, nss); in mwifiex_convert_mcsmap_to_maxrate() 71 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate() 74 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate() 76 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate() 79 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate() 104 u16 mcs_user, mcs_resp, nss, tmp; in mwifiex_fill_vht_cap_tlv() local 114 for (nss = 1; nss <= 8; nss++) { in mwifiex_fill_vht_cap_tlv() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | eeprom.c | 68 u8 *rx_path, u8 *nss) in mt7996_eeprom_parse_stream() argument 76 *nss = FIELD_GET(MT_EE_WIFI_CONF5_STREAM_NUM_BAND1, in mt7996_eeprom_parse_stream() 84 *nss = FIELD_GET(MT_EE_WIFI_CONF5_STREAM_NUM_BAND2, in mt7996_eeprom_parse_stream() 92 *nss = FIELD_GET(MT_EE_WIFI_CONF4_STREAM_NUM_BAND0, in mt7996_eeprom_parse_stream() 120 u8 path, rx_path, nss; in mt7996_eeprom_variant_valid() local 126 mt7996_eeprom_parse_stream(eeprom, i, &path, &rx_path, &nss); in mt7996_eeprom_variant_valid() 129 if (path > def_path || rx_path > def_rx_path || nss > def_nss) in mt7996_eeprom_variant_valid() 237 u8 *path, u8 *rx_path, u8 *nss) in mt7996_eeprom_parse_efuse_hw_cap() argument 255 *nss = min_t(u8, *nss, STREAM_CAP(1 + band_offs)); in mt7996_eeprom_parse_efuse_hw_cap() 305 u8 path, rx_path, nss, band_idx = phy->mt76->band_idx; in mt7996_eeprom_parse_hw_cap() local [all …]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | rc.c | 23 u8 nss; in _rtl_rc_get_highest_rix() local 28 nss = 4; in _rtl_rc_get_highest_rix() 31 nss = 3; in _rtl_rc_get_highest_rix() 34 nss = 2; in _rtl_rc_get_highest_rix() 37 nss = 1; in _rtl_rc_get_highest_rix() 64 if (nss == 1) in _rtl_rc_get_highest_rix() 72 nss); in _rtl_rc_get_highest_rix() 77 nss); in _rtl_rc_get_highest_rix() 86 if (nss == 1) in _rtl_rc_get_highest_rix() 94 nss); in _rtl_rc_get_highest_rix() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
| H A D | eeprom.c | 218 u8 path, nss, nss_max = 4, *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_hw_cap() local 237 nss = path; in mt7915_eeprom_parse_hw_cap() 241 nss = FIELD_GET(MT_EE_WIFI_CONF3_TX_PATH_B0, in mt7915_eeprom_parse_hw_cap() 244 nss = FIELD_GET(MT_EE_WIFI_CONF3_TX_PATH_B1, in mt7915_eeprom_parse_hw_cap() 247 nss = FIELD_GET(MT_EE_WIFI_CONF_STREAM_NUM, in mt7915_eeprom_parse_hw_cap() 255 if (!nss) in mt7915_eeprom_parse_hw_cap() 256 nss = nss_max; in mt7915_eeprom_parse_hw_cap() 257 nss = min_t(u8, min_t(u8, nss_max, nss), path); in mt7915_eeprom_parse_hw_cap() 262 mphy->antenna_mask = BIT(nss) - 1; in mt7915_eeprom_parse_hw_cap()
|
| H A D | mcu.c | 45 u8 nss; in mt7915_mcu_get_sta_nss() local 47 for (nss = 8; nss > 0; nss--) { in mt7915_mcu_get_sta_nss() 48 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss() 54 return nss ? nss - 1 : 0; in mt7915_mcu_get_sta_nss() 65 int nss, max_nss = sta->deflink.rx_nss > 3 ? 4 : sta->deflink.rx_nss; in mt7915_mcu_set_sta_he_mcs() local 67 for (nss = 0; nss < max_nss; nss++) { in mt7915_mcu_set_sta_he_mcs() 70 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7915_mcu_set_sta_he_mcs() 84 mcs = mcs ? fls(mcs & mask[nss]) - 1 : -1; 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() [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | nft_interface_stress.sh | 22 setup_ns nsc nsr nss 29 ip -net $nss link add sr0 type veth peer name rs0 netns $nsr 30 ip -net $nss addr add 10.1.0.1/24 dev sr0 31 ip -net $nss link set sr0 up 32 ip -net $nss route add default via 10.1.0.2 91 ip netns exec $nss iperf3 --server --daemon -1
|
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H A D | util.c | 82 void rtw_desc_to_mcsrate(u16 rate, u8 *mcs, u8 *nss) in rtw_desc_to_mcsrate() argument 89 *nss = 1; in rtw_desc_to_mcsrate() 93 *nss = 2; in rtw_desc_to_mcsrate() 97 *nss = 3; in rtw_desc_to_mcsrate() 101 *nss = 4; in rtw_desc_to_mcsrate() 105 *nss = 0; in rtw_desc_to_mcsrate()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | dp_mon.c | 20 rx_status->nss = ppdu_info->nss; in ath12k_dp_mon_fill_rx_stats_info() 114 u8 rate_mcs, nss, sgi; in ath12k_dp_mon_fill_rx_rate() local 119 nss = ppdu_info->nss; in ath12k_dp_mon_fill_rx_rate() 143 rx_status->rate_idx = rate_mcs + (8 * (nss - 1)); in ath12k_dp_mon_fill_rx_rate() 400 rxs->nss = ppduinfo->nss; in ath12k_dp_mon_update_radiotap() 760 u32 nss_idx = (user_stats) ? user_stats->nss - 1 : ppdu_info->nss - 1; in ath12k_dp_mon_rx_update_peer_rate_table_stats() 810 ppdu_info->nss = 1; in ath12k_dp_mon_rx_update_peer_su_stats() 845 if (ppdu_info->nss > 0 && ppdu_info->nss <= HAL_RX_MAX_NSS) { in ath12k_dp_mon_rx_update_peer_su_stats() 846 rx_stats->pkt_stats.nss_count[ppdu_info->nss - 1] += num_msdu; in ath12k_dp_mon_rx_update_peer_su_stats() 847 rx_stats->byte_stats.nss_count[ppdu_info->nss - 1] += ppdu_info->mpdu_len; in ath12k_dp_mon_rx_update_peer_su_stats() [all …]
|
| H A D | mac.c | 515 int nss; in ath12k_mac_max_ht_nss() local 517 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath12k_mac_max_ht_nss() 518 if (ht_mcs_mask[nss]) in ath12k_mac_max_ht_nss() 519 return nss + 1; in ath12k_mac_max_ht_nss() 527 int nss; in ath12k_mac_max_vht_nss() local 529 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_vht_nss() 530 if (vht_mcs_mask[nss]) in ath12k_mac_max_vht_nss() 531 return nss + 1; in ath12k_mac_max_vht_nss() 539 int nss; in ath12k_mac_max_he_nss() local 541 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_he_nss() [all …]
|
| H A D | debugfs.c | 349 static u16 ath12k_get_ratecode(u16 pream_idx, u16 nss, u16 mcs_rate) in ath12k_get_ratecode() argument 397 return ((mode_type << 8) | ((nss & 0x7) << 5) | (mcs_rate & 0x1F)); in ath12k_get_ratecode() 425 int nss, rates, chains; in ath12k_tpc_fill_pream() local 457 for (nss = 0; nss < max_nss; nss++) { in ath12k_tpc_fill_pream() 474 rate_code = ath12k_get_ratecode(pream_bw, nss, rates); in ath12k_tpc_fill_pream() 480 if (nss > chains) { in ath12k_tpc_fill_pream() 520 u8 nss, active_tx_chains; in ath12k_tpc_stats_print() local 627 nss = (max_nss[i - 1] < num_tx_chain ? in ath12k_tpc_stats_print() 630 rate_idx[i] = rate_idx[i - 1] + max_rates[i - 1] * nss; in ath12k_tpc_stats_print() 633 eht_rate_idx[j] = eht_rate_idx[j - 1] + max_rates[i] * nss; in ath12k_tpc_stats_print() [all …]
|
| H A D | dp_rx.c | 1232 u8 rate_mcs = rx_info->rate_mcs, nss = rx_info->nss; in ath12k_dp_rx_h_rate() local 1253 rx_status->rate_idx = rate_mcs + (8 * (nss - 1)); in ath12k_dp_rx_h_rate() 1267 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1281 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1296 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1315 rx_status->nss = 0; in ath12k_dp_rx_h_ppdu() 1410 status->nss, in ath12k_dp_rx_deliver_msdu()
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | ipq806x-dwmac.txt | 12 - qcom,nss-common: should contain a phandle to a syscon device mapping the 13 nss-common registers. 27 qcom,nss-common = <&nss_common>;
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt76_connac_mac.c | 12 void mt76_connac_gen_ppe_thresh(u8 *he_ppet, int nss, enum nl80211_band band) in mt76_connac_gen_ppe_thresh() argument 20 he_ppet[0] = FIELD_PREP(IEEE80211_PPE_THRES_NSS_MASK, nss - 1) | in mt76_connac_gen_ppe_thresh() 25 nss * hweight8(ru_bit_mask) * 2; in mt76_connac_gen_ppe_thresh() 290 for (nss = 0; i < ARRAY_SIZE(mask->control[band]._mcs); i++) { \ 299 nss = i + 1; \ 309 u8 nss = 0, mode = 0, band = NL80211_BAND_2GHZ; in mt76_connac2_mac_tx_rate_val() local 363 return FIELD_PREP(MT_TX_RATE_NSS, nss) | in mt76_connac2_mac_tx_rate_val() 662 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs() 665 if (stbc && rate.nss > 1) in mt76_connac2_mac_fill_txs() 666 rate.nss >>= 1; in mt76_connac2_mac_fill_txs() [all …]
|
| H A D | mt76x02_mac.c | 183 u8 phy, rate_idx, nss, bw = 0; in mt76x02_mac_tx_rate_val() local 188 nss = 1 + (rate->idx >> 4); in mt76x02_mac_tx_rate_val() 196 nss = 1 + (rate->idx >> 3); in mt76x02_mac_tx_rate_val() 215 nss = 1; in mt76x02_mac_tx_rate_val() 224 *nss_val = nss; in mt76x02_mac_tx_rate_val() 234 s8 nss; in mt76x02_mac_wcid_set_rate() local 236 rateval = mt76x02_mac_tx_rate_val(dev, rate, &nss); in mt76x02_mac_wcid_set_rate() 238 FIELD_PREP(MT_WCID_TX_INFO_NSS, nss) | in mt76x02_mac_wcid_set_rate() 346 u8 nss; in mt76x02_mac_write_txwi() local 386 nss = FIELD_GET(MT_WCID_TX_INFO_NSS, wcid_tx_info); in mt76x02_mac_write_txwi() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | rs-fw.c | 114 int nss) in rs_fw_vht_highest_rx_mcs_index() argument 117 (0x3 << (2 * (nss - 1))); in rs_fw_vht_highest_rx_mcs_index() 118 rx_mcs >>= (2 * (nss - 1)); in rs_fw_vht_highest_rx_mcs_index() 153 int nss = i + 1; in rs_fw_vht_set_enabled_rates() local 155 highest_mcs = rs_fw_vht_highest_rx_mcs_index(vht_cap, nss); in rs_fw_vht_set_enabled_rates() 172 0, true, nss) >= nss) in rs_fw_vht_set_enabled_rates() 206 u8 nss = link_sta->rx_nss; in rs_fw_he_set_enabled_rates() local 210 nss = 1; in rs_fw_he_set_enabled_rates() 212 for (i = 0; i < nss && i < IWL_TLC_NSS_MAX; i++) { in rs_fw_he_set_enabled_rates()
|
| /linux/drivers/net/wireless/ath/ath10k/ |
| H A D | mac.c | 181 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument 183 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map() 194 int nss; in ath10k_mac_max_ht_nss() local 196 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath10k_mac_max_ht_nss() 197 if (ht_mcs_mask[nss]) in ath10k_mac_max_ht_nss() 198 return nss + 1; in ath10k_mac_max_ht_nss() 206 int nss; in ath10k_mac_max_vht_nss() local 208 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath10k_mac_max_vht_nss() 209 if (vht_mcs_mask[nss]) in ath10k_mac_max_vht_nss() 210 return nss + 1; in ath10k_mac_max_vht_nss() [all …]
|
| H A D | htt_rx.c | 989 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local 1029 nss = mcs >> 3; in ath10k_htt_rx_h_rates() 1054 nss = (nsts_su >> 2) + 1; in ath10k_htt_rx_h_rates() 1056 nss = (nsts_su + 1); in ath10k_htt_rx_h_rates() 1069 nss = 1; in ath10k_htt_rx_h_rates() 1096 status->nss = nss; in ath10k_htt_rx_h_rates() 1298 status->nss = 0; in ath10k_htt_rx_h_ppdu() 1396 status->nss, in ath10k_process_rx() 3672 int idx, ht_idx, gi, mcs, bw, nss; in ath10k_accumulate_per_peer_tx_stats() local 3683 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
| H A D | mac.c | 269 u8 stbc, gi, bw, dcm, nss; in mt7925_mac_fill_rx_rate() local 278 nss = FIELD_GET(MT_PRXV_NSTS, v0) + 1; in mt7925_mac_fill_rx_rate() 302 status->nss = nss; in mt7925_mac_fill_rx_rate() 313 status->nss = nss; in mt7925_mac_fill_rx_rate() 325 status->nss = nss; in mt7925_mac_fill_rx_rate() 957 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7925_mac_add_txs_skb() 960 if (stbc && rate.nss > 1) in mt7925_mac_add_txs_skb() 961 rate.nss >>= 1; in mt7925_mac_add_txs_skb() 963 if (rate.nss - 1 < ARRAY_SIZE(stats->tx_nss)) in mt7925_mac_add_txs_skb() 964 stats->tx_nss[rate.nss - 1]++; in mt7925_mac_add_txs_skb() [all …]
|
| /linux/net/mac80211/ |
| H A D | sta_info.h | 1113 r |= STA_STATS_FIELD(VHT_NSS, s->nss); in sta_stats_encode_rate() 1127 r |= STA_STATS_FIELD(HE_NSS, s->nss); in sta_stats_encode_rate() 1135 r |= STA_STATS_FIELD(EHT_NSS, s->nss); in sta_stats_encode_rate() 1142 r |= STA_STATS_FIELD(UHR_NSS, s->nss); in sta_stats_encode_rate() 1151 r |= STA_STATS_FIELD(S1G_NSS, s->nss); in sta_stats_encode_rate()
|
| H A D | airtime.c | 538 streams = status->nss; in ieee80211_get_rate_duration() 548 streams = status->nss; in ieee80211_get_rate_duration() 553 streams = status->nss; in ieee80211_get_rate_duration() 636 stat->nss = ri->nss; in ieee80211_fill_rate_info() 710 stat->nss = ieee80211_rate_get_vht_nss(rate); in ieee80211_fill_rx_status()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | sta.c | 151 struct iwl_he_pkt_ext_v2 *pkt_ext, u8 nss, in iwl_mld_parse_ppe() argument 160 if (nss > MAX_HE_SUPP_NSS) { in iwl_mld_parse_ppe() 161 IWL_DEBUG_INFO(mld, "Got NSS = %d - trimming to %d\n", nss, in iwl_mld_parse_ppe() 163 nss = MAX_HE_SUPP_NSS; in iwl_mld_parse_ppe() 166 for (int i = 0; i < nss; i++) { in iwl_mld_parse_ppe() 204 u8 nss = (link_sta->he_cap.ppe_thres[0] & in iwl_mld_set_pkt_ext_from_he_ppe() local 213 iwl_mld_parse_ppe(mld, pkt_ext, nss, ru_index_bitmap, ppe, ppe_pos_bit, in iwl_mld_set_pkt_ext_from_he_ppe() 300 u8 nss = (link_sta->eht_cap.eht_ppe_thres[0] & in iwl_mld_fill_pkt_ext() local 309 iwl_mld_parse_ppe(mld, pkt_ext, nss, ru_index_bitmap, in iwl_mld_fill_pkt_ext()
|
| /linux/fs/nfs/ |
| H A D | nfs4file.c | 143 struct nl4_server *nss = NULL; in __nfs4_copy_file_range() local 178 nss = &cn_resp->cnr_src; in __nfs4_copy_file_range() 182 nss, cnrs, sync); in __nfs4_copy_file_range()
|