Lines Matching refs:timeout
130 int timeout = timer->expires - now; in check_timers() local
132 if (timeout <= 0) { in check_timers()
136 if (timeout < timer->delta + 250) in check_timers()
137 return timeout; in check_timers()
169 int timeout; in WaitForSomething() local
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()
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
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
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,