/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()
|
/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 | 499 int nss; in mt7915_set_stream_vht_txbf_caps() local 505 nss = hweight8(phy->mt76->chainmask); in mt7915_set_stream_vht_txbf_caps() 516 if (nss < 2) in mt7915_set_stream_vht_txbf_caps() 522 nss - 1); in mt7915_set_stream_vht_txbf_caps() 527 int vif, int nss) in mt7915_set_stream_he_txbf_caps() argument 570 if (nss < 2) in mt7915_set_stream_he_txbf_caps() 574 elem->phy_cap_info[7] |= min_t(int, nss - 1, 2) << 3; in mt7915_set_stream_he_txbf_caps() 583 c = (nss - 1) | (max_t(int, le16_to_cpu(mcs->tx_mcs_160), 1) << 3); in mt7915_set_stream_he_txbf_caps() 592 mt7915_gen_ppe_thresh(u8 *he_ppet, int nss) in mt7915_gen_ppe_thresh() argument 597 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->deflink.rx_nss > 3 ? 4 : sta->deflink.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 | 530 status->nss = in mt7915_mac_fill_rx() 542 status->nss = in mt7915_mac_fill_rx() 687 u8 bw, mode, nss = td->tx_rate_nss; in mt7915_mac_write_txwi_tm() local 699 nss = 1 + (rate_idx >> 3); in mt7915_mac_write_txwi_tm() 752 if (td->tx_rate_stbc && nss == 1) { in mt7915_mac_write_txwi_tm() 753 nss++; in mt7915_mac_write_txwi_tm() 759 FIELD_PREP(MT_TX_RATE_NSS, nss - 1); in mt7915_mac_write_txwi_tm() 1479 int nss, i; in mt7915_phy_get_nf() local 1481 for (nss = 0; nss < hweight8(phy->mt76->chainmask); nss++) { in mt7915_phy_get_nf() 1482 u32 reg = MT_WF_IRPI(nss + (idx << dev->dbdc_support)); in mt7915_phy_get_nf()
|
/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 …]
|
/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 | 337 int nss; in ath11k_mac_max_ht_nss() local 339 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss() 340 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss() 341 return nss + 1; in ath11k_mac_max_ht_nss() 349 int nss; in ath11k_mac_max_vht_nss() local 351 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss() 352 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss() 353 return nss + 1; in ath11k_mac_max_vht_nss() 1033 int nss; in ath11k_peer_assoc_h_ht_masked() local 1035 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()
|
D | dp_rx.c | 1367 u8 flags, mcs, nss, bw, sgi, dcm, rate_idx = 0; in ath11k_update_per_peer_tx_stats() local 1399 nss = HTT_USR_RATE_NSS(user_rate->rate_flags) + 1; in ath11k_update_per_peer_tx_stats() 1419 if (flags == WMI_RATE_PREAMBLE_HT && (mcs > ATH11K_HT_MCS_MAX || nss < 1)) { in ath11k_update_per_peer_tx_stats() 1421 mcs, nss); in ath11k_update_per_peer_tx_stats() 1457 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath11k_update_per_peer_tx_stats() 1479 arsta->txrate.nss = nss; in ath11k_update_per_peer_tx_stats() 2266 u8 rate_mcs, nss; in ath11k_dp_rx_h_rate() local 2273 nss = ath11k_dp_rx_h_msdu_start_nss(ar->ab, rx_desc); in ath11k_dp_rx_h_rate() 2292 rx_status->rate_idx = rate_mcs + (8 * (nss - 1)); in ath11k_dp_rx_h_rate() 2306 rx_status->nss = nss; in ath11k_dp_rx_h_rate() [all …]
|
/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 …]
|
/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->deflink.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 …]
|
/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 | 198 mt76_get_txs_delta(struct device_node *np, u8 nss) in mt76_get_txs_delta() argument 203 val = mt76_get_of_array(np, "txs-delta", &len, nss); in mt76_get_txs_delta() 207 return be32_to_cpu(val[nss - 1]); in mt76_get_txs_delta()
|
/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 …]
|
D | debugfs_sta.c | 705 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()
|
/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() 1027 sinfo->txrate.nss = stats->tx_rate.nss; in mt7921_sta_statistics()
|
/drivers/net/wireless/mediatek/mt7601u/ |
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()
|
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()
|
/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mac.c | 460 status->nss = FIELD_GET(MT_RXV2_NSTS, rxdg1) + 1; in mt7615_mac_fill_rx() 566 u8 phy, nss, rate_idx; in mt7615_mac_tx_rate_val() local 573 nss = ieee80211_rate_get_vht_nss(rate); in mt7615_mac_tx_rate_val() 583 nss = 1 + (rate->idx >> 3); in mt7615_mac_tx_rate_val() 594 nss = 1; in mt7615_mac_tx_rate_val() 605 if (stbc && nss == 1) { in mt7615_mac_tx_rate_val() 606 nss++; in mt7615_mac_tx_rate_val() 612 FIELD_PREP(MT_TX_RATE_NSS, nss - 1)); in mt7615_mac_tx_rate_val()
|