Home
last modified time | relevance | path

Searched refs:EFI_ALLOC_ALIGN (Results 1 – 6 of 6) sorted by relevance

/drivers/firmware/efi/libstub/
Dmem.c97 if (EFI_ALLOC_ALIGN > EFI_PAGE_SIZE) in efi_allocate_pages()
99 EFI_ALLOC_ALIGN); in efi_allocate_pages()
101 alloc_addr = ALIGN_DOWN(max + 1, EFI_ALLOC_ALIGN) - 1; in efi_allocate_pages()
130 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free()
Drelocate.c50 if (align < EFI_ALLOC_ALIGN) in efi_low_alloc_above()
51 align = EFI_ALLOC_ALIGN; in efi_low_alloc_above()
53 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc_above()
147 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
Dalignedmem.c31 if (align < EFI_ALLOC_ALIGN) in efi_allocate_pages_aligned()
32 align = EFI_ALLOC_ALIGN; in efi_allocate_pages_aligned()
35 size = round_up(size, EFI_ALLOC_ALIGN); in efi_allocate_pages_aligned()
Drandomalloc.c76 if (align < EFI_ALLOC_ALIGN) in efi_random_alloc()
77 align = EFI_ALLOC_ALIGN; in efi_random_alloc()
79 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc()
Dfile.c189 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()
Defistub.h28 #ifndef EFI_ALLOC_ALIGN
29 #define EFI_ALLOC_ALIGN EFI_PAGE_SIZE macro