Lines Matching refs:nr_io_queues
1423 static int nvme_cmb_qdepth(struct nvme_dev *dev, int nr_io_queues, in nvme_cmb_qdepth() argument
1430 if (q_size_aligned * nr_io_queues > dev->cmb_size) { in nvme_cmb_qdepth()
1431 u64 mem_per_q = div_u64(dev->cmb_size, nr_io_queues); in nvme_cmb_qdepth()
1651 static unsigned long db_bar_size(struct nvme_dev *dev, unsigned nr_io_queues) in db_bar_size() argument
1653 return NVME_REG_DBS + ((nr_io_queues + 1) * 8 * dev->db_stride); in db_bar_size()
2063 static int nvme_setup_irqs(struct nvme_dev *dev, unsigned int nr_io_queues) in nvme_setup_irqs() argument
2077 poll_queues = min(dev->nr_poll_queues, nr_io_queues - 1); in nvme_setup_irqs()
2094 irq_queues += (nr_io_queues - poll_queues); in nvme_setup_irqs()
2114 unsigned int nr_io_queues; in nvme_setup_io_queues() local
2130 nr_io_queues = 1; in nvme_setup_io_queues()
2132 nr_io_queues = min(nvme_max_io_queues(dev), in nvme_setup_io_queues()
2135 result = nvme_set_queue_count(&dev->ctrl, &nr_io_queues); in nvme_setup_io_queues()
2139 if (nr_io_queues == 0) in nvme_setup_io_queues()
2145 result = nvme_cmb_qdepth(dev, nr_io_queues, in nvme_setup_io_queues()
2154 size = db_bar_size(dev, nr_io_queues); in nvme_setup_io_queues()
2158 if (!--nr_io_queues) in nvme_setup_io_queues()
2173 result = nvme_setup_irqs(dev, nr_io_queues); in nvme_setup_io_queues()
2197 nr_io_queues = dev->online_queues - 1; in nvme_setup_io_queues()