Searched refs:t_refcnt (Results 1 – 3 of 3) sorted by relevance
111 unsigned t_refcnt; member164 if (atomic_dec_uint_nv(&t->t_refcnt) > 0) in npf_tableset_destroy()186 atomic_inc_uint(&t->t_refcnt); in npf_tableset_insert()204 newt->t_refcnt = oldt->t_refcnt; in npf_tableset_swap()205 oldt->t_refcnt = 0; in npf_tableset_swap()275 atomic_inc_uint(&ot->t_refcnt); in npf_tableset_reload()282 t->t_refcnt--; in npf_tableset_reload()428 KASSERT(t->t_refcnt == 0); in npf_table_destroy()
152 volatile unsigned t_refcnt; /* reference count for constty */ member
506 while (tp->t_refcnt) in ttyclose()537 refcnt = atomic_inc_uint_nv(&tp->t_refcnt); in tty_acquire()549 old = atomic_load_relaxed(&tp->t_refcnt); in tty_release()552 if (atomic_dec_uint_nv(&tp->t_refcnt) == 0) in tty_release()559 } while (atomic_cas_uint(&tp->t_refcnt, old, new) != old); in tty_release()