Lines Matching refs:ch_refs
752 KASSERT(chan->ch_refs > 0, ("chan%u: invalid refcnt %d",
753 chan->ch_id, chan->ch_refs));
754 refs = atomic_fetchadd_int(&chan->ch_refs, -1);
1500 chan->ch_refs = 1;
1527 KASSERT(chan->ch_refs == 0, ("chan%u: invalid refcnt %d",
1528 chan->ch_id, chan->ch_refs));
1611 KASSERT(newchan->ch_refs == 1, ("chan%u: invalid refcnt %d",
1612 newchan->ch_id, newchan->ch_refs));
1613 atomic_add_int(&newchan->ch_refs, 1);
1761 atomic_subtract_int(&chan->ch_refs, 1);