nr_io_queues 1212 drivers/nvme/host/core.c int status, nr_io_queues; nr_io_queues 1228 drivers/nvme/host/core.c nr_io_queues = min(result & 0xffff, result >> 16) + 1; nr_io_queues 1229 drivers/nvme/host/core.c *count = min(*count, nr_io_queues); nr_io_queues 630 drivers/nvme/host/fabrics.c opts->nr_io_queues = num_online_cpus(); nr_io_queues 725 drivers/nvme/host/fabrics.c opts->nr_io_queues = min_t(unsigned int, nr_io_queues 879 drivers/nvme/host/fabrics.c opts->nr_io_queues = 0; nr_io_queues 101 drivers/nvme/host/fabrics.h unsigned int nr_io_queues; nr_io_queues 2442 drivers/nvme/host/fc.c unsigned int nr_io_queues; nr_io_queues 2445 drivers/nvme/host/fc.c nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), nr_io_queues 2447 drivers/nvme/host/fc.c ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); nr_io_queues 2454 drivers/nvme/host/fc.c ctrl->ctrl.queue_count = nr_io_queues + 1; nr_io_queues 2455 drivers/nvme/host/fc.c if (!nr_io_queues) nr_io_queues 2516 drivers/nvme/host/fc.c unsigned int nr_io_queues; nr_io_queues 2519 drivers/nvme/host/fc.c nr_io_queues = min(min(opts->nr_io_queues, num_online_cpus()), nr_io_queues 2521 drivers/nvme/host/fc.c ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); nr_io_queues 2528 drivers/nvme/host/fc.c if (!nr_io_queues && prior_ioq_cnt) { nr_io_queues 2535 drivers/nvme/host/fc.c ctrl->ctrl.queue_count = nr_io_queues + 1; nr_io_queues 2548 drivers/nvme/host/fc.c if (prior_ioq_cnt != nr_io_queues) nr_io_queues 2551 drivers/nvme/host/fc.c prior_ioq_cnt, nr_io_queues); nr_io_queues 2552 drivers/nvme/host/fc.c blk_mq_update_nr_hw_queues(&ctrl->tag_set, nr_io_queues); nr_io_queues 3103 drivers/nvme/host/fc.c opts->nr_io_queues, nr_io_queues 1427 drivers/nvme/host/pci.c static int nvme_cmb_qdepth(struct nvme_dev *dev, int nr_io_queues, nr_io_queues 1434 drivers/nvme/host/pci.c if (q_size_aligned * nr_io_queues > dev->cmb_size) { nr_io_queues 1435 drivers/nvme/host/pci.c u64 mem_per_q = div_u64(dev->cmb_size, nr_io_queues); nr_io_queues 1654 drivers/nvme/host/pci.c static unsigned long db_bar_size(struct nvme_dev *dev, unsigned nr_io_queues) nr_io_queues 1656 drivers/nvme/host/pci.c return NVME_REG_DBS + ((nr_io_queues + 1) * 8 * dev->db_stride); nr_io_queues 2064 drivers/nvme/host/pci.c static int nvme_setup_irqs(struct nvme_dev *dev, unsigned int nr_io_queues) nr_io_queues 2079 drivers/nvme/host/pci.c if (this_p_queues >= nr_io_queues) { nr_io_queues 2080 drivers/nvme/host/pci.c this_p_queues = nr_io_queues - 1; nr_io_queues 2083 drivers/nvme/host/pci.c irq_queues = nr_io_queues - this_p_queues + 1; nr_io_queues 2112 drivers/nvme/host/pci.c int result, nr_io_queues; nr_io_queues 2115 drivers/nvme/host/pci.c nr_io_queues = max_io_queues(); nr_io_queues 2122 drivers/nvme/host/pci.c nr_io_queues = 1; nr_io_queues 2124 drivers/nvme/host/pci.c result = nvme_set_queue_count(&dev->ctrl, &nr_io_queues); nr_io_queues 2128 drivers/nvme/host/pci.c if (nr_io_queues == 0) nr_io_queues 2134 drivers/nvme/host/pci.c result = nvme_cmb_qdepth(dev, nr_io_queues, nr_io_queues 2143 drivers/nvme/host/pci.c size = db_bar_size(dev, nr_io_queues); nr_io_queues 2147 drivers/nvme/host/pci.c if (!--nr_io_queues) nr_io_queues 2162 drivers/nvme/host/pci.c result = nvme_setup_irqs(dev, nr_io_queues); nr_io_queues 2186 drivers/nvme/host/pci.c nr_io_queues = dev->online_queues - 1; nr_io_queues 653 drivers/nvme/host/rdma.c unsigned int nr_io_queues, nr_default_queues; nr_io_queues 658 drivers/nvme/host/rdma.c min(opts->nr_io_queues, num_online_cpus())); nr_io_queues 662 drivers/nvme/host/rdma.c nr_io_queues = nr_read_queues + nr_default_queues + nr_poll_queues; nr_io_queues 664 drivers/nvme/host/rdma.c ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); nr_io_queues 668 drivers/nvme/host/rdma.c ctrl->ctrl.queue_count = nr_io_queues + 1; nr_io_queues 673 drivers/nvme/host/rdma.c "creating %d I/O queues.\n", nr_io_queues); nr_io_queues 675 drivers/nvme/host/rdma.c if (opts->nr_write_queues && nr_read_queues < nr_io_queues) { nr_io_queues 682 drivers/nvme/host/rdma.c nr_io_queues -= ctrl->io_queues[HCTX_TYPE_READ]; nr_io_queues 684 drivers/nvme/host/rdma.c min(nr_default_queues, nr_io_queues); nr_io_queues 685 drivers/nvme/host/rdma.c nr_io_queues -= ctrl->io_queues[HCTX_TYPE_DEFAULT]; nr_io_queues 693 drivers/nvme/host/rdma.c min(nr_read_queues, nr_io_queues); nr_io_queues 694 drivers/nvme/host/rdma.c nr_io_queues -= ctrl->io_queues[HCTX_TYPE_DEFAULT]; nr_io_queues 697 drivers/nvme/host/rdma.c if (opts->nr_poll_queues && nr_io_queues) { nr_io_queues 700 drivers/nvme/host/rdma.c min(nr_poll_queues, nr_io_queues); nr_io_queues 2024 drivers/nvme/host/rdma.c ctrl->ctrl.queue_count = opts->nr_io_queues + opts->nr_write_queues + nr_io_queues 1588 drivers/nvme/host/tcp.c unsigned int nr_io_queues; nr_io_queues 1590 drivers/nvme/host/tcp.c nr_io_queues = min(ctrl->opts->nr_io_queues, num_online_cpus()); nr_io_queues 1591 drivers/nvme/host/tcp.c nr_io_queues += min(ctrl->opts->nr_write_queues, num_online_cpus()); nr_io_queues 1592 drivers/nvme/host/tcp.c nr_io_queues += min(ctrl->opts->nr_poll_queues, num_online_cpus()); nr_io_queues 1594 drivers/nvme/host/tcp.c return nr_io_queues; nr_io_queues 1598 drivers/nvme/host/tcp.c unsigned int nr_io_queues) nr_io_queues 1603 drivers/nvme/host/tcp.c if (opts->nr_write_queues && opts->nr_io_queues < nr_io_queues) { nr_io_queues 1609 drivers/nvme/host/tcp.c ctrl->io_queues[HCTX_TYPE_READ] = opts->nr_io_queues; nr_io_queues 1610 drivers/nvme/host/tcp.c nr_io_queues -= ctrl->io_queues[HCTX_TYPE_READ]; nr_io_queues 1612 drivers/nvme/host/tcp.c min(opts->nr_write_queues, nr_io_queues); nr_io_queues 1613 drivers/nvme/host/tcp.c nr_io_queues -= ctrl->io_queues[HCTX_TYPE_DEFAULT]; nr_io_queues 1621 drivers/nvme/host/tcp.c min(opts->nr_io_queues, nr_io_queues); nr_io_queues 1622 drivers/nvme/host/tcp.c nr_io_queues -= ctrl->io_queues[HCTX_TYPE_DEFAULT]; nr_io_queues 1625 drivers/nvme/host/tcp.c if (opts->nr_poll_queues && nr_io_queues) { nr_io_queues 1628 drivers/nvme/host/tcp.c min(opts->nr_poll_queues, nr_io_queues); nr_io_queues 1634 drivers/nvme/host/tcp.c unsigned int nr_io_queues; nr_io_queues 1637 drivers/nvme/host/tcp.c nr_io_queues = nvme_tcp_nr_io_queues(ctrl); nr_io_queues 1638 drivers/nvme/host/tcp.c ret = nvme_set_queue_count(ctrl, &nr_io_queues); nr_io_queues 1642 drivers/nvme/host/tcp.c ctrl->queue_count = nr_io_queues + 1; nr_io_queues 1647 drivers/nvme/host/tcp.c "creating %d I/O queues.\n", nr_io_queues); nr_io_queues 1649 drivers/nvme/host/tcp.c nvme_tcp_set_io_queues(ctrl, nr_io_queues); nr_io_queues 2296 drivers/nvme/host/tcp.c ctrl->ctrl.queue_count = opts->nr_io_queues + opts->nr_write_queues + nr_io_queues 296 drivers/nvme/target/loop.c unsigned int nr_io_queues; nr_io_queues 299 drivers/nvme/target/loop.c nr_io_queues = min(opts->nr_io_queues, num_online_cpus()); nr_io_queues 300 drivers/nvme/target/loop.c ret = nvme_set_queue_count(&ctrl->ctrl, &nr_io_queues); nr_io_queues 301 drivers/nvme/target/loop.c if (ret || !nr_io_queues) nr_io_queues 304 drivers/nvme/target/loop.c dev_info(ctrl->ctrl.device, "creating %d I/O queues.\n", nr_io_queues); nr_io_queues 306 drivers/nvme/target/loop.c for (i = 1; i <= nr_io_queues; i++) { nr_io_queues 594 drivers/nvme/target/loop.c ctrl->queues = kcalloc(opts->nr_io_queues + 1, sizeof(*ctrl->queues), nr_io_queues 611 drivers/nvme/target/loop.c if (opts->nr_io_queues) {