• Home
  • Raw
  • Download

Lines Matching refs:domain

25 	struct iommu_domain	domain;  member
39 return container_of(dom, struct s390_domain, domain); in to_s390_domain()
75 return &s390_domain->domain; in s390_domain_alloc()
78 static void s390_domain_free(struct iommu_domain *domain) in s390_domain_free() argument
80 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_domain_free()
86 static int s390_iommu_attach_device(struct iommu_domain *domain, in s390_iommu_attach_device() argument
89 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_iommu_attach_device()
121 domain->geometry.aperture_start = zdev->start_dma; in s390_iommu_attach_device()
122 domain->geometry.aperture_end = zdev->end_dma; in s390_iommu_attach_device()
123 domain->geometry.force_aperture = true; in s390_iommu_attach_device()
125 } else if (domain->geometry.aperture_start != zdev->start_dma || in s390_iommu_attach_device()
126 domain->geometry.aperture_end != zdev->end_dma) { in s390_iommu_attach_device()
146 static void s390_iommu_detach_device(struct iommu_domain *domain, in s390_iommu_detach_device() argument
149 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_iommu_detach_device()
187 struct iommu_domain *domain; in s390_iommu_release_device() local
201 domain = iommu_get_domain_for_dev(dev); in s390_iommu_release_device()
202 if (domain) in s390_iommu_release_device()
203 s390_iommu_detach_device(domain, dev); in s390_iommu_release_device()
218 if (dma_addr < s390_domain->domain.geometry.aperture_start || in s390_iommu_update_trans()
219 dma_addr + size > s390_domain->domain.geometry.aperture_end) in s390_iommu_update_trans()
265 static int s390_iommu_map(struct iommu_domain *domain, unsigned long iova, in s390_iommu_map() argument
268 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_iommu_map()
283 static phys_addr_t s390_iommu_iova_to_phys(struct iommu_domain *domain, in s390_iommu_iova_to_phys() argument
286 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_iommu_iova_to_phys()
291 if (iova < domain->geometry.aperture_start || in s390_iommu_iova_to_phys()
292 iova > domain->geometry.aperture_end) in s390_iommu_iova_to_phys()
314 static size_t s390_iommu_unmap(struct iommu_domain *domain, in s390_iommu_unmap() argument
318 struct s390_domain *s390_domain = to_s390_domain(domain); in s390_iommu_unmap()
323 paddr = s390_iommu_iova_to_phys(domain, iova); in s390_iommu_unmap()