Lines Matching refs:condition

274 #define ___wait_cond_timeout(condition)						\  argument
276 bool __cond = (condition); \
300 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ argument
310 if (condition) \
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
343 if (condition) \
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
358 if (condition) \
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
383 if (!(condition)) \
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
416 if (!___wait_cond_timeout(condition)) \
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
434 if (!___wait_cond_timeout(condition)) \
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
447 if (condition) \
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
472 if (condition) \
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
500 if (!(condition)) \
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
534 if (!___wait_cond_timeout(condition)) \
536 condition, timeout); \
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
585 if (!(condition)) \
586 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
607 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
611 if (!(condition)) \
612 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
617 #define __wait_event_interruptible_exclusive(wq, condition) \ argument
618 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
621 #define wait_event_interruptible_exclusive(wq, condition) \ argument
625 if (!(condition)) \
626 __ret = __wait_event_interruptible_exclusive(wq, condition); \
630 #define __wait_event_killable_exclusive(wq, condition) \ argument
631 ___wait_event(wq, condition, TASK_KILLABLE, 1, 0, \
634 #define wait_event_killable_exclusive(wq, condition) \ argument
638 if (!(condition)) \
639 __ret = __wait_event_killable_exclusive(wq, condition); \
644 #define __wait_event_freezable_exclusive(wq, condition) \ argument
645 ___wait_event(wq, condition, (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 1, 0,\
648 #define wait_event_freezable_exclusive(wq, condition) \ argument
652 if (!(condition)) \
653 __ret = __wait_event_freezable_exclusive(wq, condition); \
670 #define wait_event_idle(wq_head, condition) \ argument
673 if (!(condition)) \
674 ___wait_event(wq_head, condition, TASK_IDLE, 0, 0, schedule()); \
694 #define wait_event_idle_exclusive(wq_head, condition) \ argument
697 if (!(condition)) \
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
729 if (!___wait_cond_timeout(condition)) \
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
766 if (!___wait_cond_timeout(condition)) \
767 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
774 #define __wait_event_interruptible_locked(wq, condition, exclusive, fn) \ argument
784 } while (!(condition)); \
814 #define wait_event_interruptible_locked(wq, condition) \ argument
815 ((condition) \
816 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, do_wait_intr))
841 #define wait_event_interruptible_locked_irq(wq, condition) \ argument
842 ((condition) \
843 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, do_wait_intr_irq))
872 #define wait_event_interruptible_exclusive_locked(wq, condition) \ argument
873 ((condition) \
874 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, do_wait_intr))
903 #define wait_event_interruptible_exclusive_locked_irq(wq, condition) \ argument
904 ((condition) \
905 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, do_wait_intr_irq))
908 #define __wait_event_killable(wq, condition) \ argument
909 ___wait_event(wq, condition, TASK_KILLABLE, 0, 0, schedule())
926 #define wait_event_killable(wq_head, condition) \ argument
930 if (!(condition)) \
931 __ret = __wait_event_killable(wq_head, condition); \
935 #define __wait_event_state(wq, condition, state) \ argument
936 ___wait_event(wq, condition, state, 0, 0, schedule())
954 #define wait_event_state(wq_head, condition, state) \ argument
958 if (!(condition)) \
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
994 if (!___wait_cond_timeout(condition)) \
996 condition, timeout); \
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
1033 if (condition) \
1035 __wait_event_lock_irq(wq_head, condition, lock, cmd); \
1058 #define wait_event_lock_irq(wq_head, condition, lock) \ argument
1060 if (condition) \
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
1101 if (!(condition)) \
1103 condition, lock, cmd); \
1129 #define wait_event_interruptible_lock_irq(wq_head, condition, lock) \ argument
1132 if (!(condition)) \
1134 condition, lock,); \
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
1173 if (!___wait_cond_timeout(condition)) \
1175 wq_head, condition, lock, timeout, \
1180 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1183 if (!___wait_cond_timeout(condition)) \
1185 wq_head, condition, lock, timeout, \