/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | alignedmem.c | 39 slack = align / EFI_PAGE_SIZE - 1; in efi_allocate_pages_aligned() 42 memory_type, size / EFI_PAGE_SIZE + slack, in efi_allocate_pages_aligned() 50 int l = (alloc_addr & (align - 1)) / EFI_PAGE_SIZE; in efi_allocate_pages_aligned()
|
H A D | mem.c | 94 if (EFI_ALLOC_ALIGN > EFI_PAGE_SIZE) in efi_allocate_pages() 101 EFI_LOADER_DATA, DIV_ROUND_UP(size, EFI_PAGE_SIZE), in efi_allocate_pages() 128 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free()
|
H A D | arm32-stub.c | 97 status = efi_low_alloc_above(alloc_size, EFI_PAGE_SIZE, &alloc_base, 0x0); in handle_kernel_image() 121 (*reserve_addr - alloc_base) / EFI_PAGE_SIZE); in handle_kernel_image() 125 (alloc_size - MAX_UNCOMP_KERNEL_SIZE) / EFI_PAGE_SIZE); in handle_kernel_image()
|
H A D | relocate.c | 45 nr_pages = size / EFI_PAGE_SIZE; in efi_low_alloc_above() 67 end = start + desc->num_pages * EFI_PAGE_SIZE; in efi_low_alloc_above() 141 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
|
H A D | randomalloc.c | 35 region_end = min(md->phys_addr + md->num_pages * EFI_PAGE_SIZE - 1, in get_entry_num_slots() 127 pages = size / EFI_PAGE_SIZE; in efi_random_alloc()
|
H A D | kaslr.c | 71 u64 end = md->phys_addr + md->num_pages * EFI_PAGE_SIZE; in check_image_region()
|
H A D | zboot.c | 46 alloc_size / EFI_PAGE_SIZE, &efi_addr) == EFI_SUCCESS) in alloc_preferred_address()
|
H A D | efi-stub.c | 246 size = in->num_pages * EFI_PAGE_SIZE; in efi_get_virtmap()
|
H A D | x86-stub.c | 237 rounded_start = rounddown(start, EFI_PAGE_SIZE); in efi_adjust_memory_range_protection() 238 rounded_end = roundup(start + size, EFI_PAGE_SIZE); in efi_adjust_memory_range_protection()
|
/openbmc/linux/arch/x86/platform/efi/ |
H A D | quirks.c | 272 size += addr % EFI_PAGE_SIZE; in efi_arch_mem_reserve() 273 size = round_up(size, EFI_PAGE_SIZE); in efi_arch_mem_reserve() 274 addr = round_down(addr, EFI_PAGE_SIZE); in efi_arch_mem_reserve()
|
H A D | memmap.c | 179 if (!IS_ALIGNED(m_start, EFI_PAGE_SIZE) || in efi_memmap_insert() 180 !IS_ALIGNED(m_end + 1, EFI_PAGE_SIZE)) { in efi_memmap_insert()
|
/openbmc/u-boot/include/ |
H A D | efi.h | 193 #define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT) macro 194 #define EFI_PAGE_MASK (EFI_PAGE_SIZE - 1)
|
/openbmc/u-boot/arch/arm/mach-meson/ |
H A D | board-common.c | 65 ALIGN(size, EFI_PAGE_SIZE) >> EFI_PAGE_SHIFT, in meson_board_add_reserved_memory()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | e820.c | 51 pages = ALIGN(e820[i].size, EFI_PAGE_SIZE) >> EFI_PAGE_SHIFT; in efi_add_known_memory()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | efi.c | 54 .length = md->num_pages * EFI_PAGE_SIZE, in efi_create_mapping()
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | memattr.c | 70 if (PAGE_SIZE > EFI_PAGE_SIZE && in entry_is_valid()
|
H A D | mokvar-table.c |
|
H A D | efi.c | 514 if ((md->phys_addr & (EFI_PAGE_SIZE - 1)) || in __efi_mem_desc_lookup()
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | efi.c | 19 if (PAGE_SIZE == EFI_PAGE_SIZE) in region_is_misaligned()
|
/openbmc/u-boot/drivers/video/meson/ |
H A D | meson_vpu.c | 70 MESON_VPU_OVERSCAN, EFI_PAGE_SIZE); in meson_vpu_setup_mode()
|
/openbmc/u-boot/cmd/ |
H A D | bootefi.c | 118 new_fdt_addr = (ulong)memalign(EFI_PAGE_SIZE, fdt_size); in copy_fdt()
|
H A D | efidebug.c | 448 map->physical_start + map->num_pages * EFI_PAGE_SIZE); in do_efi_show_memmap()
|
/openbmc/u-boot/drivers/video/sunxi/ |
H A D | sunxi_de2.c | 228 (1 << l2bpp) / 8, EFI_PAGE_SIZE) >> EFI_PAGE_SHIFT, in sunxi_de2_init()
|
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
H A D | fdt.c | 140 ALIGN(*boot_code_size, EFI_PAGE_SIZE) >> EFI_PAGE_SHIFT, in ft_fixup_cpu()
|
/openbmc/linux/drivers/xen/ |
H A D | efi.c | 307 phys_addr &= ~(u64)(EFI_PAGE_SIZE - 1); in efi_mem_desc_lookup()
|