Lines Matching full:timeout

120  * Compute timeout until next timer, running
130 int timeout = timer->expires - now; in check_timers() local
132 if (timeout <= 0) { in check_timers()
135 /* Make sure the timeout is sane */ in check_timers()
136 if (timeout < timer->delta + 250) in check_timers()
137 return timeout; in check_timers()
160 * has to handle this also (that's why the select() has a timeout.
169 int timeout; in WaitForSomething() local
188 crashed connections and the screen saver timeout */ in WaitForSomething()
195 timeout = check_timers(); in WaitForSomething()
199 timeout = 0; in WaitForSomething()
201 BlockHandler(&timeout); in WaitForSomething()
208 i = ospoll_wait(server_poll, timeout); in WaitForSomething()
211 if (i <= 0) { /* An error or timeout occurred */ in WaitForSomething()
239 int timeout = *timeoutp; in AdjustWaitForDelay() local
241 if (timeout < 0 || newdelay < timeout) in AdjustWaitForDelay()
404 if (time > 0 && DPMSPowerLevel < mode && timeout >= time)\
408 if (time > 0 && (time - timeout) > 0)\
409 return time - timeout;
412 NextDPMSTimeout(INT32 timeout) in NextDPMSTimeout() argument
437 INT32 timeout = now - LastEventTime(XIAllDevices).milliseconds; in ScreenSaverTimeoutExpire() local
443 * have the same timeout as a higher one. in ScreenSaverTimeoutExpire()
450 nextTimeout = NextDPMSTimeout(timeout); in ScreenSaverTimeoutExpire()
464 if (timeout < ScreenSaverTime) { in ScreenSaverTimeoutExpire()
466 min(ScreenSaverTime - timeout, nextTimeout) : in ScreenSaverTimeoutExpire()
467 ScreenSaverTime - timeout; in ScreenSaverTimeoutExpire()
495 CARD32 timeout = 0; local
500 * A higher DPMS level has a timeout that's either less
504 timeout = DPMSStandbyTime;
507 timeout = DPMSSuspendTime;
510 timeout = DPMSOffTime;
515 timeout = timeout > 0 ? min(ScreenSaverTime, timeout) : ScreenSaverTime;
519 if (timeout && !screenSaverSuspended) {
521 if (timeout) {
523 ScreenSaverTimer = TimerSet(ScreenSaverTimer, 0, timeout,