| /OK3568_Linux_fs/kernel/drivers/watchdog/ |
| H A D | hpwdt.c | 36 static bool pretimeout = IS_ENABLED(CONFIG_HPWDT_NMI_DECODING); variable 68 int control = 0x81 | (pretimeout ? 0x4 : 0); in hpwdt_start() 122 if (val <= wdd->pretimeout) { in hpwdt_settimeout() 124 wdd->pretimeout = 0; in hpwdt_settimeout() 125 pretimeout = 0; in hpwdt_settimeout() 149 wdd->pretimeout = val; in hpwdt_set_pretimeout() 150 pretimeout = !!val; in hpwdt_set_pretimeout() 180 if (ilo5 && !pretimeout && !mynmi) in hpwdt_pretimeout() 229 .pretimeout = PRETIMEOUT_SEC, 337 if (pretimeout && hpwdt_dev.timeout <= PRETIMEOUT_SEC) { in hpwdt_init_one() [all …]
|
| H A D | kempld_wdt.c | 76 unsigned int pretimeout; member 92 static unsigned int pretimeout = DEFAULT_PRETIMEOUT; variable 93 module_param(pretimeout, uint, 0); 94 MODULE_PARM_DESC(pretimeout, 210 if (pretimeout_stage->mask && wdt_data->pretimeout > 0) in kempld_wdt_set_timeout() 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() [all …]
|
| H 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()
|
| H 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() 178 .pretimeout = false, 183 .pretimeout = true, 254 if (data->pretimeout && irq > 0) { in qcom_wdt_probe() 261 wdt->wdd.pretimeout = 1; in qcom_wdt_probe()
|
| H 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()
|
| H A D | sprd_wdt.c | 105 u32 pretimeout) in sprd_wdt_load_value() argument 109 u32 prtmr_step = pretimeout * SPRD_WDT_CNT_STEP; in sprd_wdt_load_value() 181 ret = sprd_wdt_load_value(wdt, wdd->timeout, wdd->pretimeout); in sprd_wdt_start() 219 return sprd_wdt_load_value(wdt, timeout, wdd->pretimeout); in sprd_wdt_set_timeout() 230 wdd->pretimeout = new_pretimeout; in sprd_wdt_set_pretimeout()
|
| H A D | softdog.c | 141 if (w->pretimeout) in softdog_ping() 143 ktime_set(w->timeout - w->pretimeout, 0), in softdog_ping()
|
| H A D | watchdog_dev.c | 391 if (wdd->pretimeout >= wdd->timeout) in watchdog_set_timeout() 392 wdd->pretimeout = 0; in watchdog_set_timeout() 420 wdd->pretimeout = timeout; in watchdog_set_pretimeout() 533 return sprintf(buf, "%u\n", wdd->pretimeout); in pretimeout_show() 535 static DEVICE_ATTR_RO(pretimeout); 803 err = put_user(wdd->pretimeout, p); in watchdog_ioctl()
|
| H A D | pretimeout_panic.c | 25 .pretimeout = pretimeout_panic,
|
| H A D | pretimeout_noop.c | 25 .pretimeout = pretimeout_noop,
|
| H A D | watchdog_pretimeout.h | 11 void (*pretimeout)(struct watchdog_device *wdd); member
|
| H A D | dw_wdt.c | 216 wdd->pretimeout = timeout; in dw_wdt_set_timeout() 218 wdd->pretimeout = 0; in dw_wdt_set_timeout() 332 sec += wdd->pretimeout; in dw_wdt_get_timeleft()
|
| H A D | intel-mid_wdt.c | 57 u32 pretimeout; in wdt_start() member
|
| H A D | watchdog_pretimeout.c | 109 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout()
|
| H A D | Kconfig | 79 bool "Enable watchdog pretimeout governors" 82 The option allows to select watchdog pretimeout governors. 93 tristate "Noop watchdog pretimeout governor" 97 Noop watchdog pretimeout governor, only an informational 101 tristate "Panic watchdog pretimeout governor" 105 Panic watchdog pretimeout governor, on watchdog pretimeout 112 This option selects a default watchdog pretimeout governor. 114 to report a pretimeout event. 120 Use noop watchdog pretimeout governor by default. If noop 128 Use panic watchdog pretimeout governor by default, if [all …]
|
| H A D | orion_wdt.c | 192 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout), in orion_wdt_ping() 207 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout), in armada375_start()
|
| H A D | imx2_wdt.c | 196 wdog->pretimeout = new_pretimeout; in imx2_wdt_set_pretimeout()
|
| /OK3568_Linux_fs/kernel/Documentation/watchdog/ |
| H 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.
|
| H 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.
|
| H 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). 211 If the pretimeout feature is used (WDIOF_PRETIMEOUT), then set_timeout must 212 also take care of checking if pretimeout is still valid and set up the timer 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 228 infrastructure updates the pretimeout value of the watchdog_device internally [all …]
|
| /OK3568_Linux_fs/kernel/drivers/char/ipmi/ |
| H 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."); 394 if ((pretimeout > 0) && (ipmi_watchdog_state != WDOG_TIMEOUT_NONE)) { in __ipmi_set_timeout() 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() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/testing/ |
| H 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.
|
| /OK3568_Linux_fs/u-boot/drivers/watchdog/ |
| H A D | tangier_wdt.c | 59 u32 pretimeout; in hw_watchdog_init() member
|
| /OK3568_Linux_fs/kernel/Documentation/driver-api/ |
| H A D | ipmi.rst | 610 modprobe ipmi_watchdog timeout=<t> pretimeout=<t> action=<action type> 617 The timeout is the number of seconds to the action, and the pretimeout 619 occur (if pretimeout is zero, then pretimeout will not be enabled). Note 620 that the pretimeout is the time before the final timeout. So if the 621 timeout is 50 seconds and the pretimeout is 10 seconds, then the pretimeout 633 the driver is informed of the pretimeout. 635 The preop may be set to "preop_none" for no operation on a pretimeout, 637 to provide data to read from the watchdog device when the pretimeout 642 on the device when the pretimeout occurs. Select and fasync work on 655 ipmi_watchdog.timeout=<t> ipmi_watchdog.pretimeout=<t>
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | watchdog.h | 103 unsigned int pretimeout; member
|