| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | eeprom.c | 66 u8 *rx_path, u8 *nss) in mt7996_eeprom_parse_stream() argument 74 *nss = FIELD_GET(MT_EE_WIFI_CONF5_STREAM_NUM_BAND1, in mt7996_eeprom_parse_stream() 82 *nss = FIELD_GET(MT_EE_WIFI_CONF5_STREAM_NUM_BAND2, in mt7996_eeprom_parse_stream() 90 *nss = FIELD_GET(MT_EE_WIFI_CONF4_STREAM_NUM_BAND0, in mt7996_eeprom_parse_stream() 118 u8 path, rx_path, nss; in mt7996_eeprom_variant_valid() local 124 mt7996_eeprom_parse_stream(eeprom, i, &path, &rx_path, &nss); in mt7996_eeprom_variant_valid() 127 if (path > def_path || rx_path > def_rx_path || nss > def_nss) in mt7996_eeprom_variant_valid() 222 u8 *path, u8 *rx_path, u8 *nss) in mt7996_eeprom_parse_efuse_hw_cap() argument 240 *nss = min_t(u8, *nss, STREAM_CAP(1 + band_offs)); in mt7996_eeprom_parse_efuse_hw_cap() 290 u8 path, rx_path, nss, band_idx = phy->mt76->band_idx; in mt7996_eeprom_parse_hw_cap() local [all …]
|
| /freebsd/sys/net80211/ |
| H A D | ieee80211_phy.c | 666 ieee80211_phy_vht_get_mcs_mask(enum net80211_sta_rx_bw bw, uint8_t nss) in ieee80211_phy_vht_get_mcs_mask() argument 668 if (nss == 0 || nss > 8) in ieee80211_phy_vht_get_mcs_mask() 673 return (ieee80211_vht_mcs_allowed_list_20[nss - 1]); in ieee80211_phy_vht_get_mcs_mask() 675 return (ieee80211_vht_mcs_allowed_list_40[nss - 1]); in ieee80211_phy_vht_get_mcs_mask() 677 return (ieee80211_vht_mcs_allowed_list_80[nss - 1]); in ieee80211_phy_vht_get_mcs_mask() 679 return (ieee80211_vht_mcs_allowed_list_160[nss - 1]); in ieee80211_phy_vht_get_mcs_mask() 699 ieee80211_phy_vht_validate_mcs(enum net80211_sta_rx_bw bw, uint8_t nss, in ieee80211_phy_vht_validate_mcs() argument 704 mask = ieee80211_phy_vht_get_mcs_mask(bw, nss); in ieee80211_phy_vht_validate_mcs() 750 uint8_t nss, uint8_t mcs, bool is_shortgi) in ieee80211_phy_vht_get_mcs_kbit() argument 757 if (nss == 0 || nss > 8) in ieee80211_phy_vht_get_mcs_kbit() [all …]
|
| H A D | ieee80211_amrr.c | 278 uint8_t nss, mcs; in amrr_update_vht_inc() local 287 nss = amn->amn_vht_nss; in amrr_update_vht_inc() 290 while (nss <= 8 && mcs <= 9) { in amrr_update_vht_inc() 294 nss++; in amrr_update_vht_inc() 297 if (nss > 8) in amrr_update_vht_inc() 300 if (ieee80211_vht_node_check_tx_valid_mcs(ni, ni->ni_chw, nss, in amrr_update_vht_inc() 302 amn->amn_vht_nss = nss; in amrr_update_vht_inc() 313 uint8_t nss, mcs; in amrr_update_vht_dec() local 322 nss = amn->amn_vht_nss; in amrr_update_vht_dec() 325 while (nss >= 1 && mcs >= 0) { in amrr_update_vht_dec() [all …]
|
| H A D | ieee80211_node.h | 151 uint8_t nss; /* VHT - number of spatial streams */ member 158 .nss = 0, \ 164 .nss = 0, \ 170 .nss = (i_nss), \ 554 uint8_t nss, uint8_t mcs);
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | eeprom.c | 222 u8 path, nss, nss_max = 4, *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_hw_cap() local 241 nss = path; in mt7915_eeprom_parse_hw_cap() 245 nss = FIELD_GET(MT_EE_WIFI_CONF3_TX_PATH_B0, in mt7915_eeprom_parse_hw_cap() 248 nss = FIELD_GET(MT_EE_WIFI_CONF3_TX_PATH_B1, in mt7915_eeprom_parse_hw_cap() 251 nss = FIELD_GET(MT_EE_WIFI_CONF_STREAM_NUM, in mt7915_eeprom_parse_hw_cap() 259 if (!nss) in mt7915_eeprom_parse_hw_cap() 260 nss = nss_max; in mt7915_eeprom_parse_hw_cap() 261 nss = min_t(u8, min_t(u8, nss_max, nss), path); in mt7915_eeprom_parse_hw_cap() 266 mphy->antenna_mask = BIT(nss) - 1; in mt7915_eeprom_parse_hw_cap()
|
| /freebsd/sys/contrib/dev/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()
|
| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | rs.c | 52 uint8_t nss; in iwl_mvm_update_frame_stats() local 59 nss = 1 + ((rate & RATE_HT_MCS_NSS_MSK_V1) >> RATE_HT_MCS_NSS_POS_V1); in iwl_mvm_update_frame_stats() 62 nss = 1 + FIELD_GET(RATE_MCS_NSS_MSK, rate); in iwl_mvm_update_frame_stats() 65 nss = 0; in iwl_mvm_update_frame_stats() 89 switch (nss) { in iwl_mvm_update_frame_stats()
|
| H A D | rs-fw.c | 114 int nss) in rs_fw_vht_highest_rx_mcs_index() argument 117 (0x3 << (2 * (nss - 1))); in rs_fw_vht_highest_rx_mcs_index() 118 rx_mcs >>= (2 * (nss - 1)); in rs_fw_vht_highest_rx_mcs_index() 153 int nss = i + 1; in rs_fw_vht_set_enabled_rates() local 155 highest_mcs = rs_fw_vht_highest_rx_mcs_index(vht_cap, nss); in rs_fw_vht_set_enabled_rates() 172 0, true, nss) >= nss) in rs_fw_vht_set_enabled_rates() 206 u8 nss = link_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()
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | tlc.c | 137 int nss) in iwl_mld_get_highest_fw_mcs() argument 140 (0x3 << (2 * (nss - 1))); in iwl_mld_get_highest_fw_mcs() 141 rx_mcs >>= (2 * (nss - 1)); in iwl_mld_get_highest_fw_mcs() 176 int nss = i + 1; in iwl_mld_fill_vht_rates() local 178 highest_mcs = iwl_mld_get_highest_fw_mcs(vht_cap, nss); in iwl_mld_fill_vht_rates() 194 0, true, nss) >= nss) in iwl_mld_fill_vht_rates() 228 u8 nss = link_sta->rx_nss; in iwl_mld_fill_he_rates() local 232 nss = 1; in iwl_mld_fill_he_rates() 234 for (i = 0; i < nss && i < IWL_TLC_NSS_MAX; i++) { in iwl_mld_fill_he_rates() 498 for (int nss = 0; nss < ARRAY_SIZE(cmd->ht_rates); nss++) in iwl_mld_convert_tlc_cmd_to_v4() local [all …]
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | dp_mon.c | 20 rx_status->nss = ppdu_info->nss; in ath12k_dp_mon_fill_rx_stats_info() 114 u8 rate_mcs, nss, sgi; in ath12k_dp_mon_fill_rx_rate() local 119 nss = ppdu_info->nss; in ath12k_dp_mon_fill_rx_rate() 142 rx_status->rate_idx = rate_mcs + (8 * (nss - 1)); in ath12k_dp_mon_fill_rx_rate() 399 rxs->nss = ppduinfo->nss; in ath12k_dp_mon_update_radiotap() 563 status->nss, in ath12k_dp_mon_rx_deliver_msdu() 828 u32 nss_idx = (user_stats) ? user_stats->nss - 1 : ppdu_info->nss - 1; in ath12k_dp_mon_rx_update_peer_rate_table_stats() 878 ppdu_info->nss = 1; in ath12k_dp_mon_rx_update_peer_su_stats() 913 if (ppdu_info->nss > 0 && ppdu_info->nss <= HAL_RX_MAX_NSS) { in ath12k_dp_mon_rx_update_peer_su_stats() 914 rx_stats->pkt_stats.nss_count[ppdu_info->nss - 1] += num_msdu; in ath12k_dp_mon_rx_update_peer_su_stats() [all …]
|
| H A D | debugfs_sta.c | 26 int mcs = 0, bw = 0, nss = 0, gi = 0, bw_num = 0; in ath12k_dbg_sta_dump_rate_stats() local 86 if (stats->rx_rate[bw][gi][nss][mcs]) { in ath12k_dbg_sta_dump_rate_stats() 114 bw_num, gi, nss + 1, nss + 1); in ath12k_dbg_sta_dump_rate_stats() 117 if (stats->rx_rate[bw][gi][nss][mcs]) in ath12k_dbg_sta_dump_rate_stats() 120 stats->rx_rate[bw][gi][nss][mcs]); in ath12k_dbg_sta_dump_rate_stats() 124 if (nss++ >= max_mcs - 1) { in ath12k_dbg_sta_dump_rate_stats() 125 nss = 0; in ath12k_dbg_sta_dump_rate_stats()
|
| H A D | mac.c | 510 int nss; in ath12k_mac_max_ht_nss() local 512 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath12k_mac_max_ht_nss() 513 if (ht_mcs_mask[nss]) in ath12k_mac_max_ht_nss() 514 return nss + 1; in ath12k_mac_max_ht_nss() 522 int nss; in ath12k_mac_max_vht_nss() local 524 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_vht_nss() 525 if (vht_mcs_mask[nss]) in ath12k_mac_max_vht_nss() 526 return nss + 1; in ath12k_mac_max_vht_nss() 534 int nss; in ath12k_mac_max_he_nss() local 536 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath12k_mac_max_he_nss() [all …]
|
| H A D | debugfs.c | 349 static u16 ath12k_get_ratecode(u16 pream_idx, u16 nss, u16 mcs_rate) in ath12k_get_ratecode() argument 397 return ((mode_type << 8) | ((nss & 0x7) << 5) | (mcs_rate & 0x1F)); in ath12k_get_ratecode() 425 int nss, rates, chains; in ath12k_tpc_fill_pream() local 457 for (nss = 0; nss < max_nss; nss++) { in ath12k_tpc_fill_pream() 474 rate_code = ath12k_get_ratecode(pream_bw, nss, rates); in ath12k_tpc_fill_pream() 480 if (nss > chains) { in ath12k_tpc_fill_pream() 520 u8 nss, active_tx_chains; in ath12k_tpc_stats_print() local 627 nss = (max_nss[i - 1] < num_tx_chain ? in ath12k_tpc_stats_print() 630 rate_idx[i] = rate_idx[i - 1] + max_rates[i - 1] * nss; in ath12k_tpc_stats_print() 633 eht_rate_idx[j] = eht_rate_idx[j - 1] + max_rates[i] * nss; in ath12k_tpc_stats_print() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | debugfs_sta.c | 22 int gi, mcs, bw, nss; in ath11k_debugfs_sta_add_tx_stats() local 31 nss = txrate->nss - 1; in ath11k_debugfs_sta_add_tx_stats() 88 STATS_OP_FMT(AMPDU).nss[0][nss] += in ath11k_debugfs_sta_add_tx_stats() 94 STATS_OP_FMT(AMPDU).nss[1][nss] += in ath11k_debugfs_sta_add_tx_stats() 103 STATS_OP_FMT(SUCC).nss[0][nss] += peer_stats->succ_bytes; in ath11k_debugfs_sta_add_tx_stats() 107 STATS_OP_FMT(SUCC).nss[1][nss] += peer_stats->succ_pkts; in ath11k_debugfs_sta_add_tx_stats() 111 STATS_OP_FMT(FAIL).nss[0][nss] += peer_stats->failed_bytes; in ath11k_debugfs_sta_add_tx_stats() 115 STATS_OP_FMT(FAIL).nss[1][nss] += peer_stats->failed_pkts; in ath11k_debugfs_sta_add_tx_stats() 119 STATS_OP_FMT(RETRY).nss[0][nss] += peer_stats->retry_bytes; in ath11k_debugfs_sta_add_tx_stats() 123 STATS_OP_FMT(RETRY).nss[1][nss] += peer_stats->retry_pkts; in ath11k_debugfs_sta_add_tx_stats() [all …]
|
| H A D | mac.c | 436 int nss; in ath11k_mac_max_ht_nss() local 438 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss() 439 if (ht_mcs_mask[nss]) in ath11k_mac_max_ht_nss() 440 return nss + 1; in ath11k_mac_max_ht_nss() 448 int nss; in ath11k_mac_max_vht_nss() local 450 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss() 451 if (vht_mcs_mask[nss]) in ath11k_mac_max_vht_nss() 452 return nss + 1; in ath11k_mac_max_vht_nss() 460 int nss; in ath11k_mac_max_he_nss() local 462 for (nss = NL80211_HE_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_he_nss() [all …]
|
| /freebsd/sys/contrib/device-tree/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>;
|
| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A 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 …]
|
| 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 …]
|
| H A 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()
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/ |
| H A D | rs.c | 97 u8 mcs = 0, nss = 0; in rs_pretty_print_rate() local 134 nss = u32_get_bits(rate, RATE_MCS_NSS_MSK); in rs_pretty_print_rate() 141 rate, type, iwl_rs_pretty_ant(ant), iwl_rs_pretty_bw(bw), mcs, nss, in rs_pretty_print_rate()
|
| /freebsd/sys/contrib/dev/athk/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 | 1001 u8 cck, rate, bw, sgi, mcs, nss; in ath10k_htt_rx_h_rates() local 1041 nss = mcs >> 3; in ath10k_htt_rx_h_rates() 1066 nss = (nsts_su >> 2) + 1; in ath10k_htt_rx_h_rates() 1068 nss = (nsts_su + 1); in ath10k_htt_rx_h_rates() 1081 nss = 1; in ath10k_htt_rx_h_rates() 1108 status->nss = nss; in ath10k_htt_rx_h_rates() 1314 status->nss = 0; in ath10k_htt_rx_h_ppdu() 1412 status->nss, in ath10k_process_rx() 3820 int idx, ht_idx, gi, mcs, bw, nss; in ath10k_accumulate_per_peer_tx_stats() local 3831 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats() [all …]
|
| /freebsd/contrib/ldns/drill/ |
| H A D | chasetrace.c | 61 ldns_dnssec_rrsets *nss = NULL; in set_nss_for_name() local 72 nss = ldns_dnssec_zone_find_rrset( in set_nss_for_name() 74 if (nss != NULL) { in set_nss_for_name() 92 for (nss_rrs = nss->rrs; nss_rrs; nss_rrs = nss_rrs->next) { in set_nss_for_name() 112 for (nss_rrs = nss->rrs; nss_rrs; nss_rrs = nss_rrs->next) { in set_nss_for_name()
|
| /freebsd/contrib/unbound/contrib/ |
| H A D | unbound_portable.service.in | 18 Before=nss-lookup.target 19 Wants=nss-lookup.target
|
| /freebsd/sys/contrib/dev/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() 924 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7925_mac_add_txs_skb() 927 if (stbc && rate.nss > 1) in mt7925_mac_add_txs_skb() 928 rate.nss >>= 1; in mt7925_mac_add_txs_skb() 930 if (rate.nss - 1 < ARRAY_SIZE(stats->tx_nss)) in mt7925_mac_add_txs_skb() 931 stats->tx_nss[rate.nss - 1]++; in mt7925_mac_add_txs_skb()
|