Lines Matching defs:altmap
185 static bool altmap_cross_boundary(struct vmem_altmap *altmap, unsigned long start,
191 if ((start_pfn + nr_pfn - 1) > altmap->end_pfn)
194 if (start_pfn < altmap->base_pfn)
201 struct vmem_altmap *altmap)
225 * Allocate from the altmap first if we have one. This may
227 * fall back to system memory if the altmap allocation fail.
229 if (altmap && !altmap_cross_boundary(altmap, start, page_size)) {
230 p = vmemmap_alloc_block_buf(page_size, node, altmap);
232 pr_debug("altmap block allocation failed, falling back to system memory");
254 vmem_altmap_free(altmap, nr_pfns);
306 struct vmem_altmap *altmap)
314 if (altmap) {
315 alt_start = altmap->base_pfn;
316 alt_end = altmap->base_pfn + altmap->reserve + altmap->free;
343 vmem_altmap_free(altmap, nr_pages);