Lines Matching refs:key
14 void __init_waitqueue_head(wait_queue_head_t *q, const char *name, struct lock_class_key *key) in __init_waitqueue_head() argument
17 lockdep_set_class_and_name(&q->lock, key, name); in __init_waitqueue_head()
66 int nr_exclusive, int wake_flags, void *key) in __wake_up_common() argument
73 if (curr->func(curr, mode, wake_flags, key) && in __wake_up_common()
90 int nr_exclusive, void *key) in __wake_up() argument
95 __wake_up_common(q, mode, nr_exclusive, 0, key); in __wake_up()
109 void __wake_up_locked_key(wait_queue_head_t *q, unsigned int mode, void *key) in __wake_up_locked_key() argument
111 __wake_up_common(q, mode, 1, 0, key); in __wake_up_locked_key()
133 int nr_exclusive, void *key) in __wake_up_sync_key() argument
145 __wake_up_common(q, mode, nr_exclusive, wake_flags, key); in __wake_up_sync_key()
277 unsigned int mode, void *key) in abort_exclusive_wait() argument
286 __wake_up_locked_key(q, mode, key); in abort_exclusive_wait()
291 int autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key) in autoremove_wake_function() argument
293 int ret = default_wake_function(wait, mode, sync, key); in autoremove_wake_function()
350 int woken_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key) in woken_wake_function() argument
362 return default_wake_function(wait, mode, sync, key); in woken_wake_function()
368 struct wait_bit_key *key = arg; in wake_bit_function() local
372 if (wait_bit->key.flags != key->flags || in wake_bit_function()
373 wait_bit->key.bit_nr != key->bit_nr || in wake_bit_function()
374 test_bit(key->bit_nr, key->flags)) in wake_bit_function()
377 return autoremove_wake_function(wait, mode, sync, key); in wake_bit_function()
394 if (test_bit(q->key.bit_nr, q->key.flags)) in __wait_on_bit()
395 ret = (*action)(&q->key, mode); in __wait_on_bit()
396 } while (test_bit(q->key.bit_nr, q->key.flags) && !ret); in __wait_on_bit()
419 wait.key.timeout = jiffies + timeout; in out_of_line_wait_on_bit_timeout()
432 if (!test_bit(q->key.bit_nr, q->key.flags)) in __wait_on_bit_lock()
434 ret = action(&q->key, mode); in __wait_on_bit_lock()
437 abort_exclusive_wait(wq, &q->wait, mode, &q->key); in __wait_on_bit_lock()
439 } while (test_and_set_bit(q->key.bit_nr, q->key.flags)); in __wait_on_bit_lock()
457 struct wait_bit_key key = __WAIT_BIT_KEY_INITIALIZER(word, bit); in __wake_up_bit() local
459 __wake_up(wq, TASK_NORMAL, 1, &key); in __wake_up_bit()
513 struct wait_bit_key *key = arg; in wake_atomic_t_function() local
516 atomic_t *val = key->flags; in wake_atomic_t_function()
518 if (wait_bit->key.flags != key->flags || in wake_atomic_t_function()
519 wait_bit->key.bit_nr != key->bit_nr || in wake_atomic_t_function()
522 return autoremove_wake_function(wait, mode, sync, key); in wake_atomic_t_function()
539 val = q->key.flags; in __wait_on_atomic_t()
550 .key = __WAIT_ATOMIC_T_KEY_INITIALIZER(p), \