Lines Matching refs:condition

188 #define ___wait_cond_timeout(condition)					\  argument
190 bool __cond = (condition); \
212 #define ___wait_event(wq, condition, state, exclusive, ret, cmd) \ argument
227 if (condition) \
246 #define __wait_event(wq, condition) \ argument
247 (void)___wait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
262 #define wait_event(wq, condition) \ argument
265 if (condition) \
267 __wait_event(wq, condition); \
270 #define __io_wait_event(wq, condition) \ argument
271 (void)___wait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
277 #define io_wait_event(wq, condition) \ argument
280 if (condition) \
282 __io_wait_event(wq, condition); \
285 #define __wait_event_freezable(wq, condition) \ argument
286 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 0, 0, \
301 #define wait_event_freezable(wq, condition) \ argument
305 if (!(condition)) \
306 __ret = __wait_event_freezable(wq, condition); \
310 #define __wait_event_timeout(wq, condition, timeout) \ argument
311 ___wait_event(wq, ___wait_cond_timeout(condition), \
334 #define wait_event_timeout(wq, condition, timeout) \ argument
338 if (!___wait_cond_timeout(condition)) \
339 __ret = __wait_event_timeout(wq, condition, timeout); \
343 #define __wait_event_freezable_timeout(wq, condition, timeout) \ argument
344 ___wait_event(wq, ___wait_cond_timeout(condition), \
352 #define wait_event_freezable_timeout(wq, condition, timeout) \ argument
356 if (!___wait_cond_timeout(condition)) \
357 __ret = __wait_event_freezable_timeout(wq, condition, timeout); \
361 #define __wait_event_cmd(wq, condition, cmd1, cmd2) \ argument
362 (void)___wait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
379 #define wait_event_cmd(wq, condition, cmd1, cmd2) \ argument
381 if (condition) \
383 __wait_event_cmd(wq, condition, cmd1, cmd2); \
386 #define __wait_event_interruptible(wq, condition) \ argument
387 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 0, 0, \
405 #define wait_event_interruptible(wq, condition) \ argument
409 if (!(condition)) \
410 __ret = __wait_event_interruptible(wq, condition); \
414 #define __wait_event_interruptible_timeout(wq, condition, timeout) \ argument
415 ___wait_event(wq, ___wait_cond_timeout(condition), \
439 #define wait_event_interruptible_timeout(wq, condition, timeout) \ argument
443 if (!___wait_cond_timeout(condition)) \
445 condition, timeout); \
449 #define __wait_event_hrtimeout(wq, condition, timeout, state) \ argument
462 __ret = ___wait_event(wq, condition, state, 0, 0, \
490 #define wait_event_hrtimeout(wq, condition, timeout) \ argument
494 if (!(condition)) \
495 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
516 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
520 if (!(condition)) \
521 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
526 #define __wait_event_interruptible_exclusive(wq, condition) \ argument
527 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
530 #define wait_event_interruptible_exclusive(wq, condition) \ argument
534 if (!(condition)) \
535 __ret = __wait_event_interruptible_exclusive(wq, condition);\
540 #define __wait_event_freezable_exclusive(wq, condition) \ argument
541 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
544 #define wait_event_freezable_exclusive(wq, condition) \ argument
548 if (!(condition)) \
549 __ret = __wait_event_freezable_exclusive(wq, condition);\
554 #define __wait_event_interruptible_locked(wq, condition, exclusive, irq) \ argument
577 } while (!(condition)); \
607 #define wait_event_interruptible_locked(wq, condition) \ argument
608 ((condition) \
609 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, 0))
634 #define wait_event_interruptible_locked_irq(wq, condition) \ argument
635 ((condition) \
636 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, 1))
665 #define wait_event_interruptible_exclusive_locked(wq, condition) \ argument
666 ((condition) \
667 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, 0))
696 #define wait_event_interruptible_exclusive_locked_irq(wq, condition) \ argument
697 ((condition) \
698 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, 1))
701 #define __wait_event_killable(wq, condition) \ argument
702 ___wait_event(wq, condition, TASK_KILLABLE, 0, 0, schedule())
719 #define wait_event_killable(wq, condition) \ argument
723 if (!(condition)) \
724 __ret = __wait_event_killable(wq, condition); \
729 #define __wait_event_lock_irq(wq, condition, lock, cmd) \ argument
730 (void)___wait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
759 #define wait_event_lock_irq_cmd(wq, condition, lock, cmd) \ argument
761 if (condition) \
763 __wait_event_lock_irq(wq, condition, lock, cmd); \
786 #define wait_event_lock_irq(wq, condition, lock) \ argument
788 if (condition) \
790 __wait_event_lock_irq(wq, condition, lock, ); \
794 #define __wait_event_interruptible_lock_irq(wq, condition, lock, cmd) \ argument
795 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 0, 0, \
826 #define wait_event_interruptible_lock_irq_cmd(wq, condition, lock, cmd) \ argument
829 if (!(condition)) \
831 condition, lock, cmd); \
857 #define wait_event_interruptible_lock_irq(wq, condition, lock) \ argument
860 if (!(condition)) \
862 condition, lock,); \
866 #define __wait_event_interruptible_lock_irq_timeout(wq, condition, \ argument
868 ___wait_event(wq, ___wait_cond_timeout(condition), \
898 #define wait_event_interruptible_lock_irq_timeout(wq, condition, lock, \ argument
902 if (!___wait_cond_timeout(condition)) \
904 wq, condition, lock, timeout); \