/Linux-v4.19/drivers/watchdog/ |
D | kempld_wdt.c | 84 unsigned int pretimeout; member 100 static unsigned int pretimeout = DEFAULT_PRETIMEOUT; variable 101 module_param(pretimeout, uint, 0); 102 MODULE_PARM_DESC(pretimeout, 218 if (pretimeout_stage->mask && wdt_data->pretimeout > 0) in kempld_wdt_set_timeout() 219 timeout = wdt_data->pretimeout; in kempld_wdt_set_timeout() 235 unsigned int pretimeout) in kempld_wdt_set_pretimeout() argument 247 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout() 250 if (pretimeout > 0) in kempld_wdt_set_pretimeout() 258 wdd->timeout - pretimeout); in kempld_wdt_set_pretimeout() [all …]
|
D | hpwdt.c | 39 static bool pretimeout = IS_ENABLED(CONFIG_HPWDT_NMI_DECODING); 59 int control = 0x81 | (pretimeout ? 0x4 : 0); in hpwdt_start() 107 if (val <= wdd->pretimeout) { in hpwdt_settimeout() 109 wdd->pretimeout = 0; in hpwdt_settimeout() 110 pretimeout = 0; in hpwdt_settimeout() 134 wdd->pretimeout = val; in hpwdt_set_pretimeout() 135 pretimeout = !!val; in hpwdt_set_pretimeout() 165 if (ilo5 && !pretimeout) in hpwdt_pretimeout() 209 .pretimeout = PRETIMEOUT_SEC, 372 module_param(pretimeout, bool, 0); [all …]
|
D | sprd_wdt.c | 113 u32 pretimeout) in sprd_wdt_load_value() argument 117 u32 prtmr_step = pretimeout * SPRD_WDT_CNT_STEP; in sprd_wdt_load_value() 188 ret = sprd_wdt_load_value(wdt, wdd->timeout, wdd->pretimeout); in sprd_wdt_start() 226 return sprd_wdt_load_value(wdt, timeout, wdd->pretimeout); in sprd_wdt_set_timeout() 237 wdd->pretimeout = new_pretimeout; in sprd_wdt_set_pretimeout()
|
D | softdog.c | 93 if (w->pretimeout) in softdog_ping() 95 ktime_set(w->timeout - w->pretimeout, 0), in softdog_ping()
|
D | pretimeout_panic.c | 30 .pretimeout = pretimeout_panic,
|
D | pretimeout_noop.c | 30 .pretimeout = pretimeout_noop,
|
D | watchdog_pretimeout.h | 11 void (*pretimeout)(struct watchdog_device *wdd); member
|
D | watchdog_dev.c | 373 if (wdd->pretimeout >= wdd->timeout) in watchdog_set_timeout() 374 wdd->pretimeout = 0; in watchdog_set_timeout() 402 wdd->pretimeout = timeout; in watchdog_set_pretimeout() 496 return sprintf(buf, "%u\n", wdd->pretimeout); in pretimeout_show() 498 static DEVICE_ATTR_RO(pretimeout); 766 err = put_user(wdd->pretimeout, p); in watchdog_ioctl()
|
D | intel-mid_wdt.c | 50 u32 pretimeout; in wdt_start() member
|
D | watchdog_pretimeout.c | 114 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout()
|
D | Kconfig | 86 bool "Software watchdog pretimeout governor support" 89 Enable this if you want to use pretimeout governors with the software 1969 bool "Enable watchdog pretimeout governors" 1971 The option allows to select watchdog pretimeout governors. 1979 This option selects a default watchdog pretimeout governor. 1981 to report a pretimeout event. 1987 Use noop watchdog pretimeout governor by default. If noop 1995 Use panic watchdog pretimeout governor by default, if 1996 a watchdog pretimeout event happens, consider that 2002 tristate "Noop watchdog pretimeout governor" [all …]
|
D | imx2_wdt.c | 195 wdog->pretimeout = new_pretimeout; in imx2_wdt_set_pretimeout()
|
/Linux-v4.19/drivers/char/ipmi/ |
D | ipmi_watchdog.c | 135 static int pretimeout; variable 277 module_param(pretimeout, timeout, 0644); 278 MODULE_PARM_DESC(pretimeout, "Pretimeout value in seconds."); 383 if ((pretimeout > 0) && (ipmi_watchdog_state != WDOG_TIMEOUT_NONE)) { in __ipmi_set_timeout() 385 data[2] = pretimeout; in __ipmi_set_timeout() 692 pretimeout = val; in ipmi_ioctl() 696 i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); in ipmi_ioctl() 963 pretimeout = 0; in ipmi_wdog_panic_handler() 1010 int old_pretimeout = pretimeout; in ipmi_register_watchdog() 1020 pretimeout = 99; in ipmi_register_watchdog() [all …]
|
/Linux-v4.19/Documentation/watchdog/ |
D | watchdog-api.txt | 115 pretimeout = 10; 116 ioctl(fd, WDIOC_SETPRETIMEOUT, &pretimeout); 118 Note that the pretimeout is the number of seconds before the time 120 the pretimeout. So, for instance, if you set the timeout to 60 seconds 121 and the pretimeout to 10 seconds, the pretimeout will go off in 50 122 seconds. Setting a pretimeout to zero disables it. 124 There is also a get function for getting the pretimeout: 127 printf("The pretimeout was is %d seconds\n", timeout); 129 Not all watchdog drivers will support a pretimeout.
|
D | watchdog-kernel-api.txt | 54 unsigned int pretimeout; 79 * gov: a pointer to the assigned watchdog device pretimeout governor or NULL. 83 * pretimeout: the watchdog timer's pretimeout value (in seconds). 196 If the pretimeout feature is used (WDIOF_PRETIMEOUT), then set_timeout must 197 also take care of checking if pretimeout is still valid and set up the timer 200 * set_pretimeout: this routine checks and changes the pretimeout value of 201 the watchdog. It is optional because not all watchdogs support pretimeout 205 the watchdog". A value of 0 disables pretimeout notification. 209 watchdog_device.pretimeout, this callback can be omitted. That means if 211 infrastructure updates the pretimeout value of the watchdog_device internally [all …]
|
/Linux-v4.19/include/linux/ |
D | watchdog.h | 106 unsigned int pretimeout; member
|
/Linux-v4.19/Documentation/ |
D | IPMI.txt | 606 modprobe ipmi_watchdog timeout=<t> pretimeout=<t> action=<action type> 613 The timeout is the number of seconds to the action, and the pretimeout 615 occur (if pretimeout is zero, then pretimeout will not be enabled). Note 616 that the pretimeout is the time before the final timeout. So if the 617 timeout is 50 seconds and the pretimeout is 10 seconds, then the pretimeout 629 the driver is informed of the pretimeout. 631 The preop may be set to "preop_none" for no operation on a pretimeout, 633 to provide data to read from the watchdog device when the pretimeout 638 on the device when the pretimeout occurs. Select and fasync work on 651 ipmi_watchdog.timeout=<t> ipmi_watchdog.pretimeout=<t>
|