Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/nvme/target/
Dloop.c295 unsigned int nr_io_queues; in nvme_loop_init_io_queues() local
298 nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); in nvme_loop_init_io_queues()
299 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_loop_init_io_queues()
300 if (ret || !nr_io_queues) in nvme_loop_init_io_queues()
303 dev_info(ctrl->ctrl.device, "creating %d I/O queues.\n", nr_io_queues); in nvme_loop_init_io_queues()
305 for (i = 1; i <= nr_io_queues; i++) { in nvme_loop_init_io_queues()
593 ctrl->queues = kcalloc(opts->nr_io_queues + 1, sizeof(*ctrl->queues), in nvme_loop_create_ctrl()
610 if (opts->nr_io_queues) { in nvme_loop_create_ctrl()
/Linux-v5.10/drivers/nvme/host/
Dtcp.c1680 unsigned int nr_io_queues; in nvme_tcp_nr_io_queues() local
1682 nr_io_queues = min(ctrl->opts->nr_io_queues, num_online_cpus()); in nvme_tcp_nr_io_queues()
1683 nr_io_queues += min(ctrl->opts->nr_write_queues, num_online_cpus()); in nvme_tcp_nr_io_queues()
1684 nr_io_queues += min(ctrl->opts->nr_poll_queues, num_online_cpus()); in nvme_tcp_nr_io_queues()
1686 return nr_io_queues; in nvme_tcp_nr_io_queues()
1690 unsigned int nr_io_queues) in nvme_tcp_set_io_queues() argument
1695 if (opts->nr_write_queues && opts->nr_io_queues < nr_io_queues) { in nvme_tcp_set_io_queues()
1701 ctrl->io_queues[HCTX_TYPE_READ] = opts->nr_io_queues; in nvme_tcp_set_io_queues()
1702 nr_io_queues -= ctrl->io_queues[HCTX_TYPE_READ]; in nvme_tcp_set_io_queues()
1704 min(opts->nr_write_queues, nr_io_queues); in nvme_tcp_set_io_queues()
[all …]
Drdma.c716 unsigned int nr_io_queues, nr_default_queues; in nvme_rdma_alloc_io_queues() local
721 min(opts->nr_io_queues, num_online_cpus())); in nvme_rdma_alloc_io_queues()
725 nr_io_queues = nr_read_queues + nr_default_queues + nr_poll_queues; in nvme_rdma_alloc_io_queues()
727 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_rdma_alloc_io_queues()
731 ctrl->ctrl.queue_count = nr_io_queues + 1; in nvme_rdma_alloc_io_queues()
736 "creating %d I/O queues.\n", nr_io_queues); in nvme_rdma_alloc_io_queues()
738 if (opts->nr_write_queues && nr_read_queues < nr_io_queues) { in nvme_rdma_alloc_io_queues()
745 nr_io_queues -= ctrl->io_queues[HCTX_TYPE_READ]; in nvme_rdma_alloc_io_queues()
747 min(nr_default_queues, nr_io_queues); in nvme_rdma_alloc_io_queues()
748 nr_io_queues -= ctrl->io_queues[HCTX_TYPE_DEFAULT]; in nvme_rdma_alloc_io_queues()
[all …]
Dpci.c1423 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()
[all …]
Dfc.c2834 unsigned int nr_io_queues; in nvme_fc_create_io_queues() local
2837 nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), in nvme_fc_create_io_queues()
2839 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_fc_create_io_queues()
2846 ctrl->ctrl.queue_count = nr_io_queues + 1; in nvme_fc_create_io_queues()
2847 if (!nr_io_queues) in nvme_fc_create_io_queues()
2908 unsigned int nr_io_queues; in nvme_fc_recreate_io_queues() local
2911 nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), in nvme_fc_recreate_io_queues()
2913 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_fc_recreate_io_queues()
2920 if (!nr_io_queues && prior_ioq_cnt) { in nvme_fc_recreate_io_queues()
2927 ctrl->ctrl.queue_count = nr_io_queues + 1; in nvme_fc_recreate_io_queues()
[all …]
Dfabrics.h101 unsigned int nr_io_queues; member
Dfabrics.c633 opts->nr_io_queues = num_online_cpus(); in nvmf_parse_options()
728 opts->nr_io_queues = min_t(unsigned int, in nvmf_parse_options()
882 opts->nr_io_queues = 0; in nvmf_parse_options()
Dcore.c1413 int status, nr_io_queues; in nvme_set_queue_count() local
1429 nr_io_queues = min(result & 0xffff, result >> 16) + 1; in nvme_set_queue_count()
1430 *count = min(*count, nr_io_queues); in nvme_set_queue_count()