Home
last modified time | relevance | path

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

/drivers/nvme/target/
Dloop.c326 unsigned int nr_io_queues; in nvme_loop_init_io_queues() local
329 nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); in nvme_loop_init_io_queues()
330 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_loop_init_io_queues()
331 if (ret || !nr_io_queues) in nvme_loop_init_io_queues()
334 dev_info(ctrl->ctrl.device, "creating %d I/O queues.\n", nr_io_queues); in nvme_loop_init_io_queues()
336 for (i = 1; i <= nr_io_queues; i++) { in nvme_loop_init_io_queues()
636 ctrl->queues = kcalloc(opts->nr_io_queues + 1, sizeof(*ctrl->queues), in nvme_loop_create_ctrl()
653 if (opts->nr_io_queues) { in nvme_loop_create_ctrl()
673 if (opts->nr_io_queues) { in nvme_loop_create_ctrl()
/drivers/nvme/host/
Dpci.c1010 static int nvme_cmb_qdepth(struct nvme_dev *dev, int nr_io_queues, in nvme_cmb_qdepth() argument
1017 if (q_size_aligned * nr_io_queues > dev->cmb_size) { in nvme_cmb_qdepth()
1018 u64 mem_per_q = div_u64(dev->cmb_size, nr_io_queues); in nvme_cmb_qdepth()
1395 static size_t db_bar_size(struct nvme_dev *dev, unsigned nr_io_queues) in db_bar_size() argument
1397 return 4096 + ((nr_io_queues + 1) * 8 * dev->db_stride); in db_bar_size()
1404 int result, nr_io_queues, size; in nvme_setup_io_queues() local
1406 nr_io_queues = num_online_cpus(); in nvme_setup_io_queues()
1407 result = nvme_set_queue_count(&dev->ctrl, &nr_io_queues); in nvme_setup_io_queues()
1411 if (nr_io_queues == 0) in nvme_setup_io_queues()
1415 result = nvme_cmb_qdepth(dev, nr_io_queues, in nvme_setup_io_queues()
[all …]
Dfabrics.h89 unsigned int nr_io_queues; member
Drdma.c645 unsigned int nr_io_queues; in nvme_rdma_init_io_queues() local
648 nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); in nvme_rdma_init_io_queues()
649 ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); in nvme_rdma_init_io_queues()
653 ctrl->queue_count = nr_io_queues + 1; in nvme_rdma_init_io_queues()
658 "creating %d I/O queues.\n", nr_io_queues); in nvme_rdma_init_io_queues()
1923 ctrl->queue_count = opts->nr_io_queues + 1; /* +1 for admin queue */ in nvme_rdma_create_ctrl()
1957 if (opts->nr_io_queues) { in nvme_rdma_create_ctrl()
1975 if (opts->nr_io_queues) { in nvme_rdma_create_ctrl()
Dfabrics.c547 opts->nr_io_queues = num_online_cpus(); in nvmf_parse_options()
587 opts->nr_io_queues = 0; in nvmf_parse_options()
628 opts->nr_io_queues = min_t(unsigned int, in nvmf_parse_options()
Dcore.c665 int status, nr_io_queues; in nvme_set_queue_count() local
681 nr_io_queues = min(result & 0xffff, result >> 16) + 1; in nvme_set_queue_count()
682 *count = min(*count, nr_io_queues); in nvme_set_queue_count()