Lines Matching full:timeout
260 * on purpose; we use long where we can return timeout values and int
352 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
354 TASK_UNINTERRUPTIBLE, 0, timeout, \
358 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
361 * @timeout: timeout, in jiffies
371 * 0 if the @condition evaluated to %false after the @timeout elapsed,
372 * 1 if the @condition evaluated to %true after the @timeout elapsed,
374 * to %true before the @timeout elapsed.
376 #define wait_event_timeout(wq_head, condition, timeout) \ argument
378 long __ret = timeout; \
381 __ret = __wait_event_timeout(wq_head, condition, timeout); \
385 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
387 TASK_INTERRUPTIBLE, 0, timeout, \
394 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
396 long __ret = timeout; \
399 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
469 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
471 TASK_INTERRUPTIBLE, 0, timeout, \
475 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
478 * @timeout: timeout, in jiffies
488 * 0 if the @condition evaluated to %false after the @timeout elapsed,
489 * 1 if the @condition evaluated to %true after the @timeout elapsed,
491 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
494 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
496 long __ret = timeout; \
500 condition, timeout); \
504 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
511 if ((timeout) != KTIME_MAX) \
512 hrtimer_start_range_ns(&__t.timer, timeout, \
529 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
532 * @timeout: timeout, as a ktime_t
541 * The function returns 0 if @condition became true, or -ETIME if the timeout
544 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
549 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
555 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
558 * @timeout: timeout, as a ktime_t
568 * interrupted by a signal, or -ETIME if the timeout elapsed.
570 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
575 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
664 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
666 TASK_IDLE, 0, timeout, \
670 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
673 * @timeout: timeout, in jiffies
683 * 0 if the @condition evaluated to %false after the @timeout elapsed,
684 * 1 if the @condition evaluated to %true after the @timeout elapsed,
686 * to %true before the @timeout elapsed.
688 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
690 long __ret = timeout; \
693 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
697 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
699 TASK_IDLE, 1, timeout, \
703 …ent_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
706 * @timeout: timeout, in jiffies
720 * 0 if the @condition evaluated to %false after the @timeout elapsed,
721 * 1 if the @condition evaluated to %true after the @timeout elapsed,
723 * to %true before the @timeout elapsed.
725 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
727 long __ret = timeout; \
730 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
898 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
900 TASK_KILLABLE, 0, timeout, \
904 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
907 * @timeout: timeout, in jiffies
917 * 0 if the @condition evaluated to %false after the @timeout elapsed,
918 * 1 if the @condition evaluated to %true after the @timeout elapsed,
920 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
925 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
927 long __ret = timeout; \
931 condition, timeout); \
1073 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1075 state, 0, timeout, \
1082 * true or a timeout elapses. The condition is checked under
1088 * @timeout: timeout, in jiffies
1100 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1102 * if the condition evaluated to true before the timeout elapsed.
1105 timeout) \
1107 long __ret = timeout; \
1110 wq_head, condition, lock, timeout, \
1115 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1117 long __ret = timeout; \
1120 wq_head, condition, lock, timeout, \
1132 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);