Searched refs:altmap (Results 1 – 5 of 5) sorted by relevance
/mm/ |
D | sparse-vmemmap.c | 427 struct vmem_altmap *altmap); 431 struct vmem_altmap *altmap) in vmemmap_alloc_block_buf() argument 435 if (altmap) in vmemmap_alloc_block_buf() 436 return altmap_alloc_block_buf(size, altmap); in vmemmap_alloc_block_buf() 444 static unsigned long __meminit vmem_altmap_next_pfn(struct vmem_altmap *altmap) in vmem_altmap_next_pfn() argument 446 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn() 447 + altmap->align; in vmem_altmap_next_pfn() 450 static unsigned long __meminit vmem_altmap_nr_free(struct vmem_altmap *altmap) in vmem_altmap_nr_free() argument 452 unsigned long allocated = altmap->alloc + altmap->align; in vmem_altmap_nr_free() 454 if (altmap->free > allocated) in vmem_altmap_nr_free() [all …]
|
D | sparse.c | 430 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in __populate_section_memmap() argument 632 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in populate_section_memmap() argument 634 return __populate_section_memmap(pfn, nr_pages, nid, altmap); in populate_section_memmap() 638 struct vmem_altmap *altmap) in depopulate_section_memmap() argument 643 vmemmap_free(start, end, altmap); in depopulate_section_memmap() 703 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in populate_section_memmap() argument 710 struct vmem_altmap *altmap) in depopulate_section_memmap() argument 778 struct vmem_altmap *altmap) in section_deactivate() argument 817 depopulate_section_memmap(pfn, nr_pages, altmap); in section_deactivate() 826 unsigned long nr_pages, struct vmem_altmap *altmap) in section_activate() argument [all …]
|
D | memremap.c | 179 WARN_ONCE(pgmap->altmap.alloc, "failed to free all reserved pages\n"); in memunmap_pages() 283 PHYS_PFN(range_len(range)), params->altmap, in pagemap_range() 320 .altmap = pgmap_altmap(pgmap), in memremap_pages() 452 unsigned long vmem_altmap_offset(struct vmem_altmap *altmap) in vmem_altmap_offset() argument 455 if (altmap) in vmem_altmap_offset() 456 return altmap->reserve + altmap->free; in vmem_altmap_offset() 460 void vmem_altmap_free(struct vmem_altmap *altmap, unsigned long nr_pfns) in vmem_altmap_free() argument 462 altmap->alloc -= nr_pfns; in vmem_altmap_free()
|
D | memory_hotplug.c | 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() [all …]
|
D | page_alloc.c | 6928 struct vmem_altmap *altmap, int migratetype) in memmap_init_range() argument 6945 if (!altmap) in memmap_init_range() 6948 if (start_pfn == altmap->base_pfn) in memmap_init_range() 6949 start_pfn += altmap->reserve; in memmap_init_range() 6950 end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_range() 6992 struct vmem_altmap *altmap = pgmap_altmap(pgmap); in memmap_init_zone_device() local 7005 if (altmap) { in memmap_init_zone_device() 7006 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device()
|