Lines Matching refs:tx_stats
3335 struct ath10k_htt_tx_stats *tx_stats; in ath10k_accumulate_per_peer_tx_stats() local
3339 if (!arsta->tx_stats) in ath10k_accumulate_per_peer_tx_stats()
3342 tx_stats = arsta->tx_stats; in ath10k_accumulate_per_peer_tx_stats()
3352 #define STATS_OP_FMT(name) tx_stats->stats[ATH10K_STATS_TYPE_##name] in ath10k_accumulate_per_peer_tx_stats()
3380 tx_stats->ba_fails += ATH10K_HW_BA_FAIL(pstats->flags); in ath10k_accumulate_per_peer_tx_stats()
3410 tx_stats->ack_fails += in ath10k_accumulate_per_peer_tx_stats()
3447 tx_stats->tx_duration += pstats->duration; in ath10k_accumulate_per_peer_tx_stats()
3574 struct htt_per_peer_tx_stats_ind *tx_stats; in ath10k_htt_fetch_peer_stats() local
3588 tx_stats = (struct htt_per_peer_tx_stats_ind *) in ath10k_htt_fetch_peer_stats()
3590 peer_id = __le16_to_cpu(tx_stats->peer_id); in ath10k_htt_fetch_peer_stats()
3603 tx_stats = (struct htt_per_peer_tx_stats_ind *) in ath10k_htt_fetch_peer_stats()
3606 p_tx_stats->succ_bytes = __le32_to_cpu(tx_stats->succ_bytes); in ath10k_htt_fetch_peer_stats()
3607 p_tx_stats->retry_bytes = __le32_to_cpu(tx_stats->retry_bytes); in ath10k_htt_fetch_peer_stats()
3609 __le32_to_cpu(tx_stats->failed_bytes); in ath10k_htt_fetch_peer_stats()
3610 p_tx_stats->ratecode = tx_stats->ratecode; in ath10k_htt_fetch_peer_stats()
3611 p_tx_stats->flags = tx_stats->flags; in ath10k_htt_fetch_peer_stats()
3612 p_tx_stats->succ_pkts = __le16_to_cpu(tx_stats->succ_pkts); in ath10k_htt_fetch_peer_stats()
3613 p_tx_stats->retry_pkts = __le16_to_cpu(tx_stats->retry_pkts); in ath10k_htt_fetch_peer_stats()
3614 p_tx_stats->failed_pkts = __le16_to_cpu(tx_stats->failed_pkts); in ath10k_htt_fetch_peer_stats()
3615 p_tx_stats->duration = __le16_to_cpu(tx_stats->tx_duration); in ath10k_htt_fetch_peer_stats()
3629 struct ath10k_10_2_peer_tx_stats *tx_stats; in ath10k_fetch_10_2_tx_stats() local
3638 tx_stats = (struct ath10k_10_2_peer_tx_stats *)((hdr->payload) + in ath10k_fetch_10_2_tx_stats()
3641 if (!tx_stats->tx_ppdu_cnt) in ath10k_fetch_10_2_tx_stats()
3644 peer_id = tx_stats->peer_id; in ath10k_fetch_10_2_tx_stats()
3656 for (i = 0; i < tx_stats->tx_ppdu_cnt; i++) { in ath10k_fetch_10_2_tx_stats()
3658 __le16_to_cpu(tx_stats->success_bytes[i]); in ath10k_fetch_10_2_tx_stats()
3660 __le16_to_cpu(tx_stats->retry_bytes[i]); in ath10k_fetch_10_2_tx_stats()
3662 __le16_to_cpu(tx_stats->failed_bytes[i]); in ath10k_fetch_10_2_tx_stats()
3663 p_tx_stats->ratecode = tx_stats->ratecode[i]; in ath10k_fetch_10_2_tx_stats()
3664 p_tx_stats->flags = tx_stats->flags[i]; in ath10k_fetch_10_2_tx_stats()
3665 p_tx_stats->succ_pkts = tx_stats->success_pkts[i]; in ath10k_fetch_10_2_tx_stats()
3666 p_tx_stats->retry_pkts = tx_stats->retry_pkts[i]; in ath10k_fetch_10_2_tx_stats()
3667 p_tx_stats->failed_pkts = tx_stats->failed_pkts[i]; in ath10k_fetch_10_2_tx_stats()