Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/watchdog/
A Dhpwdt.c126 if (val <= wdd->pretimeout) { in hpwdt_settimeout()
128 wdd->pretimeout = 0; in hpwdt_settimeout()
129 pretimeout = false; in hpwdt_settimeout()
153 wdd->pretimeout = val; in hpwdt_set_pretimeout()
154 pretimeout = !!val; in hpwdt_set_pretimeout()
184 if (ilo5 && !pretimeout && !mynmi) in hpwdt_pretimeout()
233 .pretimeout = PRETIMEOUT_SEC,
342 pretimeout = false; in hpwdt_init_one()
348 pretimeout = false; in hpwdt_init_one()
350 hpwdt_dev.pretimeout = pretimeout ? PRETIMEOUT_SEC : 0; in hpwdt_init_one()
[all …]
A Dkempld_wdt.c76 unsigned int pretimeout; member
91 module_param(pretimeout, uint, 0);
92 MODULE_PARM_DESC(pretimeout,
209 timeout = wdt_data->pretimeout; in kempld_wdt_set_timeout()
225 unsigned int pretimeout) in kempld_wdt_set_pretimeout() argument
237 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout()
240 if (pretimeout > 0) in kempld_wdt_set_pretimeout()
248 wdd->timeout - pretimeout); in kempld_wdt_set_pretimeout()
252 wdt_data->pretimeout = pretimeout; in kempld_wdt_set_pretimeout()
271 if (pretimeout) in kempld_wdt_update_timeouts()
[all …]
A Dmtk_wdt.c223 if (wdt_dev->pretimeout) in mtk_wdt_set_timeout()
224 wdt_dev->pretimeout = timeout / 2; in mtk_wdt_set_timeout()
230 reg = WDT_LENGTH_TIMEOUT((timeout - wdt_dev->pretimeout) << 6) in mtk_wdt_set_timeout()
278 if (wdt_dev->pretimeout) in mtk_wdt_start()
299 if (timeout && !wdd->pretimeout) { in mtk_wdt_set_pretimeout()
300 wdd->pretimeout = wdd->timeout / 2; in mtk_wdt_set_pretimeout()
302 } else if (!timeout && wdd->pretimeout) { in mtk_wdt_set_pretimeout()
303 wdd->pretimeout = 0; in mtk_wdt_set_pretimeout()
374 mtk_wdt->wdt_dev.pretimeout = WDT_MAX_TIMEOUT / 2; in mtk_wdt_probe()
A 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()
180 .pretimeout = false,
185 .pretimeout = true,
247 if (data->pretimeout && irq > 0) { in qcom_wdt_probe()
254 wdt->wdd.pretimeout = 1; in qcom_wdt_probe()
A Dpm8916_wdt.c78 wdev->timeout - wdev->pretimeout); in pm8916_wdt_configure_timers()
84 wdev->pretimeout); in pm8916_wdt_configure_timers()
96 unsigned int pretimeout) in pm8916_wdt_set_pretimeout() argument
98 wdev->pretimeout = pretimeout; in pm8916_wdt_set_pretimeout()
226 wdt->wdev.pretimeout = 0; in pm8916_wdt_probe()
A 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()
A 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()
A 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()
A 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()
A Daspeed_wdt.c182 unsigned int pretimeout) in aspeed_wdt_set_pretimeout() argument
185 u32 actual = pretimeout * WDT_RATE_1MHZ; in aspeed_wdt_set_pretimeout()
189 wdd->pretimeout = pretimeout; in aspeed_wdt_set_pretimeout()
191 if (pretimeout) in aspeed_wdt_set_pretimeout()
A Drealtek_otto_wdt.c124 unsigned int pretimeout) in otto_wdt_determine_timeouts() argument
127 unsigned int pretimeout_ms = pretimeout * 1000; in otto_wdt_determine_timeouts()
164 ctrl->wdev.pretimeout = pretimeout_ms / 1000; in otto_wdt_determine_timeouts()
171 return otto_wdt_determine_timeouts(wdev, val, min(wdev->pretimeout, val - 1)); in otto_wdt_set_timeout()
A Dsoftdog.c141 if (w->pretimeout) in softdog_ping()
143 ktime_set(w->timeout - w->pretimeout, 0), in softdog_ping()
A Dpretimeout_panic.c25 .pretimeout = pretimeout_panic,
A Dpretimeout_noop.c25 .pretimeout = pretimeout_noop,
A Dwatchdog_pretimeout.h11 void (*pretimeout)(struct watchdog_device *wdd); member
A Dwatchdog_dev.c384 if (wdd->pretimeout >= wdd->timeout) in watchdog_set_timeout()
385 wdd->pretimeout = 0; in watchdog_set_timeout()
414 wdd->pretimeout = timeout; in watchdog_set_pretimeout()
546 return sysfs_emit(buf, "%u\n", wdd->pretimeout); in pretimeout_show()
548 static DEVICE_ATTR_RO(pretimeout);
840 err = put_user(wdd->pretimeout, p); in watchdog_ioctl()
A 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()
A Dintel-mid_wdt.c57 u32 pretimeout; in wdt_start() member
/linux-6.3-rc2/Documentation/watchdog/
A 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.
A 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.
A 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).
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-6.3-rc2/drivers/char/ipmi/
A Dipmi_watchdog.c136 static int pretimeout; variable
282 module_param(pretimeout, timeout, 0644);
283 MODULE_PARM_DESC(pretimeout, "Pretimeout value in seconds.");
392 data[2] = pretimeout; in __ipmi_set_timeout()
698 pretimeout = val; in ipmi_ioctl()
702 i = copy_to_user(argp, &pretimeout, sizeof(pretimeout)); in ipmi_ioctl()
969 pretimeout = 0; in ipmi_wdog_panic_handler()
1016 int old_pretimeout = pretimeout; in ipmi_register_watchdog()
1026 pretimeout = 99; in ipmi_register_watchdog()
1047 pretimeout = old_pretimeout; in ipmi_register_watchdog()
[all …]
/linux-6.3-rc2/Documentation/ABI/testing/
A Dsysfs-class-watchdog71 What: /sys/class/watchdog/watchdogn/pretimeout
76 timeout when the pretimeout interrupt is delivered. Pretimeout
83 It is a read only file. It shows the pretimeout governors
91 pretimeout governor is returned. When written, it sets
92 the pretimeout governor.
/linux-6.3-rc2/include/linux/
A Dwatchdog.h103 unsigned int pretimeout; member
/linux-6.3-rc2/Documentation/driver-api/
A Dipmi.rst670 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>

Completed in 47 milliseconds

12