Home
last modified time | relevance | path

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

/Linux-v5.10/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()
160 mem->hpas[i] = page_to_pfn(page) << PAGE_SHIFT; in mm_iommu_do_alloc()
176 vfree(mem->hpas); in mm_iommu_do_alloc()
206 if (!mem->hpas) in mm_iommu_unpin()
210 if (!mem->hpas[i]) in mm_iommu_unpin()
213 page = pfn_to_page(mem->hpas[i] >> PAGE_SHIFT); in mm_iommu_unpin()
217 if (mem->hpas[i] & MM_IOMMU_TABLE_GROUP_PAGE_DIRTY) in mm_iommu_unpin()
222 mem->hpas[i] = 0; in mm_iommu_unpin()
[all …]