Lines Matching defs:timeout
46 const char *wmesg, int timeout, int state)
56 if (timeout != 0)
57 sleepq_set_timeout(wchan, timeout);
61 if (timeout == 0)
66 if (timeout == 0) {
257 linux_wait_event_common(wait_queue_head_t *wqh, wait_queue_t *wq, int timeout,
266 /* range check timeout */
267 if (timeout < 1)
268 timeout = 1;
269 else if (timeout == MAX_SCHEDULE_TIMEOUT)
270 timeout = 0;
281 ret = linux_add_to_sleepqueue(task, task, "wevent", timeout,
295 linux_schedule_timeout(int timeout)
304 /* range check timeout */
305 if (timeout < 1)
306 timeout = 1;
307 else if (timeout == MAX_SCHEDULE_TIMEOUT)
308 timeout = 0;
310 remainder = ticks + timeout;
315 ret = linux_add_to_sleepqueue(task, task, "sched", timeout,
323 if (timeout == 0)
334 else if (remainder > timeout)
335 remainder = timeout;
362 int timeout)
368 /* range check timeout */
369 if (timeout < 1)
370 timeout = 1;
371 else if (timeout == MAX_SCHEDULE_TIMEOUT)
372 timeout = 0;
384 ret = linux_add_to_sleepqueue(wchan, task, "wbit", timeout,