Lines Matching refs:e820_table
59 static struct e820_table e820_table_init __initdata;
60 static struct e820_table e820_table_kexec_init __initdata;
61 static struct e820_table e820_table_firmware_init __initdata;
63 struct e820_table *e820_table __refdata = &e820_table_init;
64 struct e820_table *e820_table_kexec __refdata = &e820_table_kexec_init;
65 struct e820_table *e820_table_firmware __refdata = &e820_table_firmware_init;
77 static bool _e820__mapped_any(struct e820_table *table, in _e820__mapped_any()
102 return _e820__mapped_any(e820_table, start, end, type); in e820__mapped_any()
117 for (i = 0; i < e820_table->nr_entries; i++) { in __e820__mapped_all()
118 struct e820_entry *entry = &e820_table->entries[i]; in __e820__mapped_all()
166 static void __init __e820__range_add(struct e820_table *table, u64 start, u64 size, enum e820_type … in __e820__range_add()
184 __e820__range_add(e820_table, start, size, type); in e820__range_add()
207 for (i = 0; i < e820_table->nr_entries; i++) { in e820__print_table()
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()
213 e820_print_type(e820_table->entries[i].type); in e820__print_table()
322 int __init e820__update_table(struct e820_table *table) in e820__update_table()
463 __e820__range_update(struct e820_table *table, u64 start, u64 size, enum e820_type old_type, enum e… in __e820__range_update()
532 return __e820__range_update(e820_table, start, size, old_type, new_type); in e820__range_update()
535 u64 __init e820__range_update_table(struct e820_table *t, u64 start, u64 size, in e820__range_update_table()
557 for (i = 0; i < e820_table->nr_entries; i++) { in e820__range_remove()
558 struct e820_entry *entry = &e820_table->entries[i]; in e820__range_remove()
605 if (e820__update_table(e820_table)) in e820__update_table_print()
625 int i = e820_table->nr_entries; in e820_search_gap()
629 unsigned long long start = e820_table->entries[i].addr; in e820_search_gap()
630 unsigned long long end = start + e820_table->entries[i].size; in e820_search_gap()
700 struct e820_table *n; in e820__reallocate_tables()
703 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table->nr_entries; in e820__reallocate_tables()
704 n = kmemdup(e820_table, size, GFP_KERNEL); in e820__reallocate_tables()
706 e820_table = n; in e820__reallocate_tables()
708 …size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_kexec->nr_entri… in e820__reallocate_tables()
713 …size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_firmware->nr_en… in e820__reallocate_tables()
736 e820__update_table(e820_table); in e820__memory_setup_extended()
738 memcpy(e820_table_kexec, e820_table, sizeof(*e820_table_kexec)); in e820__memory_setup_extended()
739 memcpy(e820_table_firmware, e820_table, sizeof(*e820_table_firmware)); in e820__memory_setup_extended()
759 for (i = 0; i < e820_table->nr_entries; i++) { in e820__register_nosave_regions()
760 struct e820_entry *entry = &e820_table->entries[i]; in e820__register_nosave_regions()
784 for (i = 0; i < e820_table->nr_entries; i++) { in e820__register_nvs_regions()
785 struct e820_entry *entry = &e820_table->entries[i]; in e820__register_nvs_regions()
837 for (i = 0; i < e820_table->nr_entries; i++) { in e820__end_ram_pfn()
838 struct e820_entry *entry = &e820_table->entries[i]; in e820__end_ram_pfn()
929 e820_table->nr_entries = 0; in parse_memmap_one()
1041 e820__update_table(e820_table); in e820__reserve_setup_data()
1055 if (e820__update_table(e820_table) < 0) in e820__finish_early_params()
1149 res = memblock_alloc(sizeof(*res) * e820_table->nr_entries, in e820__reserve_resources()
1153 sizeof(*res) * e820_table->nr_entries); in e820__reserve_resources()
1156 for (i = 0; i < e820_table->nr_entries; i++) { in e820__reserve_resources()
1157 struct e820_entry *entry = e820_table->entries + i; in e820__reserve_resources()
1217 for (i = 0; i < e820_table->nr_entries; i++) { in e820__reserve_resources_late()
1227 for (i = 0; i < e820_table->nr_entries; i++) { in e820__reserve_resources_late()
1228 struct e820_entry *entry = &e820_table->entries[i]; in e820__reserve_resources_late()
1259 if (append_e820_table(boot_params.e820_table, boot_params.e820_entries) < 0) { in e820__memory_setup_default()
1271 e820_table->nr_entries = 0; in e820__memory_setup_default()
1277 e820__update_table(e820_table); in e820__memory_setup_default()
1296 memcpy(e820_table_kexec, e820_table, sizeof(*e820_table_kexec)); in e820__memory_setup()
1297 memcpy(e820_table_firmware, e820_table, sizeof(*e820_table_firmware)); in e820__memory_setup()
1319 for (i = 0; i < e820_table->nr_entries; i++) { in e820__memblock_setup()
1320 struct e820_entry *entry = &e820_table->entries[i]; in e820__memblock_setup()