Searched refs:hw_margin (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/watchdog/ |
H A D | bd96801_wdt.c | 166 static int bd96801_set_wdt_mode(struct wdtbd96801 *w, unsigned int hw_margin, in bd96801_set_wdt_mode() argument 180 if (hw_margin * 1000 > SLOWNG_MAX_US) { in bd96801_set_wdt_mode() 182 hw_margin * 1000, SLOWNG_MAX_US); in bd96801_set_wdt_mode() 191 hw_margin *= 10; in bd96801_set_wdt_mode() 203 ret = find_closest_slow_by_fast(min, &hw_margin, &slowng); in bd96801_set_wdt_mode() 207 hw_margin * 100, min * 100, min * 100 * 16); in bd96801_set_wdt_mode() 215 ret = find_closest_slow(&hw_margin, &slowng, &fastng); in bd96801_set_wdt_mode() 220 w->wdt.max_hw_heartbeat_ms = hw_margin / 10; in bd96801_set_wdt_mode() 271 u32 hw_margin[2]; in init_wdg_hw() local 280 if (count > ARRAY_SIZE(hw_margin)) in init_wdg_hw() [all …]
|
H A D | gpio_wdt.c | 112 unsigned int hw_margin; in gpio_wdt_probe() local 139 ret = device_property_read_u32(dev, "hw_margin_ms", &hw_margin); in gpio_wdt_probe() 143 if (hw_margin < 2 || hw_margin > 65535) in gpio_wdt_probe() 153 priv->wdd.max_hw_heartbeat_ms = hw_margin; in gpio_wdt_probe()
|