Lines Matching full:timeout
270 * on purpose; we use long where we can return timeout values and int
362 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
364 TASK_UNINTERRUPTIBLE, 0, timeout, \
368 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
371 * @timeout: timeout, in jiffies
381 * 0 if the @condition evaluated to %false after the @timeout elapsed,
382 * 1 if the @condition evaluated to %true after the @timeout elapsed,
384 * to %true before the @timeout elapsed.
386 #define wait_event_timeout(wq_head, condition, timeout) \ argument
388 long __ret = timeout; \
391 __ret = __wait_event_timeout(wq_head, condition, timeout); \
395 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
397 TASK_INTERRUPTIBLE, 0, timeout, \
404 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
406 long __ret = timeout; \
409 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
479 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
481 TASK_INTERRUPTIBLE, 0, timeout, \
485 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
488 * @timeout: timeout, in jiffies
498 * 0 if the @condition evaluated to %false after the @timeout elapsed,
499 * 1 if the @condition evaluated to %true after the @timeout elapsed,
501 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
504 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
506 long __ret = timeout; \
510 condition, timeout); \
514 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
521 if ((timeout) != KTIME_MAX) \
522 hrtimer_start_range_ns(&__t.timer, timeout, \
539 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
542 * @timeout: timeout, as a ktime_t
551 * The function returns 0 if @condition became true, or -ETIME if the timeout
554 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
559 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
565 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
568 * @timeout: timeout, as a ktime_t
578 * interrupted by a signal, or -ETIME if the timeout elapsed.
580 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
585 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
674 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
676 TASK_IDLE, 0, timeout, \
680 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
683 * @timeout: timeout, in jiffies
693 * 0 if the @condition evaluated to %false after the @timeout elapsed,
694 * 1 if the @condition evaluated to %true after the @timeout elapsed,
696 * to %true before the @timeout elapsed.
698 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
700 long __ret = timeout; \
703 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
707 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
709 TASK_IDLE, 1, timeout, \
713 …ent_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
716 * @timeout: timeout, in jiffies
730 * 0 if the @condition evaluated to %false after the @timeout elapsed,
731 * 1 if the @condition evaluated to %true after the @timeout elapsed,
733 * to %true before the @timeout elapsed.
735 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
737 long __ret = timeout; \
740 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
908 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
910 TASK_KILLABLE, 0, timeout, \
914 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
917 * @timeout: timeout, in jiffies
927 * 0 if the @condition evaluated to %false after the @timeout elapsed,
928 * 1 if the @condition evaluated to %true after the @timeout elapsed,
930 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
935 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
937 long __ret = timeout; \
941 condition, timeout); \
1083 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1085 state, 0, timeout, \
1092 * true or a timeout elapses. The condition is checked under
1098 * @timeout: timeout, in jiffies
1110 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1112 * if the condition evaluated to true before the timeout elapsed.
1115 timeout) \
1117 long __ret = timeout; \
1120 wq_head, condition, lock, timeout, \
1125 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1127 long __ret = timeout; \
1130 wq_head, condition, lock, timeout, \
1142 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);