Home
last modified time | relevance | path

Searched refs:iodom (Results 1 – 8 of 8) sorted by relevance

/f-stack/freebsd/arm64/iommu/
H A Diommu.c85 iommu = iodom->iommu; in iommu_domain_unmap_buf()
111 iommu = iodom->iommu; in iommu_domain_map_buf()
129 if (iodom == NULL) in iommu_domain_alloc()
134 iodom->iommu = iommu; in iommu_domain_alloc()
137 return (iodom); in iommu_domain_alloc()
145 iommu = iodom->iommu; in iommu_domain_free()
187 iommu = iodom->iommu; in iommu_ctx_alloc()
224 if (iodom == NULL) in iommu_get_ctx()
241 ioctx->domain = iodom; in iommu_get_ctx()
268 iommu = iodom->iommu; in iommu_free_ctx()
[all …]
H A Diommu_if.m61 struct iommu_domain *iodom;
73 struct iommu_domain *iodom;
91 struct iommu_domain *iodom;
114 struct iommu_domain *iodom;
H A Dsmmu.c1614 domain = (struct smmu_domain *)iodom; in smmu_unmap()
1637 smmu_map(device_t dev, struct iommu_domain *iodom, in smmu_map() argument
1649 domain = (struct smmu_domain *)iodom; in smmu_map()
1711 return (&domain->iodom); in smmu_domain_alloc()
1723 domain = (struct smmu_domain *)iodom; in smmu_domain_free()
1769 domain = (struct smmu_domain *)iodom; in smmu_ctx_alloc()
1804 IOMMU_DOMAIN_LOCK(iodom); in smmu_ctx_alloc()
1806 IOMMU_DOMAIN_UNLOCK(iodom); in smmu_ctx_alloc()
1868 IOMMU_DOMAIN_LOCK(&domain->iodom); in smmu_ctx_lookup()
1871 IOMMU_DOMAIN_UNLOCK(&domain->iodom); in smmu_ctx_lookup()
[all …]
H A Dsmmuvar.h53 struct iommu_domain iodom; member
/f-stack/freebsd/x86/iommu/
H A Dintel_ctx.c331 struct iommu_domain *iodom; in dmar_reserve_pci_regions() local
337 iodom = DOM2IODOM(domain); in dmar_reserve_pci_regions()
383 struct iommu_domain *iodom; in dmar_domain_alloc() local
392 iodom = DOM2IODOM(domain); in dmar_domain_alloc()
420 domain->iodom.end); in dmar_domain_alloc()
492 iodom = DOM2IODOM(domain); in dmar_domain_destroy()
512 iommu_domain_fini(iodom); in dmar_domain_destroy()
692 KASSERT(old_domain->iodom.iommu == domain->iodom.iommu, in dmar_move_ctx_to_domain()
910 iodom = DOM2IODOM(domain); in dmar_domain_unload()
916 error = iodom->ops->unmap(iodom, entry->start, entry->end - in dmar_domain_unload()
[all …]
H A Dintel_idpgtbl.c502 domain_map_buf(struct iommu_domain *iodom, iommu_gaddr_t base, in domain_map_buf() argument
515 domain = IODOM2DOM(iodom); in domain_map_buf()
518 KASSERT((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) == 0, in domain_map_buf()
629 KASSERT((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) == 0, in domain_unmap_buf_locked()
688 domain_unmap_buf(struct iommu_domain *iodom, iommu_gaddr_t base, in domain_unmap_buf() argument
694 domain = IODOM2DOM(iodom); in domain_unmap_buf()
719 domain->iodom.flags |= IOMMU_DOMAIN_PGTBL_INITED; in domain_alloc_pgtbl()
733 (domain->iodom.flags & IOMMU_DOMAIN_IDMAP) != 0, in domain_free_pgtbl()
740 if ((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) != 0) { in domain_free_pgtbl()
742 domain->iodom.flags &= ~IOMMU_DOMAIN_IDMAP; in domain_free_pgtbl()
H A Dintel_dmar.h60 struct iommu_domain iodom; member
89 #define DMAR_DOMAIN_LOCK(dom) mtx_lock(&(dom)->iodom.lock)
90 #define DMAR_DOMAIN_UNLOCK(dom) mtx_unlock(&(dom)->iodom.lock)
91 #define DMAR_DOMAIN_ASSERT_LOCKED(dom) mtx_assert(&(dom)->iodom.lock, MA_OWNED)
97 #define DOM2IODOM(domain) &((domain)->iodom)
99 __containerof((domain), struct dmar_domain, iodom)
H A Dintel_drv.c1129 struct iommu_domain *iodom; in dmar_print_domain() local
1133 iodom = DOM2IODOM(domain); in dmar_print_domain()
1139 (uintmax_t)domain->iodom.end, domain->refs, domain->ctx_cnt, in dmar_print_domain()
1140 domain->iodom.flags, domain->pgtbl_obj, domain->iodom.entries_cnt); in dmar_print_domain()
1149 RB_FOREACH(entry, iommu_gas_entries_tree, &iodom->rb_root) { in dmar_print_domain()
1157 TAILQ_FOREACH(entry, &domain->iodom.unload_entries, dmamap_link) { in dmar_print_domain()