Lines Matching refs:srng

348 	struct hal_srng *srng;  in ath11k_dp_rxbufs_replenish()  local
359 srng = &ab->hal.srng_list[rx_ring->refill_buf_ring.ring_id]; in ath11k_dp_rxbufs_replenish()
361 spin_lock_bh(&srng->lock); in ath11k_dp_rxbufs_replenish()
363 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_rxbufs_replenish()
365 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rxbufs_replenish()
398 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dp_rxbufs_replenish()
412 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rxbufs_replenish()
414 spin_unlock_bh(&srng->lock); in ath11k_dp_rxbufs_replenish()
428 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rxbufs_replenish()
430 spin_unlock_bh(&srng->lock); in ath11k_dp_rxbufs_replenish()
596 struct dp_srng *srng = NULL; in ath11k_dp_rx_pdev_srng_alloc() local
634 srng = &dp->rx_mon_status_refill_ring[i].refill_buf_ring; in ath11k_dp_rx_pdev_srng_alloc()
636 srng, in ath11k_dp_rx_pdev_srng_alloc()
854 struct hal_srng *srng; in ath11k_dp_rx_link_desc_return() local
858 srng = &ab->hal.srng_list[dp->wbm_desc_rel_ring.ring_id]; in ath11k_dp_rx_link_desc_return()
860 spin_lock_bh(&srng->lock); in ath11k_dp_rx_link_desc_return()
862 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_rx_link_desc_return()
864 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dp_rx_link_desc_return()
874 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rx_link_desc_return()
876 spin_unlock_bh(&srng->lock); in ath11k_dp_rx_link_desc_return()
2639 struct hal_srng *srng; in ath11k_dp_process_rx() local
2652 srng = &ab->hal.srng_list[dp->reo_dst_ring[ring_id].ring_id]; in ath11k_dp_process_rx()
2654 spin_lock_bh(&srng->lock); in ath11k_dp_process_rx()
2657 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_process_rx()
2661 srng))) { in ath11k_dp_process_rx()
2731 if (unlikely(!done && ath11k_hal_srng_dst_num_free(ab, srng, true))) { in ath11k_dp_process_rx()
2732 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_process_rx()
2736 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_process_rx()
2738 spin_unlock_bh(&srng->lock); in ath11k_dp_process_rx()
2889 struct hal_srng *srng; in ath11k_dp_rx_mon_status_bufs_replenish() local
2900 srng = &ab->hal.srng_list[rx_ring->refill_buf_ring.ring_id]; in ath11k_dp_rx_mon_status_bufs_replenish()
2902 spin_lock_bh(&srng->lock); in ath11k_dp_rx_mon_status_bufs_replenish()
2904 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_rx_mon_status_bufs_replenish()
2906 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rx_mon_status_bufs_replenish()
2918 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dp_rx_mon_status_bufs_replenish()
2930 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rx_mon_status_bufs_replenish()
2932 spin_unlock_bh(&srng->lock); in ath11k_dp_rx_mon_status_bufs_replenish()
2943 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rx_mon_status_bufs_replenish()
2944 spin_unlock_bh(&srng->lock); in ath11k_dp_rx_mon_status_bufs_replenish()
2994 struct hal_srng *srng; in ath11k_dp_rx_reap_mon_status_ring() local
3011 srng = &ab->hal.srng_list[rx_ring->refill_buf_ring.ring_id]; in ath11k_dp_rx_reap_mon_status_ring()
3013 spin_lock_bh(&srng->lock); in ath11k_dp_rx_reap_mon_status_ring()
3015 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_rx_reap_mon_status_ring()
3019 ath11k_hal_srng_src_peek(ab, srng); in ath11k_dp_rx_reap_mon_status_ring()
3088 ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dp_rx_reap_mon_status_ring()
3091 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rx_reap_mon_status_ring()
3092 spin_unlock_bh(&srng->lock); in ath11k_dp_rx_reap_mon_status_ring()
3354 struct hal_srng *srng; in ath11k_dp_rx_h_defrag_reo_reinject() local
3407 srng = &ab->hal.srng_list[ab->dp.reo_reinject_ring.ring_id]; in ath11k_dp_rx_h_defrag_reo_reinject()
3409 spin_lock_bh(&srng->lock); in ath11k_dp_rx_h_defrag_reo_reinject()
3410 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_rx_h_defrag_reo_reinject()
3413 ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_dp_rx_h_defrag_reo_reinject()
3415 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rx_h_defrag_reo_reinject()
3416 spin_unlock_bh(&srng->lock); in ath11k_dp_rx_h_defrag_reo_reinject()
3441 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rx_h_defrag_reo_reinject()
3442 spin_unlock_bh(&srng->lock); in ath11k_dp_rx_h_defrag_reo_reinject()
3741 struct hal_srng *srng; in ath11k_dp_process_rx_err() local
3758 srng = &ab->hal.srng_list[reo_except->ring_id]; in ath11k_dp_process_rx_err()
3760 spin_lock_bh(&srng->lock); in ath11k_dp_process_rx_err()
3762 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_process_rx_err()
3765 (desc = ath11k_hal_srng_dst_get_next_entry(ab, srng))) { in ath11k_dp_process_rx_err()
3825 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_process_rx_err()
3827 spin_unlock_bh(&srng->lock); in ath11k_dp_process_rx_err()
4047 struct hal_srng *srng; in ath11k_dp_rx_process_wbm_err() local
4060 srng = &ab->hal.srng_list[dp->rx_rel_ring.ring_id]; in ath11k_dp_rx_process_wbm_err()
4062 spin_lock_bh(&srng->lock); in ath11k_dp_rx_process_wbm_err()
4064 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_rx_process_wbm_err()
4067 rx_desc = ath11k_hal_srng_dst_get_next_entry(ab, srng); in ath11k_dp_rx_process_wbm_err()
4118 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_rx_process_wbm_err()
4120 spin_unlock_bh(&srng->lock); in ath11k_dp_rx_process_wbm_err()
4164 struct hal_srng *srng; in ath11k_dp_process_rxdma_err() local
4186 srng = &ab->hal.srng_list[err_ring->ring_id]; in ath11k_dp_process_rxdma_err()
4188 spin_lock_bh(&srng->lock); in ath11k_dp_process_rxdma_err()
4190 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_process_rxdma_err()
4193 (desc = ath11k_hal_srng_dst_get_next_entry(ab, srng))) { in ath11k_dp_process_rxdma_err()
4236 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_process_rxdma_err()
4238 spin_unlock_bh(&srng->lock); in ath11k_dp_process_rxdma_err()
4250 struct hal_srng *srng; in ath11k_dp_process_reo_status() local
4257 srng = &ab->hal.srng_list[dp->reo_status_ring.ring_id]; in ath11k_dp_process_reo_status()
4261 spin_lock_bh(&srng->lock); in ath11k_dp_process_reo_status()
4263 ath11k_hal_srng_access_begin(ab, srng); in ath11k_dp_process_reo_status()
4265 while ((reo_desc = ath11k_hal_srng_dst_get_next_entry(ab, srng))) { in ath11k_dp_process_reo_status()
4321 ath11k_hal_srng_access_end(ab, srng); in ath11k_dp_process_reo_status()
4323 spin_unlock_bh(&srng->lock); in ath11k_dp_process_reo_status()