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

/linux-4.4.14/drivers/nvme/host/
H A Dpci.c1470 static int nvme_cmb_qdepth(struct nvme_dev *dev, int nr_io_queues, nvme_cmb_qdepth() argument
1476 if (q_size_aligned * nr_io_queues > dev->cmb_size) { nvme_cmb_qdepth()
1477 u64 mem_per_q = div_u64(dev->cmb_size, nr_io_queues); nvme_cmb_qdepth()
2421 static size_t db_bar_size(struct nvme_dev *dev, unsigned nr_io_queues) db_bar_size() argument
2423 return 4096 + ((nr_io_queues + 1) * 8 * dev->db_stride); db_bar_size()
2430 int result, i, vecs, nr_io_queues, size; nvme_setup_io_queues() local
2432 nr_io_queues = num_possible_cpus(); nvme_setup_io_queues()
2433 result = set_queue_count(dev, nr_io_queues); nvme_setup_io_queues()
2436 if (result < nr_io_queues) nvme_setup_io_queues()
2437 nr_io_queues = result; nvme_setup_io_queues()
2440 result = nvme_cmb_qdepth(dev, nr_io_queues, nvme_setup_io_queues()
2448 size = db_bar_size(dev, nr_io_queues); nvme_setup_io_queues()
2455 if (!--nr_io_queues) nvme_setup_io_queues()
2457 size = db_bar_size(dev, nr_io_queues); nvme_setup_io_queues()
2473 for (i = 0; i < nr_io_queues; i++) nvme_setup_io_queues()
2475 vecs = pci_enable_msix_range(pdev, dev->entry, 1, nr_io_queues); nvme_setup_io_queues()
2477 vecs = pci_enable_msi_range(pdev, 1, min(nr_io_queues, 32)); nvme_setup_io_queues()
2492 nr_io_queues = vecs; nvme_setup_io_queues()
2493 dev->max_qid = nr_io_queues; nvme_setup_io_queues()
2502 nvme_free_queues(dev, nr_io_queues + 1); nvme_setup_io_queues()

Completed in 82 milliseconds