Lines Matching refs:alloc_size
198 unsigned long alloc_size; in handle_cmdline_files() local
211 alloc_addr = alloc_size = 0; in handle_cmdline_files()
245 if (round_up(alloc_size + size, EFI_ALLOC_ALIGN) > in handle_cmdline_files()
246 round_up(alloc_size, EFI_ALLOC_ALIGN)) { in handle_cmdline_files()
251 status = efi_allocate_pages(alloc_size + size, in handle_cmdline_files()
255 status = efi_allocate_pages(alloc_size + size, in handle_cmdline_files()
270 memcpy((void *)alloc_addr, (void *)old_addr, alloc_size); in handle_cmdline_files()
271 efi_free(alloc_size, old_addr); in handle_cmdline_files()
275 addr = (void *)alloc_addr + alloc_size; in handle_cmdline_files()
276 alloc_size += size; in handle_cmdline_files()
294 *load_size = alloc_size; in handle_cmdline_files()
307 efi_free(alloc_size, alloc_addr); in handle_cmdline_files()