/linux-6.6.21/arch/x86/platform/efi/ |
D | memmap.c | 118 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()
|
D | efi.c | 130 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()
|
D | quirks.c | 267 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()
|
D | fake_mem.c | 169 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT) - 1; in efi_fake_memmap_early()
|
/linux-6.6.21/drivers/firmware/efi/ |
D | memattr.c | 59 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()
|
D | efi.c | 357 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()
|
D | efi-init.c | 50 (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()
|
D | riscv-runtime.c | 88 u64 md_size = md->num_pages << EFI_PAGE_SHIFT; in riscv_enable_runtime_services()
|
D | arm-runtime.c | 110 u64 md_size = md->num_pages << EFI_PAGE_SHIFT; in arm_enable_runtime_services()
|
D | embedded-firmware.c | 45 size = md->num_pages << EFI_PAGE_SHIFT; in efi_check_md_for_embedded_firmware()
|
/linux-6.6.21/arch/arm64/kernel/ |
D | efi.c | 22 !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()
|
D | acpi.c | 279 u64 end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT); in acpi_os_ioremap()
|
/linux-6.6.21/arch/ia64/kernel/ |
D | efi.c | 293 #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/ |
D | mem.c | 23 mem_size = md->num_pages << EFI_PAGE_SHIFT; in memblock_init()
|
D | numa.c | 312 mem_size = md->num_pages << EFI_PAGE_SHIFT; in init_node_memblock()
|
/linux-6.6.21/arch/riscv/kernel/ |
D | efi.c | 95 md->num_pages << EFI_PAGE_SHIFT, in efi_set_mapping_permissions()
|
/linux-6.6.21/include/linux/ |
D | efi.h | 133 #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/ |
D | efi.c | 34 size = md->num_pages << EFI_PAGE_SHIFT; in efi_set_mapping_permissions()
|
/linux-6.6.21/arch/x86/boot/compressed/ |
D | efi.h | 42 #define EFI_PAGE_SHIFT 12 macro
|
D | kaslr.c | 758 region.size = md->num_pages << EFI_PAGE_SHIFT; in process_efi_entries()
|
/linux-6.6.21/drivers/xen/ |
D | efi.c | 299 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/ |
D | efifb.c | 472 (md.phys_addr + (md.num_pages << EFI_PAGE_SHIFT))) { in efifb_probe()
|
/linux-6.6.21/arch/x86/pci/ |
D | mmconfig-shared.c | 454 size = md->num_pages << EFI_PAGE_SHIFT; in is_efi_mmio()
|