| /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 …]
|
| H A D | tdls.c | 245 u16 mcs_user, mcs_resp, nss; in mwifiex_tdls_add_vht_oper() local 319 for (nss = 1; nss <= 8; nss++) { in mwifiex_tdls_add_vht_oper() 320 mcs_user = GET_VHTNSSMCS(mcs_map_user, nss); in mwifiex_tdls_add_vht_oper() 321 mcs_resp = GET_VHTNSSMCS(mcs_map_resp, nss); in mwifiex_tdls_add_vht_oper() 325 SET_VHTNSSMCS(mcs_map_result, nss, in mwifiex_tdls_add_vht_oper() 328 SET_VHTNSSMCS(mcs_map_result, nss, in mwifiex_tdls_add_vht_oper()
|
| /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/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/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/net/mac80211/ |
| H A D | vht.c | 654 u8 nss; in __ieee80211_vht_handle_opmode() local 660 nss = opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_MASK; in __ieee80211_vht_handle_opmode() 661 nss >>= IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT; in __ieee80211_vht_handle_opmode() 662 nss += 1; in __ieee80211_vht_handle_opmode() 664 if (link_sta->op_mode_nss != nss) { in __ieee80211_vht_handle_opmode() 665 if (nss <= link_sta->capa_nss) { in __ieee80211_vht_handle_opmode() 666 link_sta->op_mode_nss = nss; in __ieee80211_vht_handle_opmode() 668 if (nss != link_sta->pub->rx_nss) { in __ieee80211_vht_handle_opmode() 669 link_sta->pub->rx_nss = nss; in __ieee80211_vht_handle_opmode() 677 nss, link_sta->pub->addr); in __ieee80211_vht_handle_opmode()
|
| H A D | rc80211_minstrel_ht.c | 287 minstrel_get_valid_vht_rates(int bw, int nss, __le16 mcs_map) in minstrel_get_valid_vht_rates() argument 292 if (nss != 3 && nss != 6) in minstrel_get_valid_vht_rates() 295 if (nss == 3 || nss == 7) in minstrel_get_valid_vht_rates() 297 else if (nss == 6) in minstrel_get_valid_vht_rates() 303 switch ((le16_to_cpu(mcs_map) >> (2 * (nss - 1))) & 3) { in minstrel_get_valid_vht_rates() 363 return VHT_GROUP_IDX(rate->nss, in minstrel_vht_ri_get_group_idx() 1760 int bw, nss; in minstrel_ht_update_caps() local 1780 nss = minstrel_mcs_groups[i].streams; in minstrel_ht_update_caps() 1783 if (sta->deflink.smps_mode == IEEE80211_SMPS_STATIC && nss > 1) in minstrel_ht_update_caps() 1791 mi->supported[i] = mcs->rx_mask[nss - 1]; in minstrel_ht_update_caps() [all …]
|
| 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()
|
| H A D | sta_info.h | 1080 r |= STA_STATS_FIELD(VHT_NSS, s->nss); in sta_stats_encode_rate() 1094 r |= STA_STATS_FIELD(HE_NSS, s->nss); 1102 r |= STA_STATS_FIELD(EHT_NSS, s->nss); 1109 r |= STA_STATS_FIELD(UHR_NSS, s->nss);
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | mac.c | 436 int nss; in ath11k_mac_max_ht_nss() local 438 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss() 439 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss() 440 return nss + 1; in ath11k_mac_max_ht_nss() 448 int nss; in ath11k_mac_max_vht_nss() local 450 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss() 451 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss() 452 return nss + 1; in ath11k_mac_max_vht_nss() 460 int nss; in ath11k_mac_max_he_nss() local 462 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_he_nss() [all …]
|
| H A D | dp_tx.c | 492 if (arsta->last_txrate.nss) in ath11k_dp_tx_update_txcompl() 493 arsta->txrate.nss = arsta->last_txrate.nss; in ath11k_dp_tx_update_txcompl() 495 arsta->txrate.nss = arsta->peer_nss; in ath11k_dp_tx_update_txcompl() 512 if (arsta->txrate.nss != 0) in ath11k_dp_tx_update_txcompl() 513 arsta->txrate.mcs = mcs + 8 * (arsta->txrate.nss - 1); in ath11k_dp_tx_update_txcompl()
|
| /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 | 988 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local 1028 nss = mcs >> 3; in ath10k_htt_rx_h_rates() 1053 nss = (nsts_su >> 2) + 1; in ath10k_htt_rx_h_rates() 1055 nss = (nsts_su + 1); in ath10k_htt_rx_h_rates() 1068 nss = 1; in ath10k_htt_rx_h_rates() 1095 status->nss = nss; in ath10k_htt_rx_h_rates() 1297 status->nss = 0; in ath10k_htt_rx_h_ppdu() 1395 status->nss, in ath10k_process_rx() 3671 int idx, ht_idx, gi, mcs, bw, nss; in ath10k_accumulate_per_peer_tx_stats() local 3682 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats() [all …]
|
| H A D | debugfs_sta.c | 707 stats->nss[j][0], stats->nss[j][1], in ath10k_dbg_sta_dump_tx_stats() 708 stats->nss[j][2], stats->nss[j][3]); in ath10k_dbg_sta_dump_tx_stats()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | mac.c | 510 int nss; in ath12k_mac_max_ht_nss() local 512 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath12k_mac_max_ht_nss() 513 if (ht_mcs_mask[nss]) in ath12k_mac_max_ht_nss() 514 return nss + 1; in ath12k_mac_max_ht_nss() 522 int nss; in ath12k_mac_max_vht_nss() local 524 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_vht_nss() 525 if (vht_mcs_mask[nss]) in ath12k_mac_max_vht_nss() 526 return nss + 1; in ath12k_mac_max_vht_nss() 534 int nss; in ath12k_mac_max_he_nss() local 536 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_he_nss() [all …]
|
| H A D | dp_rx.c | 1188 u8 rate_mcs = rx_info->rate_mcs, nss = rx_info->nss; in ath12k_dp_rx_h_rate() local 1209 rx_status->rate_idx = rate_mcs + (8 * (nss - 1)); in ath12k_dp_rx_h_rate() 1223 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1237 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1252 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1271 rx_status->nss = 0; in ath12k_dp_rx_h_ppdu() 1367 status->nss, in ath12k_dp_rx_deliver_msdu()
|
| H A D | dp_htt.c | 197 u8 flags, mcs, nss, bw, sgi, dcm, ppdu_type, rate_idx = 0; in ath12k_update_per_peer_tx_stats() local 234 nss = HTT_USR_RATE_NSS(user_rate->rate_flags) + 1; in ath12k_update_per_peer_tx_stats() 258 if (flags == WMI_RATE_PREAMBLE_HT && (mcs > ATH12K_HT_MCS_MAX || nss < 1)) { in ath12k_update_per_peer_tx_stats() 260 mcs, nss); in ath12k_update_per_peer_tx_stats() 295 peer->txrate.mcs = mcs + 8 * (nss - 1); in ath12k_update_per_peer_tx_stats() 334 peer->txrate.nss = nss; in ath12k_update_per_peer_tx_stats()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | sta.c | 150 struct iwl_he_pkt_ext_v2 *pkt_ext, u8 nss, in iwl_mld_parse_ppe() argument 159 if (nss > MAX_HE_SUPP_NSS) { in iwl_mld_parse_ppe() 160 IWL_DEBUG_INFO(mld, "Got NSS = %d - trimming to %d\n", nss, in iwl_mld_parse_ppe() 162 nss = MAX_HE_SUPP_NSS; in iwl_mld_parse_ppe() 165 for (int i = 0; i < nss; i++) { in iwl_mld_parse_ppe() 203 u8 nss = (link_sta->he_cap.ppe_thres[0] & in iwl_mld_set_pkt_ext_from_he_ppe() local 212 iwl_mld_parse_ppe(mld, pkt_ext, nss, ru_index_bitmap, ppe, ppe_pos_bit, in iwl_mld_set_pkt_ext_from_he_ppe() 299 u8 nss = (link_sta->eht_cap.eht_ppe_thres[0] & in iwl_mld_fill_pkt_ext() local 308 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 | 141 struct nl4_server *nss = NULL; in __nfs4_copy_file_range() local 176 nss = &cn_resp->cnr_src; in __nfs4_copy_file_range() 180 nss, cnrs, sync); in __nfs4_copy_file_range()
|
| /linux/net/wireless/ |
| H A D | util.c | 1477 bitrate *= rate->nss; in cfg80211_calculate_bitrate_vht() 1486 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_vht() 1527 if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8)) in cfg80211_calculate_bitrate_he() 1567 tmp *= rate->nss; in cfg80211_calculate_bitrate_he() 1616 if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8)) in _cfg80211_calculate_bitrate_eht_uhr() 1702 tmp *= rate->nss; in _cfg80211_calculate_bitrate_eht_uhr() 1707 if (WARN(rate->nss != 1 || rate->mcs == 15, in _cfg80211_calculate_bitrate_eht_uhr() 1739 WARN_ONCE(rate->nss != 1, "bad UHR ELR NSS %d\n", rate->nss); in cfg80211_calculate_bitrate_uhr() 1859 bitrate *= rate->nss; in cfg80211_calculate_bitrate_s1g() 1867 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_s1g()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | mcu.c | 111 u8 nss; in mt7996_mcu_get_sta_nss() local 113 for (nss = 8; nss > 0; nss--) { in mt7996_mcu_get_sta_nss() 114 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7996_mcu_get_sta_nss() 120 return nss - 1; in mt7996_mcu_get_sta_nss() 128 int nss, max_nss = link_sta->rx_nss > 3 ? 4 : link_sta->rx_nss; in mt7996_mcu_set_sta_he_mcs() local 132 for (nss = 0; nss < max_nss; nss++) { in mt7996_mcu_set_sta_he_mcs() 135 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7996_mcu_set_sta_he_mcs() 149 mcs = mcs ? fls(mcs & mask[nss]) - 1 : -1; in mt7996_mcu_set_sta_he_mcs() 165 mcs_map &= ~(0x3 << (nss * 2)); in mt7996_mcu_set_sta_he_mcs() 166 mcs_map |= mcs << (nss * 2); in mt7996_mcu_set_sta_he_mcs() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| H A D | tx.c | 141 u8 nss; in mt7601u_push_txwi() local 154 rate_ctl = mt76_mac_tx_rate_val(dev, rate, &nss); in mt7601u_push_txwi()
|
| H A D | mac.c | 109 u8 nss = 1; in mt76_mac_tx_rate_val() local 114 nss = 1 + (rate->idx >> 3); in mt76_mac_tx_rate_val() 142 *nss_val = nss; in mt76_mac_tx_rate_val()
|
| /linux/arch/s390/include/asm/ |
| H A D | ipl.h | 101 } nss; member
|