Lines Matching full:timeout
72 long (*action)(long), long timeout, int state) in do_wait_for_common() argument
79 timeout = -ERESTARTSYS; in do_wait_for_common()
85 timeout = action(timeout); in do_wait_for_common()
87 } while (!x->done && timeout); in do_wait_for_common()
90 return timeout; in do_wait_for_common()
94 return timeout ?: 1; in do_wait_for_common()
99 long (*action)(long), long timeout, int state) in __wait_for_common() argument
106 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common()
111 return timeout; in __wait_for_common()
115 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument
117 return __wait_for_common(x, schedule_timeout, timeout, state); in wait_for_common()
121 wait_for_common_io(struct completion *x, long timeout, int state) in wait_for_common_io() argument
123 return __wait_for_common(x, io_schedule_timeout, timeout, state); in wait_for_common_io()
131 * interruptible and there is no timeout.
133 * See also similar routines (i.e. wait_for_completion_timeout()) with timeout
143 * wait_for_completion_timeout: - waits for completion of a task (w/timeout)
145 * @timeout: timeout value in jiffies
148 * specified timeout to expire. The timeout is in jiffies. It is not
152 * till timeout) if completed.
155 wait_for_completion_timeout(struct completion *x, unsigned long timeout) in wait_for_completion_timeout() argument
157 return wait_for_common(x, timeout, TASK_UNINTERRUPTIBLE); in wait_for_completion_timeout()
166 * interruptible and there is no timeout. The caller is accounted as waiting
176 * wait_for_completion_io_timeout: - waits for completion of a task (w/timeout)
178 * @timeout: timeout value in jiffies
181 * specified timeout to expire. The timeout is in jiffies. It is not
186 * till timeout) if completed.
189 wait_for_completion_io_timeout(struct completion *x, unsigned long timeout) in wait_for_completion_io_timeout() argument
191 return wait_for_common_io(x, timeout, TASK_UNINTERRUPTIBLE); in wait_for_completion_io_timeout()
216 * @timeout: timeout value in jiffies
219 * specified timeout to expire. It is interruptible. The timeout is in jiffies.
222 * or number of jiffies left till timeout) if completed.
226 unsigned long timeout) in wait_for_completion_interruptible_timeout() argument
228 return wait_for_common(x, timeout, TASK_INTERRUPTIBLE); in wait_for_completion_interruptible_timeout()
253 * @timeout: timeout value in jiffies
256 * signaled or for a specified timeout to expire. It can be
257 * interrupted by a kill signal. The timeout is in jiffies.
260 * or number of jiffies left till timeout) if completed.
264 unsigned long timeout) in wait_for_completion_killable_timeout() argument
266 return wait_for_common(x, timeout, TASK_KILLABLE); in wait_for_completion_killable_timeout()