Lines Matching refs:mon_peer
2169 struct dp_mon_peer *mon_peer = NULL; in dp_peer_update_telemetry_stats() local
2185 mon_peer = peer->monitor_peer; in dp_peer_update_telemetry_stats()
2186 if (qdf_likely(mon_peer)) { in dp_peer_update_telemetry_stats()
2187 stat_airtime = &mon_peer->stats.airtime_stats; in dp_peer_update_telemetry_stats()
2481 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_peer_copy_delay_stats() local
2483 if (mon_peer->last_delayed_ba) { in dp_peer_copy_delay_stats()
2486 mon_peer->last_delayed_ba_ppduid, cur_ppdu_id); in dp_peer_copy_delay_stats()
2494 mon_peer->delayed_ba_ppdu_stats.ltf_size = ppdu->ltf_size; in dp_peer_copy_delay_stats()
2495 mon_peer->delayed_ba_ppdu_stats.stbc = ppdu->stbc; in dp_peer_copy_delay_stats()
2496 mon_peer->delayed_ba_ppdu_stats.he_re = ppdu->he_re; in dp_peer_copy_delay_stats()
2497 mon_peer->delayed_ba_ppdu_stats.txbf = ppdu->txbf; in dp_peer_copy_delay_stats()
2498 mon_peer->delayed_ba_ppdu_stats.bw = ppdu->bw; in dp_peer_copy_delay_stats()
2499 mon_peer->delayed_ba_ppdu_stats.nss = ppdu->nss; in dp_peer_copy_delay_stats()
2500 mon_peer->delayed_ba_ppdu_stats.gi = ppdu->gi; in dp_peer_copy_delay_stats()
2501 mon_peer->delayed_ba_ppdu_stats.dcm = ppdu->dcm; in dp_peer_copy_delay_stats()
2502 mon_peer->delayed_ba_ppdu_stats.ldpc = ppdu->ldpc; in dp_peer_copy_delay_stats()
2503 mon_peer->delayed_ba_ppdu_stats.dcm = ppdu->dcm; in dp_peer_copy_delay_stats()
2504 mon_peer->delayed_ba_ppdu_stats.mpdu_tried_ucast = in dp_peer_copy_delay_stats()
2506 mon_peer->delayed_ba_ppdu_stats.mpdu_tried_mcast = in dp_peer_copy_delay_stats()
2508 mon_peer->delayed_ba_ppdu_stats.frame_ctrl = ppdu->frame_ctrl; in dp_peer_copy_delay_stats()
2509 mon_peer->delayed_ba_ppdu_stats.qos_ctrl = ppdu->qos_ctrl; in dp_peer_copy_delay_stats()
2510 mon_peer->delayed_ba_ppdu_stats.dcm = ppdu->dcm; in dp_peer_copy_delay_stats()
2512 mon_peer->delayed_ba_ppdu_stats.ru_start = ppdu->ru_start; in dp_peer_copy_delay_stats()
2513 mon_peer->delayed_ba_ppdu_stats.ru_tones = ppdu->ru_tones; in dp_peer_copy_delay_stats()
2514 mon_peer->delayed_ba_ppdu_stats.is_mcast = ppdu->is_mcast; in dp_peer_copy_delay_stats()
2516 mon_peer->delayed_ba_ppdu_stats.user_pos = ppdu->user_pos; in dp_peer_copy_delay_stats()
2517 mon_peer->delayed_ba_ppdu_stats.mu_group_id = ppdu->mu_group_id; in dp_peer_copy_delay_stats()
2519 mon_peer->last_delayed_ba = true; in dp_peer_copy_delay_stats()
2541 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_peer_copy_stats_to_bar() local
2543 ppdu->ltf_size = mon_peer->delayed_ba_ppdu_stats.ltf_size; in dp_peer_copy_stats_to_bar()
2544 ppdu->stbc = mon_peer->delayed_ba_ppdu_stats.stbc; in dp_peer_copy_stats_to_bar()
2545 ppdu->he_re = mon_peer->delayed_ba_ppdu_stats.he_re; in dp_peer_copy_stats_to_bar()
2546 ppdu->txbf = mon_peer->delayed_ba_ppdu_stats.txbf; in dp_peer_copy_stats_to_bar()
2547 ppdu->bw = mon_peer->delayed_ba_ppdu_stats.bw; in dp_peer_copy_stats_to_bar()
2548 ppdu->nss = mon_peer->delayed_ba_ppdu_stats.nss; in dp_peer_copy_stats_to_bar()
2549 ppdu->gi = mon_peer->delayed_ba_ppdu_stats.gi; in dp_peer_copy_stats_to_bar()
2550 ppdu->dcm = mon_peer->delayed_ba_ppdu_stats.dcm; in dp_peer_copy_stats_to_bar()
2551 ppdu->ldpc = mon_peer->delayed_ba_ppdu_stats.ldpc; in dp_peer_copy_stats_to_bar()
2552 ppdu->dcm = mon_peer->delayed_ba_ppdu_stats.dcm; in dp_peer_copy_stats_to_bar()
2554 mon_peer->delayed_ba_ppdu_stats.mpdu_tried_ucast; in dp_peer_copy_stats_to_bar()
2556 mon_peer->delayed_ba_ppdu_stats.mpdu_tried_mcast; in dp_peer_copy_stats_to_bar()
2557 ppdu->frame_ctrl = mon_peer->delayed_ba_ppdu_stats.frame_ctrl; in dp_peer_copy_stats_to_bar()
2558 ppdu->qos_ctrl = mon_peer->delayed_ba_ppdu_stats.qos_ctrl; in dp_peer_copy_stats_to_bar()
2559 ppdu->dcm = mon_peer->delayed_ba_ppdu_stats.dcm; in dp_peer_copy_stats_to_bar()
2561 ppdu->ru_start = mon_peer->delayed_ba_ppdu_stats.ru_start; in dp_peer_copy_stats_to_bar()
2562 ppdu->ru_tones = mon_peer->delayed_ba_ppdu_stats.ru_tones; in dp_peer_copy_stats_to_bar()
2563 ppdu->is_mcast = mon_peer->delayed_ba_ppdu_stats.is_mcast; in dp_peer_copy_stats_to_bar()
2565 ppdu->user_pos = mon_peer->delayed_ba_ppdu_stats.user_pos; in dp_peer_copy_stats_to_bar()
2566 ppdu->mu_group_id = mon_peer->delayed_ba_ppdu_stats.mu_group_id; in dp_peer_copy_stats_to_bar()
2568 mon_peer->last_delayed_ba = false; in dp_peer_copy_stats_to_bar()
2588 struct dp_mon_peer *mon_peer = NULL; in dp_tx_rate_stats_update() local
2596 mon_peer = peer->monitor_peer; in dp_tx_rate_stats_update()
2597 if (!mon_peer) in dp_tx_rate_stats_update()
2623 DP_STATS_UPD(mon_peer, tx.tx_rate, ratekbps); in dp_tx_rate_stats_update()
2624 mon_peer->stats.tx.avg_tx_rate = in dp_tx_rate_stats_update()
2625 dp_ath_rate_lpf(mon_peer->stats.tx.avg_tx_rate, ratekbps); in dp_tx_rate_stats_update()
2626 ppdu_tx_rate = dp_ath_rate_out(mon_peer->stats.tx.avg_tx_rate); in dp_tx_rate_stats_update()
2627 DP_STATS_UPD(mon_peer, tx.rnd_avg_tx_rate, ppdu_tx_rate); in dp_tx_rate_stats_update()
2629 mon_peer->stats.tx.bw_info = ppdu->bw; in dp_tx_rate_stats_update()
2630 mon_peer->stats.tx.gi_info = ppdu->gi; in dp_tx_rate_stats_update()
2631 mon_peer->stats.tx.nss_info = ppdu->nss; in dp_tx_rate_stats_update()
2632 mon_peer->stats.tx.mcs_info = ppdu->mcs; in dp_tx_rate_stats_update()
2633 mon_peer->stats.tx.preamble_info = ppdu->preamble; in dp_tx_rate_stats_update()
2658 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_send_stats_event() local
2663 if (qdf_unlikely(!mon_peer)) in dp_send_stats_event()
2666 mon_peer->stats.rx.rx_snr_measured_time = qdf_system_ticks(); in dp_send_stats_event()
2667 peer_stats_intf.rx_avg_snr = mon_peer->stats.rx.avg_snr; in dp_send_stats_event()
3123 struct dp_mon_peer *mon_peer = NULL; in dp_ppdu_desc_user_deter_stats_update() local
3135 mon_peer = peer->monitor_peer; in dp_ppdu_desc_user_deter_stats_update()
3136 if (qdf_unlikely(!mon_peer)) in dp_ppdu_desc_user_deter_stats_update()
3166 avg_tx_rate = mon_peer->stats.deter_stats.avg_tx_rate; in dp_ppdu_desc_user_deter_stats_update()
3169 DP_STATS_UPD(mon_peer, in dp_ppdu_desc_user_deter_stats_update()
3181 DP_STATS_INC(mon_peer, in dp_ppdu_desc_user_deter_stats_update()
3185 DP_STATS_UPD(mon_peer, in dp_ppdu_desc_user_deter_stats_update()
3189 DP_STATS_INC(mon_peer, in dp_ppdu_desc_user_deter_stats_update()
3193 DP_STATS_UPD(mon_peer, in dp_ppdu_desc_user_deter_stats_update()
3197 DP_STATS_INC(mon_peer, in dp_ppdu_desc_user_deter_stats_update()
3201 DP_STATS_INC(mon_peer, in dp_ppdu_desc_user_deter_stats_update()
3259 struct dp_mon_peer *mon_peer = NULL; in dp_tx_stats_update() local
3280 mon_peer = peer->monitor_peer; in dp_tx_stats_update()
3281 if (!mon_peer) in dp_tx_stats_update()
3285 DP_STATS_INC(mon_peer, tx.tx_ucast_total.num, num_msdu); in dp_tx_stats_update()
3286 DP_STATS_INC(mon_peer, tx.tx_ucast_total.bytes, in dp_tx_stats_update()
3297 DP_STATS_INC(mon_peer, tx.retries, mpdu_failed); in dp_tx_stats_update()
3303 DP_STATS_INC(mon_peer, tx.num_ppdu_cookie_valid, 1); in dp_tx_stats_update()
3312 DP_STATS_UPD(mon_peer, tx.mu_group_id[ppdu->mu_group_id], in dp_tx_stats_update()
3318 DP_STATS_UPD(mon_peer, tx.ru_tones, ppdu->ru_tones); in dp_tx_stats_update()
3319 DP_STATS_UPD(mon_peer, tx.ru_start, ppdu->ru_start); in dp_tx_stats_update()
3322 DP_STATS_INC(mon_peer, tx.ru_loc[ru_index].num_msdu, in dp_tx_stats_update()
3324 DP_STATS_INC(mon_peer, tx.ru_loc[ru_index].num_mpdu, in dp_tx_stats_update()
3326 DP_STATS_INC(mon_peer, tx.ru_loc[ru_index].mpdu_tried, in dp_tx_stats_update()
3337 DP_STATS_INC(mon_peer, tx.retries, mpdu_failed); in dp_tx_stats_update()
3339 DP_STATS_INC(mon_peer, tx.transmit_type[ppdu->ppdu_type].num_msdu, in dp_tx_stats_update()
3341 DP_STATS_INC(mon_peer, tx.transmit_type[ppdu->ppdu_type].num_mpdu, in dp_tx_stats_update()
3343 DP_STATS_INC(mon_peer, tx.transmit_type[ppdu->ppdu_type].mpdu_tried, in dp_tx_stats_update()
3346 DP_STATS_INC(mon_peer, tx.sgi_count[ppdu->gi], num_msdu); in dp_tx_stats_update()
3347 DP_STATS_INC(mon_peer, tx.bw[ppdu->bw], num_msdu); in dp_tx_stats_update()
3348 DP_STATS_INC(mon_peer, tx.nss[ppdu->nss], num_msdu); in dp_tx_stats_update()
3350 DP_STATS_INC(mon_peer, tx.wme_ac_type[TID_TO_WME_AC(ppdu->tid)], in dp_tx_stats_update()
3352 DP_STATS_INC(mon_peer, in dp_tx_stats_update()
3357 DP_STATS_INCC(mon_peer, tx.stbc, num_msdu, ppdu->stbc); in dp_tx_stats_update()
3358 DP_STATS_INCC(mon_peer, tx.ldpc, num_msdu, ppdu->ldpc); in dp_tx_stats_update()
3360 DP_STATS_UPD(mon_peer, tx.last_ack_rssi, ppdu_desc->ack_rssi); in dp_tx_stats_update()
3363 DP_STATS_INC(mon_peer, tx.tx_ucast_success.num, num_msdu); in dp_tx_stats_update()
3364 DP_STATS_INC(mon_peer, tx.tx_ucast_success.bytes, in dp_tx_stats_update()
3388 DP_STATS_INCC(mon_peer, in dp_tx_stats_update()
3391 DP_STATS_INCC(mon_peer, tx.ampdu_cnt, num_mpdu, ppdu->is_ampdu); in dp_tx_stats_update()
3392 DP_STATS_INCC(mon_peer, tx.non_ampdu_cnt, num_mpdu, !(ppdu->is_ampdu)); in dp_tx_stats_update()
3393 DP_STATS_INCC(mon_peer, tx.pream_punct_cnt, 1, ppdu->pream_punct); in dp_tx_stats_update()
3394 DP_STATS_INC(mon_peer, tx.tx_ppdus, 1); in dp_tx_stats_update()
3395 DP_STATS_INC(mon_peer, tx.tx_mpdus_success, num_mpdu); in dp_tx_stats_update()
3396 DP_STATS_INC(mon_peer, tx.tx_mpdus_tried, mpdu_tried); in dp_tx_stats_update()
3399 DP_STATS_UPD(mon_peer, tx.rssi_chain[idx], ppdu->rssi_chain[idx]); in dp_tx_stats_update()
3403 mon_ops->mon_tx_stats_update(mon_peer, ppdu); in dp_tx_stats_update()
3412 ratekbps = mon_peer->stats.tx.tx_rate; in dp_tx_stats_update()
3413 DP_STATS_UPD(mon_peer, tx.last_tx_rate, ratekbps); in dp_tx_stats_update()
4297 struct dp_mon_peer *mon_peer = NULL; in dp_process_ppdu_stats_user_compltn_flush_tlv() local
4328 mon_peer = peer->monitor_peer; in dp_process_ppdu_stats_user_compltn_flush_tlv()
4329 DP_STATS_INC(mon_peer, in dp_process_ppdu_stats_user_compltn_flush_tlv()
4394 struct dp_mon_peer *mon_peer; in dp_process_ppdu_stats_sch_cmd_status_tlv() local
4413 mon_peer = peer->monitor_peer; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4414 delay_ppdu = &mon_peer->delayed_ba_ppdu_stats; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4424 mon_peer->last_delayed_ba_ppduid = ppdu_id; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4429 mon_peer->last_delayed_ba; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4457 struct dp_mon_peer *mon_peer; in dp_process_ppdu_stats_sch_cmd_status_tlv() local
4476 mon_peer = peer->monitor_peer; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4484 delay_ppdu = &mon_peer->delayed_ba_ppdu_stats; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4488 if (mon_peer->last_delayed_ba) { in dp_process_ppdu_stats_sch_cmd_status_tlv()
4492 mon_peer->last_delayed_ba_ppduid; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4497 mon_peer->last_delayed_ba; in dp_process_ppdu_stats_sch_cmd_status_tlv()
4657 struct dp_mon_peer *mon_peer = NULL; in dp_ppdu_desc_user_airtime_consumption_update() local
4660 mon_peer = peer->monitor_peer; in dp_ppdu_desc_user_airtime_consumption_update()
4661 if (qdf_unlikely(!mon_peer)) in dp_ppdu_desc_user_airtime_consumption_update()
4665 DP_STATS_INC(mon_peer, airtime_stats.tx_airtime_consumption[ac].consumption, in dp_ppdu_desc_user_airtime_consumption_update()
4684 struct dp_mon_peer *mon_peer = NULL; in dp_ppdu_desc_user_phy_tx_time_update() local
4692 mon_peer = peer->monitor_peer; in dp_ppdu_desc_user_phy_tx_time_update()
4693 if (qdf_unlikely(!mon_peer)) in dp_ppdu_desc_user_phy_tx_time_update()
4733 struct dp_mon_peer *mon_peer = NULL; in dp_tx_ctrl_stats_update() local
4739 mon_peer = peer->monitor_peer; in dp_tx_ctrl_stats_update()
4740 if (qdf_unlikely(!mon_peer)) in dp_tx_ctrl_stats_update()
4744 DP_STATS_INCC(mon_peer, in dp_tx_ctrl_stats_update()
4746 DP_STATS_INCC(mon_peer, in dp_tx_ctrl_stats_update()
4754 DP_STATS_INC(mon_peer, tx.ndpa_cnt, 1); in dp_tx_ctrl_stats_update()
4757 DP_STATS_INC(mon_peer, tx.bar_cnt, 1); in dp_tx_ctrl_stats_update()
6242 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_mon_peer_attach_notify() local
6265 mon_peer->peerstats_ctx = NULL; in dp_mon_peer_attach_notify()
6267 mon_peer->peerstats_ctx = in dp_mon_peer_attach_notify()
6283 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_mon_peer_detach_notify() local
6294 peer_cookie.ctx = (struct cdp_stats_cookie *)mon_peer->peerstats_ctx; in dp_mon_peer_detach_notify()
6303 mon_peer->peerstats_ctx = NULL; in dp_mon_peer_detach_notify()
6322 struct dp_mon_peer *mon_peer; in dp_mon_peer_attach() local
6325 mon_peer = (struct dp_mon_peer *)qdf_mem_malloc(sizeof(*mon_peer)); in dp_mon_peer_attach()
6326 if (!mon_peer) { in dp_mon_peer_attach()
6331 peer->monitor_peer = mon_peer; in dp_mon_peer_attach()
6340 DP_STATS_INIT(mon_peer); in dp_mon_peer_attach()
6341 DP_STATS_UPD(mon_peer, rx.avg_snr, CDP_INVALID_SNR); in dp_mon_peer_attach()
6351 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_mon_peer_detach() local
6353 if (!mon_peer) in dp_mon_peer_detach()
6358 qdf_mem_free(mon_peer); in dp_mon_peer_detach()
6382 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_mon_peer_get_peerstats_ctx() local
6384 if (mon_peer) in dp_mon_peer_get_peerstats_ctx()
6385 return mon_peer->peerstats_ctx; in dp_mon_peer_get_peerstats_ctx()
6393 struct dp_mon_peer *mon_peer = NULL; in dp_mon_peer_reset_stats() local
6395 mon_peer = peer->monitor_peer; in dp_mon_peer_reset_stats()
6396 if (!mon_peer) in dp_mon_peer_reset_stats()
6399 DP_STATS_CLR(mon_peer); in dp_mon_peer_reset_stats()
6400 DP_STATS_UPD(mon_peer, rx.avg_snr, CDP_INVALID_SNR); in dp_mon_peer_reset_stats()
6406 struct dp_mon_peer *mon_peer = peer->monitor_peer; in dp_mon_peer_get_stats() local
6409 if (!mon_peer || !arg) in dp_mon_peer_get_stats()
6412 mon_peer_stats = &mon_peer->stats; in dp_mon_peer_get_stats()
6443 struct dp_mon_peer *mon_peer; in dp_mon_invalid_peer_update_pdev_stats() local
6450 mon_peer = pdev->monitor_pdev->invalid_mon_peer; in dp_mon_invalid_peer_update_pdev_stats()
6451 if (!mon_peer) in dp_mon_invalid_peer_update_pdev_stats()
6454 mon_peer_stats = &mon_peer->stats; in dp_mon_invalid_peer_update_pdev_stats()
6464 struct dp_mon_peer *mon_peer; in dp_mon_peer_get_stats_param() local
6466 mon_peer = peer->monitor_peer; in dp_mon_peer_get_stats_param()
6467 if (!mon_peer) in dp_mon_peer_get_stats_param()
6472 buf->tx_rate = mon_peer->stats.tx.tx_rate; in dp_mon_peer_get_stats_param()
6475 buf->last_tx_rate = mon_peer->stats.tx.last_tx_rate; in dp_mon_peer_get_stats_param()
6478 buf->tx_ratecode = mon_peer->stats.tx.tx_ratecode; in dp_mon_peer_get_stats_param()
6481 buf->rx_rate = mon_peer->stats.rx.rx_rate; in dp_mon_peer_get_stats_param()
6484 buf->last_rx_rate = mon_peer->stats.rx.last_rx_rate; in dp_mon_peer_get_stats_param()
6487 buf->rx_ratecode = mon_peer->stats.rx.rx_ratecode; in dp_mon_peer_get_stats_param()
6490 buf->rx_avg_snr = mon_peer->stats.rx.avg_snr; in dp_mon_peer_get_stats_param()
6493 buf->rx_snr = mon_peer->stats.rx.snr; in dp_mon_peer_get_stats_param()
6496 buf->rx_rate_avg = mon_peer->stats.rx.rnd_avg_rx_rate; in dp_mon_peer_get_stats_param()
6499 buf->tx_rate_avg = mon_peer->stats.tx.rnd_avg_tx_rate; in dp_mon_peer_get_stats_param()