Lines Matching refs:q_depth

35 #define SQ_SIZE(q)	((q)->q_depth << (q)->sqes)
36 #define CQ_SIZE(q) ((q)->q_depth * sizeof(struct nvme_completion))
131 u32 q_depth; member
203 u32 q_depth; member
482 if (next_tail == nvmeq->q_depth) in nvme_write_sq_db()
499 if (++nvmeq->sq_tail == nvmeq->q_depth) in nvme_sq_copy_cmd()
1143 if (tmp == nvmeq->q_depth) { in nvme_update_cq_head()
1300 c.create_cq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in adapter_alloc_cq()
1329 c.create_sq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in adapter_alloc_sq()
1608 int q_depth = dev->q_depth; in nvme_cmb_qdepth() local
1609 unsigned q_size_aligned = roundup(q_depth * entry_size, in nvme_cmb_qdepth()
1616 q_depth = div_u64(mem_per_q, entry_size); in nvme_cmb_qdepth()
1623 if (q_depth < 64) in nvme_cmb_qdepth()
1627 return q_depth; in nvme_cmb_qdepth()
1664 nvmeq->q_depth = depth; in nvme_alloc_queue()
1888 aqa = nvmeq->q_depth - 1; in nvme_pci_configure_admin_queue()
1917 if (nvme_alloc_queue(dev, i, dev->q_depth)) { in nvme_create_io_queues()
2486 dev->q_depth = result; in nvme_setup_io_queues()
2704 dev->q_depth = min_t(u32, NVME_CAP_MQES(dev->ctrl.cap) + 1, in nvme_pci_enable()
2720 dev->q_depth = 2; in nvme_pci_enable()
2724 dev->q_depth = 64; in nvme_pci_enable()
2726 "set queue depth=%u\n", dev->q_depth); in nvme_pci_enable()
2734 (dev->q_depth < (NVME_AQ_DEPTH + 2))) { in nvme_pci_enable()
2735 dev->q_depth = NVME_AQ_DEPTH + 2; in nvme_pci_enable()
2737 dev->q_depth); in nvme_pci_enable()
2739 dev->ctrl.sqsize = dev->q_depth - 1; /* 0's based queue depth */ in nvme_pci_enable()