Searched refs:iodom (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/arm64/iommu/ |
H A D | iommu.c | 89 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() 191 iommu = iodom->iommu; in iommu_ctx_alloc() 211 iommu = iodom->iommu; in iommu_ctx_init() 305 if (iodom == NULL) { in iommu_get_ctx_ofw() 356 if (iodom == NULL) in iommu_get_ctx() [all …]
|
H A D | smmu.c | 1639 domain = (struct smmu_domain *)iodom; in smmu_unmap() 1674 domain = (struct smmu_domain *)iodom; in smmu_map() 1696 struct iommu_domain *iodom; in smmu_domain_alloc() local 1736 iodom = &domain->iodom; in smmu_domain_alloc() 1742 iodom->end = MAXADDR_48BIT; in smmu_domain_alloc() 1744 return (iodom); in smmu_domain_alloc() 1756 domain = (struct smmu_domain *)iodom; in smmu_domain_free() 1821 IOMMU_DOMAIN_LOCK(iodom); in smmu_ctx_alloc() 1823 IOMMU_DOMAIN_UNLOCK(iodom); in smmu_ctx_alloc() 1832 struct iommu_domain *iodom; in smmu_ctx_init() local [all …]
|
H A D | iommu_if.m | 68 struct iommu_domain *iodom; 80 struct iommu_domain *iodom; 98 struct iommu_domain *iodom; 121 struct iommu_domain *iodom;
|
H A D | smmuvar.h | 53 struct iommu_domain iodom; member
|
/freebsd/sys/x86/iommu/ |
H A D | intel_ctx.c | 330 struct iommu_domain *iodom; in dmar_reserve_pci_regions() local 336 iodom = DOM2IODOM(domain); in dmar_reserve_pci_regions() 382 struct iommu_domain *iodom; in dmar_domain_alloc() local 391 iodom = DOM2IODOM(domain); in dmar_domain_alloc() 419 domain->iodom.end); in dmar_domain_alloc() 488 struct iommu_domain *iodom; in dmar_domain_destroy() local 491 iodom = DOM2IODOM(domain); in dmar_domain_destroy() 511 iommu_domain_fini(iodom); in dmar_domain_destroy() 695 KASSERT(old_domain->iodom.iommu == domain->iodom.iommu, in dmar_move_ctx_to_domain() 920 domain = IODOM2DOM(iodom); in iommu_domain_unload() [all …]
|
H A D | intel_idpgtbl.c | 498 domain_map_buf(struct iommu_domain *iodom, iommu_gaddr_t base, in domain_map_buf() argument 511 domain = IODOM2DOM(iodom); in domain_map_buf() 514 KASSERT((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) == 0, in domain_map_buf() 625 KASSERT((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) == 0, in domain_unmap_buf_locked() 684 domain_unmap_buf(struct iommu_domain *iodom, iommu_gaddr_t base, in domain_unmap_buf() argument 690 domain = IODOM2DOM(iodom); in domain_unmap_buf() 715 domain->iodom.flags |= IOMMU_DOMAIN_PGTBL_INITED; in domain_alloc_pgtbl() 729 (domain->iodom.flags & IOMMU_DOMAIN_IDMAP) != 0, in domain_free_pgtbl() 736 if ((domain->iodom.flags & IOMMU_DOMAIN_IDMAP) != 0) { in domain_free_pgtbl() 738 domain->iodom.flags &= ~IOMMU_DOMAIN_IDMAP; in domain_free_pgtbl()
|
H A D | intel_dmar.h | 57 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 D | intel_drv.c | 1147 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()
|