Lines Matching refs:alloc_size
144 unsigned long alloc_size; in handle_cmdline_files() local
157 alloc_addr = alloc_size = 0; in handle_cmdline_files()
189 if (round_up(alloc_size + size, EFI_ALLOC_ALIGN) > in handle_cmdline_files()
190 round_up(alloc_size, EFI_ALLOC_ALIGN)) { in handle_cmdline_files()
195 status = efi_allocate_pages(alloc_size + size, in handle_cmdline_files()
199 status = efi_allocate_pages(alloc_size + size, in handle_cmdline_files()
214 memcpy((void *)alloc_addr, (void *)old_addr, alloc_size); in handle_cmdline_files()
215 efi_free(alloc_size, old_addr); in handle_cmdline_files()
219 addr = (void *)alloc_addr + alloc_size; in handle_cmdline_files()
220 alloc_size += size; in handle_cmdline_files()
237 *load_size = alloc_size; in handle_cmdline_files()
248 efi_free(alloc_size, alloc_addr); in handle_cmdline_files()