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_exclusive_cmd(wq, condition, cmd1, cmd2) \ argument
362 (void)___wait_event(wq, condition, TASK_UNINTERRUPTIBLE, 1, 0, \
367 #define wait_event_exclusive_cmd(wq, condition, cmd1, cmd2) \ argument
369 if (condition) \
371 __wait_event_exclusive_cmd(wq, condition, cmd1, cmd2); \
374 #define __wait_event_cmd(wq, condition, cmd1, cmd2) \ argument
375 (void)___wait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
392 #define wait_event_cmd(wq, condition, cmd1, cmd2) \ argument
394 if (condition) \
396 __wait_event_cmd(wq, condition, cmd1, cmd2); \
399 #define __wait_event_interruptible(wq, condition) \ argument
400 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 0, 0, \
418 #define wait_event_interruptible(wq, condition) \ argument
422 if (!(condition)) \
423 __ret = __wait_event_interruptible(wq, condition); \
427 #define __wait_event_interruptible_timeout(wq, condition, timeout) \ argument
428 ___wait_event(wq, ___wait_cond_timeout(condition), \
452 #define wait_event_interruptible_timeout(wq, condition, timeout) \ argument
456 if (!___wait_cond_timeout(condition)) \
458 condition, timeout); \
462 #define __wait_event_hrtimeout(wq, condition, timeout, state) \ argument
475 __ret = ___wait_event(wq, condition, state, 0, 0, \
503 #define wait_event_hrtimeout(wq, condition, timeout) \ argument
507 if (!(condition)) \
508 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
529 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
533 if (!(condition)) \
534 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
539 #define __wait_event_interruptible_exclusive(wq, condition) \ argument
540 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
543 #define wait_event_interruptible_exclusive(wq, condition) \ argument
547 if (!(condition)) \
548 __ret = __wait_event_interruptible_exclusive(wq, condition);\
553 #define __wait_event_freezable_exclusive(wq, condition) \ argument
554 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 1, 0, \
557 #define wait_event_freezable_exclusive(wq, condition) \ argument
561 if (!(condition)) \
562 __ret = __wait_event_freezable_exclusive(wq, condition);\
567 #define __wait_event_interruptible_locked(wq, condition, exclusive, irq) \ argument
590 } while (!(condition)); \
620 #define wait_event_interruptible_locked(wq, condition) \ argument
621 ((condition) \
622 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, 0))
647 #define wait_event_interruptible_locked_irq(wq, condition) \ argument
648 ((condition) \
649 ? 0 : __wait_event_interruptible_locked(wq, condition, 0, 1))
678 #define wait_event_interruptible_exclusive_locked(wq, condition) \ argument
679 ((condition) \
680 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, 0))
709 #define wait_event_interruptible_exclusive_locked_irq(wq, condition) \ argument
710 ((condition) \
711 ? 0 : __wait_event_interruptible_locked(wq, condition, 1, 1))
714 #define __wait_event_killable(wq, condition) \ argument
715 ___wait_event(wq, condition, TASK_KILLABLE, 0, 0, schedule())
732 #define wait_event_killable(wq, condition) \ argument
736 if (!(condition)) \
737 __ret = __wait_event_killable(wq, condition); \
742 #define __wait_event_lock_irq(wq, condition, lock, cmd) \ argument
743 (void)___wait_event(wq, condition, TASK_UNINTERRUPTIBLE, 0, 0, \
772 #define wait_event_lock_irq_cmd(wq, condition, lock, cmd) \ argument
774 if (condition) \
776 __wait_event_lock_irq(wq, condition, lock, cmd); \
799 #define wait_event_lock_irq(wq, condition, lock) \ argument
801 if (condition) \
803 __wait_event_lock_irq(wq, condition, lock, ); \
807 #define __wait_event_interruptible_lock_irq(wq, condition, lock, cmd) \ argument
808 ___wait_event(wq, condition, TASK_INTERRUPTIBLE, 0, 0, \
839 #define wait_event_interruptible_lock_irq_cmd(wq, condition, lock, cmd) \ argument
842 if (!(condition)) \
844 condition, lock, cmd); \
870 #define wait_event_interruptible_lock_irq(wq, condition, lock) \ argument
873 if (!(condition)) \
875 condition, lock,); \
879 #define __wait_event_interruptible_lock_irq_timeout(wq, condition, \ argument
881 ___wait_event(wq, ___wait_cond_timeout(condition), \
911 #define wait_event_interruptible_lock_irq_timeout(wq, condition, lock, \ argument
915 if (!___wait_cond_timeout(condition)) \
917 wq, condition, lock, timeout); \