Lines Matching refs:mode
66 static int __wake_up_common(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive, int wake_flags,
96 ret = curr->func(curr, mode, wake_flags, key);
114 static void __wake_up_common_lock(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive, int wake_flags,
127 nr_exclusive = __wake_up_common(wq_head, mode, nr_exclusive, wake_flags, key, &bookmark);
135 * @mode: which threads
142 void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, int nr_exclusive, void *key)
144 __wake_up_common_lock(wq_head, mode, nr_exclusive, 0, key);
151 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr)
153 __wake_up_common(wq_head, mode, nr, 0, NULL, NULL);
157 void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key)
159 __wake_up_common(wq_head, mode, 1, 0, key, NULL);
163 void __wake_up_locked_key_bookmark(struct wait_queue_head *wq_head, unsigned int mode, void *key,
166 __wake_up_common(wq_head, mode, 1, 0, key, bookmark);
173 * @mode: which threads
186 void __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key)
192 __wake_up_common_lock(wq_head, mode, 1, WF_SYNC, key);
199 * @mode: which threads
212 void __wake_up_locked_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key)
214 __wake_up_common(wq_head, mode, 1, WF_SYNC, key, NULL);
221 void __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode)
223 __wake_up_sync_key(wq_head, mode, NULL);
404 __sched int autoremove_wake_function(struct wait_queue_entry *wq_entry, unsigned int mode, int sync, void *key)
406 int ret = default_wake_function(wq_entry, mode, sync, key);
430 * p->state = mode; wq_entry->flags |= WQ_FLAG_WOKEN;
433 * schedule() if (p->state & mode)
440 __sched long wait_woken(struct wait_queue_entry *wq_entry, unsigned int mode, long timeout)
448 set_current_state(mode); /* A */
466 __sched int woken_wake_function(struct wait_queue_entry *wq_entry, unsigned int mode, int sync, void *key)
472 return default_wake_function(wq_entry, mode, sync, key);