Lines Matching full:mmu

27 static struct msm_iommu_pagetable *to_pagetable(struct msm_mmu *mmu)  in to_pagetable()  argument
29 return container_of(mmu, struct msm_iommu_pagetable, base); in to_pagetable()
32 static int msm_iommu_pagetable_unmap(struct msm_mmu *mmu, u64 iova, in msm_iommu_pagetable_unmap() argument
35 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_unmap()
51 static int msm_iommu_pagetable_map(struct msm_mmu *mmu, u64 iova, in msm_iommu_pagetable_map() argument
54 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_map()
68 msm_iommu_pagetable_unmap(mmu, iova, mapped); in msm_iommu_pagetable_map()
82 static void msm_iommu_pagetable_destroy(struct msm_mmu *mmu) in msm_iommu_pagetable_destroy() argument
84 struct msm_iommu_pagetable *pagetable = to_pagetable(mmu); in msm_iommu_pagetable_destroy()
100 int msm_iommu_pagetable_params(struct msm_mmu *mmu, in msm_iommu_pagetable_params() argument
105 if (mmu->type != MSM_MMU_IOMMU_PAGETABLE) in msm_iommu_pagetable_params()
108 pagetable = to_pagetable(mmu); in msm_iommu_pagetable_params()
221 static void msm_iommu_detach(struct msm_mmu *mmu) in msm_iommu_detach() argument
223 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_detach()
225 iommu_detach_device(iommu->domain, mmu->dev); in msm_iommu_detach()
228 static int msm_iommu_map(struct msm_mmu *mmu, uint64_t iova, in msm_iommu_map() argument
231 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_map()
244 static int msm_iommu_unmap(struct msm_mmu *mmu, uint64_t iova, size_t len) in msm_iommu_unmap() argument
246 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_unmap()
256 static void msm_iommu_destroy(struct msm_mmu *mmu) in msm_iommu_destroy() argument
258 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_destroy()