Lines Matching refs:rd_idx
90 u32 wr_idx, rd_idx; in msgq_occupied() local
93 rd_idx = readl_relaxed(&msgq->rd_idx); in msgq_occupied()
95 return ((wr_idx - rd_idx) & qinfo->q_mask); in msgq_occupied()
487 readl_relaxed(&msgq->rd_idx), in bcm_vk_sync_msgq()
668 readl_relaxed(&msgq->rd_idx), in bcm_to_v_msg_enqueue()
785 u32 rd_idx, wr_idx; in bcm_to_h_msg_dequeue() local
807 rd_idx = readl_relaxed(&msgq->rd_idx); in bcm_to_h_msg_dequeue()
811 while ((rd_idx != wr_idx) && !exit_loop) { in bcm_to_h_msg_dequeue()
822 src = msgq_blk_addr(qinfo, rd_idx & qinfo->q_mask); in bcm_to_h_msg_dequeue()
825 if ((rd_idx >= qinfo->q_size) || in bcm_to_h_msg_dequeue()
829 rd_idx, src_size, qinfo->q_size); in bcm_to_h_msg_dequeue()
845 rd_idx = msgq_inc(qinfo, rd_idx, 1); in bcm_to_h_msg_dequeue()
846 src = msgq_blk_addr(qinfo, rd_idx); in bcm_to_h_msg_dequeue()
860 writel(rd_idx, &msgq->rd_idx); in bcm_to_h_msg_dequeue()
866 rd_idx, in bcm_to_h_msg_dequeue()