Lines Matching refs:mmu

28 static struct msm_iommu_pagetable *to_pagetable(struct msm_mmu *mmu)  in to_pagetable()  argument
30 return container_of(mmu, struct msm_iommu_pagetable, base); in to_pagetable()
89 static int msm_iommu_pagetable_unmap(struct msm_mmu *mmu, u64 iova, in msm_iommu_pagetable_unmap() argument
92 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_unmap()
113 static int msm_iommu_pagetable_map(struct msm_mmu *mmu, u64 iova, in msm_iommu_pagetable_map() argument
116 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_map()
143 msm_iommu_pagetable_unmap(mmu, iova, addr - iova); in msm_iommu_pagetable_map()
152 static void msm_iommu_pagetable_destroy(struct msm_mmu *mmu) in msm_iommu_pagetable_destroy() argument
154 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_destroy()
170 int msm_iommu_pagetable_params(struct msm_mmu *mmu, in msm_iommu_pagetable_params() argument
175 if (mmu->type != MSM_MMU_IOMMU_PAGETABLE) in msm_iommu_pagetable_params()
178 pagetable = to_pagetable(mmu); in msm_iommu_pagetable_params()
189 struct iommu_domain_geometry *msm_iommu_get_geometry(struct msm_mmu *mmu) in msm_iommu_get_geometry() argument
191 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_get_geometry()
320 static void msm_iommu_resume_translation(struct msm_mmu *mmu) in msm_iommu_resume_translation() argument
322 struct adreno_smmu_priv *adreno_smmu = dev_get_drvdata(mmu->dev); in msm_iommu_resume_translation()
327 static void msm_iommu_detach(struct msm_mmu *mmu) in msm_iommu_detach() argument
329 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_detach()
331 iommu_detach_device(iommu->domain, mmu->dev); in msm_iommu_detach()
334 static int msm_iommu_map(struct msm_mmu *mmu, uint64_t iova, in msm_iommu_map() argument
337 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_map()
350 static int msm_iommu_unmap(struct msm_mmu *mmu, uint64_t iova, size_t len) in msm_iommu_unmap() argument
352 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_unmap()
362 static void msm_iommu_destroy(struct msm_mmu *mmu) in msm_iommu_destroy() argument
364 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_destroy()