Home
last modified time | relevance | path

Searched refs:pretimeout (Results 1 – 23 of 23) sorted by relevance

/Linux-v5.4/drivers/watchdog/
Dhpwdt.c36 static bool pretimeout = IS_ENABLED(CONFIG_HPWDT_NMI_DECODING);
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 …]
Dkempld_wdt.c76 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 …]
Dpm8916_wdt.c73 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()
Dimx_sc_wdt.c98 unsigned int pretimeout) in imx_sc_wdt_set_pretimeout() argument
108 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout()
113 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout()
Dsprd_wdt.c105 u32 pretimeout) in sprd_wdt_load_value() argument
109 u32 prtmr_step = pretimeout * SPRD_WDT_CNT_STEP; in sprd_wdt_load_value()
180 ret = sprd_wdt_load_value(wdt, wdd->timeout, wdd->pretimeout); in sprd_wdt_start()
218 return sprd_wdt_load_value(wdt, timeout, wdd->pretimeout); in sprd_wdt_set_timeout()
229 wdd->pretimeout = new_pretimeout; in sprd_wdt_set_pretimeout()
Dqcom-wdt.c65 if (wdd->pretimeout) in qcom_get_enable()
83 unsigned int bark = wdd->timeout - wdd->pretimeout; in qcom_wdt_start()
119 wdd->pretimeout = timeout; in qcom_wdt_set_pretimeout()
258 wdt->wdd.pretimeout = 1; in qcom_wdt_probe()
Dsoftdog.c89 if (w->pretimeout) in softdog_ping()
91 ktime_set(w->timeout - w->pretimeout, 0), in softdog_ping()
Dpretimeout_panic.c25 .pretimeout = pretimeout_panic,
Dpretimeout_noop.c25 .pretimeout = pretimeout_noop,
Dwatchdog_pretimeout.h11 void (*pretimeout)(struct watchdog_device *wdd); member
Dwatchdog_dev.c390 if (wdd->pretimeout >= wdd->timeout) in watchdog_set_timeout()
391 wdd->pretimeout = 0; in watchdog_set_timeout()
419 wdd->pretimeout = timeout; in watchdog_set_pretimeout()
513 return sprintf(buf, "%u\n", wdd->pretimeout); in pretimeout_show()
515 static DEVICE_ATTR_RO(pretimeout);
783 err = put_user(wdd->pretimeout, p); in watchdog_ioctl()
Dintel-mid_wdt.c47 u32 pretimeout; in wdt_start() member
Dwatchdog_pretimeout.c109 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout()
DKconfig79 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 …]
Dorion_wdt.c192 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()
Dimx2_wdt.c197 wdog->pretimeout = new_pretimeout; in imx2_wdt_set_pretimeout()
/Linux-v5.4/Documentation/watchdog/
Dhpwdt.rst32 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.
Dwatchdog-api.rst124 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.
Dwatchdog-kernel-api.rst56 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 …]
/Linux-v5.4/drivers/char/ipmi/
Dipmi_watchdog.c135 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()
962 pretimeout = 0; in ipmi_wdog_panic_handler()
1009 int old_pretimeout = pretimeout; in ipmi_register_watchdog()
1019 pretimeout = 99; in ipmi_register_watchdog()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-class-watchdog53 What: /sys/class/watchdog/watchdogn/pretimeout
58 timeout when the pretimeout interrupt is delivered. Pretimeout
65 It is a read only file. It shows the pretimeout governors
73 pretimeout governor is returned. When written, it sets
74 the pretimeout governor.
/Linux-v5.4/include/linux/
Dwatchdog.h103 unsigned int pretimeout; member
/Linux-v5.4/Documentation/
DIPMI.txt606 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>