Home
last modified time | relevance | path

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

/freebsd/sys/arm64/iommu/
H A Diommu.c89 iommu = iodom->iommu; in iommu_domain_unmap_buf()
115 iommu = iodom->iommu; in iommu_domain_map_buf()
133 if (iodom == NULL) in iommu_domain_alloc()
139 iodom->iommu = iommu; in iommu_domain_alloc()
142 return (iodom); in iommu_domain_alloc()
150 iommu = iodom->iommu; in iommu_domain_free()
192 iommu = iodom->iommu; in iommu_ctx_alloc()
212 iommu = iodom->iommu; in iommu_ctx_init()
306 if (iodom == NULL) { in iommu_get_ctx_ofw()
357 if (iodom == NULL) in iommu_get_ctx()
[all …]
H A Diommu_if.m68 struct iommu_domain *iodom;
80 struct iommu_domain *iodom;
98 struct iommu_domain *iodom;
121 struct iommu_domain *iodom;
H A Dsmmu.c1648 domain = (struct smmu_domain *)iodom; in smmu_unmap()
1683 domain = (struct smmu_domain *)iodom; in smmu_map()
1705 struct iommu_domain *iodom; in smmu_domain_alloc() local
1745 iodom = &domain->iodom; in smmu_domain_alloc()
1751 iodom->end = MAXADDR_48BIT; in smmu_domain_alloc()
1753 return (iodom); in smmu_domain_alloc()
1765 domain = (struct smmu_domain *)iodom; in smmu_domain_free()
1830 IOMMU_DOMAIN_LOCK(iodom); in smmu_ctx_alloc()
1832 IOMMU_DOMAIN_UNLOCK(iodom); in smmu_ctx_alloc()
1841 struct iommu_domain *iodom; in smmu_ctx_init() local
[all …]
H A Dsmmuvar.h53 struct iommu_domain iodom; member
/freebsd/sys/x86/iommu/
H A Dintel_ctx.c329 struct iommu_domain *iodom; in dmar_reserve_pci_regions() local
335 iodom = DOM2IODOM(domain); in dmar_reserve_pci_regions()
381 struct iommu_domain *iodom; in dmar_domain_alloc() local
390 iodom = DOM2IODOM(domain); in dmar_domain_alloc()
418 domain->iodom.end); in dmar_domain_alloc()
487 struct iommu_domain *iodom; in dmar_domain_destroy() local
490 iodom = DOM2IODOM(domain); in dmar_domain_destroy()
510 iommu_domain_fini(iodom); in dmar_domain_destroy()
694 KASSERT(old_domain->iodom.iommu == domain->iodom.iommu, in dmar_move_ctx_to_domain()
919 domain = IODOM2DOM(iodom); in iommu_domain_unload()
[all …]
H A Dintel_dmar.h57 struct iommu_domain iodom; member
86 #define DMAR_DOMAIN_LOCK(dom) mtx_lock(&(dom)->iodom.lock)
87 #define DMAR_DOMAIN_UNLOCK(dom) mtx_unlock(&(dom)->iodom.lock)
88 #define DMAR_DOMAIN_ASSERT_LOCKED(dom) mtx_assert(&(dom)->iodom.lock, MA_OWNED)
94 #define DOM2IODOM(domain) &((domain)->iodom)
96 __containerof((domain), struct dmar_domain, iodom)
H A Dintel_drv.c1147 struct iommu_domain *iodom; in dmar_print_domain() local
1151 iodom = DOM2IODOM(domain); in dmar_print_domain()
1157 (uintmax_t)domain->iodom.end, domain->refs, domain->ctx_cnt, in dmar_print_domain()
1158 domain->iodom.flags, domain->pgtbl_obj, domain->iodom.entries_cnt); in dmar_print_domain()
1167 RB_FOREACH(entry, iommu_gas_entries_tree, &iodom->rb_root) { in dmar_print_domain()
1175 TAILQ_FOREACH(entry, &domain->iodom.unload_entries, dmamap_link) { in dmar_print_domain()
H A Dintel_idpgtbl.c497 domain_map_buf(struct iommu_domain *iodom, iommu_gaddr_t base, in domain_map_buf() argument
510 domain = IODOM2DOM(iodom); in domain_map_buf()
513 KASSERT((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) == 0, in domain_map_buf()
624 KASSERT((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) == 0, in domain_unmap_buf_locked()
683 domain_unmap_buf(struct iommu_domain *iodom, iommu_gaddr_t base, in domain_unmap_buf() argument
689 domain = IODOM2DOM(iodom); in domain_unmap_buf()
714 domain->iodom.flags |= IOMMU_DOMAIN_PGTBL_INITED; in domain_alloc_pgtbl()
728 (domain->iodom.flags & IOMMU_DOMAIN_IDMAP) != 0, in domain_free_pgtbl()
735 if ((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) != 0) { in domain_free_pgtbl()
737 domain->iodom.flags &= ~IOMMU_DOMAIN_IDMAP; in domain_free_pgtbl()