Lines Matching refs:altmap
311 struct vmem_altmap *altmap = params->altmap; in __add_pages() local
318 if (altmap) { in __add_pages()
322 if (altmap->base_pfn != pfn in __add_pages()
323 || vmem_altmap_offset(altmap) > nr_pages) { in __add_pages()
327 altmap->alloc = 0; in __add_pages()
338 err = sparse_add_section(nid, pfn, cur_nr_pages, altmap); in __add_pages()
498 struct vmem_altmap *altmap) in __remove_section() argument
505 sparse_remove_section(ms, pfn, nr_pages, map_offset, altmap); in __remove_section()
520 struct vmem_altmap *altmap) in __remove_pages() argument
526 map_offset = vmem_altmap_offset(altmap); in __remove_pages()
536 __remove_section(pfn, cur_nr_pages, map_offset, altmap); in __remove_pages()
694 struct vmem_altmap *altmap, int migratetype) in move_pfn_range_to_zone() argument
726 MEMINIT_HOTPLUG, altmap, migratetype); in move_pfn_range_to_zone()
1405 params.altmap = &mhp_altmap; in add_memory_resource()
2149 struct vmem_altmap *altmap = NULL; in try_remove_memory() local
2189 altmap = &mhp_altmap; in try_remove_memory()
2204 arch_remove_memory(start, size, altmap); in try_remove_memory()