Lines Matching refs:nr_io_queues
1468 static int nvme_cmb_qdepth(struct nvme_dev *dev, int nr_io_queues, in nvme_cmb_qdepth() argument
1475 if (q_size_aligned * nr_io_queues > dev->cmb_size) { in nvme_cmb_qdepth()
1476 u64 mem_per_q = div_u64(dev->cmb_size, nr_io_queues); in nvme_cmb_qdepth()
1690 static unsigned long db_bar_size(struct nvme_dev *dev, unsigned nr_io_queues) in db_bar_size() argument
1692 return NVME_REG_DBS + ((nr_io_queues + 1) * 8 * dev->db_stride); in db_bar_size()
2210 static int nvme_setup_irqs(struct nvme_dev *dev, unsigned int nr_io_queues) in nvme_setup_irqs() argument
2224 poll_queues = min(dev->nr_poll_queues, nr_io_queues - 1); in nvme_setup_irqs()
2241 irq_queues += (nr_io_queues - poll_queues); in nvme_setup_irqs()
2261 unsigned int nr_io_queues; in nvme_setup_io_queues() local
2272 nr_io_queues = dev->nr_allocated_queues - 1; in nvme_setup_io_queues()
2273 result = nvme_set_queue_count(&dev->ctrl, &nr_io_queues); in nvme_setup_io_queues()
2277 if (nr_io_queues == 0) in nvme_setup_io_queues()
2294 result = nvme_cmb_qdepth(dev, nr_io_queues, in nvme_setup_io_queues()
2305 size = db_bar_size(dev, nr_io_queues); in nvme_setup_io_queues()
2309 if (!--nr_io_queues) { in nvme_setup_io_queues()
2327 result = nvme_setup_irqs(dev, nr_io_queues); in nvme_setup_io_queues()
2354 nr_io_queues = dev->online_queues - 1; in nvme_setup_io_queues()