Lines Matching refs:refcount_t
100 } refcount_t; typedef
114 void refcount_warn_saturate(refcount_t *r, enum refcount_saturation_type t);
121 static inline void refcount_set(refcount_t *r, int n) in refcount_set()
132 static inline unsigned int refcount_read(const refcount_t *r) in refcount_read()
155 static inline __must_check bool refcount_add_not_zero(int i, refcount_t *r) in refcount_add_not_zero()
186 static inline void refcount_add(int i, refcount_t *r) in refcount_add()
209 static inline __must_check bool refcount_inc_not_zero(refcount_t *r) in refcount_inc_not_zero()
226 static inline void refcount_inc(refcount_t *r) in refcount_inc()
251 static inline __must_check bool refcount_sub_and_test(int i, refcount_t *r) in refcount_sub_and_test()
279 static inline __must_check bool refcount_dec_and_test(refcount_t *r) in refcount_dec_and_test()
294 static inline void refcount_dec(refcount_t *r) in refcount_dec()
300 extern __must_check bool refcount_dec_if_one(refcount_t *r);
301 extern __must_check bool refcount_dec_not_one(refcount_t *r);
302 extern __must_check bool refcount_dec_and_mutex_lock(refcount_t *r, struct mutex *lock);
303 extern __must_check bool refcount_dec_and_lock(refcount_t *r, spinlock_t *lock);
304 extern __must_check bool refcount_dec_and_lock_irqsave(refcount_t *r,