Home
last modified time | relevance | path

Searched refs:txrate (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt792x_core.c467 struct rate_info *txrate = &msta->wcid.rate; in mt792x_sta_statistics() local
469 if (!txrate->legacy && !txrate->flags) in mt792x_sta_statistics()
472 if (txrate->legacy) { in mt792x_sta_statistics()
473 sinfo->txrate.legacy = txrate->legacy; in mt792x_sta_statistics()
475 sinfo->txrate.mcs = txrate->mcs; in mt792x_sta_statistics()
476 sinfo->txrate.nss = txrate->nss; in mt792x_sta_statistics()
477 sinfo->txrate.bw = txrate->bw; in mt792x_sta_statistics()
478 sinfo->txrate.he_gi = txrate->he_gi; in mt792x_sta_statistics()
479 sinfo->txrate.he_dcm = txrate->he_dcm; in mt792x_sta_statistics()
480 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt792x_sta_statistics()
[all …]
H A Dmt76x02_mac.c284 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()
310 txrate->idx = idx; in mt76x02_mac_process_tx_rate()
[all …]
H A Dmt76_connac_mac.c607 u32 txrate, txs, mode, stbc; in mt76_connac2_mac_fill_txs() local
634 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt76_connac2_mac_fill_txs()
636 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt76_connac2_mac_fill_txs()
637 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs()
638 stbc = FIELD_GET(MT_TX_RATE_STBC, txrate); in mt76_connac2_mac_fill_txs()
648 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt76_connac2_mac_fill_txs()
691 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt76_connac2_mac_fill_txs()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmain.c978 if (txrate->legacy || txrate->flags) { in mt7996_sta_statistics()
979 if (txrate->legacy) { in mt7996_sta_statistics()
980 sinfo->txrate.legacy = txrate->legacy; in mt7996_sta_statistics()
982 sinfo->txrate.mcs = txrate->mcs; in mt7996_sta_statistics()
983 sinfo->txrate.nss = txrate->nss; in mt7996_sta_statistics()
984 sinfo->txrate.bw = txrate->bw; in mt7996_sta_statistics()
985 sinfo->txrate.he_gi = txrate->he_gi; in mt7996_sta_statistics()
986 sinfo->txrate.he_dcm = txrate->he_dcm; in mt7996_sta_statistics()
987 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt7996_sta_statistics()
989 sinfo->txrate.flags = txrate->flags; in mt7996_sta_statistics()
[all …]
H A Dmac.c1175 u32 txrate, txs, mode, stbc; in mt7996_mac_add_txs_skb() local
1194 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7996_mac_add_txs_skb()
1196 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt7996_mac_add_txs_skb()
1197 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7996_mac_add_txs_skb()
1208 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt7996_mac_add_txs_skb()
1249 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt7996_mac_add_txs_skb()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddp_tx.c488 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_dp_tx_update_txcompl()
503 arsta->txrate.nss = arsta->last_txrate.nss; in ath11k_dp_tx_update_txcompl()
505 arsta->txrate.nss = arsta->peer_nss; in ath11k_dp_tx_update_txcompl()
515 arsta->txrate.legacy = rate; in ath11k_dp_tx_update_txcompl()
522 if (arsta->txrate.nss != 0) in ath11k_dp_tx_update_txcompl()
523 arsta->txrate.mcs = mcs + 8 * (arsta->txrate.nss - 1); in ath11k_dp_tx_update_txcompl()
524 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_dp_tx_update_txcompl()
533 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl()
543 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl()
550 arsta->txrate.bw = RATE_INFO_BW_HE_RU; in ath11k_dp_tx_update_txcompl()
[all …]
H A Ddebugfs_sta.c19 struct rate_info *txrate = &arsta->txrate; in ath11k_debugfs_sta_add_tx_stats() local
27 gi = FIELD_GET(RATE_INFO_FLAGS_SHORT_GI, arsta->txrate.flags); in ath11k_debugfs_sta_add_tx_stats()
28 mcs = txrate->mcs; in ath11k_debugfs_sta_add_tx_stats()
29 bw = ath11k_mac_mac80211_bw_to_ath11k_bw(txrate->bw); in ath11k_debugfs_sta_add_tx_stats()
30 nss = txrate->nss - 1; in ath11k_debugfs_sta_add_tx_stats()
34 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats()
41 } else if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath11k_debugfs_sta_add_tx_stats()
48 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats()
69 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats()
74 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats()
H A Ddp_rx.c1488 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_update_per_peer_tx_stats()
1492 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats()
1495 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats()
1498 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath11k_update_per_peer_tx_stats()
1499 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_update_per_peer_tx_stats()
1504 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats()
1505 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_update_per_peer_tx_stats()
1510 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats()
1511 arsta->txrate.flags = RATE_INFO_FLAGS_HE_MCS; in ath11k_update_per_peer_tx_stats()
1512 arsta->txrate.he_dcm = dcm; in ath11k_update_per_peer_tx_stats()
[all …]
H A Dmac.c8642 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath11k_mac_op_sta_statistics()
8643 if (arsta->txrate.legacy) { in ath11k_mac_op_sta_statistics()
8644 sinfo->txrate.legacy = arsta->txrate.legacy; in ath11k_mac_op_sta_statistics()
8646 sinfo->txrate.mcs = arsta->txrate.mcs; in ath11k_mac_op_sta_statistics()
8647 sinfo->txrate.nss = arsta->txrate.nss; in ath11k_mac_op_sta_statistics()
8648 sinfo->txrate.bw = arsta->txrate.bw; in ath11k_mac_op_sta_statistics()
8649 sinfo->txrate.he_gi = arsta->txrate.he_gi; in ath11k_mac_op_sta_statistics()
8650 sinfo->txrate.he_dcm = arsta->txrate.he_dcm; in ath11k_mac_op_sta_statistics()
8651 sinfo->txrate.he_ru_alloc = arsta->txrate.he_ru_alloc; in ath11k_mac_op_sta_statistics()
8653 sinfo->txrate.flags = arsta->txrate.flags; in ath11k_mac_op_sta_statistics()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmain.c1070 struct rate_info *txrate = &msta->wcid.rate; in mt7915_sta_statistics() local
1079 if (txrate->legacy || txrate->flags) { in mt7915_sta_statistics()
1080 if (txrate->legacy) { in mt7915_sta_statistics()
1081 sinfo->txrate.legacy = txrate->legacy; in mt7915_sta_statistics()
1083 sinfo->txrate.mcs = txrate->mcs; in mt7915_sta_statistics()
1084 sinfo->txrate.nss = txrate->nss; in mt7915_sta_statistics()
1085 sinfo->txrate.bw = txrate->bw; in mt7915_sta_statistics()
1086 sinfo->txrate.he_gi = txrate->he_gi; in mt7915_sta_statistics()
1087 sinfo->txrate.he_dcm = txrate->he_dcm; in mt7915_sta_statistics()
1088 sinfo->txrate.he_ru_alloc = txrate->he_ru_alloc; in mt7915_sta_statistics()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dhtt_rx.c3816 struct rate_info *txrate = &arsta->txrate; in ath10k_accumulate_per_peer_tx_stats() local
3959 if (txrate.flags == WMI_RATE_PREAMBLE_VHT && txrate.mcs > 9) { in ath10k_update_per_peer_tx_stats()
3965 (txrate.mcs > 7 || txrate.nss < 1)) { in ath10k_update_per_peer_tx_stats()
3967 txrate.mcs, txrate.nss); in ath10k_update_per_peer_tx_stats()
3971 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath10k_update_per_peer_tx_stats()
3985 arsta->txrate.mcs = txrate.mcs + 8 * (txrate.nss - 1); in ath10k_update_per_peer_tx_stats()
3988 arsta->txrate.mcs = txrate.mcs; in ath10k_update_per_peer_tx_stats()
4007 txrate.mcs + ((txrate.nss - 1) * 8); in ath10k_update_per_peer_tx_stats()
4015 txrate.mcs, txrate.nss); in ath10k_update_per_peer_tx_stats()
4023 arsta->txrate.nss = txrate.nss; in ath10k_update_per_peer_tx_stats()
[all …]
H A Dmac.c9337 &sinfo->txrate); in ath10k_mac_sta_get_peer_stats_info()
9363 if (arsta->txrate.legacy || arsta->txrate.nss) { in ath10k_sta_statistics()
9364 if (arsta->txrate.legacy) { in ath10k_sta_statistics()
9365 sinfo->txrate.legacy = arsta->txrate.legacy; in ath10k_sta_statistics()
9367 sinfo->txrate.mcs = arsta->txrate.mcs; in ath10k_sta_statistics()
9368 sinfo->txrate.nss = arsta->txrate.nss; in ath10k_sta_statistics()
9369 sinfo->txrate.bw = arsta->txrate.bw; in ath10k_sta_statistics()
9371 sinfo->txrate.flags = arsta->txrate.flags; in ath10k_sta_statistics()
/freebsd/sys/dev/ath/ath_rate/onoe/
H A Donoe.c114 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 Damrr.c106 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 Dif_athrate.h141 u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur,
H A Dif_ath_tx.c1560 u_int8_t rix = 0, txrate = 0; in ath_tx_normal_setup() local
1657 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1659 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup()
1666 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1681 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1688 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1874 bf->bf_state.bfs_txrate0 = txrate; in ath_tx_normal_setup()
2145 u_int8_t rix, txrate; in ath_tx_raw_start() local
2269 txrate = rt->info[rix].rateCode; in ath_tx_raw_start()
2271 txrate |= rt->info[rix].shortPreamble; in ath_tx_raw_start()
[all …]
/freebsd/sys/contrib/dev/rtw88/
H A Dfw.c83 si->ra_report.txrate.flags = 0; in rtw_fw_ra_report_iter()
90 si->ra_report.txrate.legacy = rtw_desc_to_bitrate(rate); in rtw_fw_ra_report_iter()
96 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in rtw_fw_ra_report_iter()
98 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_MCS; in rtw_fw_ra_report_iter()
101 si->ra_report.txrate.mcs = mcs; in rtw_fw_ra_report_iter()
102 si->ra_report.txrate.nss = nss; in rtw_fw_ra_report_iter()
106 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in rtw_fw_ra_report_iter()
109 si->ra_report.txrate.bw = RATE_INFO_BW_80; in rtw_fw_ra_report_iter()
111 si->ra_report.txrate.bw = RATE_INFO_BW_40; in rtw_fw_ra_report_iter()
113 si->ra_report.txrate.bw = RATE_INFO_BW_20; in rtw_fw_ra_report_iter()
[all …]
H A Dmac80211.c729 sinfo->txrate = si->ra_report.txrate; in rtw_ops_sta_statistics()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp_rx.c1427 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()
1443 arsta->txrate.mcs = mcs; in ath12k_update_per_peer_tx_stats()
1449 arsta->txrate.mcs = mcs; in ath12k_update_per_peer_tx_stats()
1450 arsta->txrate.flags = RATE_INFO_FLAGS_HE_MCS; in ath12k_update_per_peer_tx_stats()
1451 arsta->txrate.he_dcm = dcm; in ath12k_update_per_peer_tx_stats()
1456 arsta->txrate.he_ru_alloc = v; in ath12k_update_per_peer_tx_stats()
[all …]
H A Dmac.c6879 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 Dcore.h413 struct rate_info txrate; member
/freebsd/sys/contrib/dev/rtw89/
H A Dphy.c2304 memset(&ra_report->txrate, 0, sizeof(ra_report->txrate)); in rtw89_phy_c2h_ra_rpt_iter()
2308 ra_report->txrate.legacy = legacy_bitrate; in rtw89_phy_c2h_ra_rpt_iter()
2311 ra_report->txrate.flags |= RATE_INFO_FLAGS_MCS; in rtw89_phy_c2h_ra_rpt_iter()
2317 ra_report->txrate.mcs = rate; in rtw89_phy_c2h_ra_rpt_iter()
2320 mcs = ra_report->txrate.mcs & 0x07; in rtw89_phy_c2h_ra_rpt_iter()
2324 ra_report->txrate.mcs = format_v1 ? in rtw89_phy_c2h_ra_rpt_iter()
2327 ra_report->txrate.nss = format_v1 ? in rtw89_phy_c2h_ra_rpt_iter()
2332 mcs = ra_report->txrate.mcs; in rtw89_phy_c2h_ra_rpt_iter()
2336 ra_report->txrate.mcs = format_v1 ? in rtw89_phy_c2h_ra_rpt_iter()
2339 ra_report->txrate.nss = format_v1 ? in rtw89_phy_c2h_ra_rpt_iter()
[all …]
H A Dmac80211.c684 sinfo->txrate = rtwsta->ra_report.txrate; in rtw89_ops_sta_statistics()
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_snmp.h45 uint8_t txrate; member
/freebsd/sys/dev/ath/ath_rate/sample/
H A Dsample.c662 u_int8_t *txrate, int *maxdur, int *maxpktlen) in ath_rate_findrate() argument
883 *txrate = rt->info[rix].rateCode in ath_rate_findrate()

12