/linux/drivers/watchdog/ |
A D | hpwdt.c | 124 if (val <= wdd->pretimeout) { in hpwdt_settimeout() 126 wdd->pretimeout = 0; in hpwdt_settimeout() 127 pretimeout = false; in hpwdt_settimeout() 151 wdd->pretimeout = val; in hpwdt_set_pretimeout() 152 pretimeout = !!val; in hpwdt_set_pretimeout() 182 if (ilo5 && !pretimeout && !mynmi) in hpwdt_pretimeout() 231 .pretimeout = PRETIMEOUT_SEC, 340 pretimeout = false; in hpwdt_init_one() 346 pretimeout = false; in hpwdt_init_one() 348 hpwdt_dev.pretimeout = pretimeout ? PRETIMEOUT_SEC : 0; in hpwdt_init_one() [all …]
|
A D | kempld_wdt.c | 76 unsigned int pretimeout; member 93 module_param(pretimeout, uint, 0); 94 MODULE_PARM_DESC(pretimeout, 211 timeout = wdt_data->pretimeout; in kempld_wdt_set_timeout() 227 unsigned int pretimeout) in kempld_wdt_set_pretimeout() argument 239 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout() 242 if (pretimeout > 0) in kempld_wdt_set_pretimeout() 250 wdd->timeout - pretimeout); in kempld_wdt_set_pretimeout() 254 wdt_data->pretimeout = pretimeout; in kempld_wdt_set_pretimeout() 273 if (pretimeout) in kempld_wdt_update_timeouts() [all …]
|
A D | mtk_wdt.c | 201 if (wdt_dev->pretimeout) in mtk_wdt_set_timeout() 202 wdt_dev->pretimeout = timeout / 2; in mtk_wdt_set_timeout() 208 reg = WDT_LENGTH_TIMEOUT((timeout - wdt_dev->pretimeout) << 6) in mtk_wdt_set_timeout() 256 if (wdt_dev->pretimeout) in mtk_wdt_start() 275 if (timeout && !wdd->pretimeout) { in mtk_wdt_set_pretimeout() 276 wdd->pretimeout = wdd->timeout / 2; in mtk_wdt_set_pretimeout() 278 } else if (!timeout && wdd->pretimeout) { in mtk_wdt_set_pretimeout() 279 wdd->pretimeout = 0; in mtk_wdt_set_pretimeout() 350 mtk_wdt->wdt_dev.pretimeout = WDT_MAX_TIMEOUT / 2; in mtk_wdt_probe()
|
A D | pm8916_wdt.c | 73 wdev->timeout - wdev->pretimeout); in pm8916_wdt_configure_timers() 79 wdev->pretimeout); in pm8916_wdt_configure_timers() 91 unsigned int pretimeout) in pm8916_wdt_set_pretimeout() argument 93 wdev->pretimeout = pretimeout; in pm8916_wdt_set_pretimeout() 193 wdt->wdev.pretimeout = 0; in pm8916_wdt_probe()
|
A D | qcom-wdt.c | 44 bool pretimeout; member 77 unsigned int bark = wdd->timeout - wdd->pretimeout; in qcom_wdt_start() 113 wdd->pretimeout = timeout; in qcom_wdt_set_pretimeout() 185 .pretimeout = false, 190 .pretimeout = true, 261 if (data->pretimeout && irq > 0) { in qcom_wdt_probe() 268 wdt->wdd.pretimeout = 1; in qcom_wdt_probe()
|
A D | imx_sc_wdt.c | 96 unsigned int pretimeout) in imx_sc_wdt_set_pretimeout() argument 106 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout() 111 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout()
|
A D | keembay_wdt.c | 82 if (wdog->pretimeout) in keembay_wdt_set_pretimeout_reg() 83 th_val = wdog->timeout - wdog->pretimeout; in keembay_wdt_set_pretimeout_reg() 127 wdog->pretimeout = t; in keembay_wdt_set_pretimeout() 235 wdt->wdd.pretimeout = WDT_PRETIMEOUT; in keembay_wdt_probe() 241 keembay_wdt_set_pretimeout(&wdt->wdd, wdt->wdd.pretimeout); in keembay_wdt_probe()
|
A D | sprd_wdt.c | 106 u32 pretimeout) in sprd_wdt_load_value() argument 110 u32 prtmr_step = pretimeout * SPRD_WDT_CNT_STEP; in sprd_wdt_load_value() 184 ret = sprd_wdt_load_value(wdt, wdd->timeout, wdd->pretimeout); in sprd_wdt_start() 222 return sprd_wdt_load_value(wdt, timeout, wdd->pretimeout); in sprd_wdt_set_timeout() 233 wdd->pretimeout = new_pretimeout; in sprd_wdt_set_pretimeout()
|
A D | watchdog_hrtimer_pretimeout.c | 33 !watchdog_pretimeout_invalid(wdd, wdd->pretimeout)) in watchdog_hrtimer_pretimeout_start() 35 ktime_set(wdd->timeout - wdd->pretimeout, 0), in watchdog_hrtimer_pretimeout_start()
|
A D | softdog.c | 141 if (w->pretimeout) in softdog_ping() 143 ktime_set(w->timeout - w->pretimeout, 0), in softdog_ping()
|
A D | watchdog_dev.c | 378 if (wdd->pretimeout >= wdd->timeout) in watchdog_set_timeout() 379 wdd->pretimeout = 0; in watchdog_set_timeout() 407 wdd->pretimeout = timeout; in watchdog_set_pretimeout() 539 return sysfs_emit(buf, "%u\n", wdd->pretimeout); in pretimeout_show() 541 static DEVICE_ATTR_RO(pretimeout); 809 err = put_user(wdd->pretimeout, p); in watchdog_ioctl()
|
A D | pretimeout_panic.c | 25 .pretimeout = pretimeout_panic,
|
A D | pretimeout_noop.c | 25 .pretimeout = pretimeout_noop,
|
A D | watchdog_pretimeout.h | 11 void (*pretimeout)(struct watchdog_device *wdd); member
|
A D | dw_wdt.c | 215 wdd->pretimeout = timeout; in dw_wdt_set_timeout() 217 wdd->pretimeout = 0; in dw_wdt_set_timeout() 331 sec += wdd->pretimeout; in dw_wdt_get_timeleft()
|
A D | Kconfig | 87 bool "Enable watchdog pretimeout governors" 90 The option allows to select watchdog pretimeout governors. 101 tristate "Noop watchdog pretimeout governor" 105 Noop watchdog pretimeout governor, only an informational 109 tristate "Panic watchdog pretimeout governor" 113 Panic watchdog pretimeout governor, on watchdog pretimeout 122 to report a pretimeout event. 128 Use noop watchdog pretimeout governor by default. If noop 136 Use panic watchdog pretimeout governor by default, if 137 a watchdog pretimeout event happens, consider that [all …]
|
A D | intel-mid_wdt.c | 57 u32 pretimeout; in wdt_start() member
|
A D | watchdog_pretimeout.c | 110 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout()
|
/linux/Documentation/watchdog/ |
A D | hpwdt.rst | 32 pretimeout allows the user to set the watchdog pretimeout value. 35 zero disables the pretimeout NMI. 53 Due to limitations in the iLO hardware, the NMI pretimeout if enabled, 54 can only be set to 9 seconds. Attempts to set pretimeout to other 56 the pretimeout value after attempting to set pretimeout or timeout.
|
A D | watchdog-api.rst | 124 pretimeout = 10; 125 ioctl(fd, WDIOC_SETPRETIMEOUT, &pretimeout); 127 Note that the pretimeout is the number of seconds before the time 129 the pretimeout. So, for instance, if you set the timeout to 60 seconds 130 and the pretimeout to 10 seconds, the pretimeout will go off in 50 131 seconds. Setting a pretimeout to zero disables it. 133 There is also a get function for getting the pretimeout:: 136 printf("The pretimeout was is %d seconds\n", timeout); 138 Not all watchdog drivers will support a pretimeout.
|
A D | watchdog-kernel-api.rst | 56 unsigned int pretimeout; 82 * gov: a pointer to the assigned watchdog device pretimeout governor or NULL. 86 * pretimeout: the watchdog timer's pretimeout value (in seconds). 215 * set_pretimeout: this routine checks and changes the pretimeout value of 216 the watchdog. It is optional because not all watchdogs support pretimeout 220 the watchdog". A value of 0 disables pretimeout notification. 226 watchdog_device.pretimeout, this callback can be omitted. That means if 329 To raise a pretimeout notification, the following function should be used:: 333 The function can be called in the interrupt context. If watchdog pretimeout 335 an action is taken by a preconfigured pretimeout governor preassigned to [all …]
|
/linux/drivers/char/ipmi/ |
A D | ipmi_watchdog.c | 135 static int pretimeout; variable 282 module_param(pretimeout, timeout, 0644); 283 MODULE_PARM_DESC(pretimeout, "Pretimeout value in seconds."); 396 data[2] = pretimeout; in __ipmi_set_timeout() 706 pretimeout = val; in ipmi_ioctl() 710 i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); in ipmi_ioctl() 977 pretimeout = 0; in ipmi_wdog_panic_handler() 1024 int old_pretimeout = pretimeout; in ipmi_register_watchdog() 1034 pretimeout = 99; in ipmi_register_watchdog() 1055 pretimeout = old_pretimeout; in ipmi_register_watchdog() [all …]
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-class-watchdog | 58 What: /sys/class/watchdog/watchdogn/pretimeout 63 timeout when the pretimeout interrupt is delivered. Pretimeout 70 It is a read only file. It shows the pretimeout governors 78 pretimeout governor is returned. When written, it sets 79 the pretimeout governor.
|
/linux/Documentation/driver-api/ |
A D | ipmi.rst | 670 modprobe ipmi_watchdog timeout=<t> pretimeout=<t> action=<action type> 677 The timeout is the number of seconds to the action, and the pretimeout 679 occur (if pretimeout is zero, then pretimeout will not be enabled). Note 680 that the pretimeout is the time before the final timeout. So if the 681 timeout is 50 seconds and the pretimeout is 10 seconds, then the pretimeout 693 the driver is informed of the pretimeout. 695 The preop may be set to "preop_none" for no operation on a pretimeout, 697 to provide data to read from the watchdog device when the pretimeout 702 on the device when the pretimeout occurs. Select and fasync work on 715 ipmi_watchdog.timeout=<t> ipmi_watchdog.pretimeout=<t>
|
/linux/include/linux/ |
A D | watchdog.h | 103 unsigned int pretimeout; member
|