Home
last modified time | relevance | path

Searched refs:EFI_PAGE_SIZE (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.1/drivers/firmware/efi/libstub/
Dalignedmem.c36 slack = align / EFI_PAGE_SIZE - 1; in efi_allocate_pages_aligned()
39 EFI_LOADER_DATA, size / EFI_PAGE_SIZE + slack, in efi_allocate_pages_aligned()
47 int l = (alloc_addr & (align - 1)) / EFI_PAGE_SIZE; in efi_allocate_pages_aligned()
Dmem.c92 if (EFI_ALLOC_ALIGN > EFI_PAGE_SIZE) in efi_allocate_pages()
98 EFI_LOADER_DATA, DIV_ROUND_UP(size, EFI_PAGE_SIZE), in efi_allocate_pages()
125 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free()
Drelocate.c45 nr_pages = size / EFI_PAGE_SIZE; in efi_low_alloc_above()
64 end = start + desc->num_pages * EFI_PAGE_SIZE; in efi_low_alloc_above()
138 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
Darm32-stub.c134 status = efi_low_alloc_above(alloc_size, EFI_PAGE_SIZE, &alloc_base, 0x0); in handle_kernel_image()
158 (*reserve_addr - alloc_base) / EFI_PAGE_SIZE); in handle_kernel_image()
162 (alloc_size - MAX_UNCOMP_KERNEL_SIZE) / EFI_PAGE_SIZE); in handle_kernel_image()
Drandomalloc.c31 region_end = min(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - 1, in get_entry_num_slots()
118 pages = size / EFI_PAGE_SIZE; in efi_random_alloc()
Darm64-stub.c79 u64 end = md->phys_addr + md->num_pages * EFI_PAGE_SIZE; in check_image_region()
Defi-stub.c321 size = in->num_pages * EFI_PAGE_SIZE; in efi_get_virtmap()
Dx86-stub.c227 rounded_start = rounddown(start, EFI_PAGE_SIZE); in adjust_memory_range_protection()
228 rounded_end = roundup(start + size, EFI_PAGE_SIZE); in adjust_memory_range_protection()
Defistub.h29 #define EFI_ALLOC_ALIGN EFI_PAGE_SIZE
/Linux-v6.1/arch/x86/platform/efi/
Dquirks.c264 size += addr % EFI_PAGE_SIZE; in efi_arch_mem_reserve()
265 size = round_up(size, EFI_PAGE_SIZE); in efi_arch_mem_reserve()
266 addr = round_down(addr, EFI_PAGE_SIZE); in efi_arch_mem_reserve()
/Linux-v6.1/drivers/firmware/efi/
Dmemmap.c307 if (!IS_ALIGNED(m_start, EFI_PAGE_SIZE) || in efi_memmap_insert()
308 !IS_ALIGNED(m_end + 1, EFI_PAGE_SIZE)) { in efi_memmap_insert()
Dmemattr.c70 if (PAGE_SIZE > EFI_PAGE_SIZE && in entry_is_valid()
Dmokvar-table.c148 map_size = min(map_size_needed + 2*EFI_PAGE_SIZE, in efi_mokvar_table_init()
/Linux-v6.1/arch/arm64/kernel/
Defi.c17 if (PAGE_SIZE == EFI_PAGE_SIZE) in region_is_misaligned()
/Linux-v6.1/arch/arm/kernel/
Defi.c51 .length = md->num_pages * EFI_PAGE_SIZE, in efi_create_mapping()
/Linux-v6.1/include/linux/
Defi.h132 #define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT) macro