Home
last modified time | relevance | path

Searched refs:nr_io_queues (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/drivers/nvme/target/
Dloop.c305 unsigned int nr_io_queues; in nvme_loop_init_io_queues() local
308 nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); in nvme_loop_init_io_queues()
309 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_loop_init_io_queues()
310 if (ret || !nr_io_queues) in nvme_loop_init_io_queues()
313 dev_info(ctrl->ctrl.device, "creating %d I/O queues.\n", nr_io_queues); in nvme_loop_init_io_queues()
315 for (i = 1; i <= nr_io_queues; i++) { in nvme_loop_init_io_queues()
562 ctrl->queues = kcalloc(opts->nr_io_queues + 1, sizeof(*ctrl->queues), in nvme_loop_create_ctrl()
580 if (opts->nr_io_queues) { in nvme_loop_create_ctrl()
/linux-6.6.21/drivers/nvme/host/
Dfabrics.c668 opts->nr_io_queues = num_online_cpus(); in nvmf_parse_options()
766 opts->nr_io_queues = min_t(unsigned int, in nvmf_parse_options()
969 opts->nr_io_queues = 0; in nvmf_parse_options()
999 void nvmf_set_io_queues(struct nvmf_ctrl_options *opts, u32 nr_io_queues, in nvmf_set_io_queues() argument
1002 if (opts->nr_write_queues && opts->nr_io_queues < nr_io_queues) { in nvmf_set_io_queues()
1008 io_queues[HCTX_TYPE_READ] = opts->nr_io_queues; in nvmf_set_io_queues()
1009 nr_io_queues -= io_queues[HCTX_TYPE_READ]; in nvmf_set_io_queues()
1011 min(opts->nr_write_queues, nr_io_queues); in nvmf_set_io_queues()
1012 nr_io_queues -= io_queues[HCTX_TYPE_DEFAULT]; in nvmf_set_io_queues()
1020 min(opts->nr_io_queues, nr_io_queues); in nvmf_set_io_queues()
[all …]
Dfabrics.h123 unsigned int nr_io_queues; member
208 return min(opts->nr_io_queues, num_online_cpus()) + in nvmf_nr_io_queues()
225 void nvmf_set_io_queues(struct nvmf_ctrl_options *opts, u32 nr_io_queues,
Dpci.c1468 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()
[all …]
Dfc.c2896 unsigned int nr_io_queues; in nvme_fc_create_io_queues() local
2899 nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), in nvme_fc_create_io_queues()
2901 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_fc_create_io_queues()
2908 ctrl->ctrl.queue_count = nr_io_queues + 1; in nvme_fc_create_io_queues()
2909 if (!nr_io_queues) in nvme_fc_create_io_queues()
2950 unsigned int nr_io_queues; in nvme_fc_recreate_io_queues() local
2953 nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), in nvme_fc_recreate_io_queues()
2955 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_fc_recreate_io_queues()
2962 if (!nr_io_queues && prior_ioq_cnt) { in nvme_fc_recreate_io_queues()
2969 ctrl->ctrl.queue_count = nr_io_queues + 1; in nvme_fc_recreate_io_queues()
[all …]
Drdma.c719 unsigned int nr_io_queues; in nvme_rdma_alloc_io_queues() local
722 nr_io_queues = nvmf_nr_io_queues(opts); in nvme_rdma_alloc_io_queues()
723 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_rdma_alloc_io_queues()
727 if (nr_io_queues == 0) { in nvme_rdma_alloc_io_queues()
733 ctrl->ctrl.queue_count = nr_io_queues + 1; in nvme_rdma_alloc_io_queues()
735 "creating %d I/O queues.\n", nr_io_queues); in nvme_rdma_alloc_io_queues()
737 nvmf_set_io_queues(opts, nr_io_queues, ctrl->io_queues); in nvme_rdma_alloc_io_queues()
2270 ctrl->ctrl.queue_count = opts->nr_io_queues + opts->nr_write_queues + in nvme_rdma_create_ctrl()
Dapple.c983 unsigned int nr_io_queues = 1; in apple_nvme_reset_work() local
1133 nr_io_queues = 1; in apple_nvme_reset_work()
1134 ret = nvme_set_queue_count(&anv->ctrl, &nr_io_queues); in apple_nvme_reset_work()
1137 if (nr_io_queues != 1) { in apple_nvme_reset_work()
1142 anv->ctrl.queue_count = nr_io_queues + 1; in apple_nvme_reset_work()
Dtcp.c1812 unsigned int nr_io_queues; in nvme_tcp_alloc_io_queues() local
1815 nr_io_queues = nvmf_nr_io_queues(ctrl->opts); in nvme_tcp_alloc_io_queues()
1816 ret = nvme_set_queue_count(ctrl, &nr_io_queues); in nvme_tcp_alloc_io_queues()
1820 if (nr_io_queues == 0) { in nvme_tcp_alloc_io_queues()
1826 ctrl->queue_count = nr_io_queues + 1; in nvme_tcp_alloc_io_queues()
1828 "creating %d I/O queues.\n", nr_io_queues); in nvme_tcp_alloc_io_queues()
1830 nvmf_set_io_queues(ctrl->opts, nr_io_queues, in nvme_tcp_alloc_io_queues()
2528 ctrl->ctrl.queue_count = opts->nr_io_queues + opts->nr_write_queues + in nvme_tcp_create_ctrl()
Dauth.c57 return ctrl->opts->nr_io_queues + ctrl->opts->nr_write_queues + in ctrl_max_dhchaps()
Dcore.c1575 int status, nr_io_queues; in nvme_set_queue_count() local
1591 nr_io_queues = min(result & 0xffff, result >> 16) + 1; in nvme_set_queue_count()
1592 *count = min(*count, nr_io_queues); in nvme_set_queue_count()