Lines Matching refs:hpas
44 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()
231 vfree(mem->hpas); in mm_iommu_do_free()
342 if (!mem->hpas) { in mm_iommu_ua_to_hpa()
347 va = &mem->hpas[entry]; in mm_iommu_ua_to_hpa()