Lines Matching refs:iova
32 static int msm_iommu_pagetable_unmap(struct msm_mmu *mmu, u64 iova, in msm_iommu_pagetable_unmap() argument
41 unmapped += ops->unmap(ops, iova, 4096, NULL); in msm_iommu_pagetable_unmap()
42 iova += 4096; in msm_iommu_pagetable_unmap()
51 static int msm_iommu_pagetable_map(struct msm_mmu *mmu, u64 iova, in msm_iommu_pagetable_map() argument
58 u64 addr = iova; in msm_iommu_pagetable_map()
68 msm_iommu_pagetable_unmap(mmu, iova, mapped); in msm_iommu_pagetable_map()
129 static void msm_iommu_tlb_flush_walk(unsigned long iova, size_t size, in msm_iommu_tlb_flush_walk() argument
135 unsigned long iova, size_t granule, void *cookie) in msm_iommu_tlb_add_page() argument
211 unsigned long iova, int flags, void *arg) in msm_fault_handler() argument
215 return iommu->base.handler(iommu->base.arg, iova, flags); in msm_fault_handler()
216 pr_warn_ratelimited("*** fault: iova=%16lx, flags=%d\n", iova, flags); in msm_fault_handler()
227 static int msm_iommu_map(struct msm_mmu *mmu, uint64_t iova, in msm_iommu_map() argument
234 if (iova & BIT_ULL(48)) in msm_iommu_map()
235 iova |= GENMASK_ULL(63, 49); in msm_iommu_map()
237 ret = iommu_map_sgtable(iommu->domain, iova, sgt, prot); in msm_iommu_map()
243 static int msm_iommu_unmap(struct msm_mmu *mmu, uint64_t iova, size_t len) in msm_iommu_unmap() argument
247 if (iova & BIT_ULL(48)) in msm_iommu_unmap()
248 iova |= GENMASK_ULL(63, 49); in msm_iommu_unmap()
250 iommu_unmap(iommu->domain, iova, len); in msm_iommu_unmap()