Lines Matching refs:wq_head

64 extern void __init_waitqueue_head(struct wait_queue_head *wq_head, const char *name, struct lock_cl…
66 #define init_waitqueue_head(wq_head) \ argument
70 __init_waitqueue_head((wq_head), #wq_head, &__key); \
127 static inline int waitqueue_active(struct wait_queue_head *wq_head) in waitqueue_active() argument
129 return !list_empty(&wq_head->head); in waitqueue_active()
140 static inline bool wq_has_single_sleeper(struct wait_queue_head *wq_head) in wq_has_single_sleeper() argument
142 return list_is_singular(&wq_head->head); in wq_has_single_sleeper()
153 static inline bool wq_has_sleeper(struct wait_queue_head *wq_head) in wq_has_sleeper() argument
163 return waitqueue_active(wq_head); in wq_has_sleeper()
166 extern void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
167 extern void add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_e…
168 extern void add_wait_queue_priority(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_en…
169 extern void remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
171 static inline void __add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_en… in __add_wait_queue() argument
173 struct list_head *head = &wq_head->head; in __add_wait_queue()
176 list_for_each_entry(wq, &wq_head->head, entry) { in __add_wait_queue()
188 __add_wait_queue_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in __add_wait_queue_exclusive() argument
191 __add_wait_queue(wq_head, wq_entry); in __add_wait_queue_exclusive()
194 static inline void __add_wait_queue_entry_tail(struct wait_queue_head *wq_head, struct wait_queue_e… in __add_wait_queue_entry_tail() argument
196 list_add_tail(&wq_entry->entry, &wq_head->head); in __add_wait_queue_entry_tail()
200 __add_wait_queue_entry_tail_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_… in __add_wait_queue_entry_tail_exclusive() argument
203 __add_wait_queue_entry_tail(wq_head, wq_entry); in __add_wait_queue_entry_tail_exclusive()
207 __remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry) in __remove_wait_queue() argument
212 int __wake_up(struct wait_queue_head *wq_head, unsigned int mode, int nr, void *key);
213 void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key);
214 void __wake_up_locked_key_bookmark(struct wait_queue_head *wq_head,
216 void __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key);
217 void __wake_up_locked_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key);
218 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr);
219 void __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode);
220 void __wake_up_pollfree(struct wait_queue_head *wq_head);
261 static inline void wake_up_pollfree(struct wait_queue_head *wq_head) in wake_up_pollfree() argument
270 if (waitqueue_active(wq_head)) in wake_up_pollfree()
271 __wake_up_pollfree(wq_head); in wake_up_pollfree()
300 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ argument
308 long __int = prepare_to_wait_event(&wq_head, &__wq_entry, state);\
320 finish_wait(&wq_head, &__wq_entry); \
324 #define __wait_event(wq_head, condition) \ argument
325 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
340 #define wait_event(wq_head, condition) \ argument
345 __wait_event(wq_head, condition); \
348 #define __io_wait_event(wq_head, condition) \ argument
349 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
355 #define io_wait_event(wq_head, condition) \ argument
360 __io_wait_event(wq_head, condition); \
363 #define __wait_event_freezable(wq_head, condition) \ argument
364 ___wait_event(wq_head, condition, (TASK_INTERRUPTIBLE|TASK_FREEZABLE), \
379 #define wait_event_freezable(wq_head, condition) \ argument
384 __ret = __wait_event_freezable(wq_head, condition); \
388 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
389 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
412 #define wait_event_timeout(wq_head, condition, timeout) \ argument
417 __ret = __wait_event_timeout(wq_head, condition, timeout); \
421 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
422 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
430 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
435 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
439 #define __wait_event_exclusive_cmd(wq_head, condition, cmd1, cmd2) \ argument
440 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 1, 0, \
445 #define wait_event_exclusive_cmd(wq_head, condition, cmd1, cmd2) \ argument
449 __wait_event_exclusive_cmd(wq_head, condition, cmd1, cmd2); \
452 #define __wait_event_cmd(wq_head, condition, cmd1, cmd2) \ argument
453 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
470 #define wait_event_cmd(wq_head, condition, cmd1, cmd2) \ argument
474 __wait_event_cmd(wq_head, condition, cmd1, cmd2); \
477 #define __wait_event_interruptible(wq_head, condition) \ argument
478 ___wait_event(wq_head, condition, TASK_INTERRUPTIBLE, 0, 0, \
496 #define wait_event_interruptible(wq_head, condition) \ argument
501 __ret = __wait_event_interruptible(wq_head, condition); \
505 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
506 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
530 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
535 __ret = __wait_event_interruptible_timeout(wq_head, \
540 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
553 __ret = ___wait_event(wq_head, condition, state, 0, 0, \
581 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
586 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
670 #define wait_event_idle(wq_head, condition) \ argument
674 ___wait_event(wq_head, condition, TASK_IDLE, 0, 0, schedule()); \
694 #define wait_event_idle_exclusive(wq_head, condition) \ argument
698 ___wait_event(wq_head, condition, TASK_IDLE, 1, 0, schedule()); \
701 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
702 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
725 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
730 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
734 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
735 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
762 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
767 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
926 #define wait_event_killable(wq_head, condition) \ argument
931 __ret = __wait_event_killable(wq_head, condition); \
954 #define wait_event_state(wq_head, condition, state) \ argument
959 __ret = __wait_event_state(wq_head, condition, state); \
963 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
964 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
990 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
995 __ret = __wait_event_killable_timeout(wq_head, \
1001 #define __wait_event_lock_irq(wq_head, condition, lock, cmd) \ argument
1002 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
1031 #define wait_event_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
1035 __wait_event_lock_irq(wq_head, condition, lock, cmd); \
1058 #define wait_event_lock_irq(wq_head, condition, lock) \ argument
1062 __wait_event_lock_irq(wq_head, condition, lock, ); \
1066 #define __wait_event_interruptible_lock_irq(wq_head, condition, lock, cmd) \ argument
1067 ___wait_event(wq_head, condition, TASK_INTERRUPTIBLE, 0, 0, \
1098 #define wait_event_interruptible_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
1102 __ret = __wait_event_interruptible_lock_irq(wq_head, \
1129 #define wait_event_interruptible_lock_irq(wq_head, condition, lock) \ argument
1133 __ret = __wait_event_interruptible_lock_irq(wq_head, \
1138 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1139 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
1169 #define wait_event_interruptible_lock_irq_timeout(wq_head, condition, lock, \ argument
1175 wq_head, condition, lock, timeout, \
1180 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1185 wq_head, condition, lock, timeout, \
1193 void prepare_to_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state);
1194 bool prepare_to_wait_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, …
1195 long prepare_to_wait_event(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int …
1196 void finish_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);