Lines Matching refs:wr_idx
169 u32 empty_space, rd_idx, wr_idx, qsize; in venus_write_queue() local
186 wr_idx = qhdr->write_idx; in venus_write_queue()
191 if (wr_idx >= rd_idx) in venus_write_queue()
192 empty_space = qsize - (wr_idx - rd_idx); in venus_write_queue()
194 empty_space = rd_idx - wr_idx; in venus_write_queue()
207 new_wr_idx = wr_idx + dwords; in venus_write_queue()
208 wr_ptr = (u32 *)(queue->qmem.kva + (wr_idx << 2)); in venus_write_queue()
237 u32 rd_idx, wr_idx, type, qsize; in venus_read_queue() local
251 wr_idx = qhdr->write_idx; in venus_read_queue()
267 if (rd_idx == wr_idx) { in venus_read_queue()
306 wr_idx = qhdr->write_idx; in venus_read_queue()
310 if (rd_idx != wr_idx) in venus_read_queue()