Lines Matching refs:fd_refcnt
198 KASSERT(fdp->fd_refcnt <= 1 || mutex_owned(&fdp->fd_lock));
201 if (fdp->fd_refcnt == -1) {
377 if (fdp->fd_refcnt == 1) {
459 if (fdp->fd_refcnt == 1) {
661 if (fdp->fd_refcnt == 1) {
1086 if (fdp->fd_refcnt > 1) {
1350 fdp->fd_refcnt = 1;
1406 atomic_inc_uint(&fdp->fd_refcnt);
1417 atomic_inc_uint(&fdp->fd_refcnt);
1434 newfdp->fd_refcnt = 1;
1580 if (atomic_dec_uint_nv(&fdp->fd_refcnt) > 0)
1590 fdp->fd_refcnt = -1; /* see fd_checkmaps */
1665 fdp->fd_refcnt = 0; /* see fd_checkmaps */
1787 if (fdp->fd_refcnt > 1) {