Lines Matching refs:domain

349 	struct iommu_domain		domain;  member
369 return container_of(dom, struct arm_smmu_domain, domain); in to_smmu_domain()
632 struct iommu_domain *domain = dev; in arm_smmu_context_fault() local
633 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_context_fault()
659 if (!report_iommu_fault(domain, smmu->dev, iova, flags)) { in arm_smmu_context_fault()
796 static int arm_smmu_init_domain_context(struct iommu_domain *domain, in arm_smmu_init_domain_context() argument
804 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_init_domain_context()
905 "arm-smmu-context-fault", domain); in arm_smmu_init_domain_context()
925 static void arm_smmu_destroy_domain_context(struct iommu_domain *domain) in arm_smmu_destroy_domain_context() argument
927 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_destroy_domain_context()
945 free_irq(irq, domain); in arm_smmu_destroy_domain_context()
972 return &smmu_domain->domain; in arm_smmu_domain_alloc()
975 static void arm_smmu_domain_free(struct iommu_domain *domain) in arm_smmu_domain_free() argument
977 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_domain_free()
983 arm_smmu_destroy_domain_context(domain); in arm_smmu_domain_free()
1111 static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) in arm_smmu_attach_dev() argument
1114 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_attach_dev()
1130 ret = arm_smmu_init_domain_context(domain, smmu); in arm_smmu_attach_dev()
1152 dev->archdata.iommu = domain; in arm_smmu_attach_dev()
1156 static void arm_smmu_detach_dev(struct iommu_domain *domain, struct device *dev) in arm_smmu_detach_dev() argument
1158 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_detach_dev()
1169 static int arm_smmu_map(struct iommu_domain *domain, unsigned long iova, in arm_smmu_map() argument
1174 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_map()
1186 static size_t arm_smmu_unmap(struct iommu_domain *domain, unsigned long iova, in arm_smmu_unmap() argument
1191 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_unmap()
1203 static phys_addr_t arm_smmu_iova_to_phys_hard(struct iommu_domain *domain, in arm_smmu_iova_to_phys_hard() argument
1206 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_iova_to_phys_hard()
1245 static phys_addr_t arm_smmu_iova_to_phys(struct iommu_domain *domain, in arm_smmu_iova_to_phys() argument
1250 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_iova_to_phys()
1259 ret = arm_smmu_iova_to_phys_hard(domain, iova); in arm_smmu_iova_to_phys()
1394 static int arm_smmu_domain_get_attr(struct iommu_domain *domain, in arm_smmu_domain_get_attr() argument
1397 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_domain_get_attr()
1408 static int arm_smmu_domain_set_attr(struct iommu_domain *domain, in arm_smmu_domain_set_attr() argument
1412 struct arm_smmu_domain *smmu_domain = to_smmu_domain(domain); in arm_smmu_domain_set_attr()