Lines Matching refs:hpas
38 u64 *hpas; /* vmalloc'ed */ member
177 mem->hpas = vzalloc(array_size(entries, sizeof(mem->hpas[0]))); in mm_iommu_get()
178 if (!mem->hpas) { in mm_iommu_get()
190 put_page(pfn_to_page(mem->hpas[j] >> in mm_iommu_get()
192 vfree(mem->hpas); in mm_iommu_get()
210 put_page(pfn_to_page(mem->hpas[j] >> in mm_iommu_get()
212 vfree(mem->hpas); in mm_iommu_get()
236 mem->hpas[i] = page_to_pfn(page) << PAGE_SHIFT; in mm_iommu_get()
263 if (!mem->hpas[i]) in mm_iommu_unpin()
266 page = pfn_to_page(mem->hpas[i] >> PAGE_SHIFT); in mm_iommu_unpin()
270 if (mem->hpas[i] & MM_IOMMU_TABLE_GROUP_PAGE_DIRTY) in mm_iommu_unpin()
274 mem->hpas[i] = 0; in mm_iommu_unpin()
282 vfree(mem->hpas); in mm_iommu_do_free()
391 u64 *va = &mem->hpas[entry]; in mm_iommu_ua_to_hpa()
409 void *va = &mem->hpas[entry]; in mm_iommu_ua_to_hpa_rm()
439 va = &mem->hpas[entry]; in mm_iommu_ua_mark_dirty_rm()