Lines Matching +full:interrupt +full:- +full:map +full:- +full:mask
1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/blk-mq.h>
6 #include <linux/blk-mq-rdma.h>
10 * blk_mq_rdma_map_queues - provide a default queue mapping for rdma device
11 * @map: CPU to hardware queue map.
13 * @first_vec: first interrupt vectors to use for queues (usually 0)
16 * interrupt vetors as @set has queues. It will then query it's affinity mask
21 * @set->nr_hw_queues, or @dev does not provide an affinity mask for a
24 int blk_mq_rdma_map_queues(struct blk_mq_queue_map *map, in blk_mq_rdma_map_queues() argument
27 const struct cpumask *mask; in blk_mq_rdma_map_queues() local
30 for (queue = 0; queue < map->nr_queues; queue++) { in blk_mq_rdma_map_queues()
31 mask = ib_get_vector_affinity(dev, first_vec + queue); in blk_mq_rdma_map_queues()
32 if (!mask) in blk_mq_rdma_map_queues()
35 for_each_cpu(cpu, mask) in blk_mq_rdma_map_queues()
36 map->mq_map[cpu] = map->queue_offset + queue; in blk_mq_rdma_map_queues()
42 return blk_mq_map_queues(map); in blk_mq_rdma_map_queues()