Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/dev/athk/ath12k/wifi7/
H A Ddp_tx.c531 struct rate_info txrate = {}; in ath12k_wifi7_dp_tx_update_txcompl() local
557 txrate.nss = peer->last_txrate.nss; in ath12k_wifi7_dp_tx_update_txcompl()
559 txrate.nss = arsta->peer_nss; in ath12k_wifi7_dp_tx_update_txcompl()
573 txrate.legacy = rate; in ath12k_wifi7_dp_tx_update_txcompl()
581 if (txrate.nss != 0) in ath12k_wifi7_dp_tx_update_txcompl()
582 txrate.mcs = ts->mcs + 8 * (txrate.nss - 1); in ath12k_wifi7_dp_tx_update_txcompl()
584 txrate.flags = RATE_INFO_FLAGS_MCS; in ath12k_wifi7_dp_tx_update_txcompl()
587 txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_wifi7_dp_tx_update_txcompl()
595 txrate.mcs = ts->mcs; in ath12k_wifi7_dp_tx_update_txcompl()
596 txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath12k_wifi7_dp_tx_update_txcompl()
[all …]
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp_peer.c664 info->txrate.legacy = link_peer->txrate.legacy; in ath12k_dp_link_peer_get_sta_rate_info_stats()
665 info->txrate.mcs = link_peer->txrate.mcs; in ath12k_dp_link_peer_get_sta_rate_info_stats()
666 info->txrate.nss = link_peer->txrate.nss; in ath12k_dp_link_peer_get_sta_rate_info_stats()
667 info->txrate.bw = link_peer->txrate.bw; in ath12k_dp_link_peer_get_sta_rate_info_stats()
668 info->txrate.he_gi = link_peer->txrate.he_gi; in ath12k_dp_link_peer_get_sta_rate_info_stats()
669 info->txrate.he_dcm = link_peer->txrate.he_dcm; in ath12k_dp_link_peer_get_sta_rate_info_stats()
670 info->txrate.he_ru_alloc = link_peer->txrate.he_ru_alloc; in ath12k_dp_link_peer_get_sta_rate_info_stats()
671 info->txrate.flags = link_peer->txrate.flags; in ath12k_dp_link_peer_get_sta_rate_info_stats()
H A Ddp_htt.c283 memset(&peer->txrate, 0, sizeof(peer->txrate)); in ath12k_update_per_peer_tx_stats()
285 peer->txrate.bw = ath12k_mac_bw_to_mac80211_bw(bw); in ath12k_update_per_peer_tx_stats()
289 peer->txrate.legacy = rate; in ath12k_update_per_peer_tx_stats()
292 peer->txrate.legacy = rate; in ath12k_update_per_peer_tx_stats()
295 peer->txrate.mcs = mcs + 8 * (nss - 1); in ath12k_update_per_peer_tx_stats()
296 peer->txrate.flags = RATE_INFO_FLAGS_MCS; in ath12k_update_per_peer_tx_stats()
298 peer->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_update_per_peer_tx_stats()
301 peer->txrate.mcs = mcs; in ath12k_update_per_peer_tx_stats()
302 peer->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath12k_update_per_peer_tx_stats()
304 peer->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath12k_update_per_peer_tx_stats()
[all …]
H A Ddp_cmn.h78 struct rate_info txrate; member
H A Dmac.c13435 if (rate_info.txrate.legacy || rate_info.txrate.nss) { in ath12k_mac_op_sta_statistics()
13436 if (rate_info.txrate.legacy) { in ath12k_mac_op_sta_statistics()
13437 sinfo->txrate.legacy = rate_info.txrate.legacy; in ath12k_mac_op_sta_statistics()
13439 sinfo->txrate.mcs = rate_info.txrate.mcs; in ath12k_mac_op_sta_statistics()
13440 sinfo->txrate.nss = rate_info.txrate.nss; in ath12k_mac_op_sta_statistics()
13441 sinfo->txrate.bw = rate_info.txrate.bw; in ath12k_mac_op_sta_statistics()
13442 sinfo->txrate.he_gi = rate_info.txrate.he_gi; in ath12k_mac_op_sta_statistics()
13443 sinfo->txrate.he_dcm = rate_info.txrate.he_dcm; in ath12k_mac_op_sta_statistics()
13444 sinfo->txrate.he_ru_alloc = rate_info.txrate.he_ru_alloc; in ath12k_mac_op_sta_statistics()
13445 sinfo->txrate.eht_gi = rate_info.txrate.eht_gi; in ath12k_mac_op_sta_statistics()
[all …]
H A Ddp_peer.h108 struct rate_info txrate; member
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt792x_core.c575 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 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.c623 u32 txrate, txs, mode, stbc; in mt76_connac2_mac_fill_txs() local
650 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt76_connac2_mac_fill_txs()
652 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt76_connac2_mac_fill_txs()
653 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt76_connac2_mac_fill_txs()
654 stbc = FIELD_GET(MT_TX_RATE_STBC, txrate); in mt76_connac2_mac_fill_txs()
664 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt76_connac2_mac_fill_txs()
707 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt76_connac2_mac_fill_txs()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddp_tx.c494 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_dp_tx_update_txcompl()
509 arsta->txrate.nss = arsta->last_txrate.nss; in ath11k_dp_tx_update_txcompl()
511 arsta->txrate.nss = arsta->peer_nss; in ath11k_dp_tx_update_txcompl()
521 arsta->txrate.legacy = rate; in ath11k_dp_tx_update_txcompl()
528 if (arsta->txrate.nss != 0) in ath11k_dp_tx_update_txcompl()
529 arsta->txrate.mcs = mcs + 8 * (arsta->txrate.nss - 1); in ath11k_dp_tx_update_txcompl()
530 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_dp_tx_update_txcompl()
532 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_dp_tx_update_txcompl()
539 arsta->txrate.mcs = mcs; in ath11k_dp_tx_update_txcompl()
540 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_dp_tx_update_txcompl()
[all …]
H A Ddebugfs_sta.c20 struct rate_info *txrate = &arsta->txrate; in ath11k_debugfs_sta_add_tx_stats() local
28 gi = FIELD_GET(RATE_INFO_FLAGS_SHORT_GI, arsta->txrate.flags); in ath11k_debugfs_sta_add_tx_stats()
29 mcs = txrate->mcs; in ath11k_debugfs_sta_add_tx_stats()
30 bw = ath11k_mac_mac80211_bw_to_ath11k_bw(txrate->bw); in ath11k_debugfs_sta_add_tx_stats()
31 nss = txrate->nss - 1; in ath11k_debugfs_sta_add_tx_stats()
35 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats()
42 } else if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath11k_debugfs_sta_add_tx_stats()
49 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats()
70 if (txrate->flags & RATE_INFO_FLAGS_HE_MCS) { in ath11k_debugfs_sta_add_tx_stats()
75 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath11k_debugfs_sta_add_tx_stats()
H A Ddp_rx.c1476 memset(&arsta->txrate, 0, sizeof(arsta->txrate)); in ath11k_update_per_peer_tx_stats()
1480 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats()
1483 arsta->txrate.legacy = rate; in ath11k_update_per_peer_tx_stats()
1486 arsta->txrate.mcs = mcs + 8 * (nss - 1); in ath11k_update_per_peer_tx_stats()
1487 arsta->txrate.flags = RATE_INFO_FLAGS_MCS; in ath11k_update_per_peer_tx_stats()
1489 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats()
1492 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats()
1493 arsta->txrate.flags = RATE_INFO_FLAGS_VHT_MCS; in ath11k_update_per_peer_tx_stats()
1495 arsta->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in ath11k_update_per_peer_tx_stats()
1498 arsta->txrate.mcs = mcs; in ath11k_update_per_peer_tx_stats()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dhtt_rx.c3818 struct rate_info *txrate = &arsta->txrate; in ath10k_accumulate_per_peer_tx_stats() local
3827 flags = txrate->flags; in ath10k_accumulate_per_peer_tx_stats()
3830 bw = txrate->bw; in ath10k_accumulate_per_peer_tx_stats()
3831 nss = txrate->nss; in ath10k_accumulate_per_peer_tx_stats()
3838 if (txrate->flags & RATE_INFO_FLAGS_VHT_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3845 } else if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3866 if (txrate->flags & RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3922 if (txrate->flags >= RATE_INFO_FLAGS_MCS) { in ath10k_accumulate_per_peer_tx_stats()
3944 struct rate_info txrate; in ath10k_update_per_peer_tx_stats() local
3948 txrate.flags = ATH10K_HW_PREAMBLE(peer_stats->ratecode); in ath10k_update_per_peer_tx_stats()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dmain.c1158 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 Dmain.c1664 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 …]
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmsmac/
H A Dampdu.c493 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_add_frame() local
541 if (txrate[0].count <= ampdu->rr_retry_limit_tid[tid]) { in brcms_c_ampdu_add_frame()
542 txrate[0].count++; in brcms_c_ampdu_add_frame()
545 txrate[1].count++; in brcms_c_ampdu_add_frame()
601 struct ieee80211_tx_rate *txrate; in brcms_c_ampdu_finalize() local
652 txrate = tx_info->status.rates; in brcms_c_ampdu_finalize()
674 fbr = txrate[1].count > 0; in brcms_c_ampdu_finalize()
791 struct ieee80211_tx_rate *txrate = tx_info->status.rates; in brcms_c_ampdu_rate_status() local
796 txrate[i].idx = -1; in brcms_c_ampdu_rate_status()
797 txrate[i].count = 0; in brcms_c_ampdu_rate_status()
H A Dmain.c838 struct ieee80211_tx_rate *txrate; in brcms_c_dotxstatus() local
939 txrate = tx_info->status.rates; in brcms_c_dotxstatus()
940 if (txrate[0].flags & IEEE80211_TX_RC_USE_RTS_CTS) in brcms_c_dotxstatus()
947 if ((tx_frame_count > fbl) && (txrate[1].idx >= 0)) { in brcms_c_dotxstatus()
952 txrate[0].count = fbl; in brcms_c_dotxstatus()
953 txrate[1].count = tx_frame_count - fbl; in brcms_c_dotxstatus()
959 txrate[0].count = tx_frame_count; in brcms_c_dotxstatus()
964 txrate[1].idx = -1; in brcms_c_dotxstatus()
965 txrate[1].count = 0; in brcms_c_dotxstatus()
970 txrate[i].idx = -1; in brcms_c_dotxstatus()
[all …]
/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.c1569 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/rtw88/
H A Dfw.c158 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 …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7925/
H A Dmac.c902 u32 txrate, txs, mode, stbc; in mt7925_mac_add_txs_skb() local
921 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7925_mac_add_txs_skb()
923 rate.mcs = FIELD_GET(MT_TX_RATE_IDX, txrate); in mt7925_mac_add_txs_skb()
924 rate.nss = FIELD_GET(MT_TX_RATE_NSS, txrate) + 1; in mt7925_mac_add_txs_skb()
935 mode = FIELD_GET(MT_TX_RATE_MODE, txrate); in mt7925_mac_add_txs_skb()
976 rate.he_dcm = FIELD_GET(MT_TX_RATE_DCM, txrate); in mt7925_mac_add_txs_skb()
/freebsd/sys/contrib/dev/rtw89/
H A Dphy.c3238 memset(&ra_report->txrate, 0, sizeof(ra_report->txrate)); in __rtw89_phy_c2h_ra_rpt_iter()
3242 ra_report->txrate.legacy = legacy_bitrate; in __rtw89_phy_c2h_ra_rpt_iter()
3245 ra_report->txrate.flags |= RATE_INFO_FLAGS_MCS; in __rtw89_phy_c2h_ra_rpt_iter()
3251 ra_report->txrate.mcs = rate; in __rtw89_phy_c2h_ra_rpt_iter()
3253 ra_report->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; in __rtw89_phy_c2h_ra_rpt_iter()
3254 mcs = ra_report->txrate.mcs & 0x07; in __rtw89_phy_c2h_ra_rpt_iter()
3257 ra_report->txrate.flags |= RATE_INFO_FLAGS_VHT_MCS; in __rtw89_phy_c2h_ra_rpt_iter()
3258 ra_report->txrate.mcs = format_v1 ? in __rtw89_phy_c2h_ra_rpt_iter()
3261 ra_report->txrate.nss = format_v1 ? in __rtw89_phy_c2h_ra_rpt_iter()
3265 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 Dwlan_snmp.h45 uint8_t txrate; member

12