Lines Matching defs:altmap
395 struct vmem_altmap *altmap = params->altmap;
402 if (altmap) {
404 * Validate altmap is within bounds of the total request
406 if (altmap->base_pfn != pfn
407 || vmem_altmap_offset(altmap) > nr_pages) {
408 pr_warn_once("memory add fail, invalid altmap\n");
411 altmap->alloc = 0;
423 err = sparse_add_section(nid, pfn, cur_nr_pages, altmap,
586 * @altmap: alternative device page map or %NULL if default memmap is used
594 struct vmem_altmap *altmap)
609 sparse_remove_section(pfn, cur_nr_pages, altmap);
750 struct vmem_altmap *altmap, int migratetype,
783 MEMINIT_HOTPLUG, altmap, migratetype,
1375 * to populate memory from the altmap for unrelated parts (i.e.,
1387 * altmap as an alternative source of memory, and we do not exactly
1395 * so that we always allocate vmemmap memory from altmap area.
1426 struct vmem_altmap *altmap = NULL;
1433 altmap = mem->altmap;
1434 mem->altmap = NULL;
1438 arch_remove_memory(cur_start, memblock_size, altmap);
1441 WARN(altmap->alloc, "Altmap not fully unmapped");
1442 kfree(altmap);
1465 params.altmap = kmemdup(&mhp_altmap, sizeof(struct vmem_altmap),
1467 if (!params.altmap) {
1475 kfree(params.altmap);
1481 params.altmap, group);
1484 kfree(params.altmap);
1561 arch_remove_memory(start, size, params.altmap);
2124 if (mem->altmap)