Lines Matching full:timeout
296 * on purpose; we use long where we can return timeout values and int
391 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
393 TASK_UNINTERRUPTIBLE, 0, timeout, \
397 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
400 * @timeout: timeout, in jiffies
410 * 0 if the @condition evaluated to %false after the @timeout elapsed,
411 * 1 if the @condition evaluated to %true after the @timeout elapsed,
413 * to %true before the @timeout elapsed.
415 #define wait_event_timeout(wq_head, condition, timeout) \ argument
417 long __ret = timeout; \
420 __ret = __wait_event_timeout(wq_head, condition, timeout); \
424 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
426 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \
433 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
435 long __ret = timeout; \
438 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
508 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
510 TASK_INTERRUPTIBLE, 0, timeout, \
514 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
517 * @timeout: timeout, in jiffies
527 * 0 if the @condition evaluated to %false after the @timeout elapsed,
528 * 1 if the @condition evaluated to %true after the @timeout elapsed,
530 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
533 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
535 long __ret = timeout; \
539 condition, timeout); \
543 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
550 if ((timeout) != KTIME_MAX) { \
551 hrtimer_set_expires_range_ns(&__t.timer, timeout, \
569 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
572 * @timeout: timeout, as a ktime_t
581 * The function returns 0 if @condition became true, or -ETIME if the timeout
584 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
589 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
595 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
598 * @timeout: timeout, as a ktime_t
608 * interrupted by a signal, or -ETIME if the timeout elapsed.
610 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
615 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
704 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
706 TASK_IDLE, 0, timeout, \
710 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
713 * @timeout: timeout, in jiffies
723 * 0 if the @condition evaluated to %false after the @timeout elapsed,
724 * 1 if the @condition evaluated to %true after the @timeout elapsed,
726 * to %true before the @timeout elapsed.
728 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
730 long __ret = timeout; \
733 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
737 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
739 TASK_IDLE, 1, timeout, \
743 …ent_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
746 * @timeout: timeout, in jiffies
760 * 0 if the @condition evaluated to %false after the @timeout elapsed,
761 * 1 if the @condition evaluated to %true after the @timeout elapsed,
763 * to %true before the @timeout elapsed.
765 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
767 long __ret = timeout; \
770 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
966 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
968 TASK_KILLABLE, 0, timeout, \
972 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
975 * @timeout: timeout, in jiffies
985 * 0 if the @condition evaluated to %false after the @timeout elapsed,
986 * 1 if the @condition evaluated to %true after the @timeout elapsed,
988 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
993 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
995 long __ret = timeout; \
999 condition, timeout); \
1141 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1143 state, 0, timeout, \
1150 * true or a timeout elapses. The condition is checked under
1156 * @timeout: timeout, in jiffies
1168 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1170 * if the condition evaluated to true before the timeout elapsed.
1173 timeout) \
1175 long __ret = timeout; \
1178 wq_head, condition, lock, timeout, \
1183 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1185 long __ret = timeout; \
1188 wq_head, condition, lock, timeout, \
1200 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);