Lines Matching refs:map
34 int blk_mq_update_queue_map(unsigned int *map, unsigned int nr_queues, in blk_mq_update_queue_map() argument
56 map[i] = 0; in blk_mq_update_queue_map()
66 map[i] = cpu_to_queue_index(nr_cpus, nr_queues, queue); in blk_mq_update_queue_map()
78 map[i] = cpu_to_queue_index(nr_uniq_cpus, nr_queues, in blk_mq_update_queue_map()
82 map[i] = map[first_sibling]; in blk_mq_update_queue_map()
91 unsigned int *map; in blk_mq_make_queue_map() local
94 map = kzalloc_node(sizeof(*map) * nr_cpu_ids, GFP_KERNEL, in blk_mq_make_queue_map()
96 if (!map) in blk_mq_make_queue_map()
99 if (!blk_mq_update_queue_map(map, set->nr_hw_queues, cpu_online_mask)) in blk_mq_make_queue_map()
100 return map; in blk_mq_make_queue_map()
102 kfree(map); in blk_mq_make_queue_map()