Lines Matching refs:fail_fn
68 * @fail_fn: function to call if the original value was not 1
70 * Change the count from 1 to a value lower than 1, and call <fail_fn> if
75 __mutex_fastpath_lock(atomic_t *count, void (*fail_fn)(atomic_t *))
78 fail_fn(count);
85 * @fail_fn: function to call if the original value was not 1
87 * Change the count from 1 to a value lower than 1, and call <fail_fn> if
92 __mutex_fastpath_lock_retval(atomic_t *count, int (*fail_fn)(atomic_t *))
95 return fail_fn(count);
102 * @fail_fn: function to call if the original value was not 0
104 * Try to promote the count from 0 to 1. If it wasn't 0, call <fail_fn>.
109 __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *))
112 fail_fn(count);
121 * @fail_fn: fallback function
127 __mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))