Home
last modified time | relevance | path

Searched refs:max_hw_heartbeat_ms (Results 1 – 25 of 29) sorted by relevance

12

/linux/drivers/watchdog/
H A Dxilinx_wwdt.c170 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 Dsbsa_gwdt.c159 timeout = clamp_t(unsigned int, timeout, 1, wdd->max_hw_heartbeat_ms / 1000); in sbsa_gwdt_set_timeout()
333 wdd->max_hw_heartbeat_ms = U32_MAX / gwdt->clk * 1000; in sbsa_gwdt_probe()
335 wdd->max_hw_heartbeat_ms = GENMASK_ULL(47, 0) / gwdt->clk * 1000; in sbsa_gwdt_probe()
380 wdd->max_hw_heartbeat_ms *= 2; in sbsa_gwdt_probe()
H A Dloongson1_wdt.c46 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 Dhpwdt.c72 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_start()
107 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_ping()
230 .max_hw_heartbeat_ms = HPWDT_MAX_TIMER * 1000,
H A Dgxp-wdt.c65 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 Dbd96801_wdt.c220 w->wdt.max_hw_heartbeat_ms = hw_margin / 10; in bd96801_set_wdt_mode()
261 w->wdt.max_hw_heartbeat_ms = (fast << sel) / USEC_PER_MSEC; in bd96801_set_heartbeat_from_hw()
380 w->wdt.min_hw_heartbeat_ms, w->wdt.max_hw_heartbeat_ms); in bd96801_wdt_probe()
H A Drza_wdt.c207 * max_hw_heartbeat_ms. in rza_wdt_probe()
209 priv->wdev.max_hw_heartbeat_ms = (1000 * U8_MAX) / rate; in rza_wdt_probe()
211 priv->wdev.max_hw_heartbeat_ms); in rza_wdt_probe()
H A Drzv2h_wdt.c233 priv->wdev.max_hw_heartbeat_ms = (MILLI * MAX_TIMEOUT_CYCLES * CLOCK_DIV_BY_256) / in rzv2h_wdt_probe()
235 dev_dbg(dev, "max hw timeout of %dms\n", priv->wdev.max_hw_heartbeat_ms); in rzv2h_wdt_probe()
H A Dapple_wdt.c102 actual = min(s, wdd->max_hw_heartbeat_ms / 1000); in apple_wdt_set_timeout()
183 wdt->wdd.max_hw_heartbeat_ms = U32_MAX / wdt->clk_rate * 1000; in apple_wdt_probe()
H A Dmpc8xxx_wdt.c197 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 Drealtek_otto_wdt.c337 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 Dwatchdog_core.c95 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 Dtqmx86_wdt.c97 priv->wdd.max_hw_heartbeat_ms = 4096*1000; in tqmx86_wdt_probe()
H A Dep93xx_wdt.c110 wdd->max_hw_heartbeat_ms = 200; in ep93xx_wdt_probe()
H A Dts72xx_wdt.c145 wdd->max_hw_heartbeat_ms = 8000; in ts72xx_wdt_probe()
H A Dgpio_wdt.c153 priv->wdd.max_hw_heartbeat_ms = hw_margin; in gpio_wdt_probe()
H A Dbcm2835_wdt.c144 .max_hw_heartbeat_ms = WDOG_TICKS_TO_MSECS(PM_WDOG_TIME_SET),
H A Dsunplus_wdt.c176 priv->wdev.max_hw_heartbeat_ms = SP_WDT_MAX_TIMEOUT * 1000; in sp_wdt_probe()
H A Dmeson_gxbb_wdt.c187 data->wdt_dev.max_hw_heartbeat_ms = GXBB_WDT_TCNT_SETUP_MASK; in meson_gxbb_wdt_probe()
H A Dmax77620_wdt.c184 wdt_dev->max_hw_heartbeat_ms = 128 * 1000; in max77620_wdt_probe()
H A Drave-sp-wdt.c304 wdd->max_hw_heartbeat_ms = wdd->max_timeout * 1000; in rave_sp_wdt_probe()
H A Ddw_wdt.c235 * wdd->max_hw_heartbeat_ms in dw_wdt_set_timeout()
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 Drti_wdt.c252 wdd->max_hw_heartbeat_ms = (WDT_PRELOAD_MAX << WDT_PRELOAD_SHIFT) / in rti_wdt_probe()
H A Dmarvell_gti_wdt.c302 wdog_dev->max_hw_heartbeat_ms = max_pretimeout * 1000; in gti_wdt_probe()
/linux/include/linux/
H A Dwatchdog.h77 * max_hw_heartbeat_ms is not provided.
81 * @max_hw_heartbeat_ms:
111 unsigned int max_hw_heartbeat_ms; member
186 (!wdd->max_hw_heartbeat_ms && wdd->max_timeout && in watchdog_timeout_invalid()

12