Lines Matching refs:srng
276 struct hal_srng *srng; in ath11k_ce_rx_buf_enqueue_pipe() local
286 srng = &ab->hal.srng_list[ring->hal_ring_id]; in ath11k_ce_rx_buf_enqueue_pipe()
288 spin_lock_bh(&srng->lock); in ath11k_ce_rx_buf_enqueue_pipe()
290 ath11k_hal_srng_access_begin(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe()
292 if (unlikely(ath11k_hal_srng_src_num_free(ab, srng, false) < 1)) { in ath11k_ce_rx_buf_enqueue_pipe()
297 desc = ath11k_hal_srng_src_get_next_entry(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe()
313 ath11k_hal_srng_access_end(ab, srng); in ath11k_ce_rx_buf_enqueue_pipe()
315 spin_unlock_bh(&srng->lock); in ath11k_ce_rx_buf_enqueue_pipe()
373 struct hal_srng *srng; in ath11k_ce_completed_recv_next() local
384 srng = &ab->hal.srng_list[pipe->status_ring->hal_ring_id]; in ath11k_ce_completed_recv_next()
386 spin_lock_bh(&srng->lock); in ath11k_ce_completed_recv_next()
388 ath11k_hal_srng_access_begin(ab, srng); in ath11k_ce_completed_recv_next()
390 desc = ath11k_hal_srng_dst_get_next_entry(ab, srng); in ath11k_ce_completed_recv_next()
410 ath11k_hal_srng_access_end(ab, srng); in ath11k_ce_completed_recv_next()
412 spin_unlock_bh(&srng->lock); in ath11k_ce_completed_recv_next()
462 struct hal_srng *srng; in ath11k_ce_completed_send_next() local
473 srng = &ab->hal.srng_list[pipe->src_ring->hal_ring_id]; in ath11k_ce_completed_send_next()
475 spin_lock_bh(&srng->lock); in ath11k_ce_completed_send_next()
477 ath11k_hal_srng_access_begin(ab, srng); in ath11k_ce_completed_send_next()
479 desc = ath11k_hal_srng_src_reap_next(ab, srng); in ath11k_ce_completed_send_next()
493 spin_unlock_bh(&srng->lock); in ath11k_ce_completed_send_next()
715 struct hal_srng *srng; in ath11k_ce_send() local
753 srng = &ab->hal.srng_list[pipe->src_ring->hal_ring_id]; in ath11k_ce_send()
755 spin_lock_bh(&srng->lock); in ath11k_ce_send()
757 ath11k_hal_srng_access_begin(ab, srng); in ath11k_ce_send()
759 if (unlikely(ath11k_hal_srng_src_num_free(ab, srng, false) < 1)) { in ath11k_ce_send()
760 ath11k_hal_srng_access_end(ab, srng); in ath11k_ce_send()
765 desc = ath11k_hal_srng_src_get_next_reaped(ab, srng); in ath11k_ce_send()
767 ath11k_hal_srng_access_end(ab, srng); in ath11k_ce_send()
782 ath11k_hal_srng_access_end(ab, srng); in ath11k_ce_send()
785 ath11k_dp_shadow_start_timer(ab, srng, &ab->ce.hp_timer[pipe_id]); in ath11k_ce_send()
787 spin_unlock_bh(&srng->lock); in ath11k_ce_send()
794 spin_unlock_bh(&srng->lock); in ath11k_ce_send()