Lines Matching refs:ppdu_info

1254 	struct htt_ppdu_stats_info *ppdu_info;  in ath11k_htt_tlv_ppdu_stats_parse()  local
1259 ppdu_info = (struct htt_ppdu_stats_info *)data; in ath11k_htt_tlv_ppdu_stats_parse()
1268 memcpy((void *)&ppdu_info->ppdu_stats.common, ptr, in ath11k_htt_tlv_ppdu_stats_parse()
1279 cur_user = ath11k_get_ppdu_user_index(&ppdu_info->ppdu_stats, in ath11k_htt_tlv_ppdu_stats_parse()
1283 user_stats = &ppdu_info->ppdu_stats.user_stats[cur_user]; in ath11k_htt_tlv_ppdu_stats_parse()
1298 cur_user = ath11k_get_ppdu_user_index(&ppdu_info->ppdu_stats, in ath11k_htt_tlv_ppdu_stats_parse()
1302 user_stats = &ppdu_info->ppdu_stats.user_stats[cur_user]; in ath11k_htt_tlv_ppdu_stats_parse()
1319 cur_user = ath11k_get_ppdu_user_index(&ppdu_info->ppdu_stats, in ath11k_htt_tlv_ppdu_stats_parse()
1323 user_stats = &ppdu_info->ppdu_stats.user_stats[cur_user]; in ath11k_htt_tlv_ppdu_stats_parse()
1536 struct htt_ppdu_stats_info *ppdu_info; in ath11k_dp_htt_get_ppdu_desc() local
1540 list_for_each_entry(ppdu_info, &ar->ppdu_stats_info, list) { in ath11k_dp_htt_get_ppdu_desc()
1541 if (ppdu_info->ppdu_id == ppdu_id) { in ath11k_dp_htt_get_ppdu_desc()
1543 return ppdu_info; in ath11k_dp_htt_get_ppdu_desc()
1548 ppdu_info = list_first_entry(&ar->ppdu_stats_info, in ath11k_dp_htt_get_ppdu_desc()
1549 typeof(*ppdu_info), list); in ath11k_dp_htt_get_ppdu_desc()
1550 list_del(&ppdu_info->list); in ath11k_dp_htt_get_ppdu_desc()
1552 ath11k_htt_update_ppdu_stats(ar, &ppdu_info->ppdu_stats); in ath11k_dp_htt_get_ppdu_desc()
1553 kfree(ppdu_info); in ath11k_dp_htt_get_ppdu_desc()
1558 ppdu_info = kzalloc(sizeof(*ppdu_info), GFP_ATOMIC); in ath11k_dp_htt_get_ppdu_desc()
1559 if (!ppdu_info) in ath11k_dp_htt_get_ppdu_desc()
1563 list_add_tail(&ppdu_info->list, &ar->ppdu_stats_info); in ath11k_dp_htt_get_ppdu_desc()
1567 return ppdu_info; in ath11k_dp_htt_get_ppdu_desc()
1574 struct htt_ppdu_stats_info *ppdu_info; in ath11k_htt_pull_ppdu_stats() local
1595 ppdu_info = ath11k_dp_htt_get_ppdu_desc(ar, ppdu_id); in ath11k_htt_pull_ppdu_stats()
1596 if (!ppdu_info) { in ath11k_htt_pull_ppdu_stats()
1601 ppdu_info->ppdu_id = ppdu_id; in ath11k_htt_pull_ppdu_stats()
1604 (void *)ppdu_info); in ath11k_htt_pull_ppdu_stats()
2760 struct hal_rx_mon_ppdu_info *ppdu_info) in ath11k_dp_rx_update_peer_stats() argument
2769 arsta->rssi_comb = ppdu_info->rssi_comb; in ath11k_dp_rx_update_peer_stats()
2770 ewma_avg_rssi_add(&arsta->avg_rssi, ppdu_info->rssi_comb); in ath11k_dp_rx_update_peer_stats()
2772 num_msdu = ppdu_info->tcp_msdu_count + ppdu_info->tcp_ack_msdu_count + in ath11k_dp_rx_update_peer_stats()
2773 ppdu_info->udp_msdu_count + ppdu_info->other_msdu_count; in ath11k_dp_rx_update_peer_stats()
2776 rx_stats->tcp_msdu_count += ppdu_info->tcp_msdu_count + in ath11k_dp_rx_update_peer_stats()
2777 ppdu_info->tcp_ack_msdu_count; in ath11k_dp_rx_update_peer_stats()
2778 rx_stats->udp_msdu_count += ppdu_info->udp_msdu_count; in ath11k_dp_rx_update_peer_stats()
2779 rx_stats->other_msdu_count += ppdu_info->other_msdu_count; in ath11k_dp_rx_update_peer_stats()
2781 if (ppdu_info->preamble_type == HAL_RX_PREAMBLE_11A || in ath11k_dp_rx_update_peer_stats()
2782 ppdu_info->preamble_type == HAL_RX_PREAMBLE_11B) { in ath11k_dp_rx_update_peer_stats()
2783 ppdu_info->nss = 1; in ath11k_dp_rx_update_peer_stats()
2784 ppdu_info->mcs = HAL_RX_MAX_MCS; in ath11k_dp_rx_update_peer_stats()
2785 ppdu_info->tid = IEEE80211_NUM_TIDS; in ath11k_dp_rx_update_peer_stats()
2788 if (ppdu_info->nss > 0 && ppdu_info->nss <= HAL_RX_MAX_NSS) in ath11k_dp_rx_update_peer_stats()
2789 rx_stats->nss_count[ppdu_info->nss - 1] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2791 if (ppdu_info->mcs <= HAL_RX_MAX_MCS) in ath11k_dp_rx_update_peer_stats()
2792 rx_stats->mcs_count[ppdu_info->mcs] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2794 if (ppdu_info->gi < HAL_RX_GI_MAX) in ath11k_dp_rx_update_peer_stats()
2795 rx_stats->gi_count[ppdu_info->gi] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2797 if (ppdu_info->bw < HAL_RX_BW_MAX) in ath11k_dp_rx_update_peer_stats()
2798 rx_stats->bw_count[ppdu_info->bw] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2800 if (ppdu_info->ldpc < HAL_RX_SU_MU_CODING_MAX) in ath11k_dp_rx_update_peer_stats()
2801 rx_stats->coding_count[ppdu_info->ldpc] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2803 if (ppdu_info->tid <= IEEE80211_NUM_TIDS) in ath11k_dp_rx_update_peer_stats()
2804 rx_stats->tid_count[ppdu_info->tid] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2806 if (ppdu_info->preamble_type < HAL_RX_PREAMBLE_MAX) in ath11k_dp_rx_update_peer_stats()
2807 rx_stats->pream_cnt[ppdu_info->preamble_type] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2809 if (ppdu_info->reception_type < HAL_RX_RECEPTION_TYPE_MAX) in ath11k_dp_rx_update_peer_stats()
2810 rx_stats->reception_type[ppdu_info->reception_type] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2812 if (ppdu_info->is_stbc) in ath11k_dp_rx_update_peer_stats()
2815 if (ppdu_info->beamformed) in ath11k_dp_rx_update_peer_stats()
2818 if (ppdu_info->num_mpdu_fcs_ok > 1) in ath11k_dp_rx_update_peer_stats()
2823 rx_stats->num_mpdu_fcs_ok += ppdu_info->num_mpdu_fcs_ok; in ath11k_dp_rx_update_peer_stats()
2824 rx_stats->num_mpdu_fcs_err += ppdu_info->num_mpdu_fcs_err; in ath11k_dp_rx_update_peer_stats()
2825 rx_stats->dcm_count += ppdu_info->dcm; in ath11k_dp_rx_update_peer_stats()
2826 rx_stats->ru_alloc_cnt[ppdu_info->ru_alloc] += num_msdu; in ath11k_dp_rx_update_peer_stats()
2828 arsta->rssi_comb = ppdu_info->rssi_comb; in ath11k_dp_rx_update_peer_stats()
2831 ARRAY_SIZE(ppdu_info->rssi_chain_pri20)); in ath11k_dp_rx_update_peer_stats()
2834 arsta->chain_signal[i] = ppdu_info->rssi_chain_pri20[i]; in ath11k_dp_rx_update_peer_stats()
2836 rx_stats->rx_duration += ppdu_info->rx_duration; in ath11k_dp_rx_update_peer_stats()
5173 struct hal_rx_mon_ppdu_info *ppdu_info = &pmon->mon_ppdu_info; in ath11k_dp_rx_process_mon_status() local
5182 memset(ppdu_info, 0, sizeof(*ppdu_info)); in ath11k_dp_rx_process_mon_status()
5183 ppdu_info->peer_id = HAL_INVALID_PEERID; in ath11k_dp_rx_process_mon_status()
5200 memset(ppdu_info, 0, sizeof(*ppdu_info)); in ath11k_dp_rx_process_mon_status()
5201 ppdu_info->peer_id = HAL_INVALID_PEERID; in ath11k_dp_rx_process_mon_status()
5202 hal_status = ath11k_hal_rx_parse_mon_status(ab, ppdu_info, skb); in ath11k_dp_rx_process_mon_status()
5213 if (ppdu_info->peer_id == HAL_INVALID_PEERID || in ath11k_dp_rx_process_mon_status()
5221 peer = ath11k_peer_find_by_id(ab, ppdu_info->peer_id); in ath11k_dp_rx_process_mon_status()
5226 ppdu_info->peer_id); in ath11k_dp_rx_process_mon_status()
5231 ath11k_dp_rx_update_peer_stats(arsta, ppdu_info); in ath11k_dp_rx_process_mon_status()
5241 memset(ppdu_info, 0, sizeof(*ppdu_info)); in ath11k_dp_rx_process_mon_status()
5242 ppdu_info->peer_id = HAL_INVALID_PEERID; in ath11k_dp_rx_process_mon_status()