Searched refs:rc_count (Results 1 – 5 of 5) sorted by relevance
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
| H A D | refcount.h | 59 uint64_t rc_count; member 87 uint64_t rc_count; 90 #define refcount_create(rc) ((rc)->rc_count = 0) 91 #define refcount_create_untracked(rc) ((rc)->rc_count = 0) 92 #define refcount_create_tracked(rc) ((rc)->rc_count = 0) 93 #define refcount_destroy(rc) ((rc)->rc_count = 0) 94 #define refcount_destroy_many(rc, number) ((rc)->rc_count = 0) 95 #define refcount_is_zero(rc) ((rc)->rc_count == 0) 96 #define refcount_count(rc) ((rc)->rc_count) 97 #define refcount_add(rc, holder) atomic_inc_64_nv(&(rc)->rc_count) [all …]
|
| /netbsd-src/sys/external/bsd/drm2/include/linux/ |
| H A D | refcount.h | 39 atomic_t rc_count; member 45 atomic_set(&rc->rc_count, n); in refcount_set() 51 atomic_inc(&rc->rc_count); in refcount_inc() 60 old = atomic_read(&rc->rc_count); in refcount_inc_not_zero() 64 } while (atomic_cmpxchg(&rc->rc_count, old, new) != old); in refcount_inc_not_zero() 75 old = atomic_read(&rc->rc_count); in refcount_dec_and_test() 78 } while (atomic_cmpxchg(&rc->rc_count, old, new) != old); in refcount_dec_and_test() 88 return atomic_dec_and_lock_irqsave(&rc->rc_count, lock, *flagsp); in refcount_dec_and_lock_irqsave() 97 old = atomic_read(&rc->rc_count); in refcount_dec_and_mutex_lock() 101 if (atomic_dec_return(&rc->rc_count) == 0) in refcount_dec_and_mutex_lock() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | refcount.c | 70 rc->rc_count = 0; in refcount_create() 94 ASSERT(rc->rc_count == number); in refcount_destroy_many() 119 return (rc->rc_count == 0); in refcount_is_zero() 125 return (rc->rc_count); in refcount_count() 140 ASSERT(rc->rc_count >= 0); in refcount_add_many() 143 rc->rc_count += number; in refcount_add_many() 144 count = rc->rc_count; in refcount_add_many() 163 ASSERT(rc->rc_count >= number); in refcount_remove_many() 166 rc->rc_count -= number; in refcount_remove_many() 167 count = rc->rc_count; in refcount_remove_many() [all …]
|
| H A D | rrwlock.c | 169 rrl->rr_anon_rcount.rc_count++; in rrw_enter_read_impl() 244 if (!rrl->rr_writer && rrl->rr_linked_rcount.rc_count == 0) { in rrw_exit() 245 rrl->rr_anon_rcount.rc_count--; in rrw_exit() 246 if (rrl->rr_anon_rcount.rc_count == 0) in rrw_exit()
|
| H A D | arc.c | 1294 &ARC_anon.arcs_size.rc_count, 0, "size of anonymous state"); 1296 &ARC_anon.arcs_esize[ARC_BUFC_METADATA].rc_count, 0, 1299 &ARC_anon.arcs_esize[ARC_BUFC_DATA].rc_count, 0, 1303 &ARC_mru.arcs_size.rc_count, 0, "size of mru state"); 1305 &ARC_mru.arcs_esize[ARC_BUFC_METADATA].rc_count, 0, 1308 &ARC_mru.arcs_esize[ARC_BUFC_DATA].rc_count, 0, 1312 &ARC_mru_ghost.arcs_size.rc_count, 0, "size of mru ghost state"); 1314 &ARC_mru_ghost.arcs_esize[ARC_BUFC_METADATA].rc_count, 0, 1317 &ARC_mru_ghost.arcs_esize[ARC_BUFC_DATA].rc_count, 0, 1321 &ARC_mfu.arcs_size.rc_count, 0, "size of mfu state"); [all …]
|