| /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/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()
|
| H A D | debug.c | 697 u8 nss = rtwdev->efuse.hw_cap.nss; in rtw_debugfs_get_tx_pwr_tbl() local 712 max_ht_rate = DESC_RATEMCS0 + nss * 8 - 1; in rtw_debugfs_get_tx_pwr_tbl() 715 max_rate = DESC_RATEVHT1SS_MCS0 + nss * 10 - 1; in rtw_debugfs_get_tx_pwr_tbl() 828 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info() 842 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
|
| /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() 281 for (nss = 0; i < ARRAY_SIZE(mask->control[band]._mcs); i++) { \ 290 nss = i + 1; \ 300 u8 nss = 0, mode = 0, band = NL80211_BAND_2GHZ; in mt76_connac2_mac_tx_rate_val() local 354 return FIELD_PREP(MT_TX_RATE_NSS, nss) | in mt76_connac2_mac_tx_rate_val() 653 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs() 656 if (stbc && rate.nss > 1) in mt76_connac2_mac_fill_txs() 657 rate.nss >>= 1; in mt76_connac2_mac_fill_txs() [all …]
|
| /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 | 511 int nss; in ath12k_mac_max_ht_nss() local 513 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath12k_mac_max_ht_nss() 514 if (ht_mcs_mask[nss]) in ath12k_mac_max_ht_nss() 515 return nss + 1; in ath12k_mac_max_ht_nss() 523 int nss; in ath12k_mac_max_vht_nss() local 525 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_vht_nss() 526 if (vht_mcs_mask[nss]) in ath12k_mac_max_vht_nss() 527 return nss + 1; in ath12k_mac_max_vht_nss() 535 int nss; in ath12k_mac_max_he_nss() local 537 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_he_nss() [all …]
|
| H A D | dp_rx.c | 1192 u8 rate_mcs = rx_info->rate_mcs, nss = rx_info->nss; in ath12k_dp_rx_h_rate() local 1213 rx_status->rate_idx = rate_mcs + (8 * (nss - 1)); in ath12k_dp_rx_h_rate() 1227 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1241 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1256 rx_status->nss = nss; in ath12k_dp_rx_h_rate() 1275 rx_status->nss = 0; in ath12k_dp_rx_h_ppdu() 1371 status->nss, in ath12k_dp_rx_deliver_msdu()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
| H A D | mac.c | 255 u8 stbc, gi, bw, dcm, nss; in mt7925_mac_fill_rx_rate() local 264 nss = FIELD_GET(MT_PRXV_NSTS, v0) + 1; in mt7925_mac_fill_rx_rate() 288 status->nss = nss; in mt7925_mac_fill_rx_rate() 299 status->nss = nss; in mt7925_mac_fill_rx_rate() 311 status->nss = nss; in mt7925_mac_fill_rx_rate() 929 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7925_mac_add_txs_skb() 932 if (stbc && rate.nss > 1) in mt7925_mac_add_txs_skb() 933 rate.nss >>= 1; in mt7925_mac_add_txs_skb() 935 if (rate.nss - 1 < ARRAY_SIZE(stats->tx_nss)) in mt7925_mac_add_txs_skb() 936 stats->tx_nss[rate.nss - 1]++; in mt7925_mac_add_txs_skb()
|
| /linux/net/mac80211/ |
| 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 | rx.c | 588 vht.mcs_nss[0] = (status->rate_idx << 4) | status->nss; in ieee80211_add_rx_radiotap_header() 647 he.data6 |= HE_PREP(DATA6_NSTS, status->nss); in ieee80211_add_rx_radiotap_header() 5556 !status->nss || in ieee80211_rx_list() 5557 status->nss > 8, in ieee80211_rx_list() 5559 status->rate_idx, status->nss)) in ieee80211_rx_list() 5564 !status->nss || in ieee80211_rx_list() 5565 status->nss > 8, in ieee80211_rx_list() 5567 status->rate_idx, status->nss)) in ieee80211_rx_list() 5572 !status->nss || in ieee80211_rx_list() 5573 status->nss > 8 || in ieee80211_rx_list() [all …]
|
| /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 | 1493 bitrate *= rate->nss; in cfg80211_calculate_bitrate_he() 1501 WARN_ONCE(1, "invalid rate bw=%d, mcs=%d, nss=%d\n", in cfg80211_calculate_bitrate_he() 1502 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_he() 1543 if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8)) in cfg80211_calculate_bitrate_he() 1583 tmp *= rate->nss; in _cfg80211_calculate_bitrate_eht_uhr() 1632 if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8)) in _cfg80211_calculate_bitrate_eht_uhr() 1718 tmp *= rate->nss; 1723 if (WARN(rate->nss ! in cfg80211_calculate_bitrate_eht() [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/drivers/net/wireless/ath/ath11k/ |
| 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()
|
| H A D | dp_rx.c | 1375 u8 flags, mcs, nss, bw, sgi, dcm, rate_idx = 0; in ath11k_update_per_peer_tx_stats() local 1404 nss = HTT_USR_RATE_NSS(user_rate->rate_flags) + 1; in ath11k_update_per_peer_tx_stats() 1424 if (flags == WMI_RATE_PREAMBLE_HT && (mcs > ATH11K_HT_MCS_MAX || nss < 1)) { in ath11k_update_per_peer_tx_stats() 1426 mcs, nss); in ath11k_update_per_peer_tx_stats() 1462 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath11k_update_per_peer_tx_stats() 1484 arsta->txrate.nss = nss; in ath11k_update_per_peer_tx_stats() 2315 u8 rate_mcs, nss; in ath11k_dp_rx_h_rate() local 2322 nss = ath11k_dp_rx_h_msdu_start_nss(ar->ab, rx_desc); in ath11k_dp_rx_h_rate() 2341 rx_status->rate_idx = rate_mcs + (8 * (nss - 1)); in ath11k_dp_rx_h_rate() 2355 rx_status->nss = nss; in ath11k_dp_rx_h_rate() [all …]
|
| H A D | hal_rx.h | 79 nss:3, member 139 u8 nss; member
|
| /linux/arch/s390/include/asm/ |
| H A D | ipl.h | 101 } nss; member
|
| /linux/fs/nilfs2/ |
| H A D | cpfile.c | 468 int ret, ncps, nicps, nss, count, i; in nilfs_cpfile_delete_checkpoints() local 483 nss = 0; in nilfs_cpfile_delete_checkpoints() 501 nss++; in nilfs_cpfile_delete_checkpoints() 546 if (nss > 0) in nilfs_cpfile_delete_checkpoints()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | mac.c | 280 u8 stbc, gi, bw, dcm, nss; in mt7996_mac_fill_rx_rate() local 289 nss = FIELD_GET(MT_PRXV_NSTS, v0) + 1; in mt7996_mac_fill_rx_rate() 313 status->nss = nss; in mt7996_mac_fill_rx_rate() 324 status->nss = nss; in mt7996_mac_fill_rx_rate() 336 status->nss = nss; in mt7996_mac_fill_rx_rate() 1453 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7996_mac_add_txs_skb() 1456 if (stbc && rate.nss > 1) in mt7996_mac_add_txs_skb() 1457 rate.nss >>= 1; in mt7996_mac_add_txs_skb() 1459 if (rate.nss - 1 < ARRAY_SIZE(stats->tx_nss)) in mt7996_mac_add_txs_skb() 1460 stats->tx_nss[rate.nss - 1]++; in mt7996_mac_add_txs_skb()
|