/openbmc/linux/drivers/watchdog/ |
H A D | xilinx_wwdt.c | 170 xilinx_wwdt_wdd->max_hw_heartbeat_ms = in xwwdt_probe() 185 if (timeout_ms > xilinx_wwdt_wdd->max_hw_heartbeat_ms) { in xwwdt_probe() 194 xilinx_wwdt_wdd->max_hw_heartbeat_ms = xilinx_wwdt_wdd->max_hw_heartbeat_ms / 2; in xwwdt_probe() 200 if (timeout_ms > xilinx_wwdt_wdd->max_hw_heartbeat_ms / 2) { in xwwdt_probe() 201 max_per_window_ms = xilinx_wwdt_wdd->max_hw_heartbeat_ms / 2; in xwwdt_probe()
|
H A D | rzn1_wdt.c | 76 val |= compute_reload_value(w->max_hw_heartbeat_ms, wdt->clk_rate_khz); in rzn1_wdt_start() 154 wdt->wdtdev.max_hw_heartbeat_ms = max_heart_beat_ms(wdt->clk_rate_khz); in rzn1_wdt_probe() 155 if (wdt->wdtdev.max_hw_heartbeat_ms > 1000) in rzn1_wdt_probe() 156 wdt->wdtdev.max_hw_heartbeat_ms = 1000; in rzn1_wdt_probe()
|
H A D | sbsa_gwdt.c | 152 timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000); in sbsa_gwdt_set_timeout() 298 wdd->max_hw_heartbeat_ms = U32_MAX / gwdt->clk * 1000; in sbsa_gwdt_probe() 300 wdd->max_hw_heartbeat_ms = GENMASK_ULL(47, 0) / gwdt->clk * 1000; in sbsa_gwdt_probe() 336 wdd->max_hw_heartbeat_ms *= 2; in sbsa_gwdt_probe()
|
H A D | loongson1_wdt.c | 46 unsigned int max_hw_heartbeat = wdt_dev->max_hw_heartbeat_ms / 1000; in ls1x_wdt_set_timeout() 131 ls1x_wdt->max_hw_heartbeat_ms = U32_MAX / clk_rate * 1000; in ls1x_wdt_probe()
|
H A D | gxp-wdt.c | 65 actual = min(timeout * 100, wdd->max_hw_heartbeat_ms / 10); in gxp_wdt_set_timeout() 138 drvdata->wdd.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT_MS; in gxp_wdt_probe()
|
H A D | hpwdt.c | 73 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_start() 108 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_ping() 234 .max_hw_heartbeat_ms = HPWDT_MAX_TIMER * 1000,
|
H A D | mpc8xxx_wdt.c | 197 ddata->wdd.max_hw_heartbeat_ms = (ddata->swtc * wdt_type->prescaler) / in mpc8xxx_wdt_probe() 199 ddata->wdd.min_timeout = ddata->wdd.max_hw_heartbeat_ms / 1000; in mpc8xxx_wdt_probe()
|
H A D | rza_wdt.c | 210 priv->wdev.max_hw_heartbeat_ms = (1000 * U8_MAX) / rate; in rza_wdt_probe() 212 priv->wdev.max_hw_heartbeat_ms); in rza_wdt_probe()
|
H A D | stm32_iwdg.c | 97 wdd->min_timeout, wdd->max_hw_heartbeat_ms / 1000); in stm32_iwdg_start() 255 wdd->max_hw_heartbeat_ms = ((RLR_MAX + 1) * wdt->data->max_prescaler * in stm32_iwdg_probe()
|
H A D | tqmx86_wdt.c | 97 priv->wdd.max_hw_heartbeat_ms = 4096*1000; in tqmx86_wdt_probe()
|
H A D | ep93xx_wdt.c | 110 wdd->max_hw_heartbeat_ms = 200; in ep93xx_wdt_probe()
|
H A D | realtek_otto_wdt.c | 337 ctrl->wdev.max_hw_heartbeat_ms = max_tick_ms * OTTO_WDT_TIMEOUT_TICKS_MAX; in otto_wdt_probe() 338 ctrl->wdev.timeout = min(30U, ctrl->wdev.max_hw_heartbeat_ms / 1000); in otto_wdt_probe()
|
H A D | watchdog_core.c | 94 if (!wdd->max_hw_heartbeat_ms && wdd->min_timeout > wdd->max_timeout) { in watchdog_check_min_max_timeout() 248 if (!wdd->ops->start || (!wdd->ops->stop && !wdd->max_hw_heartbeat_ms)) in __watchdog_register_device()
|
H A D | ts72xx_wdt.c | 144 wdd->max_hw_heartbeat_ms = 8000; in ts72xx_wdt_probe()
|
H A D | aspeed_wdt.c | 175 actual = min(timeout, wdd->max_hw_heartbeat_ms / 1000); in aspeed_wdt_set_timeout() 350 wdt->wdd.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT_MS; in aspeed_wdt_probe()
|
H A D | gpio_wdt.c | 155 priv->wdd.max_hw_heartbeat_ms = hw_margin; in gpio_wdt_probe()
|
H A D | bcm2835_wdt.c | 144 .max_hw_heartbeat_ms = WDOG_TICKS_TO_MSECS(PM_WDOG_TIME_SET),
|
H A D | meson_gxbb_wdt.c | 187 data->wdt_dev.max_hw_heartbeat_ms = GXBB_WDT_TCNT_SETUP_MASK; in meson_gxbb_wdt_probe()
|
H A D | max77620_wdt.c | 185 wdt_dev->max_hw_heartbeat_ms = 128 * 1000; in max77620_wdt_probe()
|
H A D | sunplus_wdt.c | 189 priv->wdev.max_hw_heartbeat_ms = SP_WDT_MAX_TIMEOUT * 1000; in sp_wdt_probe()
|
H A D | rave-sp-wdt.c | 304 wdd->max_hw_heartbeat_ms = wdd->max_timeout * 1000; in rave_sp_wdt_probe()
|
H A D | dw_wdt.c | 237 if (top_s * 1000 <= wdd->max_hw_heartbeat_ms) in dw_wdt_set_timeout() 629 wdd->max_hw_heartbeat_ms = dw_wdt_get_max_timeout_ms(dw_wdt); in dw_wdt_drv_probe()
|
H A D | bd9576_wdt.c | 268 priv->wdd.max_hw_heartbeat_ms = hw_margin_max; in bd9576_wdt_probe()
|
/openbmc/linux/include/linux/ |
H A D | watchdog.h | 107 unsigned int max_hw_heartbeat_ms; member 182 (!wdd->max_hw_heartbeat_ms && wdd->max_timeout && in watchdog_timeout_invalid()
|
/openbmc/linux/Documentation/watchdog/ |
H A D | watchdog-kernel-api.rst | 60 unsigned int max_hw_heartbeat_ms; 91 'timeout'. Not used if max_hw_heartbeat_ms is non-zero. 95 * max_hw_heartbeat_ms: Maximum hardware heartbeat, in milli-seconds. 97 if 'timeout' is larger than max_hw_heartbeat_ms, unless WDOG_ACTIVE 99 seconds. max_hw_heartbeat_ms must be set if a driver does not implement 166 max_hw_heartbeat_ms. 197 Drivers implementing max_hw_heartbeat_ms set the hardware watchdog heartbeat 198 to the minimum of timeout and max_hw_heartbeat_ms. Those drivers set the 200 (if it is larger than max_hw_heartbeat_ms), or to the achieved timeout value.
|