Lines Matching refs:qmem
106 struct mem_desc qmem; member
171 if (!queue->qmem.kva) in venus_write_queue()
207 wr_ptr = (u32 *)(queue->qmem.kva + (wr_idx << 2)); in venus_write_queue()
209 if (wr_ptr < (u32 *)queue->qmem.kva || in venus_write_queue()
210 wr_ptr > (u32 *)(queue->qmem.kva + queue->qmem.size - sizeof(*wr_ptr))) in venus_write_queue()
221 memcpy(queue->qmem.kva, packet + len, new_wr_idx << 2); in venus_write_queue()
246 if (!queue->qmem.kva) in venus_read_queue()
279 rd_ptr = (u32 *)(queue->qmem.kva + (rd_idx << 2)); in venus_read_queue()
281 if (rd_ptr < (u32 *)queue->qmem.kva || in venus_read_queue()
282 rd_ptr > (u32 *)(queue->qmem.kva + queue->qmem.size - sizeof(*rd_ptr))) in venus_read_queue()
299 memcpy(pkt + len, queue->qmem.kva, new_rd_idx << 2); in venus_read_queue()
796 queue->qmem.da = desc.da + offset; in venus_interface_queues_init()
797 queue->qmem.kva = desc.kva + offset; in venus_interface_queues_init()
798 queue->qmem.size = IFACEQ_QUEUE_SIZE; in venus_interface_queues_init()
799 offset += queue->qmem.size; in venus_interface_queues_init()
805 queue->qhdr->start_addr = queue->qmem.da; in venus_interface_queues_init()
1727 queue->qhdr->start_addr = queue->qmem.da; in venus_hfi_queues_reinit()