Lines Matching full:entries
28 * the first 128 E820 memory entries in boot_params.e820_table and the remaining
29 * (if any) entries of the SETUP_E820_EXT nodes. We use this to:
83 struct e820_entry *entry = &table->entries[i]; in _e820__mapped_any()
118 struct e820_entry *entry = &e820_table->entries[i]; in __e820__mapped_all()
170 if (x >= ARRAY_SIZE(table->entries)) { in __e820__range_add()
171 pr_err("too many entries; ignoring [mem %#010llx-%#010llx]\n", in __e820__range_add()
176 table->entries[x].addr = start; in __e820__range_add()
177 table->entries[x].size = size; in __e820__range_add()
178 table->entries[x].type = type; in __e820__range_add()
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()
221 * Some E820 layouts include overlapping entries. The following
226 * The input parameter 'entries' points to an array of 'struct
228 * valid, and which has space for up to max_nr_entries entries.
229 * On return, the resulting sanitized E820 map entries will be in
230 * overwritten in the same location, starting at 'entries'.
233 * current number of valid entries located at 'entries'). If the
235 * number of valid entries (something no more than max_nr_entries).
238 * successfully 'sanitized' the map entries passed in, and is -1
240 * only passed one map entry, or (2) any of the input map entries
324 struct e820_entry *entries = table->entries; in e820__update_table() local
325 u32 max_nr_entries = ARRAY_SIZE(table->entries); in e820__update_table()
339 if (entries[i].addr + entries[i].size < entries[i].addr) in e820__update_table()
353 if (entries[i].size != 0) { in e820__update_table()
354 change_point[chg_idx]->addr = entries[i].addr; in e820__update_table()
355 change_point[chg_idx++]->entry = &entries[i]; in e820__update_table()
356 change_point[chg_idx]->addr = entries[i].addr + entries[i].size; in e820__update_table()
357 change_point[chg_idx++]->entry = &entries[i]; in e820__update_table()
366 overlap_entries = 0; /* Number of entries in the overlap table */ in e820__update_table()
367 new_nr_entries = 0; /* Index for creating new map entries */ in e820__update_table()
373 /* Keep track of all overlapping entries */ in e820__update_table()
386 * If there are overlapping entries, decide which in e820__update_table()
402 /* No more space left for new entries? */ in e820__update_table()
415 /* Copy the new entries into the original location: */ in e820__update_table()
416 memcpy(entries, new_entries, new_nr_entries*sizeof(*entries)); in e820__update_table()
422 static int __init __append_e820_table(struct boot_e820_entry *entries, u32 nr_entries) in __append_e820_table() argument
424 struct boot_e820_entry *entry = entries; in __append_e820_table()
453 static int __init append_e820_table(struct boot_e820_entry *entries, u32 nr_entries) in append_e820_table() argument
459 return __append_e820_table(entries, nr_entries); in append_e820_table()
482 struct e820_entry *entry = &table->entries[i]; in __e820__range_update()
557 struct e820_entry *entry = &e820_table->entries[i]; in e820__range_remove()
628 unsigned long long start = e820_table->entries[i].addr; in e820_search_gap()
629 unsigned long long end = start + e820_table->entries[i].size; in e820_search_gap()
691 * sized precisely after the number of e820 entries.
702 size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table->nr_entries; in e820__reallocate_tables()
707 …size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_kexec->nr_entri… in e820__reallocate_tables()
712 …size = offsetof(struct e820_table, entries) + sizeof(struct e820_entry)*e820_table_firmware->nr_en… in e820__reallocate_tables()
720 * 128 E820 memory entries are passed to the kernel via boot_params.e820_table,
721 * the remaining (if any) entries are passed via the SETUP_E820_EXT node of
726 int entries; in e820__memory_setup_extended() local
731 entries = sdata->len / sizeof(*extmap); in e820__memory_setup_extended()
734 __append_e820_table(extmap, entries); in e820__memory_setup_extended()
751 * overlapping entries.
759 struct e820_entry *entry = &e820_table->entries[i]; in e820__register_nosave_regions()
784 struct e820_entry *entry = &e820_table->entries[i]; in e820__register_nvs_regions()
837 struct e820_entry *entry = &e820_table->entries[i]; in e820_end_pfn()
992 * Reserve all entries from the bootloader's extensible data nodes list,
994 * entries from it:
1168 struct e820_entry *entry = e820_table->entries + i; in e820__reserve_resources()
1195 struct e820_entry *entry = e820_table_firmware->entries + i; in e820__reserve_resources()
1239 struct e820_entry *entry = &e820_table->entries[i]; in e820__reserve_resources_late()
1320 * The bootstrap memblock region count maximum is 128 entries in e820__memblock_setup()
1321 * (INIT_MEMBLOCK_REGIONS), but EFI might pass us more E820 entries in e820__memblock_setup()
1331 struct e820_entry *entry = &e820_table->entries[i]; in e820__memblock_setup()