Lines Matching refs:oldp
150 static inline __must_check bool __refcount_add_not_zero(int i, refcount_t *r, int *oldp) in __refcount_add_not_zero() argument
159 if (oldp) in __refcount_add_not_zero()
160 *oldp = old; in __refcount_add_not_zero()
191 static inline void __refcount_add(int i, refcount_t *r, int *oldp) in __refcount_add() argument
195 if (oldp) in __refcount_add()
196 *oldp = old; in __refcount_add()
225 static inline __must_check bool __refcount_inc_not_zero(refcount_t *r, int *oldp) in __refcount_inc_not_zero() argument
227 return __refcount_add_not_zero(1, r, oldp); in __refcount_inc_not_zero()
248 static inline void __refcount_inc(refcount_t *r, int *oldp) in __refcount_inc() argument
250 __refcount_add(1, r, oldp); in __refcount_inc()
270 static inline __must_check bool __refcount_sub_and_test(int i, refcount_t *r, int *oldp) in __refcount_sub_and_test() argument
274 if (oldp) in __refcount_sub_and_test()
275 *oldp = old; in __refcount_sub_and_test()
313 static inline __must_check bool __refcount_dec_and_test(refcount_t *r, int *oldp) in __refcount_dec_and_test() argument
315 return __refcount_sub_and_test(1, r, oldp); in __refcount_dec_and_test()
336 static inline void __refcount_dec(refcount_t *r, int *oldp) in __refcount_dec() argument
340 if (oldp) in __refcount_dec()
341 *oldp = old; in __refcount_dec()