Lines Matching full:timeout

298  * on purpose; we use long where we can return timeout values and int
393 #define __wait_event_timeout(wq_head, condition, timeout) \ argument
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) \ argument
419 long __ret = timeout; \
422 __ret = __wait_event_timeout(wq_head, condition, timeout); \
426 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
428 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \
435 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument
437 long __ret = timeout; \
440 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \
510 #define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ argument
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) \ argument
537 long __ret = timeout; \
541 condition, timeout); \
545 #define __wait_event_hrtimeout(wq_head, condition, timeout, state) \ argument
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) \ argument
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) \ argument
617 __ret = __wait_event_hrtimeout(wq, condition, timeout, \
706 #define __wait_event_idle_timeout(wq_head, condition, timeout) \ argument
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) \ argument
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) \ argument
741 TASK_IDLE, 1, timeout, \
745 …ent_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) \ argument
769 long __ret = timeout; \
772 __ret = __wait_event_idle_exclusive_timeout(wq_head, condition, timeout);\
980 #define __wait_event_killable_timeout(wq_head, condition, timeout) \ argument
982 TASK_KILLABLE, 0, timeout, \
986 * wait_event_killable_timeout - sleep until a condition gets true or a timeout elapses
989 * @timeout: timeout, in jiffies
999 * 0 if the @condition evaluated to %false after the @timeout elapsed,
1000 * 1 if the @condition evaluated to %true after the @timeout elapsed,
1002 * to %true before the @timeout elapsed, or -%ERESTARTSYS if it was
1007 #define wait_event_killable_timeout(wq_head, condition, timeout) \ argument
1009 long __ret = timeout; \
1013 condition, timeout); \
1155 #define __wait_event_lock_irq_timeout(wq_head, condition, lock, timeout, state) \ argument
1157 state, 0, timeout, \
1164 * true or a timeout elapses. The condition is checked under
1170 * @timeout: timeout, in jiffies
1182 * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it
1184 * if the condition evaluated to true before the timeout elapsed.
1187 timeout) \
1189 long __ret = timeout; \
1192 wq_head, condition, lock, timeout, \
1197 #define wait_event_lock_irq_timeout(wq_head, condition, lock, timeout) \ argument
1199 long __ret = timeout; \
1202 wq_head, condition, lock, timeout, \
1214 long wait_woken(struct wait_queue_entry *wq_entry, unsigned mode, long timeout);