Lines Matching refs:mon_pdev

310 				       struct dp_mon_pdev *mon_pdev)  in dp_rx_mon_rf_index_conv()  argument
312 uint32_t xbar_config = mon_pdev->rssi_offsets.xbar_config; in dp_rx_mon_rf_index_conv()
314 if (mon_pdev->rssi_dbm_conv_support && xbar_config) in dp_rx_mon_rf_index_conv()
320 struct dp_mon_pdev *mon_pdev) in dp_rx_mon_rf_index_conv() argument
333 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_populate_rx_rssi_chain() local
337 chain_rf = dp_rx_mon_rf_index_conv(chain, mon_pdev); in dp_rx_populate_rx_rssi_chain()
912 struct dp_mon_pdev *mon_pdev = NULL; in dp_rx_stats_update() local
924 mon_pdev = pdev->monitor_pdev; in dp_rx_stats_update()
936 mon_peer = mon_pdev->invalid_mon_peer; in dp_rx_stats_update()
1102 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_handle_ppdu_stats() local
1115 if (qdf_unlikely(mon_pdev->neighbour_peers_added)) { in dp_rx_handle_ppdu_stats()
1122 qdf_spin_lock_bh(&mon_pdev->neighbour_peer_mutex); in dp_rx_handle_ppdu_stats()
1123 if (mon_pdev->neighbour_peers_added) { in dp_rx_handle_ppdu_stats()
1124 TAILQ_FOREACH(peer, &mon_pdev->neighbour_peers_list, in dp_rx_handle_ppdu_stats()
1134 qdf_spin_unlock_bh(&mon_pdev->neighbour_peer_mutex); in dp_rx_handle_ppdu_stats()
1146 if (qdf_unlikely(!mon_pdev->mcopy_mode && in dp_rx_handle_ppdu_stats()
1147 !mon_pdev->enhanced_stats_en && in dp_rx_handle_ppdu_stats()
1156 if (!(mon_pdev->mcopy_mode || in dp_rx_handle_ppdu_stats()
1192 } else if (qdf_unlikely(mon_pdev->mcopy_mode || dp_cfr_rcc_mode_status(pdev))) { in dp_rx_handle_ppdu_stats()
1372 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_handle_ppdu_undecoded_metadata() local
1379 mask64 = RX_PHYERR_MASK_GET64(mon_pdev->phyrx_error_mask, in dp_rx_handle_ppdu_undecoded_metadata()
1380 mon_pdev->phyrx_error_mask_cont); in dp_rx_handle_ppdu_undecoded_metadata()
1403 mon_pdev->rx_mon_stats.rx_undecoded_count++; in dp_rx_handle_ppdu_undecoded_metadata()
1404 mon_pdev->rx_mon_stats.rx_undecoded_error[abort_reason] += 1; in dp_rx_handle_ppdu_undecoded_metadata()
1422 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_handle_mcopy_mode() local
1428 if (mon_pdev->mcopy_mode == M_COPY) { in dp_rx_handle_mcopy_mode()
1429 if (mon_pdev->m_copy_id.rx_ppdu_id == ppdu_info->com_info.ppdu_id) in dp_rx_handle_mcopy_mode()
1449 *nbuf_data = mon_pdev->ppdu_info.com_info.ppdu_id; in dp_rx_handle_mcopy_mode()
1453 mon_pdev->m_copy_id.rx_ppdu_id = ppdu_info->com_info.ppdu_id; in dp_rx_handle_mcopy_mode()
1468 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_mcopy_handle_last_mpdu() local
1473 if (mon_pdev->mcopy_status_nbuf) { in dp_rx_mcopy_handle_last_mpdu()
1475 if (mon_pdev->mcopy_mode == M_COPY) { in dp_rx_mcopy_handle_last_mpdu()
1476 if (mon_pdev->m_copy_id.rx_ppdu_id == in dp_rx_mcopy_handle_last_mpdu()
1482 nbuf_clone = qdf_nbuf_clone(mon_pdev->mcopy_status_nbuf); in dp_rx_mcopy_handle_last_mpdu()
1490 mon_pdev->m_copy_id.rx_ppdu_id = ppdu_info->com_info.ppdu_id; in dp_rx_mcopy_handle_last_mpdu()
1498 qdf_nbuf_free(mon_pdev->mcopy_status_nbuf); in dp_rx_mcopy_handle_last_mpdu()
1499 mon_pdev->mcopy_status_nbuf = NULL; in dp_rx_mcopy_handle_last_mpdu()
1509 mon_pdev->mcopy_status_nbuf = qdf_nbuf_clone(status_nbuf); in dp_rx_mcopy_handle_last_mpdu()
1510 if (mon_pdev->mcopy_status_nbuf) { in dp_rx_mcopy_handle_last_mpdu()
1514 mon_pdev->mcopy_status_nbuf, in dp_rx_mcopy_handle_last_mpdu()
1518 qdf_nbuf_free(mon_pdev->mcopy_status_nbuf); in dp_rx_mcopy_handle_last_mpdu()
1519 mon_pdev->mcopy_status_nbuf = NULL; in dp_rx_mcopy_handle_last_mpdu()
1530 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_mcopy_process_ppdu_info() local
1532 if (qdf_unlikely(!mon_pdev->mcopy_mode)) in dp_rx_mcopy_process_ppdu_info()
1573 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_process_mcopy_mode() local
1584 if (mon_pdev->mcopy_mode == M_COPY) in dp_rx_process_mcopy_mode()
1624 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_handle_smart_mesh_mode() local
1626 if (!mon_pdev->mvdev) { in dp_rx_handle_smart_mesh_mode()
1633 mon_vdev = mon_pdev->mvdev->monitor_vdev; in dp_rx_handle_smart_mesh_mode()
1657 if (!qdf_nbuf_update_radiotap(&mon_pdev->ppdu_info.rx_status, nbuf, in dp_rx_handle_smart_mesh_mode()
1663 mon_vdev->osif_rx_mon(mon_pdev->mvdev->osif_vdev, in dp_rx_handle_smart_mesh_mode()
1665 mon_pdev->ppdu_info.rx_status.monitor_direct_used = 0; in dp_rx_handle_smart_mesh_mode()
1678 dp_rx_mon_stitch_mpdu(struct dp_mon_pdev *mon_pdev, qdf_nbuf_t tail) in dp_rx_mon_stitch_mpdu() argument
1684 if (!(qdf_nbuf_is_queue_empty(&mon_pdev->msdu_queue))) { in dp_rx_mon_stitch_mpdu()
1685 head = qdf_nbuf_queue_remove(&mon_pdev->msdu_queue); in dp_rx_mon_stitch_mpdu()
1704 if (qdf_nbuf_queue_first(&mon_pdev->msdu_queue) == tail) in dp_rx_mon_stitch_mpdu()
1707 next = qdf_nbuf_queue_remove(&mon_pdev->msdu_queue); in dp_rx_mon_stitch_mpdu()
1721 qdf_nbuf_queue_len(&mon_pdev->msdu_queue), in dp_rx_mon_stitch_mpdu()
1722 qdf_nbuf_queue_len(&mon_pdev->mpdu_queue)); in dp_rx_mon_stitch_mpdu()
1727 if (qdf_nbuf_queue_first(&mon_pdev->msdu_queue) == tail) in dp_rx_mon_stitch_mpdu()
1729 nbuf = qdf_nbuf_queue_remove(&mon_pdev->msdu_queue); in dp_rx_mon_stitch_mpdu()
1744 dp_rx_mon_send_mpdu(struct dp_pdev *pdev, struct dp_mon_pdev *mon_pdev, in dp_rx_mon_send_mpdu() argument
1749 if (qdf_unlikely(!mon_pdev->mvdev)) { in dp_rx_mon_send_mpdu()
1755 mon_pdev->ppdu_info.rx_status.ppdu_id = in dp_rx_mon_send_mpdu()
1756 mon_pdev->ppdu_info.com_info.ppdu_id; in dp_rx_mon_send_mpdu()
1757 mon_pdev->ppdu_info.rx_status.device_id = pdev->soc->device_id; in dp_rx_mon_send_mpdu()
1758 mon_pdev->ppdu_info.rx_status.chan_noise_floor = in dp_rx_mon_send_mpdu()
1761 if (!qdf_nbuf_update_radiotap(&mon_pdev->ppdu_info.rx_status, mpdu_buf, in dp_rx_mon_send_mpdu()
1769 mon_vdev = mon_pdev->mvdev->monitor_vdev; in dp_rx_mon_send_mpdu()
1771 mon_vdev->osif_rx_mon(mon_pdev->mvdev->osif_vdev, in dp_rx_mon_send_mpdu()
1781 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_rx_handle_local_pkt_capture() local
1785 qdf_spin_lock_bh(&mon_pdev->lpc_lock); in dp_rx_handle_local_pkt_capture()
1790 if (qdf_unlikely(mon_pdev->first_mpdu)) { in dp_rx_handle_local_pkt_capture()
1791 mon_pdev->first_mpdu = false; in dp_rx_handle_local_pkt_capture()
1796 last = qdf_nbuf_queue_last(&mon_pdev->msdu_queue); in dp_rx_handle_local_pkt_capture()
1797 buf = dp_rx_mon_stitch_mpdu(mon_pdev, last); in dp_rx_handle_local_pkt_capture()
1800 qdf_nbuf_queue_add(&mon_pdev->mpdu_queue, buf); in dp_rx_handle_local_pkt_capture()
1814 qdf_nbuf_data(buf)) + mon_pdev->phy_ppdu_id_size; in dp_rx_handle_local_pkt_capture()
1825 mon_pdev->phy_ppdu_id_size); in dp_rx_handle_local_pkt_capture()
1828 qdf_nbuf_queue_add(&mon_pdev->msdu_queue, buf); in dp_rx_handle_local_pkt_capture()
1834 while ((buf = qdf_nbuf_queue_remove(&mon_pdev->mpdu_queue))) in dp_rx_handle_local_pkt_capture()
1835 dp_rx_mon_send_mpdu(pdev, mon_pdev, buf); in dp_rx_handle_local_pkt_capture()
1838 buf = dp_rx_mon_stitch_mpdu(mon_pdev, NULL); in dp_rx_handle_local_pkt_capture()
1840 dp_rx_mon_send_mpdu(pdev, mon_pdev, buf); in dp_rx_handle_local_pkt_capture()
1842 mon_pdev->first_mpdu = true; in dp_rx_handle_local_pkt_capture()
1850 qdf_spin_unlock_bh(&mon_pdev->lpc_lock); in dp_rx_handle_local_pkt_capture()
1943 struct dp_mon_pdev *mon_pdev = pdev->monitor_pdev; in dp_send_mgmt_packet_to_stack() local
1972 *nbuf_data = mon_pdev->ppdu_info.com_info.ppdu_id; in dp_send_mgmt_packet_to_stack()
1998 struct dp_mon_pdev *mon_pdev; in dp_rx_mon_process_dest_pktlog() local
2003 mon_pdev = pdev->monitor_pdev; in dp_rx_mon_process_dest_pktlog()
2005 if (mon_pdev->rx_pktlog_cbf) { in dp_rx_mon_process_dest_pktlog()
2023 msdu_timestamp = mon_pdev->ppdu_info.rx_status.tsft; in dp_rx_mon_process_dest_pktlog()
2041 struct dp_mon_pdev *mon_pdev; in dp_rx_mon_deliver() local
2046 mon_pdev = pdev->monitor_pdev; in dp_rx_mon_deliver()
2047 rs = &mon_pdev->rx_mon_recv_status; in dp_rx_mon_deliver()
2049 if (!mon_pdev->mvdev && !mon_pdev->mcopy_mode && in dp_rx_mon_deliver()
2050 !mon_pdev->rx_pktlog_cbf) in dp_rx_mon_deliver()
2068 if (mon_pdev->mcopy_mode) in dp_rx_mon_deliver()
2071 if (mon_pdev->mvdev && in dp_rx_mon_deliver()
2072 mon_pdev->mvdev->osif_vdev && in dp_rx_mon_deliver()
2073 mon_pdev->mvdev->monitor_vdev && in dp_rx_mon_deliver()
2074 mon_pdev->mvdev->monitor_vdev->osif_rx_mon) { in dp_rx_mon_deliver()
2075 mon_vdev = mon_pdev->mvdev->monitor_vdev; in dp_rx_mon_deliver()
2077 mon_pdev->ppdu_info.rx_status.ppdu_id = in dp_rx_mon_deliver()
2078 mon_pdev->ppdu_info.com_info.ppdu_id; in dp_rx_mon_deliver()
2079 mon_pdev->ppdu_info.rx_status.device_id = soc->device_id; in dp_rx_mon_deliver()
2080 mon_pdev->ppdu_info.rx_status.chan_noise_floor = in dp_rx_mon_deliver()
2084 if (!qdf_nbuf_update_radiotap(&mon_pdev->ppdu_info.rx_status, in dp_rx_mon_deliver()
2093 mon_vdev->osif_rx_mon(mon_pdev->mvdev->osif_vdev, in dp_rx_mon_deliver()
2095 &mon_pdev->ppdu_info.rx_status); in dp_rx_mon_deliver()
2098 , soc, mon_mpdu, mon_pdev->mvdev, in dp_rx_mon_deliver()
2099 (mon_pdev->mvdev ? mon_pdev->mvdev->osif_vdev in dp_rx_mon_deliver()
2127 struct dp_mon_pdev *mon_pdev; in dp_rx_mon_deliver_non_std() local
2134 mon_pdev = pdev->monitor_pdev; in dp_rx_mon_deliver_non_std()
2136 if (!mon_pdev->mvdev || !mon_pdev->mvdev || in dp_rx_mon_deliver_non_std()
2137 !mon_pdev->mvdev->monitor_vdev || in dp_rx_mon_deliver_non_std()
2138 !mon_pdev->mvdev->monitor_vdev->osif_rx_mon) in dp_rx_mon_deliver_non_std()
2141 mon_vdev = mon_pdev->mvdev->monitor_vdev; in dp_rx_mon_deliver_non_std()
2152 mon_pdev->ppdu_info.rx_status.ppdu_id = in dp_rx_mon_deliver_non_std()
2153 mon_pdev->ppdu_info.com_info.ppdu_id; in dp_rx_mon_deliver_non_std()
2156 if (!qdf_nbuf_update_radiotap(&mon_pdev->ppdu_info.rx_status, dummy_msdu, in dp_rx_mon_deliver_non_std()
2164 osif_rx_mon(mon_pdev->mvdev->osif_vdev, in dp_rx_mon_deliver_non_std()
2255 dp_mon_rx_stats_update_rssi_dbm_params(struct dp_mon_pdev *mon_pdev, in dp_mon_rx_stats_update_rssi_dbm_params() argument
2258 ppdu_info->rx_status.rssi_offset = mon_pdev->rssi_offsets.rssi_offset; in dp_mon_rx_stats_update_rssi_dbm_params()
2260 mon_pdev->rssi_dbm_conv_support; in dp_mon_rx_stats_update_rssi_dbm_params()
2262 mon_pdev->rssi_offsets.rssi_offset; in dp_mon_rx_stats_update_rssi_dbm_params()