Lines Matching refs:hpas
34 u64 *hpas; /* vmalloc'ed */ member
174 mem->hpas = vzalloc(entries * sizeof(mem->hpas[0])); in mm_iommu_get()
175 if (!mem->hpas) { in mm_iommu_get()
187 put_page(pfn_to_page(mem->hpas[j] >> in mm_iommu_get()
189 vfree(mem->hpas); in mm_iommu_get()
207 put_page(pfn_to_page(mem->hpas[j] >> in mm_iommu_get()
209 vfree(mem->hpas); in mm_iommu_get()
233 mem->hpas[i] = page_to_pfn(page) << PAGE_SHIFT; in mm_iommu_get()
260 if (!mem->hpas[i]) in mm_iommu_unpin()
263 page = pfn_to_page(mem->hpas[i] >> PAGE_SHIFT); in mm_iommu_unpin()
268 mem->hpas[i] = 0; in mm_iommu_unpin()
276 vfree(mem->hpas); in mm_iommu_do_free()
386 u64 *va = &mem->hpas[entry]; in mm_iommu_ua_to_hpa()
404 void *va = &mem->hpas[entry]; in mm_iommu_ua_to_hpa_rm()