Lines Matching refs:altmap
83 static unsigned long __meminit vmem_altmap_next_pfn(struct vmem_altmap *altmap) in vmem_altmap_next_pfn() argument
85 return altmap->base_pfn + altmap->reserve + altmap->alloc in vmem_altmap_next_pfn()
86 + altmap->align; in vmem_altmap_next_pfn()
89 static unsigned long __meminit vmem_altmap_nr_free(struct vmem_altmap *altmap) in vmem_altmap_nr_free() argument
91 unsigned long allocated = altmap->alloc + altmap->align; in vmem_altmap_nr_free()
93 if (altmap->free > allocated) in vmem_altmap_nr_free()
94 return altmap->free - allocated; in vmem_altmap_nr_free()
106 struct vmem_altmap *altmap) in altmap_alloc_block_buf() argument
116 pfn = vmem_altmap_next_pfn(altmap); in altmap_alloc_block_buf()
120 if (nr_pfns + nr_align > vmem_altmap_nr_free(altmap)) in altmap_alloc_block_buf()
123 altmap->alloc += nr_pfns; in altmap_alloc_block_buf()
124 altmap->align += nr_align; in altmap_alloc_block_buf()
128 __func__, pfn, altmap->alloc, altmap->align, nr_pfns); in altmap_alloc_block_buf()
249 unsigned long nr_pages, int nid, struct vmem_altmap *altmap) in __populate_section_memmap() argument
266 if (vmemmap_populate(start, end, nid, altmap)) in __populate_section_memmap()