Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/net/wireless/marvell/mwifiex/
D11ac.c58 u8 i, nss, mcs; in mwifiex_convert_mcsmap_to_maxrate() local
69 nss = 1; in mwifiex_convert_mcsmap_to_maxrate()
73 nss = i; in mwifiex_convert_mcsmap_to_maxrate()
75 mcs = GET_VHTNSSMCS(mcs_map, nss); in mwifiex_convert_mcsmap_to_maxrate()
83 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate()
86 max_rate = max_rate_lgi_160MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate()
88 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs]; in mwifiex_convert_mcsmap_to_maxrate()
91 max_rate = max_rate_lgi_80MHZ[nss - 1][mcs - 1]; in mwifiex_convert_mcsmap_to_maxrate()
116 u16 mcs_user, mcs_resp, nss, tmp; in mwifiex_fill_vht_cap_tlv() local
126 for (nss = 1; nss <= 8; nss++) { in mwifiex_fill_vht_cap_tlv()
[all …]
Dtdls.c244 u16 mcs_user, mcs_resp, nss; in mwifiex_tdls_add_vht_oper() local
318 for (nss = 1; nss <= 8; nss++) { in mwifiex_tdls_add_vht_oper()
319 mcs_user = GET_VHTNSSMCS(mcs_map_user, nss); in mwifiex_tdls_add_vht_oper()
320 mcs_resp = GET_VHTNSSMCS(mcs_map_resp, nss); in mwifiex_tdls_add_vht_oper()
324 SET_VHTNSSMCS(mcs_map_result, nss, in mwifiex_tdls_add_vht_oper()
327 SET_VHTNSSMCS(mcs_map_result, nss, in mwifiex_tdls_add_vht_oper()
/Linux-v5.4/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-v5.4/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-v5.4/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mac.c161 u8 phy, rate_idx, nss, bw = 0; in mt76x02_mac_tx_rate_val() local
166 nss = 1 + (rate->idx >> 4); in mt76x02_mac_tx_rate_val()
174 nss = 1 + (rate->idx >> 3); in mt76x02_mac_tx_rate_val()
193 nss = 1; in mt76x02_mac_tx_rate_val()
202 *nss_val = nss; in mt76x02_mac_tx_rate_val()
212 s8 nss; in mt76x02_mac_wcid_set_rate() local
214 rateval = mt76x02_mac_tx_rate_val(dev, rate, &nss); in mt76x02_mac_wcid_set_rate()
216 FIELD_PREP(MT_WCID_TX_INFO_NSS, nss) | in mt76x02_mac_wcid_set_rate()
324 u8 nss; in mt76x02_mac_write_txwi() local
362 nss = FIELD_GET(MT_WCID_TX_INFO_NSS, wcid_tx_info); in mt76x02_mac_write_txwi()
[all …]
Dmt76x02_txrx.c68 u8 nss, idx; in mt76x02_tx_get_max_txpwr_adj() local
70 nss = ieee80211_rate_get_vht_nss(rate); in mt76x02_tx_get_max_txpwr_adj()
71 idx = ((nss - 1) << 3) + mcs; in mt76x02_tx_get_max_txpwr_adj()
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Drx.c110 rx_status->nss = 1; in rtw_rx_fill_rx_status()
114 rx_status->nss = 2; in rtw_rx_fill_rx_status()
118 rx_status->nss = 3; in rtw_rx_fill_rx_status()
122 rx_status->nss = 4; in rtw_rx_fill_rx_status()
Dmain.c408 int i, nss; in get_vht_ra_mask() local
411 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask()
415 ra_mask |= 0x3ffULL << nss; in get_vht_ra_mask()
418 ra_mask |= 0x1ffULL << nss; in get_vht_ra_mask()
421 ra_mask |= 0x0ffULL << nss; in get_vht_ra_mask()
603 if (efuse->hw_cap.nss == 1) { in rtw_update_sta_info()
784 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap()
824 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap()
1017 efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); in rtw_dump_hw_feature()
1023 if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE) in rtw_dump_hw_feature()
[all …]
Dtx.c101 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate()
114 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
/Linux-v5.4/net/mac80211/
Dvht.c507 u8 nss; in __ieee80211_vht_handle_opmode() local
513 nss = opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_MASK; in __ieee80211_vht_handle_opmode()
514 nss >>= IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT; in __ieee80211_vht_handle_opmode()
515 nss += 1; in __ieee80211_vht_handle_opmode()
517 if (sta->sta.rx_nss != nss) { in __ieee80211_vht_handle_opmode()
518 sta->sta.rx_nss = nss; in __ieee80211_vht_handle_opmode()
519 sta_opmode.rx_nss = nss; in __ieee80211_vht_handle_opmode()
Drc80211_minstrel_ht.c249 minstrel_get_valid_vht_rates(int bw, int nss, __le16 mcs_map) in minstrel_get_valid_vht_rates() argument
254 if (nss != 3 && nss != 6) in minstrel_get_valid_vht_rates()
257 if (nss == 3 || nss == 7) in minstrel_get_valid_vht_rates()
259 else if (nss == 6) in minstrel_get_valid_vht_rates()
265 switch ((le16_to_cpu(mcs_map) >> (2 * (nss - 1))) & 3) { in minstrel_get_valid_vht_rates()
1451 int bw, nss; in minstrel_ht_update_caps() local
1473 nss = minstrel_mcs_groups[i].streams; in minstrel_ht_update_caps()
1476 if (sta->smps_mode == IEEE80211_SMPS_STATIC && nss > 1) in minstrel_ht_update_caps()
1484 mi->supported[i] = mcs->rx_mask[nss - 1]; in minstrel_ht_update_caps()
1511 mi->supported[i] = minstrel_get_valid_vht_rates(bw, nss, in minstrel_ht_update_caps()
Dsta_info.h840 r |= STA_STATS_FIELD(VHT_NSS, s->nss); in sta_stats_encode_rate()
854 r |= STA_STATS_FIELD(HE_NSS, s->nss); in sta_stats_encode_rate()
Dmlme.c3426 u8 nss; in ieee80211_assoc_success() local
3428 nss = *elems.opmode_notif & IEEE80211_OPMODE_NOTIF_RX_NSS_MASK; in ieee80211_assoc_success()
3429 nss >>= IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT; in ieee80211_assoc_success()
3430 nss += 1; in ieee80211_assoc_success()
3431 sta->sta.rx_nss = nss; in ieee80211_assoc_success()
4661 u8 nss; in ieee80211_ht_vht_rx_chains() local
4666 for (nss = 8; nss > 0; nss--) { in ieee80211_ht_vht_rx_chains()
4667 if (((tx_mcs_map >> (2 * (nss - 1))) & 3) != in ieee80211_ht_vht_rx_chains()
4672 chains = max(chains, nss); in ieee80211_ht_vht_rx_chains()
4700 u8 nss; in ieee80211_verify_sta_he_mcs_support() local
[all …]
/Linux-v5.4/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c940 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local
970 nss = mcs >> 3; in ath10k_htt_rx_h_rates()
992 nss = ((info2 >> 10) & 0x07) + 1; in ath10k_htt_rx_h_rates()
1005 nss = 1; in ath10k_htt_rx_h_rates()
1032 status->nss = nss; in ath10k_htt_rx_h_rates()
1214 status->nss = 0; in ath10k_htt_rx_h_ppdu()
1305 status->nss, in ath10k_process_rx()
3336 int idx, ht_idx, gi, mcs, bw, nss; in ath10k_accumulate_per_peer_tx_stats() local
3347 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats()
3348 ht_idx = mcs + (nss - 1) * 8; in ath10k_accumulate_per_peer_tx_stats()
[all …]
Dmac.c165 static int ath10k_mac_get_max_vht_mcs_map(u16 mcs_map, int nss) in ath10k_mac_get_max_vht_mcs_map() argument
167 switch ((mcs_map >> (2 * nss)) & 0x3) { in ath10k_mac_get_max_vht_mcs_map()
178 int nss; in ath10k_mac_max_ht_nss() local
180 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath10k_mac_max_ht_nss()
181 if (ht_mcs_mask[nss]) in ath10k_mac_max_ht_nss()
182 return nss + 1; in ath10k_mac_max_ht_nss()
190 int nss; in ath10k_mac_max_vht_nss() local
192 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath10k_mac_max_vht_nss()
193 if (vht_mcs_mask[nss]) in ath10k_mac_max_vht_nss()
194 return nss + 1; in ath10k_mac_max_vht_nss()
[all …]
Ddebugfs_sta.c705 stats->nss[j][0], stats->nss[j][1], in ath10k_dbg_sta_dump_tx_stats()
706 stats->nss[j][2], stats->nss[j][3]); in ath10k_dbg_sta_dump_tx_stats()
Dcore.h477 u64 nss[ATH10K_COUNTER_TYPE_MAX][ATH10K_NSS_NUM]; member
495 u32 nss; member
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Drs.c886 u8 nss; in rs_rate_from_ucode_rate() local
923 nss = ((ucode_rate & RATE_HT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
926 if (nss == 1) { in rs_rate_from_ucode_rate()
931 } else if (nss == 2) { in rs_rate_from_ucode_rate()
938 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
941 if (nss == 1) { in rs_rate_from_ucode_rate()
946 } else if (nss == 2) { in rs_rate_from_ucode_rate()
953 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
956 if (nss == 1) { in rs_rate_from_ucode_rate()
960 } else if (nss == 2) { in rs_rate_from_ucode_rate()
[all …]
Drs-fw.c166 int nss) in rs_fw_vht_highest_rx_mcs_index() argument
169 (0x3 << (2 * (nss - 1))); in rs_fw_vht_highest_rx_mcs_index()
170 rx_mcs >>= (2 * (nss - 1)); in rs_fw_vht_highest_rx_mcs_index()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c147 status->nss = FIELD_GET(MT_RXV2_NSTS, rxdg1) + 1; in mt7615_mac_fill_rx()
254 u8 phy, nss, rate_idx; in mt7615_mac_tx_rate_val() local
261 nss = ieee80211_rate_get_vht_nss(rate); in mt7615_mac_tx_rate_val()
271 nss = 1 + (rate->idx >> 3); in mt7615_mac_tx_rate_val()
282 nss = 1; in mt7615_mac_tx_rate_val()
293 if (stbc && nss == 1) { in mt7615_mac_tx_rate_val()
294 nss++; in mt7615_mac_tx_rate_val()
300 FIELD_PREP(MT_TX_RATE_NSS, nss - 1)); in mt7615_mac_tx_rate_val()
/Linux-v5.4/arch/s390/include/asm/
Dipl.h78 } nss; member
/Linux-v5.4/drivers/net/wireless/mediatek/mt7601u/
Dtx.c141 u8 nss; in mt7601u_push_txwi() local
154 rate_ctl = mt76_mac_tx_rate_val(dev, rate, &nss); in mt7601u_push_txwi()
Dmac.c109 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-v5.4/fs/nilfs2/
Dcpfile.c322 int ret, ncps, nicps, nss, count, i; in nilfs_cpfile_delete_checkpoints() local
337 nss = 0; in nilfs_cpfile_delete_checkpoints()
356 nss++; in nilfs_cpfile_delete_checkpoints()
402 if (nss > 0) in nilfs_cpfile_delete_checkpoints()
/Linux-v5.4/net/wireless/
Dutil.c1207 bitrate *= rate->nss; in cfg80211_calculate_bitrate_vht()
1216 rate->bw, rate->mcs, rate->nss); in cfg80211_calculate_bitrate_vht()
1255 if (WARN_ON_ONCE(rate->nss < 1 || rate->nss > 8)) in cfg80211_calculate_bitrate_he()
1294 result = (result * rate->nss) / 8; in cfg80211_calculate_bitrate_he()

123