Lines Matching refs:mon_peer
710 struct dp_mon_peer *mon_peer = NULL; in dp_rx_rate_stats_update() local
715 mon_peer = peer->monitor_peer; in dp_rx_rate_stats_update()
718 if (!mon_peer) in dp_rx_rate_stats_update()
728 mon_peer->stats.rx.nss_info = ppdu_user->nss; in dp_rx_rate_stats_update()
729 mon_peer->stats.rx.mcs_info = ppdu_user->mcs; in dp_rx_rate_stats_update()
737 mon_peer->stats.rx.nss_info = ppdu->u.nss; in dp_rx_rate_stats_update()
738 mon_peer->stats.rx.mcs_info = ppdu->u.mcs; in dp_rx_rate_stats_update()
759 mon_peer->stats.rx.bw_info = ppdu->u.bw; in dp_rx_rate_stats_update()
760 mon_peer->stats.rx.gi_info = ppdu->u.gi; in dp_rx_rate_stats_update()
761 mon_peer->stats.rx.preamble_info = ppdu->u.preamble; in dp_rx_rate_stats_update()
765 DP_STATS_UPD(mon_peer, rx.last_rx_rate, ratekbps); in dp_rx_rate_stats_update()
767 mon_peer->stats.rx.avg_rx_rate))) { in dp_rx_rate_stats_update()
768 mon_peer->stats.rx.avg_rx_rate = in dp_rx_rate_stats_update()
769 dp_ath_rate_lpf(mon_peer->stats.rx.avg_rx_rate, in dp_rx_rate_stats_update()
772 ppdu_rx_rate = dp_ath_rate_out(mon_peer->stats.rx.avg_rx_rate); in dp_rx_rate_stats_update()
773 DP_STATS_UPD(mon_peer, rx.rnd_avg_rx_rate, ppdu_rx_rate); in dp_rx_rate_stats_update()
790 struct dp_mon_peer *mon_peer = NULL; in dp_ppdu_desc_user_rx_time_update() local
809 mon_peer = peer->monitor_peer; in dp_ppdu_desc_user_rx_time_update()
810 if (qdf_unlikely(!mon_peer)) in dp_ppdu_desc_user_rx_time_update()
814 DP_STATS_INC(mon_peer, airtime_stats.rx_airtime_consumption[ac].consumption, in dp_ppdu_desc_user_rx_time_update()
833 struct dp_mon_peer *mon_peer; in dp_rx_mon_update_user_deter_stats() local
845 mon_peer = peer->monitor_peer; in dp_rx_mon_update_user_deter_stats()
846 if (!mon_peer) in dp_rx_mon_update_user_deter_stats()
853 DP_STATS_INC(mon_peer, in dp_rx_mon_update_user_deter_stats()
856 DP_STATS_UPD(mon_peer, in dp_rx_mon_update_user_deter_stats()
858 mon_peer->stats.rx.avg_rx_rate); in dp_rx_mon_update_user_deter_stats()
907 struct dp_mon_peer *mon_peer; in dp_rx_stats_update() local
936 mon_peer = mon_pdev->invalid_mon_peer; in dp_rx_stats_update()
938 mon_peer = peer->monitor_peer; in dp_rx_stats_update()
940 if (qdf_unlikely(!mon_peer)) { in dp_rx_stats_update()
963 DP_STATS_UPD(mon_peer, rx.snr, ppdu->rssi); in dp_rx_stats_update()
965 if (qdf_unlikely(mon_peer->stats.rx.avg_snr == CDP_INVALID_SNR)) in dp_rx_stats_update()
966 mon_peer->stats.rx.avg_snr = in dp_rx_stats_update()
967 CDP_SNR_IN(mon_peer->stats.rx.snr); in dp_rx_stats_update()
969 CDP_SNR_UPDATE_AVG(mon_peer->stats.rx.avg_snr, in dp_rx_stats_update()
970 mon_peer->stats.rx.snr); in dp_rx_stats_update()
974 DP_STATS_INC(mon_peer, rx.nss[nss - 1], num_msdu); in dp_rx_stats_update()
975 DP_STATS_INC(mon_peer, rx.ppdu_nss[nss - 1], 1); in dp_rx_stats_update()
978 DP_STATS_INC(mon_peer, rx.mpdu_cnt_fcs_ok, in dp_rx_stats_update()
980 DP_STATS_INC(mon_peer, rx.mpdu_cnt_fcs_err, in dp_rx_stats_update()
992 DP_STATS_INC(mon_peer, rx.nss[nss - 1], num_msdu); in dp_rx_stats_update()
993 DP_STATS_INC(mon_peer, in dp_rx_stats_update()
998 DP_STATS_INC(mon_peer, in dp_rx_stats_update()
1001 DP_STATS_INC(mon_peer, in dp_rx_stats_update()
1006 DP_STATS_INC(mon_peer, rx.sgi_count[ppdu->u.gi], num_msdu); in dp_rx_stats_update()
1007 DP_STATS_INC(mon_peer, rx.bw[ppdu->u.bw], num_msdu); in dp_rx_stats_update()
1008 DP_STATS_INC(mon_peer, rx.reception_type[ppdu->u.ppdu_type], in dp_rx_stats_update()
1010 DP_STATS_INC(mon_peer, rx.ppdu_cnt[ppdu->u.ppdu_type], 1); in dp_rx_stats_update()
1011 DP_STATS_INCC(mon_peer, rx.ampdu_cnt, num_msdu, in dp_rx_stats_update()
1013 DP_STATS_INCC(mon_peer, rx.non_ampdu_cnt, num_msdu, in dp_rx_stats_update()
1015 DP_STATS_UPD(mon_peer, rx.rx_rate, mcs); in dp_rx_stats_update()
1037 DP_STATS_INCC(mon_peer, in dp_rx_stats_update()
1042 DP_STATS_INCC(mon_peer, in dp_rx_stats_update()
1045 DP_STATS_INCC(mon_peer, in dp_rx_stats_update()
1048 DP_STATS_INCC(mon_peer, in dp_rx_stats_update()
1060 DP_STATS_INC(mon_peer, rx.wme_ac_type[ac], num_msdu); in dp_rx_stats_update()
1061 DP_STATS_INC(mon_peer, rx.wme_ac_type_bytes[ac], in dp_rx_stats_update()
1065 DP_STATS_INC(mon_peer, rx.rx_ppdus, 1); in dp_rx_stats_update()
1066 DP_STATS_INC(mon_peer, rx.rx_mpdus, in dp_rx_stats_update()
1071 mon_ops->mon_rx_stats_update(mon_peer, ppdu, ppdu_user); in dp_rx_stats_update()
1077 DP_STATS_UPD(mon_peer, rx.last_snr, ppdu->rssi); in dp_rx_stats_update()
2270 struct dp_mon_peer *mon_peer; in dp_rx_mon_update_user_ctrl_frame_stats() local
2289 mon_peer = peer->monitor_peer; in dp_rx_mon_update_user_ctrl_frame_stats()
2290 if (qdf_unlikely(!mon_peer)) { in dp_rx_mon_update_user_ctrl_frame_stats()
2294 DP_STATS_INCC(mon_peer, rx.ndpa_cnt, 1, in dp_rx_mon_update_user_ctrl_frame_stats()
2296 DP_STATS_INCC(mon_peer, rx.bar_cnt, 1, in dp_rx_mon_update_user_ctrl_frame_stats()