Lines Matching refs:altmap
308 struct vmem_altmap *altmap = params->altmap; in __add_pages() local
315 if (altmap) { in __add_pages()
319 if (altmap->base_pfn != pfn in __add_pages()
320 || vmem_altmap_offset(altmap) > nr_pages) { in __add_pages()
324 altmap->alloc = 0; in __add_pages()
336 err = sparse_add_section(nid, pfn, cur_nr_pages, altmap, in __add_pages()
497 struct vmem_altmap *altmap) in __remove_section() argument
504 sparse_remove_section(ms, pfn, nr_pages, map_offset, altmap); in __remove_section()
519 struct vmem_altmap *altmap) in __remove_pages() argument
525 map_offset = vmem_altmap_offset(altmap); in __remove_pages()
537 __remove_section(pfn, cur_nr_pages, map_offset, altmap); in __remove_pages()
689 struct vmem_altmap *altmap, int migratetype) in move_pfn_range_to_zone() argument
721 MEMINIT_HOTPLUG, altmap, migratetype); in move_pfn_range_to_zone()
1373 params.altmap = &mhp_altmap; in add_memory_resource()
2065 struct vmem_altmap *altmap = NULL; in try_remove_memory() local
2105 altmap = &mhp_altmap; in try_remove_memory()
2120 arch_remove_memory(start, size, altmap); in try_remove_memory()