Lines Matching full:refs

278 			domain->refs++; /* XXXKIB prevent free */  in domain_init_rmrr()
432 ctx->context.refs = 1; in dmar_ctx_alloc()
443 KASSERT(domain->refs >= domain->ctx_cnt, in dmar_ctx_link()
444 ("dom %p ref underflow %d %d", domain, domain->refs, in dmar_ctx_link()
446 domain->refs++; in dmar_ctx_link()
458 KASSERT(domain->refs > 0, in dmar_ctx_unlink()
459 ("domain %p ctx dtr refs %d", domain, domain->refs)); in dmar_ctx_unlink()
460 KASSERT(domain->ctx_cnt >= domain->refs, in dmar_ctx_unlink()
461 ("domain %p ctx dtr refs %d ctx_cnt %d", domain, in dmar_ctx_unlink()
462 domain->refs, domain->ctx_cnt)); in dmar_ctx_unlink()
463 domain->refs--; in dmar_ctx_unlink()
482 KASSERT(domain->refs == 0, in dmar_domain_destroy()
483 ("destroying dom %p with refs %d", domain, domain->refs)); in dmar_domain_destroy()
595 ctx->context.refs++; /* tag referenced us */ in dmar_get_ctx_for_dev1()
601 ctx->context.refs++; /* tag referenced us */ in dmar_get_ctx_for_dev1()
707 KASSERT(domain->refs >= 1, in dmar_unref_domain_locked()
708 ("dmar %d domain %p refs %u", dmar->iommu.unit, domain, in dmar_unref_domain_locked()
709 domain->refs)); in dmar_unref_domain_locked()
710 KASSERT(domain->refs > domain->ctx_cnt, in dmar_unref_domain_locked()
711 ("dmar %d domain %p refs %d ctx_cnt %d", dmar->iommu.unit, domain, in dmar_unref_domain_locked()
712 domain->refs, domain->ctx_cnt)); in dmar_unref_domain_locked()
714 if (domain->refs > 1) { in dmar_unref_domain_locked()
715 domain->refs--; in dmar_unref_domain_locked()
739 KASSERT(ctx->context.refs >= 1, in dmar_free_ctx_locked()
740 ("dmar %p ctx %p refs %u", dmar, ctx, ctx->context.refs)); in dmar_free_ctx_locked()
746 if (ctx->context.refs > 1) { in dmar_free_ctx_locked()
747 ctx->context.refs--; in dmar_free_ctx_locked()
764 KASSERT(ctx->context.refs >= 1, in dmar_free_ctx_locked()
765 ("dmar %p ctx %p refs %u", dmar, ctx, ctx->context.refs)); in dmar_free_ctx_locked()
771 if (ctx->context.refs > 1) { in dmar_free_ctx_locked()
772 ctx->context.refs--; in dmar_free_ctx_locked()