Lines Matching refs:timeout
43 const char *wmesg, int timeout, int state)
53 if (timeout != 0)
54 sleepq_set_timeout(wchan, timeout);
58 if (timeout == 0)
63 if (timeout == 0) {
252 linux_wait_event_common(wait_queue_head_t *wqh, wait_queue_t *wq, int timeout,
261 /* range check timeout */
262 if (timeout < 1)
263 timeout = 1;
264 else if (timeout == MAX_SCHEDULE_TIMEOUT)
265 timeout = 0;
271 ret = linux_add_to_sleepqueue(task, task, "wevent", timeout,
284 linux_schedule_timeout(int timeout)
293 /* range check timeout */
294 if (timeout < 1)
295 timeout = 1;
296 else if (timeout == MAX_SCHEDULE_TIMEOUT)
297 timeout = 0;
299 remainder = ticks + timeout;
304 ret = linux_add_to_sleepqueue(task, task, "sched", timeout,
312 if (timeout == 0)
323 else if (remainder > timeout)
324 remainder = timeout;
347 int timeout)
353 /* range check timeout */
354 if (timeout < 1)
355 timeout = 1;
356 else if (timeout == MAX_SCHEDULE_TIMEOUT)
357 timeout = 0;
369 ret = linux_add_to_sleepqueue(wchan, task, "wbit", timeout,