Lines Matching refs:timeout
62 long (*action)(long), long timeout, int state)
70 timeout = -ERESTARTSYS;
75 timeout = action(timeout);
77 } while (!x->done && timeout);
80 return timeout;
83 return timeout ?: 1;
88 long (*action)(long), long timeout, int state)
93 timeout = do_wait_for_common(x, action, timeout, state);
95 return timeout;
99 wait_for_common(struct completion *x, long timeout, int state)
101 return __wait_for_common(x, schedule_timeout, timeout, state);
105 wait_for_common_io(struct completion *x, long timeout, int state)
107 return __wait_for_common(x, io_schedule_timeout, timeout, state);
115 * interruptible and there is no timeout.
117 * See also similar routines (i.e. wait_for_completion_timeout()) with timeout
127 * wait_for_completion_timeout: - waits for completion of a task (w/timeout)
129 * @timeout: timeout value in jiffies
132 * specified timeout to expire. The timeout is in jiffies. It is not
136 * till timeout) if completed.
139 wait_for_completion_timeout(struct completion *x, unsigned long timeout)
141 return wait_for_common(x, timeout, TASK_UNINTERRUPTIBLE);
150 * interruptible and there is no timeout. The caller is accounted as waiting
160 * wait_for_completion_io_timeout: - waits for completion of a task (w/timeout)
162 * @timeout: timeout value in jiffies
165 * specified timeout to expire. The timeout is in jiffies. It is not
169 * till timeout) if completed.
172 wait_for_completion_io_timeout(struct completion *x, unsigned long timeout)
174 return wait_for_common_io(x, timeout, TASK_UNINTERRUPTIBLE);
199 * @timeout: timeout value in jiffies
202 * specified timeout to expire. It is interruptible. The timeout is in jiffies.
205 * or number of jiffies left till timeout) if completed.
209 unsigned long timeout)
211 return wait_for_common(x, timeout, TASK_INTERRUPTIBLE);
236 * @timeout: timeout value in jiffies
239 * signaled or for a specified timeout to expire. It can be
240 * interrupted by a kill signal. The timeout is in jiffies.
243 * or number of jiffies left till timeout) if completed.
247 unsigned long timeout)
249 return wait_for_common(x, timeout, TASK_KILLABLE);