/openbmc/qemu/hw/i386/ |
H A D | e820_memory_layout.c | 14 static struct e820_entry *e820_table; variable 22 e820_table = g_renew(struct e820_entry, e820_table, e820_entries + 1); in e820_add_entry() 23 e820_table[e820_entries].address = cpu_to_le64(address); in e820_add_entry() 24 e820_table[e820_entries].length = cpu_to_le64(length); in e820_add_entry() 25 e820_table[e820_entries].type = cpu_to_le32(type); in e820_add_entry() 34 *table = e820_table; in e820_get_table() 42 if (idx < e820_entries && e820_table[idx].type == cpu_to_le32(type)) { in e820_get_entry() 43 *address = le64_to_cpu(e820_table[idx].address); in e820_get_entry() 44 *length = le64_to_cpu(e820_table[idx].length); in e820_get_entry()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | e820.c | 63 struct e820_table *e820_table __refdata = &e820_table_init; 210 e820_table->entries[i].addr, in e820__print_table() 211 e820_table->entries[i].addr + e820_table->entries[i].size - 1); in e820__print_table() 624 int i = e820_table->nr_entries; in e820_search_gap() 699 struct e820_table *n; in e820__reallocate_tables() 705 e820_table = n; in e820__reallocate_tables() 735 e820__update_table(e820_table); in e820__memory_setup_extended() 927 e820_table->nr_entries = 0; in parse_memmap_one() 1053 e820__update_table(e820_table); in e820__reserve_setup_data() 1284 e820_table->nr_entries = 0; in e820__memory_setup_default() [all …]
|
H A D | resource.c | 38 for (i = 0; i < e820_table->nr_entries; i++) { in remove_e820_regions() 39 entry = &e820_table->entries[i]; in remove_e820_regions()
|
H A D | tboot.c | 202 for (i = 0; i < e820_table->nr_entries; i++) { in tboot_setup_sleep() 203 if ((e820_table->entries[i].type != E820_TYPE_RAM) in tboot_setup_sleep() 204 && (e820_table->entries[i].type != E820_TYPE_RESERVED_KERN)) in tboot_setup_sleep() 207 add_mac_region(e820_table->entries[i].addr, e820_table->entries[i].size); in tboot_setup_sleep()
|
H A D | kexec-bzimage64.c | 108 memcpy(¶ms->e820_table, &e820_table_kexec->entries, nr_e820_entries*sizeof(struct e820_entry)); in setup_e820_entries() 276 if (params->e820_table[i].type != E820_TYPE_RAM) in setup_boot_parameters() 278 start = params->e820_table[i].addr; in setup_boot_parameters() 279 end = params->e820_table[i].addr + params->e820_table[i].size - 1; in setup_boot_parameters()
|
H A D | kvm.c | 952 for (i = 0; i < e820_table->nr_entries; i++) { in kvm_init_platform() 953 struct e820_entry *entry = &e820_table->entries[i]; in kvm_init_platform()
|
H A D | setup.c | 742 e820__update_table(e820_table); in trim_bios_range() 1057 e820__update_table(e820_table); in setup_arch()
|
H A D | crash.c | 241 memcpy(¶ms->e820_table[nr_e820_entries], entry, sizeof(struct e820_entry)); in add_e820_entry()
|
H A D | early-quirks.c | 590 e820__update_table(e820_table); in intel_graphics_stolen()
|
/openbmc/linux/arch/x86/platform/pvh/ |
H A D | enlighten.c | 55 pvh_bootparams.e820_table[i].addr = ep->addr; in init_pvh_bootparams() 56 pvh_bootparams.e820_table[i].size = ep->size; in init_pvh_bootparams() 57 pvh_bootparams.e820_table[i].type = ep->type; in init_pvh_bootparams() 67 pvh_bootparams.e820_table[pvh_bootparams.e820_entries].addr = in init_pvh_bootparams() 69 pvh_bootparams.e820_table[pvh_bootparams.e820_entries].size = in init_pvh_bootparams() 71 pvh_bootparams.e820_table[pvh_bootparams.e820_entries].type = in init_pvh_bootparams()
|
/openbmc/linux/arch/x86/include/asm/e820/ |
H A D | api.h | 7 extern struct e820_table *e820_table; 8 extern struct e820_table *e820_table_kexec; 9 extern struct e820_table *e820_table_firmware; 22 extern int e820__update_table(struct e820_table *table);
|
H A D | types.h | 94 struct e820_table { struct
|
/openbmc/linux/arch/x86/xen/ |
H A D | enlighten_pvh.c | 67 memmap.nr_entries = ARRAY_SIZE(boot_params_p->e820_table); in mem_map_via_hcall() 68 set_xen_guest_handle(memmap.buffer, boot_params_p->e820_table); in mem_map_via_hcall() 96 struct boot_e820_entry *e = &bootp->e820_table[i]; in xen_reserve_extra_memory() 111 struct boot_e820_entry *e = &bootp->e820_table[i]; in xen_reserve_extra_memory() 124 ARRAY_SIZE(bootp->e820_table)) in xen_reserve_extra_memory()
|
H A D | setup.c | 48 static struct e820_table xen_e820_table __initdata; 950 e820__update_table(e820_table); in xen_memory_setup()
|
/openbmc/linux/arch/x86/boot/ |
H A D | memory.c | 22 struct boot_e820_entry *desc = boot_params.e820_table; in detect_memory_e820() 67 } while (ireg.ebx && count < ARRAY_SIZE(boot_params.e820_table)); in detect_memory_e820()
|
/openbmc/linux/arch/x86/power/ |
H A D | hibernate.c | 72 static inline u32 compute_e820_crc32(struct e820_table *table) in compute_e820_crc32() 74 int size = offsetof(struct e820_table, entries) + in compute_e820_crc32()
|
/openbmc/linux/Documentation/arch/x86/ |
H A D | zero-page.rst | 36 1E8/001 ALL e820_entries Number of entries in e820_table (below) 44 2D0/A00 ALL e820_table E820 memory map table
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | x86-stub.c | 546 struct boot_e820_entry *entry = params->e820_table; in setup_e820() 622 if (nr_entries == ARRAY_SIZE(params->e820_table)) { in setup_e820() 640 if (nr_entries > ARRAY_SIZE(params->e820_table)) { in setup_e820() 641 u32 nr_e820ext = nr_entries - ARRAY_SIZE(params->e820_table); in setup_e820() 688 if (nr_desc > ARRAY_SIZE(params->e820_table) - EFI_MMAP_NR_SLACK_SLOTS) { in allocate_e820() 689 u32 nr_e820ext = nr_desc - ARRAY_SIZE(params->e820_table) + in allocate_e820()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | bootparam_utils.h | 75 BOOT_PARAM_PRESERVE(e820_table), in sanitize_boot_params()
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | pgtable_64.c | 71 entry = &boot_params->e820_table[i]; in find_trampoline_placement()
|
H A D | kaslr.c | 781 entry = &boot_params->e820_table[i]; in process_e820_entries()
|
/openbmc/linux/arch/x86/platform/efi/ |
H A D | fake_mem.c | 194 e820__update_table(e820_table); in efi_fake_memmap_early()
|
H A D | quirks.c | 300 e820__update_table(e820_table); in efi_arch_mem_reserve()
|
H A D | efi.c | 171 e820__update_table(e820_table); in do_add_efi_memmap()
|
/openbmc/linux/arch/x86/include/uapi/asm/ |
H A D | bootparam.h | 229 struct boot_e820_entry e820_table[E820_MAX_ENTRIES_ZEROPAGE]; /* 0x2d0 */ member
|