Home
last modified time | relevance | path

Searched refs:EFI_PAGE_SHIFT (Results 1 – 23 of 23) sorted by relevance

/linux-6.6.21/arch/x86/platform/efi/
Dmemmap.c118 end = start + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_split_count()
183 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_memmap_insert()
193 EFI_PAGE_SHIFT; in efi_memmap_insert()
200 EFI_PAGE_SHIFT; in efi_memmap_insert()
206 EFI_PAGE_SHIFT; in efi_memmap_insert()
214 EFI_PAGE_SHIFT; in efi_memmap_insert()
221 EFI_PAGE_SHIFT; in efi_memmap_insert()
228 EFI_PAGE_SHIFT; in efi_memmap_insert()
235 EFI_PAGE_SHIFT; in efi_memmap_insert()
Defi.c130 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in do_add_efi_memmap()
241 #define OVERFLOW_ADDR_SHIFT (64 - EFI_PAGE_SHIFT)
247 u64 end = (md->num_pages << EFI_PAGE_SHIFT) + md->phys_addr - 1; in efi_memmap_entry_valid()
255 (md->phys_addr >> EFI_PAGE_SHIFT)) { in efi_memmap_entry_valid()
338 size = md->num_pages << EFI_PAGE_SHIFT; in efi_remove_e820_mmio()
366 md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1, in efi_print_memmap()
367 (md->num_pages >> (20 - EFI_PAGE_SHIFT))); in efi_print_memmap()
551 prev_size = prev_md->num_pages << EFI_PAGE_SHIFT; in efi_merge_regions()
Dquirks.c267 if (addr + size > md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT)) { in efi_arch_mem_reserve()
333 u64 size = md->num_pages << EFI_PAGE_SHIFT; in efi_reserve_boot_services()
420 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_free_boot_services()
Dfake_mem.c169 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_fake_memmap_early()
/linux-6.6.21/drivers/firmware/efi/
Dmemattr.c59 u64 in_size = in->num_pages << EFI_PAGE_SHIFT; in entry_is_valid()
72 !PAGE_ALIGNED(in->num_pages << EFI_PAGE_SHIFT))) { in entry_is_valid()
86 u64 md_size = md->num_pages << EFI_PAGE_SHIFT; in entry_is_valid()
169 size = md.num_pages << EFI_PAGE_SHIFT; in efi_memattr_apply_permissions()
Defi.c357 debugfs_blob[i].size = md->num_pages << EFI_PAGE_SHIFT; in efi_debugfs_init()
474 unsigned long long size = md->num_pages << EFI_PAGE_SHIFT; in efi_find_mirror()
514 (md->num_pages > (U64_MAX - md->phys_addr) >> EFI_PAGE_SHIFT)) in __efi_mem_desc_lookup()
517 size = md->num_pages << EFI_PAGE_SHIFT; in __efi_mem_desc_lookup()
535 u64 size = md->num_pages << EFI_PAGE_SHIFT; in efi_mem_desc_end()
955 (md->num_pages << EFI_PAGE_SHIFT)))) in efi_mem_attributes()
979 (md->num_pages << EFI_PAGE_SHIFT)))) in efi_mem_type()
Defi-init.c50 (addr - md->virt_addr) < (md->num_pages << EFI_PAGE_SHIFT)) in efi_to_phys()
173 paddr, paddr + (npages << EFI_PAGE_SHIFT) - 1, in reserve_regions()
Driscv-runtime.c88 u64 md_size = md->num_pages << EFI_PAGE_SHIFT; in riscv_enable_runtime_services()
Darm-runtime.c110 u64 md_size = md->num_pages << EFI_PAGE_SHIFT; in arm_enable_runtime_services()
Dembedded-firmware.c45 size = md->num_pages << EFI_PAGE_SHIFT; in efi_check_md_for_embedded_firmware()
/linux-6.6.21/arch/arm64/kernel/
Defi.c22 !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT); in region_is_misaligned()
96 md->num_pages << EFI_PAGE_SHIFT, in efi_create_mapping()
143 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions()
Dacpi.c279 u64 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in acpi_os_ioremap()
/linux-6.6.21/arch/ia64/kernel/
Defi.c293 #define efi_md_size(md) (md->num_pages << EFI_PAGE_SHIFT)
298 return (kmd->start + (kmd->num_pages << EFI_PAGE_SHIFT)); in kmd_end()
330 end = (k->start + (k->num_pages << EFI_PAGE_SHIFT)) & PAGE_MASK; in walk()
573 size = md->num_pages << EFI_PAGE_SHIFT; in efi_init()
714 if (phys_addr - md->start < (md->num_pages << EFI_PAGE_SHIFT)) in kern_memory_descriptor()
1106 >> EFI_PAGE_SHIFT; in efi_memmap_init()
1111 >> EFI_PAGE_SHIFT; in efi_memmap_init()
1130 >> EFI_PAGE_SHIFT; in efi_memmap_init()
1151 prev->num_pages += (ae - as) >> EFI_PAGE_SHIFT; in efi_memmap_init()
1157 k->num_pages = (ae - as) >> EFI_PAGE_SHIFT; in efi_memmap_init()
/linux-6.6.21/arch/loongarch/kernel/
Dmem.c23 mem_size = md->num_pages << EFI_PAGE_SHIFT; in memblock_init()
Dnuma.c312 mem_size = md->num_pages << EFI_PAGE_SHIFT; in init_node_memblock()
/linux-6.6.21/arch/riscv/kernel/
Defi.c95 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions()
/linux-6.6.21/include/linux/
Defi.h133 #define EFI_PAGE_SHIFT 12 macro
134 #define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT)
135 #define EFI_PAGES_MAX (U64_MAX >> EFI_PAGE_SHIFT)
845 for (i = 0; i < len; i += (1UL << EFI_PAGE_SHIFT)) { in efi_range_is_wc()
1042 *npages = PFN_UP(*addr + (*npages<<EFI_PAGE_SHIFT)) - PFN_DOWN(*addr); in memrange_efi_to_native()
/linux-6.6.21/arch/arm/kernel/
Defi.c34 size = md->num_pages << EFI_PAGE_SHIFT; in efi_set_mapping_permissions()
/linux-6.6.21/arch/x86/boot/compressed/
Defi.h42 #define EFI_PAGE_SHIFT 12 macro
Dkaslr.c758 region.size = md->num_pages << EFI_PAGE_SHIFT; in process_efi_entries()
/linux-6.6.21/drivers/xen/
Defi.c299 static_assert(XEN_PAGE_SHIFT == EFI_PAGE_SHIFT, in efi_mem_desc_lookup()
325 out_md->num_pages = info->mem.size >> EFI_PAGE_SHIFT; in efi_mem_desc_lookup()
/linux-6.6.21/drivers/video/fbdev/
Defifb.c472 (md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT))) { in efifb_probe()
/linux-6.6.21/arch/x86/pci/
Dmmconfig-shared.c454 size = md->num_pages << EFI_PAGE_SHIFT; in is_efi_mmio()