Lines Matching refs:watchdog_timeout

21 static usec_t watchdog_timeout; /* 0 → close device and USEC_INFINITY → don't change timeout */  variable
130 watchdog_timeout = sec * USEC_PER_SEC; in watchdog_get_timeout()
139 assert(timestamp_is_set(watchdog_timeout)); in watchdog_set_timeout()
141 sec = saturated_usec_to_sec(watchdog_timeout); in watchdog_set_timeout()
147 watchdog_timeout = sec * USEC_PER_SEC; in watchdog_set_timeout()
210 if (watchdog_timeout == USEC_INFINITY || watchdog_pretimeout == USEC_INFINITY) in update_pretimeout()
237 t_sec = saturated_usec_to_sec(watchdog_timeout); in update_pretimeout()
260 assert(watchdog_timeout > 0); in update_timeout()
265 if (watchdog_timeout != USEC_INFINITY) { in update_timeout()
270 FORMAT_TIMESPAN(watchdog_timeout, 0)); in update_timeout()
273 watchdog_timeout = USEC_INFINITY; in update_timeout()
277 if (watchdog_timeout == USEC_INFINITY) { in update_timeout()
293 log_info("Watchdog running with a timeout of %s.", FORMAT_TIMESPAN(watchdog_timeout, 0)); in update_timeout()
360 if (watchdog_fd >= 0 && (timeout == watchdog_timeout || timeout == USEC_INFINITY)) in watchdog_setup()
365 previous_timeout = watchdog_timeout; in watchdog_setup()
366 watchdog_timeout = timeout; in watchdog_setup()
373 watchdog_timeout = previous_timeout; in watchdog_setup()
401 …dog_supports_pretimeout && timestamp_is_set(watchdog_pretimeout) && watchdog_timeout >= watchdog_p… in calc_timeout()
402 return watchdog_timeout - watchdog_pretimeout; in calc_timeout()
404 return watchdog_timeout; in calc_timeout()
426 if (watchdog_timeout == 0) in watchdog_ping()
451 watchdog_timeout = 0; in watchdog_close()