Lines Matching defs:size
16 static phys_addr_t __init __efi_memmap_alloc_early(unsigned long size)
18 return memblock_phys_alloc(size, SMP_CACHE_BYTES);
21 static phys_addr_t __init __efi_memmap_alloc_late(unsigned long size)
23 unsigned int order = get_order(size);
32 void __init __efi_memmap_free(u64 phys, unsigned long size, unsigned long flags)
36 memblock_free_late(phys, size);
38 memblock_free(phys, size);
41 unsigned int order = get_order(size);
69 WARN_ON(data->phys_map || data->size);
71 data->size = num_entries * efi.memmap.desc_size;
79 data->phys_map = __efi_memmap_alloc_late(data->size);
82 data->phys_map = __efi_memmap_alloc_early(data->size);
116 map.map = memremap(phys_map, data->size, MEMREMAP_WB);
118 map.map = early_memremap(phys_map, data->size);
129 map.nr_map = data->size / data->desc_size;
130 map.map_end = map.map + data->size;
165 unsigned long size;
167 size = efi.memmap.desc_size * efi.memmap.nr_map;
168 early_memunmap(efi.memmap.map, size);
180 * @size: Size in bytes of the new EFI memory map
200 int __init efi_memmap_init_late(phys_addr_t addr, unsigned long size)
204 .size = size,
227 * @ctx: map allocation parameters (address, size, flags)