Lines Matching full:timeout
286 * on purpose; we use long where we can return timeout values and int
378 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
380 TASK_UNINTERRUPTIBLE, 0, timeout, \
384 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
387 * @timeout: timeout, in jiffies
397 * 0 if the @condition evaluated to %false after the @timeout elapsed,
398 * 1 if the @condition evaluated to %true after the @timeout elapsed,
400 * to %true before the @timeout elapsed.
402 #define wait_event_timeout(wq_head, condition, timeout) \ argument
404 long __ret = timeout; \
407 __ret = __wait_event_timeout(wq_head, condition, timeout); \
411 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
413 TASK_INTERRUPTIBLE, 0, timeout, \
420 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
422 long __ret = timeout; \
425 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
495 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
497 TASK_INTERRUPTIBLE, 0, timeout, \
501 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
504 * @timeout: timeout, in jiffies
514 * 0 if the @condition evaluated to %false after the @timeout elapsed,
515 * 1 if the @condition evaluated to %true after the @timeout elapsed,
517 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
520 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
522 long __ret = timeout; \
526 condition, timeout); \
530 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
537 if ((timeout) != KTIME_MAX) { \
538 hrtimer_set_expires_range_ns(&__t.timer, timeout, \
556 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
559 * @timeout: timeout, as a ktime_t
568 * The function returns 0 if @condition became true, or -ETIME if the timeout
571 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
576 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
582 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
585 * @timeout: timeout, as a ktime_t
595 * interrupted by a signal, or -ETIME if the timeout elapsed.
597 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
602 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
691 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
693 TASK_IDLE, 0, timeout, \
697 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
700 * @timeout: timeout, in jiffies
710 * 0 if the @condition evaluated to %false after the @timeout elapsed,
711 * 1 if the @condition evaluated to %true after the @timeout elapsed,
713 * to %true before the @timeout elapsed.
715 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
717 long __ret = timeout; \
720 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
724 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
726 TASK_IDLE, 1, timeout, \
730 …ent_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
733 * @timeout: timeout, in jiffies
747 * 0 if the @condition evaluated to %false after the @timeout elapsed,
748 * 1 if the @condition evaluated to %true after the @timeout elapsed,
750 * to %true before the @timeout elapsed.
752 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
754 long __ret = timeout; \
757 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
925 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
927 TASK_KILLABLE, 0, timeout, \
931 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
934 * @timeout: timeout, in jiffies
944 * 0 if the @condition evaluated to %false after the @timeout elapsed,
945 * 1 if the @condition evaluated to %true after the @timeout elapsed,
947 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
952 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
954 long __ret = timeout; \
958 condition, timeout); \
1100 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1102 state, 0, timeout, \
1109 * true or a timeout elapses. The condition is checked under
1115 * @timeout: timeout, in jiffies
1127 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1129 * if the condition evaluated to true before the timeout elapsed.
1132 timeout) \
1134 long __ret = timeout; \
1137 wq_head, condition, lock, timeout, \
1142 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1144 long __ret = timeout; \
1147 wq_head, condition, lock, timeout, \
1159 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);