Searched refs:altmap (Results 1 – 5 of 5) sorted by relevance
| /mm/ |
| A D | sparse-vmemmap.c | 88 struct vmem_altmap *altmap) in vmemmap_alloc_block_buf() argument 92 if (altmap) in vmemmap_alloc_block_buf() 103 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn() 104 + altmap->align; in vmem_altmap_next_pfn() 109 unsigned long allocated = altmap->alloc + altmap->align; in vmem_altmap_nr_free() 111 if (altmap->free > allocated) in vmem_altmap_nr_free() 112 return altmap->free - allocated; in vmem_altmap_nr_free() 134 altmap->alloc += nr_pfns; in altmap_alloc_block_buf() 135 altmap->align += nr_align; in altmap_alloc_block_buf() 139 __func__, pfn, altmap->alloc, altmap->align, nr_pfns); in altmap_alloc_block_buf() [all …]
|
| A D | sparse.c | 678 struct vmem_altmap *altmap) in depopulate_section_memmap() argument 684 vmemmap_free(start, end, altmap); in depopulate_section_memmap() 752 struct vmem_altmap *altmap) in depopulate_section_memmap() argument 820 struct vmem_altmap *altmap) in section_deactivate() argument 860 depopulate_section_memmap(pfn, nr_pages, altmap); in section_deactivate() 869 unsigned long nr_pages, struct vmem_altmap *altmap, in section_activate() argument 904 section_deactivate(pfn, nr_pages, altmap); in section_activate() 931 unsigned long nr_pages, struct vmem_altmap *altmap, in sparse_add_section() argument 951 if (!altmap || !altmap->inaccessible) in sparse_add_section() 967 struct vmem_altmap *altmap) in sparse_remove_section() argument [all …]
|
| A D | memory_hotplug.c | 395 struct vmem_altmap *altmap = params->altmap; in __add_pages() local 402 if (altmap) { in __add_pages() 406 if (altmap->base_pfn != pfn in __add_pages() 411 altmap->alloc = 0; in __add_pages() 1433 altmap = mem->altmap; in remove_memory_blocks_and_altmaps() 1434 mem->altmap = NULL; in remove_memory_blocks_and_altmaps() 1442 kfree(altmap); in remove_memory_blocks_and_altmaps() 1467 if (!params.altmap) { in create_altmaps_and_memory_blocks() 1475 kfree(params.altmap); in create_altmaps_and_memory_blocks() 1484 kfree(params.altmap); in create_altmaps_and_memory_blocks() [all …]
|
| A D | mm_init.c | 878 struct vmem_altmap *altmap, int migratetype, in memmap_init_range() argument 896 if (!altmap) in memmap_init_range() 899 if (start_pfn == altmap->base_pfn) in memmap_init_range() 900 start_pfn += altmap->reserve; in memmap_init_range() 901 end_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_range() 1076 static inline unsigned long compound_nr_pages(struct vmem_altmap *altmap, in compound_nr_pages() argument 1079 if (!vmemmap_can_optimize(altmap, pgmap)) in compound_nr_pages() 1119 struct vmem_altmap *altmap = pgmap_altmap(pgmap); in memmap_init_zone_device() local 1133 if (altmap) { in memmap_init_zone_device() 1134 start_pfn = altmap->base_pfn + vmem_altmap_offset(altmap); in memmap_init_zone_device() [all …]
|
| A D | memremap.c | 128 WARN_ONCE(pgmap->altmap.alloc, "failed to free all reserved pages\n"); in memunmap_pages() 230 PHYS_PFN(range_len(range)), params->altmap, in pagemap_range() 269 .altmap = pgmap_altmap(pgmap), in memremap_pages()
|
Completed in 25 milliseconds