Home
last modified time | relevance | path

Searched refs:nss (Results 1 – 25 of 95) sorted by relevance

1234

/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/
D11ac.c46 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 …]
Dtdls.c245 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-v6.1/drivers/net/wireless/realtek/rtlwifi/
Drc.c23 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-v6.1/drivers/net/wireless/mediatek/mt76/mt7915/
Deeprom.c176 u8 nss, nss_band, nss_band_max, *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_hw_cap() local
184 nss = FIELD_GET(MT_EE_WIFI_CONF0_TX_PATH, in mt7915_eeprom_parse_hw_cap()
187 nss = FIELD_GET(MT_EE_WIFI_CONF0_TX_PATH, in mt7915_eeprom_parse_hw_cap()
191 if (!nss || nss > 4) in mt7915_eeprom_parse_hw_cap()
192 nss = 4; in mt7915_eeprom_parse_hw_cap()
195 nss_band = nss; in mt7915_eeprom_parse_hw_cap()
219 if (nss_band > nss) { in mt7915_eeprom_parse_hw_cap()
222 nss, nss_band, phy->band_idx, ext_phy); in mt7915_eeprom_parse_hw_cap()
223 nss = nss_band; in mt7915_eeprom_parse_hw_cap()
226 mphy->chainmask = BIT(nss) - 1; in mt7915_eeprom_parse_hw_cap()
Dinit.c703 int nss; in mt7915_set_stream_vht_txbf_caps() local
709 nss = hweight8(phy->mt76->chainmask); in mt7915_set_stream_vht_txbf_caps()
720 if (nss < 2) in mt7915_set_stream_vht_txbf_caps()
726 nss - 1); in mt7915_set_stream_vht_txbf_caps()
732 int vif, int nss) in mt7915_set_stream_he_txbf_caps() argument
739 nss_160 = nss / 2; in mt7915_set_stream_he_txbf_caps()
741 nss_160 = nss; in mt7915_set_stream_he_txbf_caps()
781 if (nss < 2) in mt7915_set_stream_he_txbf_caps()
785 elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3; in mt7915_set_stream_he_txbf_caps()
797 nss - 1) | in mt7915_set_stream_he_txbf_caps()
[all …]
Dmcu.c38 u8 nss; in mt7915_mcu_get_sta_nss() local
40 for (nss = 8; nss > 0; nss--) { in mt7915_mcu_get_sta_nss()
41 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss()
47 return nss - 1; in mt7915_mcu_get_sta_nss()
58 int nss, max_nss = sta->deflink.rx_nss > 3 ? 4 : sta->deflink.rx_nss; in mt7915_mcu_set_sta_he_mcs() local
60 for (nss = 0; nss < max_nss; nss++) { in mt7915_mcu_set_sta_he_mcs()
63 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7915_mcu_set_sta_he_mcs()
77 mcs = mcs ? fls(mcs & mask[nss]) - 1 : -1; in mt7915_mcu_set_sta_he_mcs()
93 mcs_map &= ~(0x3 << (nss * 2)); in mt7915_mcu_set_sta_he_mcs()
94 mcs_map |= mcs << (nss * 2); in mt7915_mcu_set_sta_he_mcs()
[all …]
/Linux-v6.1/drivers/net/wireless/realtek/rtw88/
Dutil.c82 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()
Dmain.c949 int i, nss; in get_vht_ra_mask() local
952 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask()
956 ra_mask |= 0x3ffULL << nss; in get_vht_ra_mask()
959 ra_mask |= 0x1ffULL << nss; in get_vht_ra_mask()
962 ra_mask |= 0x0ffULL << nss; in get_vht_ra_mask()
1183 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info()
1522 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap()
1570 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap()
1881 efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); in rtw_dump_hw_feature()
1887 if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE || in rtw_dump_hw_feature()
[all …]
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/fw/
Drs.c117 u32 nss = 0; in iwl_new_rate_from_v1() local
122 nss = (rate_v1 & RATE_HT_MCS_MIMO2_MSK) >> in iwl_new_rate_from_v1()
124 rate_v2 |= nss << RATE_MCS_NSS_POS; in iwl_new_rate_from_v1()
195 u8 mcs = 0, nss = 0; in rs_pretty_print_rate() local
227 nss = ((rate & RATE_MCS_NSS_MSK) in rs_pretty_print_rate()
235 rate, type, iwl_rs_pretty_ant(ant), iwl_rs_pretty_bw(bw), mcs, nss, in rs_pretty_print_rate()
/Linux-v6.1/drivers/net/wireless/ath/ath11k/
Ddebugfs_sta.c21 int gi, mcs, bw, nss; in ath11k_debugfs_sta_add_tx_stats() local
30 nss = txrate->nss - 1; in ath11k_debugfs_sta_add_tx_stats()
87 STATS_OP_FMT(AMPDU).nss[0][nss] += in ath11k_debugfs_sta_add_tx_stats()
93 STATS_OP_FMT(AMPDU).nss[1][nss] += in ath11k_debugfs_sta_add_tx_stats()
102 STATS_OP_FMT(SUCC).nss[0][nss] += peer_stats->succ_bytes; in ath11k_debugfs_sta_add_tx_stats()
106 STATS_OP_FMT(SUCC).nss[1][nss] += peer_stats->succ_pkts; in ath11k_debugfs_sta_add_tx_stats()
110 STATS_OP_FMT(FAIL).nss[0][nss] += peer_stats->failed_bytes; in ath11k_debugfs_sta_add_tx_stats()
114 STATS_OP_FMT(FAIL).nss[1][nss] += peer_stats->failed_pkts; in ath11k_debugfs_sta_add_tx_stats()
118 STATS_OP_FMT(RETRY).nss[0][nss] += peer_stats->retry_bytes; in ath11k_debugfs_sta_add_tx_stats()
122 STATS_OP_FMT(RETRY).nss[1][nss] += peer_stats->retry_pkts; in ath11k_debugfs_sta_add_tx_stats()
[all …]
Dmac.c434 int nss; in ath11k_mac_max_ht_nss() local
436 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss()
437 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss()
438 return nss + 1; in ath11k_mac_max_ht_nss()
446 int nss; in ath11k_mac_max_vht_nss() local
448 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss()
449 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss()
450 return nss + 1; in ath11k_mac_max_vht_nss()
458 int nss; in ath11k_mac_max_he_nss() local
460 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_he_nss()
[all …]
Dhal_rx.c978 ppdu_info->nss = 1; in ath11k_hal_rx_parse_mon_status_tlv()
981 ppdu_info->nss = 2; in ath11k_hal_rx_parse_mon_status_tlv()
984 ppdu_info->nss = 3; in ath11k_hal_rx_parse_mon_status_tlv()
987 ppdu_info->nss = 4; in ath11k_hal_rx_parse_mon_status_tlv()
991 if (ppdu_info->nss > 1) in ath11k_hal_rx_parse_mon_status_tlv()
1046 ppdu_info->nss = (nsts & VHT_SIG_SU_NSS_MASK) + 1; in ath11k_hal_rx_parse_mon_status_tlv()
1060 ppdu_info->nss); in ath11k_hal_rx_parse_mon_status_tlv()
1193 ppdu_info->nss = value; in ath11k_hal_rx_parse_mon_status_tlv()
1390 ppdu_info->nss = in ath11k_hal_rx_parse_mon_status_tlv()
1429 ppdu_info->nss = in ath11k_hal_rx_parse_mon_status_tlv()
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/mvm/
Drs-fw.c111 int nss) in rs_fw_vht_highest_rx_mcs_index() argument
114 (0x3 << (2 * (nss - 1))); in rs_fw_vht_highest_rx_mcs_index()
115 rx_mcs >>= (2 * (nss - 1)); in rs_fw_vht_highest_rx_mcs_index()
150 int nss = i + 1; in rs_fw_vht_set_enabled_rates() local
152 highest_mcs = rs_fw_vht_highest_rx_mcs_index(vht_cap, nss); in rs_fw_vht_set_enabled_rates()
169 0, true, nss) >= nss) in rs_fw_vht_set_enabled_rates()
205 u8 nss = sta->deflink.rx_nss; in rs_fw_he_set_enabled_rates() local
209 nss = 1; in rs_fw_he_set_enabled_rates()
211 for (i = 0; i < nss && i < IWL_TLC_NSS_MAX; i++) { in rs_fw_he_set_enabled_rates()
Drs.c846 u8 nss; in rs_rate_from_ucode_rate() local
883 nss = ((ucode_rate & RATE_HT_MCS_NSS_MSK_V1) >> in rs_rate_from_ucode_rate()
886 if (nss == 1) { in rs_rate_from_ucode_rate()
891 } else if (nss == 2) { in rs_rate_from_ucode_rate()
898 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
901 if (nss == 1) { in rs_rate_from_ucode_rate()
906 } else if (nss == 2) { in rs_rate_from_ucode_rate()
913 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
916 if (nss == 1) { in rs_rate_from_ucode_rate()
920 } else if (nss == 2) { in rs_rate_from_ucode_rate()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/net/
Dipq806x-dwmac.txt12 - qcom,nss-common: should contain a phandle to a syscon device mapping the
13 nss-common registers.
27 qcom,nss-common = <&nss_common>;
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.c183 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 …]
Dmt76x02_txrx.c67 u8 nss, idx; in mt76x02_tx_get_max_txpwr_adj() local
69 nss = ieee80211_rate_get_vht_nss(rate); in mt76x02_tx_get_max_txpwr_adj()
70 idx = ((nss - 1) << 3) + mcs; in mt76x02_tx_get_max_txpwr_adj()
Deeprom.c214 mt76_get_txs_delta(struct device_node *np, u8 nss) in mt76_get_txs_delta() argument
219 val = mt76_get_of_array(np, "txs-delta", &len, nss); in mt76_get_txs_delta()
223 return be32_to_cpu(val[nss - 1]); in mt76_get_txs_delta()
Dmt76_connac_mac.c584 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs()
586 if (rate.nss - 1 < ARRAY_SIZE(stats->tx_nss)) in mt76_connac2_mac_fill_txs()
587 stats->tx_nss[rate.nss - 1]++; in mt76_connac2_mac_fill_txs()
962 u8 stbc, gi, bw, dcm, nss; in mt76_connac2_mac_fill_rx_rate() local
970 nss = FIELD_GET(MT_PRXV_NSTS, v0) + 1; in mt76_connac2_mac_fill_rx_rate()
1005 status->nss = nss; in mt76_connac2_mac_fill_rx_rate()
1016 status->nss = nss; in mt76_connac2_mac_fill_rx_rate()
/Linux-v6.1/drivers/net/wireless/ath/ath10k/
Dmac.c177 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument
179 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map()
190 int nss; in ath10k_mac_max_ht_nss() local
192 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath10k_mac_max_ht_nss()
193 if (ht_mcs_mask[nss]) in ath10k_mac_max_ht_nss()
194 return nss + 1; in ath10k_mac_max_ht_nss()
202 int nss; in ath10k_mac_max_vht_nss() local
204 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath10k_mac_max_vht_nss()
205 if (vht_mcs_mask[nss]) in ath10k_mac_max_vht_nss()
206 return nss + 1; in ath10k_mac_max_vht_nss()
[all …]
Dhtt_rx.c984 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local
1024 nss = mcs >> 3; in ath10k_htt_rx_h_rates()
1049 nss = (nsts_su >> 2) + 1; in ath10k_htt_rx_h_rates()
1051 nss = (nsts_su + 1); in ath10k_htt_rx_h_rates()
1064 nss = 1; in ath10k_htt_rx_h_rates()
1091 status->nss = nss; in ath10k_htt_rx_h_rates()
1293 status->nss = 0; in ath10k_htt_rx_h_ppdu()
1391 status->nss, in ath10k_process_rx()
3673 int idx, ht_idx, gi, mcs, bw, nss; in ath10k_accumulate_per_peer_tx_stats() local
3684 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats()
[all …]
/Linux-v6.1/net/mac80211/
Dvht.c628 u8 nss; in __ieee80211_vht_handle_opmode() local
634 nss = opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_MASK; in __ieee80211_vht_handle_opmode()
635 nss >>= IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT; in __ieee80211_vht_handle_opmode()
636 nss += 1; in __ieee80211_vht_handle_opmode()
638 if (link_sta->pub->rx_nss != nss) { in __ieee80211_vht_handle_opmode()
639 link_sta->pub->rx_nss = nss; in __ieee80211_vht_handle_opmode()
640 sta_opmode.rx_nss = nss; in __ieee80211_vht_handle_opmode()
Drc80211_minstrel_ht.c287 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()
1762 int bw, nss; in minstrel_ht_update_caps() local
1782 nss = minstrel_mcs_groups[i].streams; in minstrel_ht_update_caps()
1785 if (sta->deflink.smps_mode == IEEE80211_SMPS_STATIC && nss > 1) in minstrel_ht_update_caps()
1793 mi->supported[i] = mcs->rx_mask[nss - 1]; in minstrel_ht_update_caps()
[all …]
Dairtime.c432 streams = status->nss; in ieee80211_get_rate_duration()
442 streams = status->nss; in ieee80211_get_rate_duration()
517 stat->nss = ri->nss; in ieee80211_fill_rate_info()
582 stat->nss = ieee80211_rate_get_vht_nss(rate); in ieee80211_fill_rx_status()
/Linux-v6.1/fs/nfs/
Dnfs4file.c144 struct nl4_server *nss = NULL; in __nfs4_copy_file_range() local
180 nss = &cn_resp->cnr_src; in __nfs4_copy_file_range()
184 nss, cnrs, sync); in __nfs4_copy_file_range()

1234