Lines Matching +full:interrupt +full:- +full:affinity
1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/blk-mq.h>
7 #include <linux/blk-mq-virtio.h>
10 #include "blk-mq.h"
13 * blk_mq_virtio_map_queues - provide a default queue mapping for virtio device
16 * @first_vec: first interrupt vectors to use for queues (usually 0)
19 * interrupt vectors as @set has queues. It will then query the vector
20 * corresponding to each queue for it's affinity mask and built queue mapping
21 * that maps a queue to the CPUs that have irq affinity for the corresponding
30 if (!vdev->config->get_vq_affinity) in blk_mq_virtio_map_queues()
33 for (queue = 0; queue < qmap->nr_queues; queue++) { in blk_mq_virtio_map_queues()
34 mask = vdev->config->get_vq_affinity(vdev, first_vec + queue); in blk_mq_virtio_map_queues()
39 qmap->mq_map[cpu] = qmap->queue_offset + queue; in blk_mq_virtio_map_queues()