Lines Matching refs:domain
339 struct iommu_domain domain; member
359 return container_of(dom, struct arm_smmu_domain, domain); in to_smmu_domain()
646 struct iommu_domain *domain = dev; in arm_smmu_context_fault() local
647 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_context_fault()
673 if (!report_iommu_fault(domain, smmu->dev, iova, flags)) { in arm_smmu_context_fault()
815 static int arm_smmu_init_domain_context(struct iommu_domain *domain, in arm_smmu_init_domain_context() argument
823 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_init_domain_context()
923 "arm-smmu-context-fault", domain); in arm_smmu_init_domain_context()
943 static void arm_smmu_destroy_domain_context(struct iommu_domain *domain) in arm_smmu_destroy_domain_context() argument
945 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_destroy_domain_context()
963 free_irq(irq, domain); in arm_smmu_destroy_domain_context()
990 return &smmu_domain->domain; in arm_smmu_domain_alloc()
993 static void arm_smmu_domain_free(struct iommu_domain *domain) in arm_smmu_domain_free() argument
995 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_domain_free()
1001 arm_smmu_destroy_domain_context(domain); in arm_smmu_domain_free()
1129 static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) in arm_smmu_attach_dev() argument
1132 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_attach_dev()
1148 ret = arm_smmu_init_domain_context(domain, smmu); in arm_smmu_attach_dev()
1170 dev->archdata.iommu = domain; in arm_smmu_attach_dev()
1174 static void arm_smmu_detach_dev(struct iommu_domain *domain, struct device *dev) in arm_smmu_detach_dev() argument
1176 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_detach_dev()
1187 static int arm_smmu_map(struct iommu_domain *domain, unsigned long iova, in arm_smmu_map() argument
1192 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_map()
1204 static size_t arm_smmu_unmap(struct iommu_domain *domain, unsigned long iova, in arm_smmu_unmap() argument
1209 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_unmap()
1221 static phys_addr_t arm_smmu_iova_to_phys_hard(struct iommu_domain *domain, in arm_smmu_iova_to_phys_hard() argument
1224 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_iova_to_phys_hard()
1265 static phys_addr_t arm_smmu_iova_to_phys(struct iommu_domain *domain, in arm_smmu_iova_to_phys() argument
1270 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_iova_to_phys()
1279 ret = arm_smmu_iova_to_phys_hard(domain, iova); in arm_smmu_iova_to_phys()
1400 static int arm_smmu_domain_get_attr(struct iommu_domain *domain, in arm_smmu_domain_get_attr() argument
1403 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_domain_get_attr()
1414 static int arm_smmu_domain_set_attr(struct iommu_domain *domain, in arm_smmu_domain_set_attr() argument
1418 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_domain_set_attr()