Lines Matching refs:mac_id

343 int ath11k_dp_rxbufs_replenish(struct ath11k_base *ab, int mac_id,  in ath11k_dp_rxbufs_replenish()  argument
404 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, mac_id) | in ath11k_dp_rxbufs_replenish()
512 ath11k_dp_rxbufs_replenish(ar->ab, dp->mac_id, rx_ring, num_entries, in ath11k_dp_rxdma_ring_buf_setup()
603 dp->mac_id, DP_RXDMA_BUF_RING_SIZE); in ath11k_dp_rx_pdev_srng_alloc()
614 dp->mac_id + i, 1024); in ath11k_dp_rx_pdev_srng_alloc()
625 HAL_RXDMA_DST, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc()
637 HAL_RXDMA_MONITOR_STATUS, 0, dp->mac_id + i, in ath11k_dp_rx_pdev_srng_alloc()
660 HAL_RXDMA_MONITOR_BUF, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
669 HAL_RXDMA_MONITOR_DST, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
678 HAL_RXDMA_MONITOR_DESC, 0, dp->mac_id, in ath11k_dp_rx_pdev_srng_alloc()
2596 int mac_id) in ath11k_dp_rx_process_received_packets() argument
2606 if (unlikely(!rcu_access_pointer(ab->pdevs_active[mac_id]))) { in ath11k_dp_rx_process_received_packets()
2611 ar = ab->pdevs[mac_id].ar; in ath11k_dp_rx_process_received_packets()
2642 int buf_id, mac_id; in ath11k_dp_process_rx() local
2666 mac_id = FIELD_GET(DP_RXDMA_BUF_COOKIE_PDEV_ID, cookie); in ath11k_dp_process_rx()
2668 ar = ab->pdevs[mac_id].ar; in ath11k_dp_process_rx()
2687 num_buffs_reaped[mac_id]++; in ath11k_dp_process_rx()
2711 rxcb->mac_id = mac_id; in ath11k_dp_process_rx()
2712 __skb_queue_tail(&msdu_list[mac_id], msdu); in ath11k_dp_process_rx()
2884 int ath11k_dp_rx_mon_status_bufs_replenish(struct ath11k_base *ab, int mac_id, in ath11k_dp_rx_mon_status_bufs_replenish() argument
2922 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, mac_id) | in ath11k_dp_rx_mon_status_bufs_replenish()
2986 static int ath11k_dp_rx_reap_mon_status_ring(struct ath11k_base *ab, int mac_id, in ath11k_dp_rx_reap_mon_status_ring() argument
3005 ar = ab->pdevs[ath11k_hw_mac_id_to_pdev_id(&ab->hw_params, mac_id)].ar; in ath11k_dp_rx_reap_mon_status_ring()
3008 srng_id = ath11k_hw_mac_id_to_srng_id(&ab->hw_params, mac_id); in ath11k_dp_rx_reap_mon_status_ring()
3082 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, mac_id) | in ath11k_dp_rx_reap_mon_status_ring()
3400 cookie = FIELD_PREP(DP_RXDMA_BUF_COOKIE_PDEV_ID, dp->mac_id) | in ath11k_dp_rx_h_defrag_reo_reinject()
3744 int buf_id, mac_id; in ath11k_dp_process_rx_err() local
3805 mac_id = FIELD_GET(DP_RXDMA_BUF_COOKIE_PDEV_ID, in ath11k_dp_process_rx_err()
3808 ar = ab->pdevs[mac_id].ar; in ath11k_dp_process_rx_err()
3811 n_bufs_reaped[mac_id]++; in ath11k_dp_process_rx_err()
4052 int buf_id, mac_id; in ath11k_dp_rx_process_wbm_err() local
4080 mac_id = FIELD_GET(DP_RXDMA_BUF_COOKIE_PDEV_ID, err_info.cookie); in ath11k_dp_rx_process_wbm_err()
4082 ar = ab->pdevs[mac_id].ar; in ath11k_dp_rx_process_wbm_err()
4089 buf_id, mac_id); in ath11k_dp_rx_process_wbm_err()
4102 num_buffs_reaped[mac_id]++; in ath11k_dp_rx_process_wbm_err()
4115 __skb_queue_tail(&msdu_list[mac_id], msdu); in ath11k_dp_rx_process_wbm_err()
4158 int ath11k_dp_process_rxdma_err(struct ath11k_base *ab, int mac_id, int budget) in ath11k_dp_process_rxdma_err() argument
4181 ar = ab->pdevs[ath11k_hw_mac_id_to_pdev_id(&ab->hw_params, mac_id)].ar; in ath11k_dp_process_rxdma_err()
4183 mac_id)]; in ath11k_dp_process_rxdma_err()
4241 ath11k_dp_rxbufs_replenish(ab, mac_id, rx_ring, num_buf_freed, in ath11k_dp_process_rxdma_err()
4326 void ath11k_dp_rx_pdev_free(struct ath11k_base *ab, int mac_id) in ath11k_dp_rx_pdev_free() argument
4328 struct ath11k *ar = ab->pdevs[mac_id].ar; in ath11k_dp_rx_pdev_free()
4334 int ath11k_dp_rx_pdev_alloc(struct ath11k_base *ab, int mac_id) in ath11k_dp_rx_pdev_alloc() argument
4336 struct ath11k *ar = ab->pdevs[mac_id].ar; in ath11k_dp_rx_pdev_alloc()
4355 ret = ath11k_dp_tx_htt_srng_setup(ab, ring_id, mac_id, HAL_RXDMA_BUF); in ath11k_dp_rx_pdev_alloc()
4366 mac_id + i, HAL_RXDMA_BUF); in ath11k_dp_rx_pdev_alloc()
4378 mac_id + i, HAL_RXDMA_DST); in ath11k_dp_rx_pdev_alloc()
4391 mac_id, HAL_RXDMA_MONITOR_BUF); in ath11k_dp_rx_pdev_alloc()
4399 mac_id, HAL_RXDMA_MONITOR_DST); in ath11k_dp_rx_pdev_alloc()
4407 mac_id, HAL_RXDMA_MONITOR_DESC); in ath11k_dp_rx_pdev_alloc()
4417 ret = ath11k_dp_tx_htt_srng_setup(ab, ring_id, mac_id + i, in ath11k_dp_rx_pdev_alloc()
4444 u8 mac_id) in ath11k_dp_rx_monitor_link_desc_return() argument
4471 "Monitor Link Desc Ring %d Full", mac_id); in ath11k_dp_rx_monitor_link_desc_return()
4602 ath11k_dp_rx_mon_mpdu_pop(struct ath11k *ar, int mac_id, in ath11k_dp_rx_mon_mpdu_pop() argument
4773 dp->mac_id)) in ath11k_dp_rx_mon_mpdu_pop()
4808 u32 mac_id, struct sk_buff *head_msdu, in ath11k_dp_rx_mon_merg_msdus() argument
4988 static int ath11k_dp_rx_mon_deliver(struct ath11k *ar, u32 mac_id, in ath11k_dp_rx_mon_deliver() argument
4999 mon_skb = ath11k_dp_rx_mon_merg_msdus(ar, mac_id, head_msdu, in ath11k_dp_rx_mon_deliver()
5050 static void ath11k_dp_rx_mon_dest_process(struct ath11k *ar, int mac_id, in ath11k_dp_rx_mon_dest_process() argument
5068 ring_id = dp->rxdma_err_dst_ring[mac_id].ring_id; in ath11k_dp_rx_mon_dest_process()
5093 mpdu_rx_bufs_used = ath11k_dp_rx_mon_mpdu_pop(ar, mac_id, ring_entry, in ath11k_dp_rx_mon_dest_process()
5129 ath11k_dp_rx_mon_deliver(ar, dp->mac_id, head_msdu, in ath11k_dp_rx_mon_dest_process()
5147 ath11k_dp_rxbufs_replenish(ar->ab, dp->mac_id, in ath11k_dp_rx_mon_dest_process()
5152 ath11k_dp_rxbufs_replenish(ar->ab, dp->mac_id, in ath11k_dp_rx_mon_dest_process()
5159 int ath11k_dp_rx_process_mon_status(struct ath11k_base *ab, int mac_id, in ath11k_dp_rx_process_mon_status() argument
5162 struct ath11k *ar = ath11k_ab_to_ar(ab, mac_id); in ath11k_dp_rx_process_mon_status()
5177 num_buffs_reaped = ath11k_dp_rx_reap_mon_status_ring(ab, mac_id, &budget, in ath11k_dp_rx_process_mon_status()
5209 ath11k_dp_rx_mon_dest_process(ar, mac_id, budget, napi); in ath11k_dp_rx_process_mon_status()
5386 dp->mac_id)) in ath11k_dp_rx_full_mon_mpdu_pop()
5442 int mac_id, in ath11k_dp_rx_full_mon_deliver_ppdu() argument
5461 ret = ath11k_dp_rx_mon_deliver(ar, mac_id, head_msdu, in ath11k_dp_rx_full_mon_deliver_ppdu()
5474 ath11k_dp_rx_process_full_mon_status_ring(struct ath11k_base *ab, int mac_id, in ath11k_dp_rx_process_full_mon_status_ring() argument
5477 struct ath11k *ar = ab->pdevs[mac_id].ar; in ath11k_dp_rx_process_full_mon_status_ring()
5486 quota = ath11k_dp_rx_process_mon_status(ab, mac_id, in ath11k_dp_rx_process_full_mon_status_ring()
5491 quota += ath11k_dp_rx_process_mon_status(ab, mac_id, in ath11k_dp_rx_process_full_mon_status_ring()
5495 ath11k_dp_rx_full_mon_deliver_ppdu(ar, dp->mac_id, in ath11k_dp_rx_process_full_mon_status_ring()
5516 static int ath11k_dp_full_mon_process_rx(struct ath11k_base *ab, int mac_id, in ath11k_dp_full_mon_process_rx() argument
5519 struct ath11k *ar = ab->pdevs[mac_id].ar; in ath11k_dp_full_mon_process_rx()
5587 ath11k_dp_rxbufs_replenish(ar->ab, dp->mac_id, in ath11k_dp_full_mon_process_rx()
5594 quota = ath11k_dp_rx_process_full_mon_status_ring(ab, mac_id, in ath11k_dp_full_mon_process_rx()
5600 int ath11k_dp_rx_process_mon_rings(struct ath11k_base *ab, int mac_id, in ath11k_dp_rx_process_mon_rings() argument
5603 struct ath11k *ar = ath11k_ab_to_ar(ab, mac_id); in ath11k_dp_rx_process_mon_rings()
5608 ret = ath11k_dp_full_mon_process_rx(ab, mac_id, napi, budget); in ath11k_dp_rx_process_mon_rings()
5610 ret = ath11k_dp_rx_process_mon_status(ab, mac_id, napi, budget); in ath11k_dp_rx_process_mon_rings()