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()
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()
230 vfree(mem->hpas); in mm_iommu_do_free()
356 if (!mem->hpas) { in mm_iommu_ua_to_hpa()
361 va = &mem->hpas[entry]; in mm_iommu_ua_to_hpa()
380 if (!mem->hpas) { in mm_iommu_ua_to_hpa_rm()
385 pa = (void *) vmalloc_to_phys(&mem->hpas[entry]); in mm_iommu_ua_to_hpa_rm()
409 va = &mem->hpas[entry]; in mm_iommu_ua_mark_dirty_rm()