Lines Matching refs:number
98 zfs_refcount_destroy_many(zfs_refcount_t *rc, uint64_t number) in zfs_refcount_destroy_many() argument
103 ASSERT3U(rc->rc_count, ==, number); in zfs_refcount_destroy_many()
135 zfs_refcount_add_many(zfs_refcount_t *rc, uint64_t number, const void *holder) in zfs_refcount_add_many() argument
141 count = atomic_add_64_nv(&(rc)->rc_count, number); in zfs_refcount_add_many()
142 ASSERT3U(count, >=, number); in zfs_refcount_add_many()
148 ref->ref_number = number; in zfs_refcount_add_many()
152 rc->rc_count += number; in zfs_refcount_add_many()
166 zfs_refcount_add_few(zfs_refcount_t *rc, uint64_t number, const void *holder) in zfs_refcount_add_few() argument
169 (void) zfs_refcount_add_many(rc, number, holder); in zfs_refcount_add_few()
171 for (; number > 0; number--) in zfs_refcount_add_few()
177 zfs_refcount_remove_many(zfs_refcount_t *rc, uint64_t number, in zfs_refcount_remove_many() argument
184 count = atomic_add_64_nv(&(rc)->rc_count, -number); in zfs_refcount_remove_many()
190 s.ref_number = number; in zfs_refcount_remove_many()
193 ASSERT3U(rc->rc_count, >=, number); in zfs_refcount_remove_many()
197 holder, number, (u_longlong_t)(uintptr_t)rc); in zfs_refcount_remove_many()
215 rc->rc_count -= number; in zfs_refcount_remove_many()
228 zfs_refcount_remove_few(zfs_refcount_t *rc, uint64_t number, const void *holder) in zfs_refcount_remove_few() argument
231 (void) zfs_refcount_remove_many(rc, number, holder); in zfs_refcount_remove_few()
233 for (; number > 0; number--) in zfs_refcount_remove_few()
277 zfs_refcount_transfer_ownership_many(zfs_refcount_t *rc, uint64_t number, in zfs_refcount_transfer_ownership_many() argument
286 s.ref_number = number; in zfs_refcount_transfer_ownership_many()