Lines Matching refs:q_elem
751 struct hal_reg_write_q_elem *q_elem) in hal_process_reg_write_q_elem() argument
753 struct hal_srng *srng = q_elem->srng; in hal_process_reg_write_q_elem()
762 q_elem->dequeue_val = srng->u.src_ring.hp; in hal_process_reg_write_q_elem()
768 q_elem->dequeue_val = srng->u.dst_ring.tp; in hal_process_reg_write_q_elem()
778 q_elem->valid = 0; in hal_process_reg_write_q_elem()
779 srng->last_dequeue_time = q_elem->dequeue_time; in hal_process_reg_write_q_elem()
879 struct hal_reg_write_q_elem *q_elem; in hal_reg_write_work() local
886 q_elem = &hal->reg_write_queue[(hal->read_idx)]; in hal_reg_write_work()
887 q_elem->work_scheduled_time = qdf_get_log_timestamp(); in hal_reg_write_work()
888 q_elem->cpu_id = qdf_get_cpu(); in hal_reg_write_work()
892 if (!q_elem->valid) in hal_reg_write_work()
906 if (!q_elem->valid) in hal_reg_write_work()
914 if (qdf_unlikely(!q_elem->srng || in hal_reg_write_work()
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()
928 q_elem->dequeue_time = qdf_get_log_timestamp(); in hal_reg_write_work()
929 ring_id = q_elem->srng->ring_id; in hal_reg_write_work()
930 addr = q_elem->addr; in hal_reg_write_work()
931 delta_us = qdf_log_timestamp_to_usecs(q_elem->dequeue_time - in hal_reg_write_work()
932 q_elem->enqueue_time); in hal_reg_write_work()
938 if (hal_reg_write_need_delay(q_elem)) in hal_reg_write_work()
940 q_elem->srng->ring_id, q_elem->addr); in hal_reg_write_work()
942 write_val = hal_process_reg_write_q_elem(hal, q_elem); in hal_reg_write_work()
946 qdf_trace_dp_del_reg_write(ring_id, q_elem->enqueue_val, in hal_reg_write_work()
947 q_elem->dequeue_val, in hal_reg_write_work()
948 q_elem->enqueue_time, in hal_reg_write_work()
949 q_elem->dequeue_time); in hal_reg_write_work()
954 q_elem = &hal->reg_write_queue[(hal->read_idx)]; in hal_reg_write_work()
998 struct hal_reg_write_q_elem *q_elem; in hal_reg_write_enqueue() local
1013 q_elem = &hal_soc->reg_write_queue[write_idx]; in hal_reg_write_enqueue()
1015 if (q_elem->valid) { in hal_reg_write_enqueue()
1026 q_elem->srng = srng; in hal_reg_write_enqueue()
1027 q_elem->addr = addr; in hal_reg_write_enqueue()
1028 qdf_atomic_set(&q_elem->ring_id, srng->ring_id); in hal_reg_write_enqueue()
1029 q_elem->enqueue_val = value; in hal_reg_write_enqueue()
1030 q_elem->enqueue_time = qdf_get_log_timestamp(); in hal_reg_write_enqueue()
1039 q_elem->valid = true; in hal_reg_write_enqueue()