Lines Matching refs:fail_fn
14 * @fail_fn: function to call if the original value was not 1
16 * Change the count from 1 to a value lower than 1, and call <fail_fn> if
21 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *))
24 fail_fn(count);
31 * @fail_fn: function to call if the original value was not 1
33 * Change the count from 1 to a value lower than 1, and call <fail_fn> if
38 __mutex_fastpath_lock_retval(atomic_t *count, int (*fail_fn)(atomic_t *))
41 return fail_fn(count);
48 * @fail_fn: function to call if the original value was not 0
50 * Try to promote the count from 0 to 1. If it wasn't 0, call <fail_fn>.
59 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *))
62 fail_fn(count);
71 * @fail_fn: fallback function
80 * <fail_fn> spinlock-based trylock variant unconditionally.
83 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))