| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A D | mt792x_core.c | 575 struct rate_info *txrate = &msta->deflink.wcid.rate; in mt792x_sta_statistics() local 577 if (!txrate->legacy && !txrate->flags) in mt792x_sta_statistics() 580 if (txrate->legacy) { in mt792x_sta_statistics() 581 sinfo->txrate.legacy = txrate->legacy; in mt792x_sta_statistics() 583 sinfo->txrate.mcs = txrate->mcs; in mt792x_sta_statistics() 584 sinfo->txrate.nss = txrate->nss; in mt792x_sta_statistics() 585 sinfo->txrate.bw = txrate->bw; in mt792x_sta_statistics() 586 sinfo->txrate.he_gi = txrate->he_gi; in mt792x_sta_statistics() 587 sinfo->txrate.he_dcm = txrate->he_dcm; in mt792x_sta_statistics() 588 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt792x_sta_statistics() [all …]
|
| H A D | mt76x02_mac.c | 279 mt76x02_mac_process_tx_rate(struct ieee80211_tx_rate *txrate, u16 rate, in mt76x02_mac_process_tx_rate() argument 284 txrate->idx = 0; in mt76x02_mac_process_tx_rate() 285 txrate->flags = 0; in mt76x02_mac_process_tx_rate() 286 txrate->count = 1; in mt76x02_mac_process_tx_rate() 293 txrate->idx = idx; in mt76x02_mac_process_tx_rate() 299 txrate->idx = idx; in mt76x02_mac_process_tx_rate() 302 txrate->flags |= IEEE80211_TX_RC_GREEN_FIELD; in mt76x02_mac_process_tx_rate() 305 txrate->flags |= IEEE80211_TX_RC_MCS; in mt76x02_mac_process_tx_rate() 306 txrate->idx = idx; in mt76x02_mac_process_tx_rate() 309 txrate->flags |= IEEE80211_TX_RC_VHT_MCS; in mt76x02_mac_process_tx_rate() [all …]
|
| H A D | mt76_connac_mac.c | 622 u32 txrate, txs, mode, stbc; in mt76_connac2_mac_fill_txs() local 649 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt76_connac2_mac_fill_txs() 651 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt76_connac2_mac_fill_txs() 652 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs() 653 stbc = FIELD_GET(MT_TX_RATE_STBC, txrate); in mt76_connac2_mac_fill_txs() 663 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt76_connac2_mac_fill_txs() 706 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt76_connac2_mac_fill_txs()
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | dp_tx.c | 493 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_dp_tx_update_txcompl() 508 arsta->txrate.nss = arsta->last_txrate.nss; in ath11k_dp_tx_update_txcompl() 510 arsta->txrate.nss = arsta->peer_nss; in ath11k_dp_tx_update_txcompl() 520 arsta->txrate.legacy = rate; in ath11k_dp_tx_update_txcompl() 527 if (arsta->txrate.nss != 0) in ath11k_dp_tx_update_txcompl() 528 arsta->txrate.mcs = mcs + 8 * (arsta->txrate.nss - 1); in ath11k_dp_tx_update_txcompl() 529 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_dp_tx_update_txcompl() 531 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_dp_tx_update_txcompl() 538 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl() 539 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_dp_tx_update_txcompl() [all …]
|
| H A D | debugfs_sta.c | 21 struct rate_info *txrate = &arsta->txrate; in ath11k_debugfs_sta_add_tx_stats() local 29 gi = FIELD_GET(RATE_INFO_FLAGS_SHORT_GI, arsta->txrate.flags); in ath11k_debugfs_sta_add_tx_stats() 30 mcs = txrate->mcs; in ath11k_debugfs_sta_add_tx_stats() 31 bw = ath11k_mac_mac80211_bw_to_ath11k_bw(txrate->bw); in ath11k_debugfs_sta_add_tx_stats() 32 nss = txrate->nss - 1; in ath11k_debugfs_sta_add_tx_stats() 36 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats() 43 } else if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath11k_debugfs_sta_add_tx_stats() 50 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats() 71 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats() 76 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats()
|
| H A D | dp_rx.c | 1477 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_update_per_peer_tx_stats() 1481 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats() 1484 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats() 1487 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath11k_update_per_peer_tx_stats() 1488 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_update_per_peer_tx_stats() 1490 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats() 1493 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats() 1494 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_update_per_peer_tx_stats() 1496 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats() 1499 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats() [all …]
|
| H A D | mac.c | 9174 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics() 9175 if (arsta->txrate.legacy) { in ath11k_mac_op_sta_statistics() 9176 sinfo->txrate.legacy = arsta->txrate.legacy; in ath11k_mac_op_sta_statistics() 9178 sinfo->txrate.mcs = arsta->txrate.mcs; in ath11k_mac_op_sta_statistics() 9179 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics() 9180 sinfo->txrate.bw = arsta->txrate.bw; in ath11k_mac_op_sta_statistics() 9181 sinfo->txrate.he_gi = arsta->txrate.he_gi; in ath11k_mac_op_sta_statistics() 9182 sinfo->txrate.he_dcm = arsta->txrate.he_dcm; in ath11k_mac_op_sta_statistics() 9183 sinfo->txrate.he_ru_alloc = arsta->txrate.he_ru_alloc; in ath11k_mac_op_sta_statistics() 9185 sinfo->txrate.flags = arsta->txrate.flags; in ath11k_mac_op_sta_statistics()
|
| /freebsd/sys/contrib/dev/athk/ath10k/ |
| H A D | htt_rx.c | 3820 struct rate_info *txrate = &arsta->txrate; in ath10k_accumulate_per_peer_tx_stats() local 3829 flags = txrate->flags; in ath10k_accumulate_per_peer_tx_stats() 3832 bw = txrate->bw; in ath10k_accumulate_per_peer_tx_stats() 3833 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats() 3840 if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3847 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3868 if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3924 if (txrate->flags >= RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats() 3946 struct rate_info txrate; in ath10k_update_per_peer_tx_stats() local 3950 txrate.flags = ATH10K_HW_PREAMBLE(peer_stats->ratecode); in ath10k_update_per_peer_tx_stats() [all …]
|
| H A D | mac.c | 9390 &sinfo->txrate); in ath10k_mac_sta_get_peer_stats_info() 9416 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath10k_sta_statistics() 9417 if (arsta->txrate.legacy) { in ath10k_sta_statistics() 9418 sinfo->txrate.legacy = arsta->txrate.legacy; in ath10k_sta_statistics() 9420 sinfo->txrate.mcs = arsta->txrate.mcs; in ath10k_sta_statistics() 9421 sinfo->txrate.nss = arsta->txrate.nss; in ath10k_sta_statistics() 9422 sinfo->txrate.bw = arsta->txrate.bw; in ath10k_sta_statistics() 9424 sinfo->txrate.flags = arsta->txrate.flags; in ath10k_sta_statistics()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | main.c | 1158 struct rate_info *txrate = &msta->wcid.rate; in mt7915_sta_statistics() local 1166 if (txrate->legacy || txrate->flags) { in mt7915_sta_statistics() 1167 if (txrate->legacy) { in mt7915_sta_statistics() 1168 sinfo->txrate.legacy = txrate->legacy; in mt7915_sta_statistics() 1170 sinfo->txrate.mcs = txrate->mcs; in mt7915_sta_statistics() 1171 sinfo->txrate.nss = txrate->nss; in mt7915_sta_statistics() 1172 sinfo->txrate.bw = txrate->bw; in mt7915_sta_statistics() 1173 sinfo->txrate.he_gi = txrate->he_gi; in mt7915_sta_statistics() 1174 sinfo->txrate.he_dcm = txrate->he_dcm; in mt7915_sta_statistics() 1175 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt7915_sta_statistics() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | main.c | 1664 struct rate_info *txrate = &msta_link->wcid.rate; in mt7996_sta_statistics() local 1666 if (txrate->legacy || txrate->flags) { in mt7996_sta_statistics() 1667 if (txrate->legacy) { in mt7996_sta_statistics() 1668 sinfo->txrate.legacy = txrate->legacy; in mt7996_sta_statistics() 1670 sinfo->txrate.mcs = txrate->mcs; in mt7996_sta_statistics() 1671 sinfo->txrate.nss = txrate->nss; in mt7996_sta_statistics() 1672 sinfo->txrate.bw = txrate->bw; in mt7996_sta_statistics() 1673 sinfo->txrate.he_gi = txrate->he_gi; in mt7996_sta_statistics() 1674 sinfo->txrate.he_dcm = txrate->he_dcm; in mt7996_sta_statistics() 1675 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt7996_sta_statistics() [all …]
|
| H A D | mac.c | 1464 u32 txrate, txs, mode, stbc; in mt7996_mac_add_txs_skb() local 1495 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7996_mac_add_txs_skb() 1497 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt7996_mac_add_txs_skb() 1498 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7996_mac_add_txs_skb() 1509 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt7996_mac_add_txs_skb() 1552 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt7996_mac_add_txs_skb()
|
| /freebsd/sys/dev/ath/ath_rate/onoe/ |
| H A D | onoe.c | 114 u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur, in ath_rate_findrate() argument 122 *txrate = on->on_tx_rate0sp; in ath_rate_findrate() 124 *txrate = on->on_tx_rate0; in ath_rate_findrate()
|
| /freebsd/sys/dev/ath/ath_rate/amrr/ |
| H A D | amrr.c | 106 u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur, in ath_rate_findrate() argument 114 *txrate = amn->amn_tx_rate0sp; in ath_rate_findrate() 116 *txrate = amn->amn_tx_rate0; in ath_rate_findrate()
|
| /freebsd/sys/dev/ath/ |
| H A D | if_athrate.h | 141 u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur,
|
| H A D | if_ath_tx.c | 1569 u_int8_t rix = 0, txrate = 0; in ath_tx_normal_setup() local 1670 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup() 1672 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup() 1679 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup() 1681 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup() 1694 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup() 1696 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup() 1701 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup() 1703 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup() 1880 bf->bf_state.bfs_rc[0].ratecode = txrate; in ath_tx_normal_setup() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | dp_rx.c | 1427 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath12k_update_per_peer_tx_stats() 1431 arsta->txrate.legacy = rate; in ath12k_update_per_peer_tx_stats() 1434 arsta->txrate.legacy = rate; in ath12k_update_per_peer_tx_stats() 1437 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath12k_update_per_peer_tx_stats() 1438 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath12k_update_per_peer_tx_stats() 1440 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_update_per_peer_tx_stats() 1443 arsta->txrate.mcs = mcs; in ath12k_update_per_peer_tx_stats() 1444 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath12k_update_per_peer_tx_stats() 1446 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_update_per_peer_tx_stats() 1449 arsta->txrate.mcs = mcs; in ath12k_update_per_peer_tx_stats() [all …]
|
| H A D | mac.c | 6879 if (!arsta->txrate.legacy && !arsta->txrate.nss) in ath12k_mac_op_sta_statistics() 6882 if (arsta->txrate.legacy) { in ath12k_mac_op_sta_statistics() 6883 sinfo->txrate.legacy = arsta->txrate.legacy; in ath12k_mac_op_sta_statistics() 6885 sinfo->txrate.mcs = arsta->txrate.mcs; in ath12k_mac_op_sta_statistics() 6886 sinfo->txrate.nss = arsta->txrate.nss; in ath12k_mac_op_sta_statistics() 6887 sinfo->txrate.bw = arsta->txrate.bw; in ath12k_mac_op_sta_statistics() 6888 sinfo->txrate.he_gi = arsta->txrate.he_gi; in ath12k_mac_op_sta_statistics() 6889 sinfo->txrate.he_dcm = arsta->txrate.he_dcm; in ath12k_mac_op_sta_statistics() 6890 sinfo->txrate.he_ru_alloc = arsta->txrate.he_ru_alloc; in ath12k_mac_op_sta_statistics() 6892 sinfo->txrate.flags = arsta->txrate.flags; in ath12k_mac_op_sta_statistics()
|
| H A D | core.h | 413 struct rate_info txrate; member
|
| /freebsd/sys/contrib/dev/rtw88/ |
| H A D | fw.c | 158 si->ra_report.txrate.flags = 0; in rtw_fw_ra_report_iter() 168 si->ra_report.txrate.legacy = rtw_desc_to_bitrate(rate); in rtw_fw_ra_report_iter() 174 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in rtw_fw_ra_report_iter() 176 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_MCS; in rtw_fw_ra_report_iter() 179 si->ra_report.txrate.mcs = mcs; in rtw_fw_ra_report_iter() 180 si->ra_report.txrate.nss = nss; in rtw_fw_ra_report_iter() 184 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in rtw_fw_ra_report_iter() 187 si->ra_report.txrate.bw = RATE_INFO_BW_80; in rtw_fw_ra_report_iter() 189 si->ra_report.txrate.bw = RATE_INFO_BW_40; in rtw_fw_ra_report_iter() 191 si->ra_report.txrate.bw = RATE_INFO_BW_20; in rtw_fw_ra_report_iter() [all …]
|
| H A D | mac80211.c | 745 sinfo->txrate = si->ra_report.txrate; in rtw_ops_sta_statistics()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7925/ |
| H A D | mac.c | 901 u32 txrate, txs, mode, stbc; in mt7925_mac_add_txs_skb() local 920 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7925_mac_add_txs_skb() 922 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt7925_mac_add_txs_skb() 923 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7925_mac_add_txs_skb() 934 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt7925_mac_add_txs_skb() 975 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt7925_mac_add_txs_skb()
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | phy.c | 2966 memset(&ra_report->txrate, 0, sizeof(ra_report->txrate)); in __rtw89_phy_c2h_ra_rpt_iter() 2970 ra_report->txrate.legacy = legacy_bitrate; in __rtw89_phy_c2h_ra_rpt_iter() 2973 ra_report->txrate.flags |= RATE_INFO_FLAGS_MCS; in __rtw89_phy_c2h_ra_rpt_iter() 2979 ra_report->txrate.mcs = rate; in __rtw89_phy_c2h_ra_rpt_iter() 2981 ra_report->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in __rtw89_phy_c2h_ra_rpt_iter() 2982 mcs = ra_report->txrate.mcs & 0x07; in __rtw89_phy_c2h_ra_rpt_iter() 2985 ra_report->txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in __rtw89_phy_c2h_ra_rpt_iter() 2986 ra_report->txrate.mcs = format_v1 ? in __rtw89_phy_c2h_ra_rpt_iter() 2989 ra_report->txrate.nss = format_v1 ? in __rtw89_phy_c2h_ra_rpt_iter() 2993 ra_report->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in __rtw89_phy_c2h_ra_rpt_iter() [all …]
|
| /freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/ |
| H A D | wlan_snmp.h | 45 uint8_t txrate; member
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/ |
| H A D | stats.c | 169 struct rate_info *rinfo = &sinfo->txrate; in iwl_mld_sta_stats_fill_txrate()
|