Lines Matching refs:condition
277 #define ___wait_cond_timeout(condition) \ argument
279 bool __cond = (condition); \
303 #define ___wait_event(wq_head, condition, state, exclusive, ret, cmd) \ argument
313 if (condition) \
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
346 if (condition) \
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
361 if (condition) \
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
386 if (!(condition)) \
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
419 if (!___wait_cond_timeout(condition)) \
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
437 if (!___wait_cond_timeout(condition)) \
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
450 if (condition) \
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
475 if (condition) \
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
503 if (!(condition)) \
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
537 if (!___wait_cond_timeout(condition)) \
539 condition, timeout); \
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
588 if (!(condition)) \
589 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
610 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
614 if (!(condition)) \
615 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
620 #define __wait_event_interruptible_exclusive(wq, condition) \ argument
621 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
624 #define wait_event_interruptible_exclusive(wq, condition) \ argument
628 if (!(condition)) \
629 __ret = __wait_event_interruptible_exclusive(wq, condition); \
633 #define __wait_event_killable_exclusive(wq, condition) \ argument
634 ___wait_event(wq, condition, TASK_KILLABLE, 1, 0, \
637 #define wait_event_killable_exclusive(wq, condition) \ argument
641 if (!(condition)) \
642 __ret = __wait_event_killable_exclusive(wq, condition); \
647 #define __wait_event_freezable_exclusive(wq, condition) \ argument
648 ___wait_event(wq, condition, (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 1, 0,\
651 #define wait_event_freezable_exclusive(wq, condition) \ argument
655 if (!(condition)) \
656 __ret = __wait_event_freezable_exclusive(wq, condition); \
673 #define wait_event_idle(wq_head, condition) \ argument
676 if (!(condition)) \
677 ___wait_event(wq_head, condition, TASK_IDLE, 0, 0, schedule()); \
697 #define wait_event_idle_exclusive(wq_head, condition) \ argument
700 if (!(condition)) \
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
732 if (!___wait_cond_timeout(condition)) \
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
769 if (!___wait_cond_timeout(condition)) \
770 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
777 #define __wait_event_interruptible_locked(wq, condition, exclusive, fn) \ argument
787 } while (!(condition)); \
817 #define wait_event_interruptible_locked(wq, condition) \ argument
818 ((condition) \
819 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, do_wait_intr))
844 #define wait_event_interruptible_locked_irq(wq, condition) \ argument
845 ((condition) \
846 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, do_wait_intr_irq))
875 #define wait_event_interruptible_exclusive_locked(wq, condition) \ argument
876 ((condition) \
877 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, do_wait_intr))
906 #define wait_event_interruptible_exclusive_locked_irq(wq, condition) \ argument
907 ((condition) \
908 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, do_wait_intr_irq))
911 #define __wait_event_killable(wq, condition) \ argument
912 ___wait_event(wq, condition, TASK_KILLABLE, 0, 0, schedule())
929 #define wait_event_killable(wq_head, condition) \ argument
933 if (!(condition)) \
934 __ret = __wait_event_killable(wq_head, condition); \
938 #define __wait_event_state(wq, condition, state) \ argument
939 ___wait_event(wq, condition, state, 0, 0, schedule())
957 #define wait_event_state(wq_head, condition, state) \ argument
961 if (!(condition)) \
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
997 if (!___wait_cond_timeout(condition)) \
999 condition, timeout); \
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
1036 if (condition) \
1038 __wait_event_lock_irq(wq_head, condition, lock, cmd); \
1061 #define wait_event_lock_irq(wq_head, condition, lock) \ argument
1063 if (condition) \
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
1104 if (!(condition)) \
1106 condition, lock, cmd); \
1132 #define wait_event_interruptible_lock_irq(wq_head, condition, lock) \ argument
1135 if (!(condition)) \
1137 condition, lock,); \
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
1176 if (!___wait_cond_timeout(condition)) \
1178 wq_head, condition, lock, timeout, \
1183 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1186 if (!___wait_cond_timeout(condition)) \
1188 wq_head, condition, lock, timeout, \