Home
last modified time | relevance | path

Searched refs:hpas (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/arch/powerpc/mm/book3s64/
Diommu_api.c44 phys_addr_t *hpas; member
92 mem->hpas = vzalloc(array_size(entries, sizeof(mem->hpas[0]))); in mm_iommu_do_alloc()
93 if (!mem->hpas) { in mm_iommu_do_alloc()
161 mem->hpas[i] = page_to_pfn(page) << PAGE_SHIFT; in mm_iommu_do_alloc()
177 vfree(mem->hpas); in mm_iommu_do_alloc()
207 if (!mem->hpas) in mm_iommu_unpin()
211 if (!mem->hpas[i]) in mm_iommu_unpin()
214 page = pfn_to_page(mem->hpas[i] >> PAGE_SHIFT); in mm_iommu_unpin()
218 if (mem->hpas[i] & MM_IOMMU_TABLE_GROUP_PAGE_DIRTY) in mm_iommu_unpin()
223 mem->hpas[i] = 0; in mm_iommu_unpin()
[all …]