Lines Matching refs:ring_id
128 int ring_id; in hal_get_srng_ring_id() local
143 ring_id = (ring_config->start_ring_id + ring_num + in hal_get_srng_ring_id()
146 ring_id = ring_config->start_ring_id + ring_num; in hal_get_srng_ring_id()
149 return ring_id; in hal_get_srng_ring_id()
152 static struct hal_srng *hal_get_srng(struct hal_soc *hal, int ring_id) in hal_get_srng() argument
155 return &(hal->srng_list[ring_id]); in hal_get_srng()
167 int ring_id; in hal_update_srng_hp_tp_address() local
171 ring_id = hal_get_srng_ring_id(hal_soc, ring_type, ring_num, 0); in hal_update_srng_hp_tp_address()
172 if (ring_id < 0) in hal_update_srng_hp_tp_address()
175 srng = hal_get_srng(hal_soc, ring_id); in hal_update_srng_hp_tp_address()
818 #define IS_SRNG_MATCH(s) ((s)->ring_id == HAL_SRNG_CE_1_DST_STATUS || \
819 (s)->ring_id == HAL_SRNG_CE_1_DST)
881 uint8_t ring_id; in hal_reg_write_work() local
915 (qdf_atomic_read(&q_elem->ring_id) != in hal_reg_write_work()
916 q_elem->srng->ring_id))) { in hal_reg_write_work()
918 q_elem->srng ? q_elem->srng->ring_id : 0xDEAD, in hal_reg_write_work()
919 qdf_atomic_read(&q_elem->ring_id)); in hal_reg_write_work()
929 ring_id = q_elem->srng->ring_id; in hal_reg_write_work()
940 q_elem->srng->ring_id, q_elem->addr); in hal_reg_write_work()
944 hal->read_idx, ring_id, addr, write_val, delta_us); in hal_reg_write_work()
946 qdf_trace_dp_del_reg_write(ring_id, q_elem->enqueue_val, in hal_reg_write_work()
1003 srng->ring_id, addr, value); in hal_reg_write_enqueue()
1028 qdf_atomic_set(&q_elem->ring_id, srng->ring_id); in hal_reg_write_enqueue()
1056 write_idx, srng->ring_id, addr, value); in hal_reg_write_enqueue()
1125 void hal_event_suspend_record(uint8_t ring_id, uint32_t value, uint32_t count) in hal_event_suspend_record() argument
1133 cur_event->ring_id = ring_id; in hal_event_suspend_record()
1140 void hal_record_suspend_write(uint8_t ring_id, uint32_t value, uint32_t count) in hal_record_suspend_write() argument
1143 hal_event_suspend_record(ring_id, value, count); in hal_record_suspend_write()
1147 void hal_record_suspend_write(uint8_t ring_id, uint32_t value, uint32_t count) in hal_record_suspend_write() argument
1214 hal_record_suspend_write(srng->ring_id, value, srng->wstats.direct); in hal_delayed_reg_write()
1303 hal->srng_list[i].ring_id = i; in hal_attach()
1697 srng->ring_id, in hal_srng_update_high_wm_thresholds()
1715 int ring_id; in hal_srng_setup_idx() local
1724 ring_id = hal_get_srng_ring_id(hal_soc, ring_type, ring_num, mac_id); in hal_srng_setup_idx()
1725 if (ring_id < 0) in hal_srng_setup_idx()
1728 hal_verbose_debug("mac_id %d ring_id %d", mac_id, ring_id); in hal_srng_setup_idx()
1730 srng = hal_get_srng(hal_soc, ring_id); in hal_srng_setup_idx()
1739 srng->ring_id = ring_id; in hal_srng_setup_idx()
1801 &(hal->shadow_rdptr_mem_vaddr[ring_id]); in hal_srng_setup_idx()
1814 &(hal->shadow_wrptr_mem_vaddr[ring_id - in hal_srng_setup_idx()
1851 &(hal->shadow_rdptr_mem_vaddr[ring_id]); in hal_srng_setup_idx()
1862 &(hal->shadow_wrptr_mem_vaddr[ring_id - in hal_srng_setup_idx()
2005 hal_debug("=== SRC RING %d ===", srng->ring_id); in hal_srng_dump()
2012 hal_debug("=== DST RING %d ===", srng->ring_id); in hal_srng_dump()
2027 ring_params->ring_id = srng->ring_id; in hal_get_srng_params()
2041 ring_params->ring_id = srng->ring_id; in hal_get_srng_params()