Lines Matching defs:timeout

298  * on purpose; we use long where we can return timeout values and int
393 #define __wait_event_timeout(wq_head, condition, timeout) \
395 TASK_UNINTERRUPTIBLE, 0, timeout, \
399 * wait_event_timeout - sleep until a condition gets true or a timeout elapses
402 * @timeout: timeout, in jiffies
412 * 0 if the @condition evaluated to %false after the @timeout elapsed,
413 * 1 if the @condition evaluated to %true after the @timeout elapsed,
415 * to %true before the @timeout elapsed.
417 #define wait_event_timeout(wq_head, condition, timeout) \
419 long __ret = timeout; \
422 __ret = __wait_event_timeout(wq_head, condition, timeout); \
426 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \
428 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \
435 #define wait_event_freezable_timeout(wq_head, condition, timeout) \
437 long __ret = timeout; \
440 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
510 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \
512 TASK_INTERRUPTIBLE, 0, timeout, \
516 * wait_event_interruptible_timeout - sleep until a condition gets true or a timeout elapses
519 * @timeout: timeout, in jiffies
529 * 0 if the @condition evaluated to %false after the @timeout elapsed,
530 * 1 if the @condition evaluated to %true after the @timeout elapsed,
532 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
535 #define wait_event_interruptible_timeout(wq_head, condition, timeout) \
537 long __ret = timeout; \
541 condition, timeout); \
545 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \
552 if ((timeout) != KTIME_MAX) { \
553 hrtimer_set_expires_range_ns(&__t.timer, timeout, \
571 * wait_event_hrtimeout - sleep until a condition gets true or a timeout elapses
574 * @timeout: timeout, as a ktime_t
583 * The function returns 0 if @condition became true, or -ETIME if the timeout
586 #define wait_event_hrtimeout(wq_head, condition, timeout) \
591 __ret = __wait_event_hrtimeout(wq_head, condition, timeout, \
597 * wait_event_interruptible_hrtimeout - sleep until a condition gets true or a timeout elapses
600 * @timeout: timeout, as a ktime_t
610 * interrupted by a signal, or -ETIME if the timeout elapsed.
612 #define wait_event_interruptible_hrtimeout(wq, condition, timeout) \
617 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
706 #define __wait_event_idle_timeout(wq_head, condition, timeout) \
708 TASK_IDLE, 0, timeout, \
712 * wait_event_idle_timeout - sleep without load until a condition becomes true or a timeout elapses
715 * @timeout: timeout, in jiffies
725 * 0 if the @condition evaluated to %false after the @timeout elapsed,
726 * 1 if the @condition evaluated to %true after the @timeout elapsed,
728 * to %true before the @timeout elapsed.
730 #define wait_event_idle_timeout(wq_head, condition, timeout) \
732 long __ret = timeout; \
735 __ret = __wait_event_idle_timeout(wq_head, condition, timeout); \
739 #define __wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \
741 TASK_IDLE, 1, timeout, \
745 * wait_event_idle_exclusive_timeout - sleep without load until a condition becomes true or a timeout elapses
748 * @timeout: timeout, in jiffies
762 * 0 if the @condition evaluated to %false after the @timeout elapsed,
763 * 1 if the @condition evaluated to %true after the @timeout elapsed,
765 * to %true before the @timeout elapsed.
767 #define wait_event_idle_exclusive_timeout(wq_head, condition, timeout) \
769 long __ret = timeout; \
772 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
995 #define __wait_event_killable_timeout(wq_head, condition, timeout) \
997 TASK_KILLABLE, 0, timeout, \
1001 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
1004 * @timeout: timeout, in jiffies
1014 * 0 if the @condition evaluated to %false after the @timeout elapsed,
1015 * 1 if the @condition evaluated to %true after the @timeout elapsed,
1017 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
1022 #define wait_event_killable_timeout(wq_head, condition, timeout) \
1024 long __ret = timeout; \
1028 condition, timeout); \
1170 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \
1172 state, 0, timeout, \
1179 * true or a timeout elapses. The condition is checked under
1185 * @timeout: timeout, in jiffies
1197 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1199 * if the condition evaluated to true before the timeout elapsed.
1202 timeout) \
1204 long __ret = timeout; \
1207 wq_head, condition, lock, timeout, \
1212 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \
1214 long __ret = timeout; \
1217 wq_head, condition, lock, timeout, \
1229 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);