Home
last modified time | relevance | path

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

12

/linux/drivers/watchdog/
H A Dcgbc_wdt.c43 static unsigned int pretimeout = CGBC_WDT_DEFAULT_PRETIMEOUT; variable
44 module_param(pretimeout, uint, 0);
45 MODULE_PARM_DESC(pretimeout,
76 unsigned int timeout1 = (wdd->timeout - wdd->pretimeout) * 1000; in cgbc_wdt_start()
77 unsigned int timeout2 = wdd->pretimeout * 1000; in cgbc_wdt_start()
91 if (wdd->pretimeout) { in cgbc_wdt_start()
127 unsigned int pretimeout) in cgbc_wdt_set_pretimeout() argument
129 wdd->pretimeout = pretimeout; in cgbc_wdt_set_pretimeout()
140 if (timeout < wdd->pretimeout) in cgbc_wdt_set_timeout()
141 wdd->pretimeout = 0; in cgbc_wdt_set_timeout()
[all …]
H A Dhpwdt.c38 static bool pretimeout = IS_ENABLED(CONFIG_HPWDT_NMI_DECODING); variable
71 int control = 0x81 | (pretimeout ? 0x4 : 0); in hpwdt_start()
125 if (val <= wdd->pretimeout) { in hpwdt_settimeout()
127 wdd->pretimeout = 0; in hpwdt_settimeout()
128 pretimeout = false; in hpwdt_settimeout()
152 wdd->pretimeout = val; in hpwdt_set_pretimeout()
153 pretimeout = !!val; in hpwdt_set_pretimeout()
229 .pretimeout = PRETIMEOUT_SEC,
338 pretimeout = false; in hpwdt_init_one()
342 if (pretimeout && hpwdt_dev.timeout <= PRETIMEOUT_SEC) { in hpwdt_init_one()
[all …]
H A Dkempld_wdt.c76 unsigned int pretimeout; member
90 static unsigned int pretimeout = DEFAULT_PRETIMEOUT; variable
91 module_param(pretimeout, uint, 0);
92 MODULE_PARM_DESC(pretimeout,
208 if (pretimeout_stage->mask && wdt_data->pretimeout > 0) in kempld_wdt_set_timeout()
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()
[all …]
H A Dqcom-wdt.c43 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,
186 .pretimeout = true,
249 if (data->pretimeout && irq > 0) { in qcom_wdt_probe()
256 wdt->wdd.pretimeout = 1; in qcom_wdt_probe()
H A Dmtk_wdt.c272 if (wdt_dev->pretimeout) in mtk_wdt_set_timeout()
273 wdt_dev->pretimeout = timeout / 2; in mtk_wdt_set_timeout()
279 reg = WDT_LENGTH_TIMEOUT((timeout - wdt_dev->pretimeout) << 6) in mtk_wdt_set_timeout()
327 if (wdt_dev->pretimeout) in mtk_wdt_start()
348 if (timeout && !wdd->pretimeout) { in mtk_wdt_set_pretimeout()
349 wdd->pretimeout = wdd->timeout / 2; in mtk_wdt_set_pretimeout()
351 } else if (!timeout && wdd->pretimeout) { in mtk_wdt_set_pretimeout()
352 wdd->pretimeout = 0; in mtk_wdt_set_pretimeout()
423 mtk_wdt->wdt_dev.pretimeout = WDT_MAX_TIMEOUT / 2; in mtk_wdt_probe()
H 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()
H A Dstm32_iwdg.c105 if (!wdd->pretimeout) in stm32_iwdg_start()
106 wdd->pretimeout = 3 * wdd->timeout / 4; in stm32_iwdg_start()
110 ptot = clamp_t(unsigned int, tout - wdd->pretimeout, in stm32_iwdg_start()
172 unsigned int pretimeout) in stm32_iwdg_set_pretimeout() argument
174 dev_dbg(wdd->parent, "%s pretimeout: %d sec\n", __func__, pretimeout); in stm32_iwdg_set_pretimeout()
176 wdd->pretimeout = pretimeout; in stm32_iwdg_set_pretimeout()
H A Dimx_sc_wdt.c118 unsigned int pretimeout) in imx_sc_wdt_set_pretimeout() argument
128 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout()
133 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout()
H 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()
H A Dmarvell_gti_wdt.c113 if (!wdev->pretimeout) in gti_wdt_start()
161 wdev->pretimeout = timeout / 3; in gti_wdt_settimeout()
164 timeout_wdog = (u64)priv->clock_freq * wdev->pretimeout; in gti_wdt_settimeout()
298 wdog_dev->pretimeout = max_pretimeout; in gti_wdt_probe()
305 wdog_dev->timeout = wdog_dev->pretimeout; in gti_wdt_probe()
H 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()
H 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()
H A Daspeed_wdt.c184 unsigned int pretimeout) in aspeed_wdt_set_pretimeout() argument
187 u32 actual = pretimeout * WDT_RATE_1MHZ; in aspeed_wdt_set_pretimeout()
191 wdd->pretimeout = pretimeout; in aspeed_wdt_set_pretimeout()
193 if (pretimeout) in aspeed_wdt_set_pretimeout()
H 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()
H A Dsoftdog.c141 if (w->pretimeout) in softdog_ping()
143 ktime_set(w->timeout - w->pretimeout, 0), in softdog_ping()
H A Dpretimeout_panic.c25 .pretimeout = pretimeout_panic,
H A Dpretimeout_noop.c25 .pretimeout = pretimeout_noop,
H A Dwatchdog_pretimeout.h11 void (*pretimeout)(struct watchdog_device *wdd); member
H 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()
/linux/Documentation/watchdog/
H 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.
H 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.
H 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).
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/Documentation/ABI/testing/
H 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/Documentation/driver-api/
H 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>
/linux/include/linux/
H A Dwatchdog.h103 unsigned int pretimeout; member

12