Home
last modified time | relevance | path

Searched refs:altmap (Results 1 – 5 of 5) sorted by relevance

/mm/
Dsparse-vmemmap.c73 struct vmem_altmap *altmap);
77 struct vmem_altmap *altmap) in vmemmap_alloc_block_buf() argument
81 if (altmap) in vmemmap_alloc_block_buf()
82 return altmap_alloc_block_buf(size, altmap); in vmemmap_alloc_block_buf()
90 static unsigned long __meminit vmem_altmap_next_pfn(struct vmem_altmap *altmap) in vmem_altmap_next_pfn() argument
92 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn()
93 + altmap->align; in vmem_altmap_next_pfn()
96 static unsigned long __meminit vmem_altmap_nr_free(struct vmem_altmap *altmap) in vmem_altmap_nr_free() argument
98 unsigned long allocated = altmap->alloc + altmap->align; in vmem_altmap_nr_free()
100 if (altmap->free > allocated) in vmem_altmap_nr_free()
[all …]
Dsparse.c446 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in __populate_section_memmap() argument
652 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in populate_section_memmap() argument
654 return __populate_section_memmap(pfn, nr_pages, nid, altmap); in populate_section_memmap()
658 struct vmem_altmap *altmap) in depopulate_section_memmap() argument
663 vmemmap_free(start, end, altmap); in depopulate_section_memmap()
723 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in populate_section_memmap() argument
730 struct vmem_altmap *altmap) in depopulate_section_memmap() argument
798 struct vmem_altmap *altmap) in section_deactivate() argument
838 depopulate_section_memmap(pfn, nr_pages, altmap); in section_deactivate()
847 unsigned long nr_pages, struct vmem_altmap *altmap) in section_activate() argument
[all …]
Dmemremap.c182 WARN_ONCE(pgmap->altmap.alloc, "failed to free all reserved pages\n"); in memunmap_pages()
280 PHYS_PFN(range_len(range)), params->altmap, in pagemap_range()
317 .altmap = pgmap_altmap(pgmap), in memremap_pages()
449 unsigned long vmem_altmap_offset(struct vmem_altmap *altmap) in vmem_altmap_offset() argument
452 if (altmap) in vmem_altmap_offset()
453 return altmap->reserve + altmap->free; in vmem_altmap_offset()
457 void vmem_altmap_free(struct vmem_altmap *altmap, unsigned long nr_pfns) in vmem_altmap_free() argument
459 altmap->alloc -= nr_pfns; in vmem_altmap_free()
Dmemory_hotplug.c315 struct vmem_altmap *altmap = params->altmap; in __add_pages() local
324 if (altmap) { in __add_pages()
328 if (altmap->base_pfn != pfn in __add_pages()
329 || vmem_altmap_offset(altmap) > nr_pages) { in __add_pages()
333 altmap->alloc = 0; in __add_pages()
344 err = sparse_add_section(nid, pfn, cur_nr_pages, altmap); in __add_pages()
511 struct vmem_altmap *altmap) in __remove_section() argument
518 sparse_remove_section(ms, pfn, nr_pages, map_offset, altmap); in __remove_section()
533 struct vmem_altmap *altmap) in __remove_pages() argument
539 map_offset = vmem_altmap_offset(altmap); in __remove_pages()
[all …]
Dpage_alloc.c6340 struct vmem_altmap *altmap, int migratetype) in memmap_init_zone() argument
6357 if (!altmap) in memmap_init_zone()
6360 if (start_pfn == altmap->base_pfn) in memmap_init_zone()
6361 start_pfn += altmap->reserve; in memmap_init_zone()
6362 end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone()
6404 struct vmem_altmap *altmap = pgmap_altmap(pgmap); in memmap_init_zone_device() local
6417 if (altmap) { in memmap_init_zone_device()
6418 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device()