Lines Matching refs:depth
138 if (++tail == queue->depth) in nvme_submit_cmd()
677 if (++head == queue->depth) in nvme_queue_isr()
741 cmd.create_cq.qsize = rt_cpu_to_le16(queue->depth - 1); in nvme_attach_queue()
750 cmd.create_sq.qsize = rt_cpu_to_le16(queue->depth - 1); in nvme_attach_queue()
810 rt_dma_free(nvme->dev, sizeof(*queue->sq_cmds) * queue->depth, in nvme_free_queue()
816 rt_dma_free(nvme->dev, sizeof(*queue->cq_entry) * queue->depth, in nvme_free_queue()
822 int qid, int depth) in nvme_alloc_queue() argument
833 queue->depth = depth; in nvme_alloc_queue()
843 sizeof(*queue->sq_cmds) * depth, &queue->sq_cmds_phy, dma_flags); in nvme_alloc_queue()
853 sizeof(*queue->cq_entry) * depth, &queue->cq_entry_phy, dma_flags); in nvme_alloc_queue()
861 rt_memset(queue->sq_cmds, 0, sizeof(struct rt_nvme_command) * depth); in nvme_alloc_queue()
862 rt_memset(queue->cq_entry, 0, sizeof(struct rt_nvme_completion) * depth); in nvme_alloc_queue()
919 aqa = admin_queue->depth - 1; in nvme_configure_admin_queue()