Lines Matching refs:hpa
178 static bool tce_page_is_contained(struct mm_struct *mm, unsigned long hpa,
184 if (mm_iommu_is_devmem(mm, hpa, it_page_shift, &size))
187 page = pfn_to_page(hpa >> PAGE_SHIFT);
381 unsigned long hpa)
385 page = pfn_to_page(hpa >> PAGE_SHIFT);
414 unsigned long hpa = 0;
421 tbl->it_page_shift, &hpa, &mem);
484 static int tce_iommu_use_page(unsigned long tce, unsigned long *hpa)
494 *hpa = __pa((unsigned long) page_address(page));
505 unsigned long hpa;
511 ret = tce_iommu_use_page(tce, &hpa);
515 if (!tce_page_is_contained(container->mm, hpa,
521 hpa |= offset;
524 &hpa, &dirtmp);
526 tce_iommu_unuse_page(container, hpa);
534 tce_iommu_unuse_page(container, hpa);
553 unsigned long hpa;
561 tce, tbl->it_page_shift, &hpa, &mem);
565 if (!tce_page_is_contained(container->mm, hpa,
572 hpa |= tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK;
580 &hpa, &dirtmp);