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_on_current_cpu(struct wait_queue_head *wq_head, unsigned int mode, void *key);
214 void __wake_up_locked_key(struct wait_queue_head *wq_head, unsigned int mode, void *key);
215 void __wake_up_locked_key_bookmark(struct wait_queue_head *wq_head,
217 void __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key);
218 void __wake_up_locked_sync_key(struct wait_queue_head *wq_head, unsigned int mode, void *key);
219 void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr);
220 void __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode);
221 void __wake_up_pollfree(struct wait_queue_head *wq_head);
264 static inline void wake_up_pollfree(struct wait_queue_head *wq_head) in wake_up_pollfree() argument
273 if (waitqueue_active(wq_head)) in wake_up_pollfree()
274 __wake_up_pollfree(wq_head); in wake_up_pollfree()
303 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ argument
311 long __int = prepare_to_wait_event(&wq_head, &__wq_entry, state);\
323 finish_wait(&wq_head, &__wq_entry); \
327 #define __wait_event(wq_head, condition) \ argument
328 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
343 #define wait_event(wq_head, condition) \ argument
348 __wait_event(wq_head, condition); \
351 #define __io_wait_event(wq_head, condition) \ argument
352 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
358 #define io_wait_event(wq_head, condition) \ argument
363 __io_wait_event(wq_head, condition); \
366 #define __wait_event_freezable(wq_head, condition) \ argument
367 ___wait_event(wq_head, condition, (TASK_INTERRUPTIBLE|TASK_FREEZABLE), \
382 #define wait_event_freezable(wq_head, condition) \ argument
387 __ret = __wait_event_freezable(wq_head, condition); \
391 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
392 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
415 #define wait_event_timeout(wq_head, condition, timeout) \ argument
420 __ret = __wait_event_timeout(wq_head, condition, timeout); \
424 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
425 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
433 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
438 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
442 #define __wait_event_exclusive_cmd(wq_head, condition, cmd1, cmd2) \ argument
443 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 1, 0, \
448 #define wait_event_exclusive_cmd(wq_head, condition, cmd1, cmd2) \ argument
452 __wait_event_exclusive_cmd(wq_head, condition, cmd1, cmd2); \
455 #define __wait_event_cmd(wq_head, condition, cmd1, cmd2) \ argument
456 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
473 #define wait_event_cmd(wq_head, condition, cmd1, cmd2) \ argument
477 __wait_event_cmd(wq_head, condition, cmd1, cmd2); \
480 #define __wait_event_interruptible(wq_head, condition) \ argument
481 ___wait_event(wq_head, condition, TASK_INTERRUPTIBLE, 0, 0, \
499 #define wait_event_interruptible(wq_head, condition) \ argument
504 __ret = __wait_event_interruptible(wq_head, condition); \
508 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
509 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
533 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
538 __ret = __wait_event_interruptible_timeout(wq_head, \
543 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
556 __ret = ___wait_event(wq_head, condition, state, 0, 0, \
584 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
589 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
673 #define wait_event_idle(wq_head, condition) \ argument
677 ___wait_event(wq_head, condition, TASK_IDLE, 0, 0, schedule()); \
697 #define wait_event_idle_exclusive(wq_head, condition) \ argument
701 ___wait_event(wq_head, condition, TASK_IDLE, 1, 0, schedule()); \
704 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
705 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
728 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
733 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
737 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
738 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
765 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
770 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
929 #define wait_event_killable(wq_head, condition) \ argument
934 __ret = __wait_event_killable(wq_head, condition); \
957 #define wait_event_state(wq_head, condition, state) \ argument
962 __ret = __wait_event_state(wq_head, condition, state); \
966 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
967 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
993 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
998 __ret = __wait_event_killable_timeout(wq_head, \
1004 #define __wait_event_lock_irq(wq_head, condition, lock, cmd) \ argument
1005 (void)___wait_event(wq_head, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
1034 #define wait_event_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
1038 __wait_event_lock_irq(wq_head, condition, lock, cmd); \
1061 #define wait_event_lock_irq(wq_head, condition, lock) \ argument
1065 __wait_event_lock_irq(wq_head, condition, lock, ); \
1069 #define __wait_event_interruptible_lock_irq(wq_head, condition, lock, cmd) \ argument
1070 ___wait_event(wq_head, condition, TASK_INTERRUPTIBLE, 0, 0, \
1101 #define wait_event_interruptible_lock_irq_cmd(wq_head, condition, lock, cmd) \ argument
1105 __ret = __wait_event_interruptible_lock_irq(wq_head, \
1132 #define wait_event_interruptible_lock_irq(wq_head, condition, lock) \ argument
1136 __ret = __wait_event_interruptible_lock_irq(wq_head, \
1141 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1142 ___wait_event(wq_head, ___wait_cond_timeout(condition), \
1172 #define wait_event_interruptible_lock_irq_timeout(wq_head, condition, lock, \ argument
1178 wq_head, condition, lock, timeout, \
1183 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1188 wq_head, condition, lock, timeout, \
1196 void prepare_to_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int state);
1197 bool prepare_to_wait_exclusive(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, …
1198 long prepare_to_wait_event(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry, int …
1199 void finish_wait(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);