Lines Matching defs:altmap

74 					       struct vmem_altmap *altmap);
78 struct vmem_altmap *altmap)
82 if (altmap)
83 return altmap_alloc_block_buf(size, altmap);
91 static unsigned long __meminit vmem_altmap_next_pfn(struct vmem_altmap *altmap)
93 return altmap->base_pfn + altmap->reserve + altmap->alloc
94 + altmap->align;
97 static unsigned long __meminit vmem_altmap_nr_free(struct vmem_altmap *altmap)
99 unsigned long allocated = altmap->alloc + altmap->align;
101 if (altmap->free > allocated)
102 return altmap->free - allocated;
107 struct vmem_altmap *altmap)
117 pfn = vmem_altmap_next_pfn(altmap);
121 if (nr_pfns + nr_align > vmem_altmap_nr_free(altmap))
124 altmap->alloc += nr_pfns;
125 altmap->align += nr_align;
129 __func__, pfn, altmap->alloc, altmap->align, nr_pfns);
145 struct vmem_altmap *altmap,
154 p = vmemmap_alloc_block_buf(PAGE_SIZE, node, altmap);
246 struct vmem_altmap *altmap,
267 pte = vmemmap_pte_populate(pmd, addr, node, altmap, reuse);
277 struct vmem_altmap *altmap,
284 pte = vmemmap_populate_address(addr, node, altmap, reuse);
293 int node, struct vmem_altmap *altmap)
295 return vmemmap_populate_range(start, end, node, altmap, NULL);
310 int node, struct vmem_altmap *altmap)
338 p = vmemmap_alloc_block_buf(PMD_SIZE, node, altmap);
342 } else if (altmap) {
345 * altmap should be reasonably sized and aligned
349 * a configuration issue with the size of the altmap.
355 if (vmemmap_populate_basepages(addr, next, node, altmap))
453 unsigned long nr_pages, int nid, struct vmem_altmap *altmap,
464 if (vmemmap_can_optimize(altmap, pgmap))
467 r = vmemmap_populate(start, end, nid, altmap);