Lines Matching full:timeout

255  * on purpose; we use long where we can return timeout values and int
347 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
349 TASK_UNINTERRUPTIBLE, 0, timeout, \
353 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
356 * @timeout: timeout, in jiffies
366 * 0 if the @condition evaluated to %false after the @timeout elapsed,
367 * 1 if the @condition evaluated to %true after the @timeout elapsed,
369 * to %true before the @timeout elapsed.
371 #define wait_event_timeout(wq_head, condition, timeout) \ argument
373 long __ret = timeout; \
376 __ret = __wait_event_timeout(wq_head, condition, timeout); \
380 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
382 TASK_INTERRUPTIBLE, 0, timeout, \
389 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
391 long __ret = timeout; \
394 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
464 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
466 TASK_INTERRUPTIBLE, 0, timeout, \
470 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
473 * @timeout: timeout, in jiffies
483 * 0 if the @condition evaluated to %false after the @timeout elapsed,
484 * 1 if the @condition evaluated to %true after the @timeout elapsed,
486 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
489 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
491 long __ret = timeout; \
495 condition, timeout); \
499 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
506 if ((timeout) != KTIME_MAX) \
507 hrtimer_start_range_ns(&__t.timer, timeout, \
524 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
527 * @timeout: timeout, as a ktime_t
536 * The function returns 0 if @condition became true, or -ETIME if the timeout
539 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
544 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
550 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
553 * @timeout: timeout, as a ktime_t
563 * interrupted by a signal, or -ETIME if the timeout elapsed.
565 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
570 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
659 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
661 TASK_IDLE, 0, timeout, \
665 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
668 * @timeout: timeout, in jiffies
678 * 0 if the @condition evaluated to %false after the @timeout elapsed,
679 * 1 if the @condition evaluated to %true after the @timeout elapsed,
681 * to %true before the @timeout elapsed.
683 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
685 long __ret = timeout; \
688 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
692 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
694 TASK_IDLE, 1, timeout, \
698 …ent_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
701 * @timeout: timeout, in jiffies
715 * 0 if the @condition evaluated to %false after the @timeout elapsed,
716 * 1 if the @condition evaluated to %true after the @timeout elapsed,
718 * to %true before the @timeout elapsed.
720 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
722 long __ret = timeout; \
725 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
893 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
895 TASK_KILLABLE, 0, timeout, \
899 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
902 * @timeout: timeout, in jiffies
912 * 0 if the @condition evaluated to %false after the @timeout elapsed,
913 * 1 if the @condition evaluated to %true after the @timeout elapsed,
915 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
920 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
922 long __ret = timeout; \
926 condition, timeout); \
1068 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1070 state, 0, timeout, \
1077 * true or a timeout elapses. The condition is checked under
1083 * @timeout: timeout, in jiffies
1095 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1097 * if the condition evaluated to true before the timeout elapsed.
1100 timeout) \
1102 long __ret = timeout; \
1105 wq_head, condition, lock, timeout, \
1110 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1112 long __ret = timeout; \
1115 wq_head, condition, lock, timeout, \
1127 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);