Lines Matching refs:mmu
37 static int msm_iommu_attach(struct msm_mmu *mmu, const char * const *names, in msm_iommu_attach() argument
40 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_attach()
43 pm_runtime_get_sync(mmu->dev); in msm_iommu_attach()
44 ret = iommu_attach_device(iommu->domain, mmu->dev); in msm_iommu_attach()
45 pm_runtime_put_sync(mmu->dev); in msm_iommu_attach()
50 static void msm_iommu_detach(struct msm_mmu *mmu, const char * const *names, in msm_iommu_detach() argument
53 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_detach()
55 pm_runtime_get_sync(mmu->dev); in msm_iommu_detach()
56 iommu_detach_device(iommu->domain, mmu->dev); in msm_iommu_detach()
57 pm_runtime_put_sync(mmu->dev); in msm_iommu_detach()
60 static int msm_iommu_map(struct msm_mmu *mmu, uint64_t iova, in msm_iommu_map() argument
63 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_map()
74 static int msm_iommu_unmap(struct msm_mmu *mmu, uint64_t iova, in msm_iommu_unmap() argument
77 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_unmap()
79 pm_runtime_get_sync(mmu->dev); in msm_iommu_unmap()
81 pm_runtime_put_sync(mmu->dev); in msm_iommu_unmap()
86 static void msm_iommu_destroy(struct msm_mmu *mmu) in msm_iommu_destroy() argument
88 struct msm_iommu *iommu = to_msm_iommu(mmu); in msm_iommu_destroy()