Lines Matching refs:map
809 struct rps_map *map; in show_rps_map() local
817 map = rcu_dereference(queue->rps_map); in show_rps_map()
818 if (map) in show_rps_map()
819 for (i = 0; i < map->len; i++) in show_rps_map()
820 cpumask_set_cpu(map->cpus[i], mask); in show_rps_map()
833 struct rps_map *old_map, *map; in netdev_rx_queue_set_rps_mask() local
836 map = kzalloc(max_t(unsigned int, in netdev_rx_queue_set_rps_mask()
839 if (!map) in netdev_rx_queue_set_rps_mask()
844 map->cpus[i++] = cpu; in netdev_rx_queue_set_rps_mask()
847 map->len = i; in netdev_rx_queue_set_rps_mask()
849 kfree(map); in netdev_rx_queue_set_rps_mask()
850 map = NULL; in netdev_rx_queue_set_rps_mask()
856 rcu_assign_pointer(queue->rps_map, map); in netdev_rx_queue_set_rps_mask()
858 if (map) in netdev_rx_queue_set_rps_mask()
1010 struct rps_map *map; in rx_queue_release() local
1013 map = rcu_dereference_protected(queue->rps_map, 1); in rx_queue_release()
1014 if (map) { in rx_queue_release()
1016 kfree_rcu(map, rcu); in rx_queue_release()
1471 struct xps_map *map; in xps_queue_show() local
1473 map = rcu_dereference(dev_maps->attr_map[tci]); in xps_queue_show()
1474 if (!map) in xps_queue_show()
1477 for (i = map->len; i--;) { in xps_queue_show()
1478 if (map->queues[i] == index) { in xps_queue_show()