Lines Matching refs:domain
55 struct iommu_domain domain; member
60 return container_of(dom, struct msm_priv, domain); in to_msm_priv()
86 static int __flush_iotlb(struct iommu_domain *domain) in __flush_iotlb() argument
88 struct msm_priv *priv = to_msm_priv(domain); in __flush_iotlb()
238 priv->domain.geometry.aperture_start = 0; in msm_iommu_domain_alloc()
239 priv->domain.geometry.aperture_end = (1ULL << 32) - 1; in msm_iommu_domain_alloc()
240 priv->domain.geometry.force_aperture = true; in msm_iommu_domain_alloc()
242 return &priv->domain; in msm_iommu_domain_alloc()
249 static void msm_iommu_domain_free(struct iommu_domain *domain) in msm_iommu_domain_free() argument
257 priv = to_msm_priv(domain); in msm_iommu_domain_free()
273 static int msm_iommu_attach_dev(struct iommu_domain *domain, struct device *dev) in msm_iommu_attach_dev() argument
285 priv = to_msm_priv(domain); in msm_iommu_attach_dev()
321 ret = __flush_iotlb(domain); in msm_iommu_attach_dev()
328 static void msm_iommu_detach_dev(struct iommu_domain *domain, in msm_iommu_detach_dev() argument
339 priv = to_msm_priv(domain); in msm_iommu_detach_dev()
351 ret = __flush_iotlb(domain); in msm_iommu_detach_dev()
367 static int msm_iommu_map(struct iommu_domain *domain, unsigned long va, in msm_iommu_map() argument
391 priv = to_msm_priv(domain); in msm_iommu_map()
468 ret = __flush_iotlb(domain); in msm_iommu_map()
474 static size_t msm_iommu_unmap(struct iommu_domain *domain, unsigned long va, in msm_iommu_unmap() argument
489 priv = to_msm_priv(domain); in msm_iommu_unmap()
544 ret = __flush_iotlb(domain); in msm_iommu_unmap()
554 static phys_addr_t msm_iommu_iova_to_phys(struct iommu_domain *domain, in msm_iommu_iova_to_phys() argument
568 priv = to_msm_priv(domain); in msm_iommu_iova_to_phys()