Lines Matching +full:pre +full:- +full:set
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2004 Poul-Henning Kamp
55 #define WDIOC_SETTIMEOUT_14 _IOW('W', 43, int) /* set/reset the timer */
58 #define WDIOC_GETPRETIMEOUT_14 _IOR('W', 46, int) /* get the pre-timeout */
59 #define WDIOC_SETPRETIMEOUT_14 _IOW('W', 47, int) /* set the pre-timeout */
77 static volatile u_int wd_last_u; /* last timeout value set by kern_do_pat */
78 static u_int wd_last_u_sysctl; /* last timeout value set by kern_do_pat */
143 /* legacy uses power-of-2-nanoseconds time. */ in wdog_kern_pat_sbt()
238 *remainp = ts.tv_sec - wd_lastpat; in wd_get_time_left()
250 snprintf(kdb_why, sizeof(kdb_why), "watchdog %s-timeout", type); in wd_timeout_cb()
256 log(LOG_EMERG, "watchdog %s-timeout, WD_SOFT_LOG\n", type); in wd_timeout_cb()
258 printf("watchdog %s-timeout, WD_SOFT_PRINTF\n", type); in wd_timeout_cb()
260 panic("watchdog %s-timeout, WD_SOFT_PANIC set", type); in wd_timeout_cb()
266 * if 0, we disable the pre-timeout.
267 * otherwise we set the pre-timeout provided it's not greater than the
277 /* do not permit a pre-timeout >= than the timeout. */ in wd_set_pretimeout()
281 * so as to disable the pre-watchdog in wd_set_pretimeout()
289 /* disable the pre-timeout */ in wd_set_pretimeout()
296 timeout_left = utime - newtimeout; in wd_set_pretimeout()
300 "utime: %d -> utime_ticks: %d, " in wd_set_pretimeout()
302 "timeout_ticks: %d -> sec: %d\n", in wd_set_pretimeout()
311 timeout_left, 0, wd_timeout_cb, "pre", 0); in wd_set_pretimeout()
413 * Return the last timeout set, this is NOT the seconds from NOW until timeout,