• Home
  • Raw
  • Download

Lines Matching refs:domain

106 static int gart_iommu_attach_dev(struct iommu_domain *domain,  in gart_iommu_attach_dev()  argument
114 if (gart->active_domain && gart->active_domain != domain) { in gart_iommu_attach_dev()
116 } else if (dev_iommu_priv_get(dev) != domain) { in gart_iommu_attach_dev()
117 dev_iommu_priv_set(dev, domain); in gart_iommu_attach_dev()
118 gart->active_domain = domain; in gart_iommu_attach_dev()
127 static void gart_iommu_detach_dev(struct iommu_domain *domain, in gart_iommu_detach_dev() argument
134 if (dev_iommu_priv_get(dev) == domain) { in gart_iommu_detach_dev()
146 struct iommu_domain *domain; in gart_iommu_domain_alloc() local
151 domain = kzalloc(sizeof(*domain), GFP_KERNEL); in gart_iommu_domain_alloc()
152 if (domain) { in gart_iommu_domain_alloc()
153 domain->geometry.aperture_start = gart_handle->iovmm_base; in gart_iommu_domain_alloc()
154 domain->geometry.aperture_end = gart_handle->iovmm_end - 1; in gart_iommu_domain_alloc()
155 domain->geometry.force_aperture = true; in gart_iommu_domain_alloc()
158 return domain; in gart_iommu_domain_alloc()
161 static void gart_iommu_domain_free(struct iommu_domain *domain) in gart_iommu_domain_free() argument
163 WARN_ON(gart_handle->active_domain == domain); in gart_iommu_domain_free()
164 kfree(domain); in gart_iommu_domain_free()
180 static int gart_iommu_map(struct iommu_domain *domain, unsigned long iova, in gart_iommu_map() argument
209 static size_t gart_iommu_unmap(struct iommu_domain *domain, unsigned long iova, in gart_iommu_unmap() argument
225 static phys_addr_t gart_iommu_iova_to_phys(struct iommu_domain *domain, in gart_iommu_iova_to_phys() argument
264 static void gart_iommu_sync_map(struct iommu_domain *domain, unsigned long iova, in gart_iommu_sync_map() argument
270 static void gart_iommu_sync(struct iommu_domain *domain, in gart_iommu_sync() argument
275 gart_iommu_sync_map(domain, gather->start, length); in gart_iommu_sync()