Lines Matching refs:timeout
164 int do_select(int n, fd_set_bits *fds, long *timeout) in do_select() argument
168 long __timeout = *timeout; in do_select()
233 *timeout = __timeout; in do_select()
263 long timeout; in sys_select() local
266 timeout = MAX_SCHEDULE_TIMEOUT; in sys_select()
280 timeout = ROUND_UP(usec, 1000000/HZ); in sys_select()
281 timeout += sec * (unsigned long) HZ; in sys_select()
319 ret = do_select(n, &fds, &timeout); in sys_select()
323 if (timeout) { in sys_select()
324 sec = timeout / HZ; in sys_select()
325 usec = timeout % HZ; in sys_select()
386 struct pollfd *fds[], poll_table *wait, long timeout) in do_poll() argument
401 if (count || !timeout || signal_pending(current)) in do_poll()
406 timeout = schedule_timeout(timeout); in do_poll()
412 asmlinkage long sys_poll(struct pollfd * ufds, unsigned int nfds, long timeout) in sys_poll() argument
423 if (timeout) { in sys_poll()
425 if ((unsigned long) timeout < MAX_SCHEDULE_TIMEOUT / HZ) in sys_poll()
426 timeout = (unsigned long)(timeout*HZ+999)/1000+1; in sys_poll()
428 timeout = MAX_SCHEDULE_TIMEOUT; in sys_poll()
433 if (!timeout) in sys_poll()
471 fdcount = do_poll(nfds, nchunks, nleft, fds, wait, timeout); in sys_poll()