Lines Matching refs:count
37 * __mutex_fastpath_lock_retval - try to take the lock by moving the count
39 * @count: pointer of type atomic_t
42 * Change the count from 1 to a value lower than 1, and call <fail_fn> if
46 static inline int __mutex_fastpath_lock_retval(atomic_t *count,
49 if (unlikely(atomic_dec_return(count) < 0))
50 return fail_fn(count);
84 * @count: pointer of type atomic_t
87 * Change the count from 1 to 0 and return 1 (success), or return 0 (failure)
91 static inline int __mutex_fastpath_trylock(atomic_t *count,
94 if (likely(atomic_cmpxchg(count, 1, 0) == 1))