Lines Matching refs:timeout

295  * on purpose; we use long where we can return timeout values and int
387 #define __wait_event_timeout(wq_head, condition, timeout) \
389 TASK_UNINTERRUPTIBLE, 0, timeout, \
393 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
396 * @timeout: timeout, in jiffies
406 * 0 if the @condition evaluated to %false after the @timeout elapsed,
407 * 1 if the @condition evaluated to %true after the @timeout elapsed,
409 * to %true before the @timeout elapsed.
411 #define wait_event_timeout(wq_head, condition, timeout) \
413 long __ret = timeout; \
416 __ret = __wait_event_timeout(wq_head, condition, timeout); \
420 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \
422 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \
429 #define wait_event_freezable_timeout(wq_head, condition, timeout) \
431 long __ret = timeout; \
434 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
504 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \
506 TASK_INTERRUPTIBLE, 0, timeout, \
510 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
513 * @timeout: timeout, in jiffies
523 * 0 if the @condition evaluated to %false after the @timeout elapsed,
524 * 1 if the @condition evaluated to %true after the @timeout elapsed,
526 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
529 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \
531 long __ret = timeout; \
535 condition, timeout); \
539 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \
546 if ((timeout) != KTIME_MAX) { \
547 hrtimer_set_expires_range_ns(&__t.timer, timeout, \
565 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
568 * @timeout: timeout, as a ktime_t
577 * The function returns 0 if @condition became true, or -ETIME if the timeout
580 #define wait_event_hrtimeout(wq_head, condition, timeout) \
585 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
591 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
594 * @timeout: timeout, as a ktime_t
604 * interrupted by a signal, or -ETIME if the timeout elapsed.
606 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \
611 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
700 #define __wait_event_idle_timeout(wq_head, condition, timeout) \
702 TASK_IDLE, 0, timeout, \
706 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
709 * @timeout: timeout, in jiffies
719 * 0 if the @condition evaluated to %false after the @timeout elapsed,
720 * 1 if the @condition evaluated to %true after the @timeout elapsed,
722 * to %true before the @timeout elapsed.
724 #define wait_event_idle_timeout(wq_head, condition, timeout) \
726 long __ret = timeout; \
729 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
733 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \
735 TASK_IDLE, 1, timeout, \
739 * wait_event_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
742 * @timeout: timeout, in jiffies
756 * 0 if the @condition evaluated to %false after the @timeout elapsed,
757 * 1 if the @condition evaluated to %true after the @timeout elapsed,
759 * to %true before the @timeout elapsed.
761 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \
763 long __ret = timeout; \
766 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
962 #define __wait_event_killable_timeout(wq_head, condition, timeout) \
964 TASK_KILLABLE, 0, timeout, \
968 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
971 * @timeout: timeout, in jiffies
981 * 0 if the @condition evaluated to %false after the @timeout elapsed,
982 * 1 if the @condition evaluated to %true after the @timeout elapsed,
984 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
989 #define wait_event_killable_timeout(wq_head, condition, timeout) \
991 long __ret = timeout; \
995 condition, timeout); \
1137 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \
1139 state, 0, timeout, \
1146 * true or a timeout elapses. The condition is checked under
1152 * @timeout: timeout, in jiffies
1164 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1166 * if the condition evaluated to true before the timeout elapsed.
1169 timeout) \
1171 long __ret = timeout; \
1174 wq_head, condition, lock, timeout, \
1179 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \
1181 long __ret = timeout; \
1184 wq_head, condition, lock, timeout, \
1196 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);