Lines Matching refs:tce
422 unsigned long tce, unsigned long shift, in tce_iommu_prereg_ua_to_hpa() argument
428 mem = mm_iommu_lookup(container->mm, tce, 1ULL << shift); in tce_iommu_prereg_ua_to_hpa()
432 ret = mm_iommu_ua_to_hpa(mem, tce, shift, phpa); in tce_iommu_prereg_ua_to_hpa()
494 static int tce_iommu_use_page(unsigned long tce, unsigned long *hpa) in tce_iommu_use_page() argument
497 enum dma_data_direction direction = iommu_tce_direction(tce); in tce_iommu_use_page()
499 if (get_user_pages_fast(tce & PAGE_MASK, 1, in tce_iommu_use_page()
510 unsigned long entry, unsigned long tce, unsigned long pages, in tce_iommu_build() argument
519 unsigned long offset = tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build()
521 ret = tce_iommu_use_page(tce, &hpa); in tce_iommu_build()
538 tce, ret); in tce_iommu_build()
545 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build()
556 unsigned long entry, unsigned long tce, unsigned long pages, in tce_iommu_build_v2() argument
569 tce, tbl->it_page_shift, &hpa, &mem); in tce_iommu_build_v2()
580 hpa |= tce & IOMMU_PAGE_MASK(tbl) & ~PAGE_MASK; in tce_iommu_build_v2()
593 tce, ret); in tce_iommu_build_v2()
600 *pua = cpu_to_be64(tce); in tce_iommu_build_v2()
602 tce += IOMMU_PAGE_SIZE(tbl); in tce_iommu_build_v2()