| 452 | } |
| 453 | |
| 454 | static void |
| 455 | dmar_ctx_link(struct dmar_ctx *ctx) |
| 456 | { |
| 457 | struct dmar_domain *domain; |
| 458 | |
| 459 | domain = CTX2DOM(ctx); |
| 460 | IOMMU_ASSERT_LOCKED(domain->iodom.iommu); |
| 461 | KASSERT(domain->refs >= domain->ctx_cnt, |
| 462 | ("dom %p ref underflow %d %d", domain, domain->refs, |
| 463 | domain->ctx_cnt)); |
| 464 | domain->refs++; |
| 465 | domain->ctx_cnt++; |
| 466 | LIST_INSERT_HEAD(&domain->contexts, ctx, link); |
| 467 | } |
| 468 | |
| 469 | static void |
| 470 | dmar_ctx_unlink(struct dmar_ctx *ctx) |
no outgoing calls
no test coverage detected