Lines Matching full:timeout
296 * on purpose; we use long where we can return timeout values and int
388 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
390 TASK_UNINTERRUPTIBLE, 0, timeout, \
394 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
397 * @timeout: timeout, in jiffies
407 * 0 if the @condition evaluated to %false after the @timeout elapsed,
408 * 1 if the @condition evaluated to %true after the @timeout elapsed,
410 * to %true before the @timeout elapsed.
412 #define wait_event_timeout(wq_head, condition, timeout) \ argument
414 long __ret = timeout; \
417 __ret = __wait_event_timeout(wq_head, condition, timeout); \
421 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
423 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \
430 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
432 long __ret = timeout; \
435 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
505 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
507 TASK_INTERRUPTIBLE, 0, timeout, \
511 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
514 * @timeout: timeout, in jiffies
524 * 0 if the @condition evaluated to %false after the @timeout elapsed,
525 * 1 if the @condition evaluated to %true after the @timeout elapsed,
527 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
530 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
532 long __ret = timeout; \
536 condition, timeout); \
540 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
547 if ((timeout) != KTIME_MAX) { \
548 hrtimer_set_expires_range_ns(&__t.timer, timeout, \
566 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
569 * @timeout: timeout, as a ktime_t
578 * The function returns 0 if @condition became true, or -ETIME if the timeout
581 #define wait_event_hrtimeout(wq_head, condition, timeout) \ argument
586 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
592 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
595 * @timeout: timeout, as a ktime_t
605 * interrupted by a signal, or -ETIME if the timeout elapsed.
607 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \ argument
612 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
701 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
703 TASK_IDLE, 0, timeout, \
707 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
710 * @timeout: timeout, in jiffies
720 * 0 if the @condition evaluated to %false after the @timeout elapsed,
721 * 1 if the @condition evaluated to %true after the @timeout elapsed,
723 * to %true before the @timeout elapsed.
725 #define wait_event_idle_timeout(wq_head, condition, timeout) \ argument
727 long __ret = timeout; \
730 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
734 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
736 TASK_IDLE, 1, timeout, \
740 …ent_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
743 * @timeout: timeout, in jiffies
757 * 0 if the @condition evaluated to %false after the @timeout elapsed,
758 * 1 if the @condition evaluated to %true after the @timeout elapsed,
760 * to %true before the @timeout elapsed.
762 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \ argument
764 long __ret = timeout; \
767 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
963 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
965 TASK_KILLABLE, 0, timeout, \
969 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
972 * @timeout: timeout, in jiffies
982 * 0 if the @condition evaluated to %false after the @timeout elapsed,
983 * 1 if the @condition evaluated to %true after the @timeout elapsed,
985 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
990 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
992 long __ret = timeout; \
996 condition, timeout); \
1138 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1140 state, 0, timeout, \
1147 * true or a timeout elapses. The condition is checked under
1153 * @timeout: timeout, in jiffies
1165 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1167 * if the condition evaluated to true before the timeout elapsed.
1170 timeout) \
1172 long __ret = timeout; \
1175 wq_head, condition, lock, timeout, \
1180 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1182 long __ret = timeout; \
1185 wq_head, condition, lock, timeout, \
1197 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);