Lines Matching refs:src_ring
97 hal_get_sw_hptp(scn->hal_soc, CE_state->src_ring->srng_ctx, &tp, &hp); in hif_display_ctrl_traffic_pipes_state()
171 struct CE_ring_state *src_ring = CE_state->src_ring; in ce_send_nolock_srng() local
172 unsigned int nentries_mask = src_ring->nentries_mask; in ce_send_nolock_srng()
173 unsigned int write_index = src_ring->write_index; in ce_send_nolock_srng()
179 if (unlikely(hal_srng_src_num_avail(scn->hal_soc, src_ring->srng_ctx, in ce_send_nolock_srng()
189 if (hal_srng_access_start(scn->hal_soc, src_ring->srng_ctx)) { in ce_send_nolock_srng()
195 src_ring->srng_ctx); in ce_send_nolock_srng()
221 src_ring->per_transfer_context[write_index] = in ce_send_nolock_srng()
225 hal_srng_access_end(scn->hal_soc, src_ring->srng_ctx); in ce_send_nolock_srng()
233 src_ring->write_index, nbytes, in ce_send_nolock_srng()
234 src_ring->srng_ctx); in ce_send_nolock_srng()
236 src_ring->write_index = write_index; in ce_send_nolock_srng()
251 struct CE_ring_state *src_ring = CE_state->src_ring; in ce_sendlist_send_srng() local
257 QDF_ASSERT((num_items > 0) && (num_items < src_ring->nentries)); in ce_sendlist_send_srng()
260 sw_index = src_ring->sw_index; in ce_sendlist_send_srng()
261 write_index = src_ring->write_index; in ce_sendlist_send_srng()
263 if (hal_srng_src_num_avail(scn->hal_soc, src_ring->srng_ctx, false) >= in ce_sendlist_send_srng()
419 struct CE_ring_state *src_ring = CE_state->src_ring; in ce_send_entries_done_nolock_srng() local
422 if (hal_srng_access_start(scn->hal_soc, src_ring->srng_ctx)) in ce_send_entries_done_nolock_srng()
425 count = hal_srng_src_done_val(scn->hal_soc, src_ring->srng_ctx); in ce_send_entries_done_nolock_srng()
427 hal_srng_access_end_reap(scn->hal_soc, src_ring->srng_ctx); in ce_send_entries_done_nolock_srng()
596 struct CE_ring_state *src_ring = CE_state->src_ring; in ce_completed_send_next_nolock_srng() local
597 unsigned int nentries_mask = src_ring->nentries_mask; in ce_completed_send_next_nolock_srng()
598 unsigned int sw_index = src_ring->sw_index; in ce_completed_send_next_nolock_srng()
599 unsigned int swi = src_ring->sw_index; in ce_completed_send_next_nolock_srng()
603 if (hal_srng_access_start(scn->hal_soc, src_ring->srng_ctx)) { in ce_completed_send_next_nolock_srng()
608 src_desc = hal_srng_src_reap_next(scn->hal_soc, src_ring->srng_ctx); in ce_completed_send_next_nolock_srng()
613 src_ring-> in ce_completed_send_next_nolock_srng()
616 src_ring->srng_ctx); in ce_completed_send_next_nolock_srng()
633 src_ring->per_transfer_context[sw_index]; in ce_completed_send_next_nolock_srng()
635 src_ring->per_transfer_context[sw_index] = 0; /* sanity */ in ce_completed_send_next_nolock_srng()
639 src_ring->sw_index = sw_index; in ce_completed_send_next_nolock_srng()
642 hal_srng_access_end_reap(scn->hal_soc, src_ring->srng_ctx); in ce_completed_send_next_nolock_srng()
659 struct CE_ring_state *src_ring; in ce_cancel_send_next_srng() local
666 src_ring = CE_state->src_ring; in ce_cancel_send_next_srng()
667 if (!src_ring) in ce_cancel_send_next_srng()
670 nentries_mask = src_ring->nentries_mask; in ce_cancel_send_next_srng()
671 sw_index = src_ring->sw_index; in ce_cancel_send_next_srng()
674 if (hal_srng_access_start(scn->hal_soc, src_ring->srng_ctx)) { in ce_cancel_send_next_srng()
680 src_ring->srng_ctx); in ce_cancel_send_next_srng()
697 src_ring->per_transfer_context[sw_index]; in ce_cancel_send_next_srng()
699 src_ring->per_transfer_context[sw_index] = 0; /* sanity */ in ce_cancel_send_next_srng()
703 src_ring->sw_index = sw_index; in ce_cancel_send_next_srng()
706 hal_srng_access_end_reap(scn->hal_soc, src_ring->srng_ctx); in ce_cancel_send_next_srng()
778 struct CE_ring_state *src_ring, in ce_srng_src_ring_setup() argument
785 ring_params.ring_base_paddr = src_ring->base_addr_CE_space; in ce_srng_src_ring_setup()
786 ring_params.ring_base_vaddr = src_ring->base_addr_owner_space; in ce_srng_src_ring_setup()
787 ring_params.num_entries = src_ring->nentries; in ce_srng_src_ring_setup()
803 src_ring->srng_ctx = hal_srng_setup(scn->hal_soc, CE_SRC, ce_id, 0, in ce_srng_src_ring_setup()
982 hal_srng = (hal_ring_handle_t)CE_state->src_ring->srng_ctx; in ce_ring_cleanup_srng()
1089 if (CE_state->src_ring) { in ce_get_index_info_srng()
1090 hal_get_sw_hptp(scn->hal_soc, CE_state->src_ring->srng_ctx, in ce_get_index_info_srng()
1135 if (ce_state->src_ring) { in ce_set_srng_msi_irq_config_by_ceid()
1136 ring_hdl = ce_state->src_ring->srng_ctx; in ce_set_srng_msi_irq_config_by_ceid()
1271 if (ce_state->src_ring) in ce_get_direct_link_srng_info()
1273 ce_state->src_ring->srng_ctx); in ce_get_direct_link_srng_info()