Lines Matching refs:nr_vmemmap_pages
190 unsigned long nr_vmemmap_pages = 0; in memory_block_online() local
208 nr_vmemmap_pages = mem->altmap->free; in memory_block_online()
211 if (nr_vmemmap_pages) { in memory_block_online()
212 ret = mhp_init_memmap_on_memory(start_pfn, nr_vmemmap_pages, zone); in memory_block_online()
217 ret = online_pages(start_pfn + nr_vmemmap_pages, in memory_block_online()
218 nr_pages - nr_vmemmap_pages, zone, mem->group); in memory_block_online()
220 if (nr_vmemmap_pages) in memory_block_online()
221 mhp_deinit_memmap_on_memory(start_pfn, nr_vmemmap_pages); in memory_block_online()
229 if (nr_vmemmap_pages) in memory_block_online()
231 nr_vmemmap_pages); in memory_block_online()
246 unsigned long nr_vmemmap_pages = 0; in memory_block_offline() local
257 nr_vmemmap_pages = mem->altmap->free; in memory_block_offline()
260 if (nr_vmemmap_pages) in memory_block_offline()
262 -nr_vmemmap_pages); in memory_block_offline()
264 ret = offline_pages(start_pfn + nr_vmemmap_pages, in memory_block_offline()
265 nr_pages - nr_vmemmap_pages, mem->zone, mem->group); in memory_block_offline()
268 if (nr_vmemmap_pages) in memory_block_offline()
270 mem->group, nr_vmemmap_pages); in memory_block_offline()
274 if (nr_vmemmap_pages) in memory_block_offline()
275 mhp_deinit_memmap_on_memory(start_pfn, nr_vmemmap_pages); in memory_block_offline()