Home
last modified time | relevance | path

Searched refs:e820_table (Results 1 – 25 of 25) sorted by relevance

/openbmc/qemu/hw/i386/
H A De820_memory_layout.c14 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 De820.c63 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 Dresource.c38 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 Dtboot.c202 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 Dkexec-bzimage64.c108 memcpy(&params->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 Dkvm.c952 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 Dsetup.c742 e820__update_table(e820_table); in trim_bios_range()
1057 e820__update_table(e820_table); in setup_arch()
H A Dcrash.c241 memcpy(&params->e820_table[nr_e820_entries], entry, sizeof(struct e820_entry)); in add_e820_entry()
H A Dearly-quirks.c590 e820__update_table(e820_table); in intel_graphics_stolen()
/openbmc/linux/arch/x86/platform/pvh/
H A Denlighten.c55 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 Dapi.h7 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 Dtypes.h94 struct e820_table { struct
/openbmc/linux/arch/x86/xen/
H A Denlighten_pvh.c67 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 Dsetup.c48 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 Dmemory.c22 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 Dhibernate.c72 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 Dzero-page.rst36 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 Dx86-stub.c546 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 Dbootparam_utils.h75 BOOT_PARAM_PRESERVE(e820_table), in sanitize_boot_params()
/openbmc/linux/arch/x86/boot/compressed/
H A Dpgtable_64.c71 entry = &boot_params->e820_table[i]; in find_trampoline_placement()
H A Dkaslr.c781 entry = &boot_params->e820_table[i]; in process_e820_entries()
/openbmc/linux/arch/x86/platform/efi/
H A Dfake_mem.c194 e820__update_table(e820_table); in efi_fake_memmap_early()
H A Dquirks.c300 e820__update_table(e820_table); in efi_arch_mem_reserve()
H A Defi.c171 e820__update_table(e820_table); in do_add_efi_memmap()
/openbmc/linux/arch/x86/include/uapi/asm/
H A Dbootparam.h229 struct boot_e820_entry e820_table[E820_MAX_ENTRIES_ZEROPAGE]; /* 0x2d0 */ member