Lines Matching refs:tx_stats

3541 	struct ath10k_htt_tx_stats *tx_stats;  in ath10k_accumulate_per_peer_tx_stats()  local
3545 if (!arsta->tx_stats) in ath10k_accumulate_per_peer_tx_stats()
3548 tx_stats = arsta->tx_stats; in ath10k_accumulate_per_peer_tx_stats()
3558 #define STATS_OP_FMT(name) tx_stats->stats[ATH10K_STATS_TYPE_##name] in ath10k_accumulate_per_peer_tx_stats()
3586 tx_stats->ba_fails += ATH10K_HW_BA_FAIL(pstats->flags); in ath10k_accumulate_per_peer_tx_stats()
3616 tx_stats->ack_fails += in ath10k_accumulate_per_peer_tx_stats()
3653 tx_stats->tx_duration += pstats->duration; in ath10k_accumulate_per_peer_tx_stats()
3789 struct htt_per_peer_tx_stats_ind *tx_stats; in ath10k_htt_fetch_peer_stats() local
3803 tx_stats = (struct htt_per_peer_tx_stats_ind *) in ath10k_htt_fetch_peer_stats()
3805 peer_id = __le16_to_cpu(tx_stats->peer_id); in ath10k_htt_fetch_peer_stats()
3818 tx_stats = (struct htt_per_peer_tx_stats_ind *) in ath10k_htt_fetch_peer_stats()
3821 p_tx_stats->succ_bytes = __le32_to_cpu(tx_stats->succ_bytes); in ath10k_htt_fetch_peer_stats()
3822 p_tx_stats->retry_bytes = __le32_to_cpu(tx_stats->retry_bytes); in ath10k_htt_fetch_peer_stats()
3824 __le32_to_cpu(tx_stats->failed_bytes); in ath10k_htt_fetch_peer_stats()
3825 p_tx_stats->ratecode = tx_stats->ratecode; in ath10k_htt_fetch_peer_stats()
3826 p_tx_stats->flags = tx_stats->flags; in ath10k_htt_fetch_peer_stats()
3827 p_tx_stats->succ_pkts = __le16_to_cpu(tx_stats->succ_pkts); in ath10k_htt_fetch_peer_stats()
3828 p_tx_stats->retry_pkts = __le16_to_cpu(tx_stats->retry_pkts); in ath10k_htt_fetch_peer_stats()
3829 p_tx_stats->failed_pkts = __le16_to_cpu(tx_stats->failed_pkts); in ath10k_htt_fetch_peer_stats()
3830 p_tx_stats->duration = __le16_to_cpu(tx_stats->tx_duration); in ath10k_htt_fetch_peer_stats()
3844 struct ath10k_10_2_peer_tx_stats *tx_stats; in ath10k_fetch_10_2_tx_stats() local
3853 tx_stats = (struct ath10k_10_2_peer_tx_stats *)((hdr->payload) + in ath10k_fetch_10_2_tx_stats()
3856 if (!tx_stats->tx_ppdu_cnt) in ath10k_fetch_10_2_tx_stats()
3859 peer_id = tx_stats->peer_id; in ath10k_fetch_10_2_tx_stats()
3871 for (i = 0; i < tx_stats->tx_ppdu_cnt; i++) { in ath10k_fetch_10_2_tx_stats()
3873 __le16_to_cpu(tx_stats->success_bytes[i]); in ath10k_fetch_10_2_tx_stats()
3875 __le16_to_cpu(tx_stats->retry_bytes[i]); in ath10k_fetch_10_2_tx_stats()
3877 __le16_to_cpu(tx_stats->failed_bytes[i]); in ath10k_fetch_10_2_tx_stats()
3878 p_tx_stats->ratecode = tx_stats->ratecode[i]; in ath10k_fetch_10_2_tx_stats()
3879 p_tx_stats->flags = tx_stats->flags[i]; in ath10k_fetch_10_2_tx_stats()
3880 p_tx_stats->succ_pkts = tx_stats->success_pkts[i]; in ath10k_fetch_10_2_tx_stats()
3881 p_tx_stats->retry_pkts = tx_stats->retry_pkts[i]; in ath10k_fetch_10_2_tx_stats()
3882 p_tx_stats->failed_pkts = tx_stats->failed_pkts[i]; in ath10k_fetch_10_2_tx_stats()