Lines Matching refs:hpa
366 unsigned long hpa) in tce_iommu_unuse_page() argument
370 page = pfn_to_page(hpa >> PAGE_SHIFT); in tce_iommu_unuse_page()
398 unsigned long hpa = 0; in tce_iommu_unuse_page_v2() local
405 &hpa, &mem); in tce_iommu_unuse_page_v2()
444 static int tce_iommu_use_page(unsigned long tce, unsigned long *hpa) in tce_iommu_use_page() argument
453 *hpa = __pa((unsigned long) page_address(page)); in tce_iommu_use_page()
465 unsigned long hpa; in tce_iommu_build() local
471 ret = tce_iommu_use_page(tce, &hpa); in tce_iommu_build()
475 page = pfn_to_page(hpa >> PAGE_SHIFT); in tce_iommu_build()
481 hpa |= offset; in tce_iommu_build()
483 ret = iommu_tce_xchg(tbl, entry + i, &hpa, &dirtmp); in tce_iommu_build()
485 tce_iommu_unuse_page(container, hpa); in tce_iommu_build()
493 tce_iommu_unuse_page(container, hpa); in tce_iommu_build()
511 unsigned long hpa; in tce_iommu_build_v2() local
520 &hpa, &mem); in tce_iommu_build_v2()
524 page = pfn_to_page(hpa >> PAGE_SHIFT); in tce_iommu_build_v2()
531 hpa |= tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build_v2()
538 ret = iommu_tce_xchg(tbl, entry + i, &hpa, &dirtmp); in tce_iommu_build_v2()