Searched refs:qmap (Results 1 – 4 of 4) sorted by relevance
/block/ |
D | blk-mq-cpumap.c | 18 static int queue_index(struct blk_mq_queue_map *qmap, in queue_index() argument 21 return qmap->queue_offset + (q % nr_queues); in queue_index() 35 int blk_mq_map_queues(struct blk_mq_queue_map *qmap) in blk_mq_map_queues() argument 37 unsigned int *map = qmap->mq_map; in blk_mq_map_queues() 38 unsigned int nr_queues = qmap->nr_queues; in blk_mq_map_queues() 51 map[cpu] = queue_index(qmap, nr_queues, q++); in blk_mq_map_queues() 64 map[cpu] = queue_index(qmap, nr_queues, q++); in blk_mq_map_queues() 68 map[cpu] = queue_index(qmap, nr_queues, q++); in blk_mq_map_queues() 86 int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int index) in blk_mq_hw_queue_to_node() argument 91 if (index == qmap->mq_map[i]) in blk_mq_hw_queue_to_node()
|
D | blk-mq-pci.c | 26 int blk_mq_pci_map_queues(struct blk_mq_queue_map *qmap, struct pci_dev *pdev, in blk_mq_pci_map_queues() argument 32 for (queue = 0; queue < qmap->nr_queues; queue++) { in blk_mq_pci_map_queues() 38 qmap->mq_map[cpu] = qmap->queue_offset + queue; in blk_mq_pci_map_queues() 44 WARN_ON_ONCE(qmap->nr_queues > 1); in blk_mq_pci_map_queues() 45 blk_mq_clear_mq_map(qmap); in blk_mq_pci_map_queues()
|
D | blk-mq-virtio.c | 24 int blk_mq_virtio_map_queues(struct blk_mq_queue_map *qmap, in blk_mq_virtio_map_queues() argument 33 for (queue = 0; queue < qmap->nr_queues; queue++) { in blk_mq_virtio_map_queues() 39 qmap->mq_map[cpu] = qmap->queue_offset + queue; in blk_mq_virtio_map_queues() 44 return blk_mq_map_queues(qmap); in blk_mq_virtio_map_queues()
|
D | blk-mq.h | 86 extern int blk_mq_hw_queue_to_node(struct blk_mq_queue_map *qmap, unsigned int); 247 static inline void blk_mq_clear_mq_map(struct blk_mq_queue_map *qmap) in blk_mq_clear_mq_map() argument 252 qmap->mq_map[cpu] = 0; in blk_mq_clear_mq_map()
|