Lines Matching defs:riscv_iommu_queue
22 struct riscv_iommu_queue { struct
23 atomic_t prod; /* unbounded producer allocation index */
24 atomic_t head; /* unbounded shadow ring buffer consumer index */
25 atomic_t tail; /* unbounded shadow ring buffer producer index */
26 unsigned int mask; /* index mask, queue length - 1 */
27 unsigned int irq; /* allocated interrupt number */
28 struct riscv_iommu_device *iommu; /* iommu device handling the queue when active */
29 void *base; /* ring buffer kernel pointer */
30 dma_addr_t phys; /* ring buffer physical address */
31 u16 qbr; /* base register offset, head and tail reference */
32 u16 qcr; /* control and status register offset */
56 struct riscv_iommu_queue cmdq; argument