/Linux-v5.15/drivers/net/wireless/marvell/mwifiex/ |
D | 11ac.c | 58 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 …]
|
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-v5.15/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | eeprom.c | 89 u8 nss, nss_band, *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_hw_cap() local 94 nss = FIELD_GET(MT_EE_WIFI_CONF0_TX_PATH, eeprom[MT_EE_WIFI_CONF]); in mt7915_eeprom_parse_hw_cap() 95 if (!nss || nss > 4) in mt7915_eeprom_parse_hw_cap() 96 nss = 4; in mt7915_eeprom_parse_hw_cap() 98 nss_band = nss; in mt7915_eeprom_parse_hw_cap() 106 if (nss_band >= nss) in mt7915_eeprom_parse_hw_cap() 107 nss = 4; in mt7915_eeprom_parse_hw_cap() 110 dev->chainmask = BIT(nss) - 1; in mt7915_eeprom_parse_hw_cap()
|
D | init.c | 497 int nss; in mt7915_set_stream_vht_txbf_caps() local 503 nss = hweight8(phy->mt76->chainmask); in mt7915_set_stream_vht_txbf_caps() 514 if (nss < 2) in mt7915_set_stream_vht_txbf_caps() 520 nss - 1); in mt7915_set_stream_vht_txbf_caps() 525 int vif, int nss) in mt7915_set_stream_he_txbf_caps() argument 568 if (nss < 2) in mt7915_set_stream_he_txbf_caps() 572 elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3; in mt7915_set_stream_he_txbf_caps() 581 c = (nss - 1) | (max_t(int, le16_to_cpu(mcs->tx_mcs_160), 1) << 3); in mt7915_set_stream_he_txbf_caps() 590 mt7915_gen_ppe_thresh(u8 *he_ppet, int nss) in mt7915_gen_ppe_thresh() argument 595 he_ppet[0] = FIELD_PREP(IEEE80211_PPE_THRES_NSS_MASK, nss - 1) | in mt7915_gen_ppe_thresh() [all …]
|
D | mcu.c | 200 u8 nss; in mt7915_mcu_get_sta_nss() local 202 for (nss = 8; nss > 0; nss--) { in mt7915_mcu_get_sta_nss() 203 u8 nss_mcs = (mcs_map >> (2 * (nss - 1))) & 3; in mt7915_mcu_get_sta_nss() 209 return nss - 1; in mt7915_mcu_get_sta_nss() 218 int nss, max_nss = sta->rx_nss > 3 ? 4 : sta->rx_nss; in mt7915_mcu_set_sta_he_mcs() local 233 for (nss = 0; nss < max_nss; nss++) { in mt7915_mcu_set_sta_he_mcs() 236 switch ((mcs_map >> (2 * nss)) & 0x3) { in mt7915_mcu_set_sta_he_mcs() 250 mcs = mcs ? fls(mcs & mask[nss]) - 1 : -1; in mt7915_mcu_set_sta_he_mcs() 266 mcs_map &= ~(0x3 << (nss * 2)); in mt7915_mcu_set_sta_he_mcs() 267 mcs_map |= mcs << (nss * 2); in mt7915_mcu_set_sta_he_mcs() [all …]
|
D | mac.c | 523 status->nss = in mt7915_mac_fill_rx() 535 status->nss = in mt7915_mac_fill_rx() 680 u8 bw, mode, nss = td->tx_rate_nss; in mt7915_mac_write_txwi_tm() local 692 nss = 1 + (rate_idx >> 3); in mt7915_mac_write_txwi_tm() 745 if (td->tx_rate_stbc && nss == 1) { in mt7915_mac_write_txwi_tm() 746 nss++; in mt7915_mac_write_txwi_tm() 752 FIELD_PREP(MT_TX_RATE_NSS, nss - 1); in mt7915_mac_write_txwi_tm() 1469 int nss, i; in mt7915_phy_get_nf() local 1471 for (nss = 0; nss < hweight8(phy->mt76->chainmask); nss++) { in mt7915_phy_get_nf() 1472 u32 reg = MT_WF_IRPI(nss + (idx << dev->dbdc_support)); in mt7915_phy_get_nf()
|
/Linux-v5.15/drivers/net/wireless/realtek/rtlwifi/ |
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-v5.15/drivers/net/wireless/realtek/rtw88/ |
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()
|
D | main.c | 853 int i, nss; in get_vht_ra_mask() local 856 for (i = 0, nss = 12; i < 4; i++, mcs_map >>= 2, nss += 10) { in get_vht_ra_mask() 860 ra_mask |= 0x3ffULL << nss; in get_vht_ra_mask() 863 ra_mask |= 0x1ffULL << nss; in get_vht_ra_mask() 866 ra_mask |= 0x0ffULL << nss; in get_vht_ra_mask() 1070 if (efuse->hw_cap.nss == 1) in rtw_update_sta_info() 1351 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap() 1399 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap() 1660 efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); in rtw_dump_hw_feature() 1666 if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE || in rtw_dump_hw_feature() [all …]
|
/Linux-v5.15/drivers/net/wireless/ath/ath11k/ |
D | debugfs_sta.c | 21 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 …]
|
D | mac.c | 336 int nss; in ath11k_mac_max_ht_nss() local 338 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss() 339 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss() 340 return nss + 1; in ath11k_mac_max_ht_nss() 348 int nss; in ath11k_mac_max_vht_nss() local 350 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss() 351 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss() 352 return nss + 1; in ath11k_mac_max_vht_nss() 1028 int nss; in ath11k_peer_assoc_h_ht_masked() local 1030 for (nss = 0; nss < IEEE80211_HT_MCS_MASK_LEN; nss++) in ath11k_peer_assoc_h_ht_masked() [all …]
|
D | hal_rx.c | 871 ppdu_info->nss = 1; in ath11k_hal_rx_parse_mon_status_tlv() 874 ppdu_info->nss = 2; in ath11k_hal_rx_parse_mon_status_tlv() 877 ppdu_info->nss = 3; in ath11k_hal_rx_parse_mon_status_tlv() 880 ppdu_info->nss = 4; in ath11k_hal_rx_parse_mon_status_tlv() 884 if (ppdu_info->nss > 1) in ath11k_hal_rx_parse_mon_status_tlv() 939 ppdu_info->nss = (nsts & VHT_SIG_SU_NSS_MASK) + 1; in ath11k_hal_rx_parse_mon_status_tlv() 993 ppdu_info->nss = nsts + 1; in ath11k_hal_rx_parse_mon_status_tlv() 1053 ppdu_info->nss = in ath11k_hal_rx_parse_mon_status_tlv() 1069 ppdu_info->nss = in ath11k_hal_rx_parse_mon_status_tlv()
|
/Linux-v5.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs-fw.c | 112 int nss) in rs_fw_vht_highest_rx_mcs_index() argument 115 (0x3 << (2 * (nss - 1))); in rs_fw_vht_highest_rx_mcs_index() 116 rx_mcs >>= (2 * (nss - 1)); in rs_fw_vht_highest_rx_mcs_index() 151 int nss = i + 1; in rs_fw_vht_set_enabled_rates() local 153 highest_mcs = rs_fw_vht_highest_rx_mcs_index(vht_cap, nss); in rs_fw_vht_set_enabled_rates() 170 0, true, nss) >= nss) in rs_fw_vht_set_enabled_rates() 206 u8 nss = 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()
|
D | rs.c | 890 u8 nss; in rs_rate_from_ucode_rate() local 927 nss = ((ucode_rate & RATE_HT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate() 930 if (nss == 1) { in rs_rate_from_ucode_rate() 935 } else if (nss == 2) { in rs_rate_from_ucode_rate() 942 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate() 945 if (nss == 1) { in rs_rate_from_ucode_rate() 950 } else if (nss == 2) { in rs_rate_from_ucode_rate() 957 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate() 960 if (nss == 1) { in rs_rate_from_ucode_rate() 964 } else if (nss == 2) { in rs_rate_from_ucode_rate() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/net/ |
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-v5.15/drivers/net/wireless/mediatek/mt76/ |
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 …]
|
D | mt76x02_txrx.c | 67 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()
|
D | eeprom.c | 195 mt76_get_txs_delta(struct device_node *np, u8 nss) in mt76_get_txs_delta() argument 200 val = mt76_get_of_array(np, "txs-delta", &len, nss); in mt76_get_txs_delta() 204 return be32_to_cpu(val[nss - 1]); in mt76_get_txs_delta()
|
/Linux-v5.15/drivers/net/wireless/ath/ath10k/ |
D | mac.c | 177 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 …]
|
D | htt_rx.c | 948 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local 979 nss = mcs >> 3; in ath10k_htt_rx_h_rates() 1004 nss = (nsts_su >> 2) + 1; in ath10k_htt_rx_h_rates() 1006 nss = (nsts_su + 1); in ath10k_htt_rx_h_rates() 1019 nss = 1; in ath10k_htt_rx_h_rates() 1046 status->nss = nss; in ath10k_htt_rx_h_rates() 1228 status->nss = 0; in ath10k_htt_rx_h_ppdu() 1326 status->nss, in ath10k_process_rx() 3542 int idx, ht_idx, gi, mcs, bw, nss; in ath10k_accumulate_per_peer_tx_stats() local 3553 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats() [all …]
|
/Linux-v5.15/net/mac80211/ |
D | vht.c | 568 u8 nss; in __ieee80211_vht_handle_opmode() local 574 nss = opmode & IEEE80211_OPMODE_NOTIF_RX_NSS_MASK; in __ieee80211_vht_handle_opmode() 575 nss >>= IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT; in __ieee80211_vht_handle_opmode() 576 nss += 1; in __ieee80211_vht_handle_opmode() 578 if (sta->sta.rx_nss != nss) { in __ieee80211_vht_handle_opmode() 579 sta->sta.rx_nss = nss; in __ieee80211_vht_handle_opmode() 580 sta_opmode.rx_nss = nss; in __ieee80211_vht_handle_opmode()
|
D | rc80211_minstrel_ht.c | 288 minstrel_get_valid_vht_rates(int bw, int nss, __le16 mcs_map) in minstrel_get_valid_vht_rates() argument 293 if (nss != 3 && nss != 6) in minstrel_get_valid_vht_rates() 296 if (nss == 3 || nss == 7) in minstrel_get_valid_vht_rates() 298 else if (nss == 6) in minstrel_get_valid_vht_rates() 304 switch ((le16_to_cpu(mcs_map) >> (2 * (nss - 1))) & 3) { in minstrel_get_valid_vht_rates() 1638 int bw, nss; in minstrel_ht_update_caps() local 1658 nss = minstrel_mcs_groups[i].streams; in minstrel_ht_update_caps() 1661 if (sta->smps_mode == IEEE80211_SMPS_STATIC && nss > 1) in minstrel_ht_update_caps() 1669 mi->supported[i] = mcs->rx_mask[nss - 1]; in minstrel_ht_update_caps() 1696 mi->supported[i] = minstrel_get_valid_vht_rates(bw, nss, in minstrel_ht_update_caps()
|
D | airtime.c | 437 streams = status->nss; in ieee80211_get_rate_duration() 447 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-v5.15/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | main.c | 12 mt7921_gen_ppe_thresh(u8 *he_ppet, int nss) in mt7921_gen_ppe_thresh() argument 17 he_ppet[0] = FIELD_PREP(IEEE80211_PPE_THRES_NSS_MASK, nss - 1) | in mt7921_gen_ppe_thresh() 22 nss * hweight8(ru_bit_mask) * 2; in mt7921_gen_ppe_thresh() 37 int nss = hweight8(phy->mt76->chainmask); in mt7921_init_he_caps() local 41 if (i < nss) in mt7921_init_he_caps() 140 mt7921_gen_ppe_thresh(he_cap->ppe_thres, nss); in mt7921_init_he_caps() 1060 sinfo->txrate.nss = stats->tx_rate.nss; in mt7921_sta_statistics()
|
/Linux-v5.15/fs/nfs/ |
D | nfs4file.c | 141 struct nl4_server *nss = NULL; in __nfs4_copy_file_range() local 177 nss = &cn_resp->cnr_src; in __nfs4_copy_file_range() 181 nss, cnrs, sync); in __nfs4_copy_file_range()
|