Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/watchdog/
Dhpwdt.c37 static bool pretimeout = IS_ENABLED(CONFIG_HPWDT_NMI_DECODING);
70 int control = 0x81 | (pretimeout ? 0x4 : 0); in hpwdt_start()
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()
[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()
Dmtk_wdt.c200 if (wdt_dev->pretimeout) in mtk_wdt_set_timeout()
201 wdt_dev->pretimeout = timeout / 2; in mtk_wdt_set_timeout()
207 reg = WDT_LENGTH_TIMEOUT((timeout - wdt_dev->pretimeout) << 6) in mtk_wdt_set_timeout()
255 if (wdt_dev->pretimeout) in mtk_wdt_start()
272 if (timeout && !wdd->pretimeout) { in mtk_wdt_set_pretimeout()
273 wdd->pretimeout = wdd->timeout / 2; in mtk_wdt_set_pretimeout()
275 } else if (!timeout && wdd->pretimeout) { in mtk_wdt_set_pretimeout()
276 wdd->pretimeout = 0; in mtk_wdt_set_pretimeout()
347 mtk_wdt->wdt_dev.pretimeout = WDT_MAX_TIMEOUT / 2; in mtk_wdt_probe()
Dqcom-wdt.c44 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()
Dimx_sc_wdt.c96 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()
Dkeembay_wdt.c82 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()
Dwatchdog_hrtimer_pretimeout.c33 !watchdog_pretimeout_invalid(wdd, wdd->pretimeout)) in watchdog_hrtimer_pretimeout_start()
35 ktime_set(wdd->timeout - wdd->pretimeout, 0), in watchdog_hrtimer_pretimeout_start()
Dsprd_wdt.c106 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()
Dsoftdog.c141 if (w->pretimeout) in softdog_ping()
143 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.c378 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()
Ddw_wdt.c215 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()
Dintel-mid_wdt.c57 u32 pretimeout; in wdt_start() member
Dwatchdog_pretimeout.c110 wdd->gov->pretimeout(wdd); in watchdog_notify_pretimeout()
DKconfig79 Enable this if you want to use a hrtimer timer based pretimeout for
80 watchdogs that do not natively support pretimeout support. Be aware
81 that because this pretimeout functionality uses hrtimers, it may not
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
120 This option selects a default watchdog pretimeout governor.
[all …]
/Linux-v5.15/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.15/drivers/char/ipmi/
Dipmi_watchdog.c135 static int pretimeout; variable
282 module_param(pretimeout, timeout, 0644);
283 MODULE_PARM_DESC(pretimeout, "Pretimeout value in seconds.");
390 if ((pretimeout > 0) && (ipmi_watchdog_state != WDOG_TIMEOUT_NONE)) { in __ipmi_set_timeout()
392 data[2] = pretimeout; in __ipmi_set_timeout()
699 pretimeout = val; in ipmi_ioctl()
703 i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); in ipmi_ioctl()
970 pretimeout = 0; in ipmi_wdog_panic_handler()
1017 int old_pretimeout = pretimeout; in ipmi_register_watchdog()
1027 pretimeout = 99; in ipmi_register_watchdog()
[all …]
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-class-watchdog58 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-v5.15/Documentation/driver-api/
Dipmi.rst610 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>
/Linux-v5.15/include/linux/
Dwatchdog.h103 unsigned int pretimeout; member

12