Lines Matching refs:timeout
346 int watchdog_setup(usec_t timeout) { in watchdog_setup() argument
354 if (timeout == 0) { in watchdog_setup()
360 if (watchdog_fd >= 0 && (timeout == watchdog_timeout || timeout == USEC_INFINITY)) in watchdog_setup()
366 watchdog_timeout = timeout; in watchdog_setup()
378 int watchdog_setup_pretimeout(usec_t timeout) { in watchdog_setup_pretimeout() argument
380 if ((watchdog_fd >= 0 && timeout == watchdog_pretimeout) || timeout == USEC_INFINITY) in watchdog_setup_pretimeout()
386 watchdog_pretimeout = timeout; in watchdog_setup_pretimeout()
408 usec_t timeout = calc_timeout(); in watchdog_runtime_wait() local
409 if (!timestamp_is_set(timeout)) in watchdog_runtime_wait()
417 return usec_sub_unsigned(watchdog_last_ping + (timeout / 2), ntime); in watchdog_runtime_wait()
420 return timeout / 2; in watchdog_runtime_wait()
424 usec_t ntime, timeout; in watchdog_ping() local
434 timeout = calc_timeout(); in watchdog_ping()
440 if ((ntime - watchdog_last_ping) < (timeout / 4)) in watchdog_ping()