Lines Matching refs:ops
67 static const struct iommu_ops *ops; variable
115 ops = ddi_modsym(iommu_modhdl, IOMMU_OPS_SYM_NAME, &error); in iommu_init()
116 if (ops == NULL) { in iommu_init()
121 error = ops->init(); in iommu_init()
128 host_domain = ops->create_domain(maxaddr); in iommu_init()
137 ops->enable(); in iommu_init()
142 if (ops != NULL) { in iommu_init()
143 ops->cleanup(); in iommu_init()
144 ops = NULL; in iommu_init()
157 ASSERT3P(ops, !=, NULL); in iommu_cleanup()
160 ops->disable(); in iommu_cleanup()
163 ops->destroy_domain(host_domain); in iommu_cleanup()
166 ops->cleanup(); in iommu_cleanup()
167 ops = NULL; in iommu_cleanup()
177 if (ops == NULL) { in iommu_ref()
181 VERIFY3P(ops, ==, NULL); in iommu_ref()
185 VERIFY3P(ops, !=, NULL); in iommu_ref()
202 VERIFY3P(ops, ==, NULL); in iommu_unref()
211 return (ops->create_domain(maxaddr)); in iommu_create_domain()
222 ops->destroy_domain(domain); in iommu_destroy_domain()
236 mapped = ops->create_mapping(domain, gpa, hpa, remaining); in iommu_create_mapping()
253 unmapped = ops->remove_mapping(domain, gpa, remaining); in iommu_remove_mapping()
270 ops->add_device(domain, rid); in iommu_add_device()
278 ops->remove_device(domain, rid); in iommu_remove_device()
286 ops->invalidate_tlb(domain); in iommu_invalidate_tlb()