Lines Matching defs:altmap

691 					 struct vmem_altmap *altmap,
696 if (altmap) {
703 * used altmap.
705 alt_start = altmap->base_pfn;
706 alt_end = altmap->base_pfn + altmap->reserve + altmap->free;
709 vmem_altmap_free(altmap, nr_pages);
724 struct vmem_altmap *altmap)
740 free_vmemmap_pages(pte_page(*pte), altmap, 0);
746 free_vmemmap_pages(pte_page(*pte), altmap, 0);
757 struct vmem_altmap *altmap)
774 free_vmemmap_pages(pmd_page(*pmd), altmap, get_order(PMD_SIZE));
780 free_vmemmap_pages(pmd_page(*pmd), altmap, get_order(PMD_SIZE));
788 remove_pte_table(pte_base, addr, next, direct, altmap);
797 struct vmem_altmap *altmap)
822 remove_pmd_table(pmd_base, addr, next, direct, altmap);
831 struct vmem_altmap *altmap)
860 remove_pud_table(pud_base, addr, next, direct, altmap);
916 bool vmemmap_can_optimize(struct vmem_altmap *altmap, struct dev_pagemap *pgmap)
919 return __vmemmap_can_optimize(altmap, pgmap);
951 struct vmem_altmap *altmap,
962 * make sure we don't create altmap mappings
965 if (altmap && altmap_cross_boundary(altmap, addr, PAGE_SIZE))
966 altmap = NULL;
968 p = vmemmap_alloc_block_buf(PAGE_SIZE, node, altmap);
969 if (!p && altmap)
1049 struct vmem_altmap *altmap)
1079 * pfn we hope we have extra area in the altmap that
1081 * in altmap block allocation failures, in which case
1084 if (altmap && (!IS_ALIGNED(addr, PMD_SIZE) ||
1085 altmap_cross_boundary(altmap, addr, PMD_SIZE))) {
1087 * make sure we don't create altmap mappings
1093 p = vmemmap_alloc_block_buf(PMD_SIZE, node, altmap);
1098 } else if (altmap) {
1124 pte = radix__vmemmap_pte_populate(pmd, addr, node, altmap, NULL);
1135 struct vmem_altmap *altmap,
1335 struct vmem_altmap *altmap)
1337 remove_pagetable(start, end, false, altmap);