Searched refs:nr_io_queues (Results 1 – 1 of 1) sorted by relevance
2115 static size_t db_bar_size(struct nvme_dev *dev, unsigned nr_io_queues) in db_bar_size() argument2117 return 4096 + ((nr_io_queues + 1) * 8 * dev->db_stride); in db_bar_size()2148 int result, i, vecs, nr_io_queues, size; in nvme_setup_io_queues() local2150 nr_io_queues = num_possible_cpus(); in nvme_setup_io_queues()2151 result = set_queue_count(dev, nr_io_queues); in nvme_setup_io_queues()2154 if (result < nr_io_queues) in nvme_setup_io_queues()2155 nr_io_queues = result; in nvme_setup_io_queues()2157 size = db_bar_size(dev, nr_io_queues); in nvme_setup_io_queues()2164 if (!--nr_io_queues) in nvme_setup_io_queues()2166 size = db_bar_size(dev, nr_io_queues); in nvme_setup_io_queues()[all …]