Lines Matching full:timeout

287  * on purpose; we use long where we can return timeout values and int
379 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
381 TASK_UNINTERRUPTIBLE, 0, timeout, \
385 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
388 * @timeout: timeout, in jiffies
398 * 0 if the @condition evaluated to %false after the @timeout elapsed,
399 * 1 if the @condition evaluated to %true after the @timeout elapsed,
401 * to %true before the @timeout elapsed.
403 #define wait_event_timeout(wq_head, condition, timeout) \ argument
405 long __ret = timeout; \
408 __ret = __wait_event_timeout(wq_head, condition, timeout); \
412 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
414 TASK_INTERRUPTIBLE, 0, timeout, \
421 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
423 long __ret = timeout; \
426 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
496 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
498 TASK_INTERRUPTIBLE, 0, timeout, \
502 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
505 * @timeout: timeout, in jiffies
515 * 0 if the @condition evaluated to %false after the @timeout elapsed,
516 * 1 if the @condition evaluated to %true after the @timeout elapsed,
518 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
521 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
523 long __ret = timeout; \
527 condition, timeout); \
531 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
538 if ((timeout) != KTIME_MAX) { \
539 hrtimer_set_expires_range_ns(&__t.timer, timeout, \
557 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
560 * @timeout: timeout, as a ktime_t
569 * The function returns 0 if @condition became true, or -ETIME if the timeout
572 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
577 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
583 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
586 * @timeout: timeout, as a ktime_t
596 * interrupted by a signal, or -ETIME if the timeout elapsed.
598 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
603 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
692 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
694 TASK_IDLE, 0, timeout, \
698 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
701 * @timeout: timeout, in jiffies
711 * 0 if the @condition evaluated to %false after the @timeout elapsed,
712 * 1 if the @condition evaluated to %true after the @timeout elapsed,
714 * to %true before the @timeout elapsed.
716 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
718 long __ret = timeout; \
721 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
725 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
727 TASK_IDLE, 1, timeout, \
731 …ent_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
734 * @timeout: timeout, in jiffies
748 * 0 if the @condition evaluated to %false after the @timeout elapsed,
749 * 1 if the @condition evaluated to %true after the @timeout elapsed,
751 * to %true before the @timeout elapsed.
753 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
755 long __ret = timeout; \
758 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
926 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
928 TASK_KILLABLE, 0, timeout, \
932 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
935 * @timeout: timeout, in jiffies
945 * 0 if the @condition evaluated to %false after the @timeout elapsed,
946 * 1 if the @condition evaluated to %true after the @timeout elapsed,
948 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
953 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
955 long __ret = timeout; \
959 condition, timeout); \
1101 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1103 state, 0, timeout, \
1110 * true or a timeout elapses. The condition is checked under
1116 * @timeout: timeout, in jiffies
1128 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1130 * if the condition evaluated to true before the timeout elapsed.
1133 timeout) \
1135 long __ret = timeout; \
1138 wq_head, condition, lock, timeout, \
1143 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1145 long __ret = timeout; \
1148 wq_head, condition, lock, timeout, \
1160 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);