Lines Matching defs:map

39 /* This list contains all memory map items */
86 * efi_mem_cmp() - comparator function for sorting memory map
124 * efi_mem_sort() - sort memory map
126 * Sort the memory map and then try to merge adjacent memory areas.
156 /* There is an existing map before, reuse it */
176 * @map: memory map
180 * removed from the map,
182 * EFI_CARVE_OVERLAPS_NONRAM, if the carve and map overlap,
183 * and the map contains anything but free ram
189 * pointed to by map.
194 static s64 efi_mem_carve_out(struct efi_mem_list *map,
199 struct efi_mem_desc *map_desc = &map->desc;
218 /* Carving at the beginning of our map? Just move it! */
221 /* Full overlap, just remove map */
222 list_del(&map->link);
223 free(map);
225 map->desc.physical_start = carve_end;
226 map->desc.virtual_start = carve_end;
227 map->desc.num_pages = (map_end - carve_end)
235 * Overlapping maps, just split the list map at carve_start,
241 /* Create a new map from [ carve_start ... map_end ] */
245 newmap->desc = map->desc;
250 list_add_tail(&newmap->link, &map->link);
252 /* Shrink the map to [ map_start ... carve_start ] */
259 * efi_add_memory_map_pg() - add pages to the memory map
308 /* Add our new map */
362 /* Add our new map */
368 /* Notify that the memory map was changed */
382 * efi_add_memory_map() - add memory area to the memory map
408 * * The address must be in a range of the memory map.
472 /* Out of bounds for upper map limit */
476 /* Out of bounds for lower map limit */
480 /* Return the highest address in this map within bounds */
543 /* Reserve that map in our memory maps */
729 * efi_get_memory_map() - get map describing memory usage.
731 * @memory_map_size: on entry the size, in bytes, of the memory map buffer,
732 * on exit the size of the copied memory map
733 * @memory_map: buffer to which the memory map is written
734 * @map_key: key for the memory map
792 * efi_get_memory_map_alloc() - allocate map describing memory usage
796 * @map_size: size of the memory map
797 * @memory_map: buffer to which the memory map is written
809 *map_size += sizeof(struct efi_mem_desc); /* for the map */
826 * efi_add_conventional_memory_map() - add a RAM memory area to the map
874 * efi_add_known_memory() - add memory banks to map
905 * add_u_boot_and_runtime() - add U-Boot code to memory map