Lines Matching refs:cqes
36 struct nvme_completion *cqes; member
130 u64 start = (ulong)&nvmeq->cqes[index]; in nvme_read_completion_status()
135 return le16_to_cpu(readw(&(nvmeq->cqes[index].status))); in nvme_read_completion_status()
199 *result = le32_to_cpu(readl(&(nvmeq->cqes[head].result))); in nvme_submit_sync_cmd()
227 nvmeq->cqes = (void *)memalign(4096, NVME_CQ_SIZE(depth)); in nvme_alloc_queue()
228 if (!nvmeq->cqes) in nvme_alloc_queue()
230 memset((void *)nvmeq->cqes, 0, NVME_CQ_SIZE(depth)); in nvme_alloc_queue()
250 free((void *)nvmeq->cqes); in nvme_alloc_queue()
298 free((void *)nvmeq->cqes); in nvme_free_queue()
323 memset((void *)nvmeq->cqes, 0, NVME_CQ_SIZE(nvmeq->q_depth)); in nvme_init_queue()
324 flush_dcache_range((ulong)nvmeq->cqes, in nvme_init_queue()
325 (ulong)nvmeq->cqes + NVME_CQ_SIZE(nvmeq->q_depth)); in nvme_init_queue()
376 nvme_writeq((ulong)nvmeq->cqes, &dev->bar->acq); in nvme_configure_admin_queue()
402 c.create_cq.prp1 = cpu_to_le64((ulong)nvmeq->cqes); in nvme_alloc_cq()