Home
last modified time | relevance | path

Searched refs:txrate (Results 1 – 25 of 39) 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.c279 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 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.c976 struct rate_info *txrate = &msta->wcid.rate; in mt7996_sta_statistics() local
978 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()
[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()
526 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_dp_tx_update_txcompl()
533 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl()
534 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; 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()
1501 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; 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()
1507 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats()
1510 arsta->txrate.mcs = mcs; 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
3825 flags = txrate->flags; in ath10k_accumulate_per_peer_tx_stats()
3828 bw = txrate->bw; in ath10k_accumulate_per_peer_tx_stats()
3829 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats()
3836 if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3843 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3864 if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3920 if (txrate->flags >= RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3942 struct rate_info txrate; in ath10k_update_per_peer_tx_stats() local
3946 txrate.flags = ATH10K_HW_PREAMBLE(peer_stats->ratecode); 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.c1559 u_int8_t rix = 0, txrate = 0; in ath_tx_normal_setup() local
1656 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1658 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup()
1665 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1667 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup()
1680 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1682 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup()
1687 txrate = rt->info[rix].rateCode; in ath_tx_normal_setup()
1689 txrate |= rt->info[rix].shortPreamble; in ath_tx_normal_setup()
1866 bf->bf_state.bfs_rc[0].ratecode = txrate; in ath_tx_normal_setup()
[all …]
/freebsd/sys/contrib/dev/rtw88/
H A Dfw.c156 si->ra_report.txrate.flags = 0; in rtw_fw_bcn_filter_notify_vif_iter()
163 si->ra_report.txrate.legacy = rtw_desc_to_bitrate(rate); in rtw_fw_bcn_filter_notify_vif_iter()
169 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in rtw_fw_bcn_filter_notify_vif_iter()
171 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_MCS;
174 si->ra_report.txrate.mcs = mcs; in rtw_fw_bcn_filter_notify()
175 si->ra_report.txrate.nss = nss; in rtw_fw_bcn_filter_notify()
179 si->ra_report.txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in rtw_fw_bcn_filter_notify()
182 si->ra_report.txrate.bw = RATE_INFO_BW_80;
184 si->ra_report.txrate.bw = RATE_INFO_BW_40; in rtw_fw_scan_result()
186 si->ra_report.txrate in rtw_fw_scan_result()
[all...]
H A Dmac80211.c731 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()
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 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.c2608 memset(&ra_report->txrate, 0, sizeof(ra_report->txrate)); in rtw89_phy_average_cfo_calc()
2612 ra_report->txrate.legacy = legacy_bitrate; in rtw89_phy_average_cfo_calc()
2615 ra_report->txrate.flags |= RATE_INFO_FLAGS_MCS; in rtw89_phy_average_cfo_calc()
2621 ra_report->txrate.mcs = rate; in rtw89_phy_average_cfo_calc()
2623 ra_report->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in rtw89_phy_multi_sta_cfo_calc()
2624 mcs = ra_report->txrate.mcs & 0x07; in rtw89_phy_multi_sta_cfo_calc()
2627 ra_report->txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in rtw89_phy_multi_sta_cfo_calc()
2628 ra_report->txrate.mcs = format_v1 ? in rtw89_phy_multi_sta_cfo_calc()
2631 ra_report->txrate in rtw89_phy_multi_sta_cfo_calc()
[all...]
H A Dmac80211.c734 sinfo->txrate = rtwsta->ra_report.txrate; in rtw89_ra_mask_info_update_iter()
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_snmp.h45 uint8_t txrate; member
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_80211.c352 sinfo.txrate.flags, CFG80211_RATE_INFO_FLAGS_BITS, in lkpi_80211_dump_stas()
353 sinfo.txrate.bw, lkpi_rate_info_bw_to_str(sinfo.txrate.bw), in lkpi_80211_dump_stas()
354 sinfo.txrate.legacy * 100, in lkpi_80211_dump_stas()
355 sinfo.txrate.mcs, sinfo.txrate.nss); in lkpi_80211_dump_stas()
357 sinfo.txrate.he_dcm, sinfo.txrate.he_gi, sinfo.txrate.he_ru_alloc, in lkpi_80211_dump_stas()
358 sinfo.txrate.eht_gi); in lkpi_80211_dump_stas()

12