Lines Matching defs:maps
25 /* hot plug/unplug of VFIO groups may cause all DMA maps to be dropped. we can
41 struct user_mem_map maps[VFIO_MAX_USER_MEM_MAPS];
101 /* we may need to merge user mem maps together in case of user mapping/unmapping
179 /* erase certain maps from the list */
188 struct user_mem_map *left = &user_mem_maps->maps[i];
207 struct user_mem_map *left = &user_mem_maps->maps[i];
219 /* try merging two maps into one, return 1 if succeeded */
223 /* merge the same maps into one */
242 addr_is_chunk_aligned(struct user_mem_map *maps, size_t n_maps,
248 struct user_mem_map *map = &maps[i];
280 struct user_mem_map *map = &user_mem_maps->maps[i];
318 /* this will sort all user maps, and merge/compact any adjacent maps */
324 qsort(user_mem_maps->maps, VFIO_MAX_USER_MEM_MAPS,
325 sizeof(user_mem_maps->maps[0]), user_mem_map_cmp);
331 l = &user_mem_maps->maps[i];
332 r = &user_mem_maps->maps[i + 1];
337 /* try and merge the maps */
345 qsort(user_mem_maps->maps, VFIO_MAX_USER_MEM_MAPS,
346 sizeof(user_mem_maps->maps[0]), user_mem_map_cmp);
882 map = &user_mem_maps->maps[i];
1883 EAL_LOG(ERR, "No more space for user mem maps");
1905 new_map = &user_mem_maps->maps[user_mem_maps->n_maps++];
1947 * maps that include our unmapped region.
1985 * maps. for this, we will figure out how many segments we are going to
1990 /* can we store the new maps in our list? */
2018 /* we have unmapped the region, so now update the maps */