Home
last modified time | relevance | path

Searched refs:hw_margin (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/watchdog/
Dbd96801_wdt.c166 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 …]
Dbd9576_wdt.c152 static int bd957x_set_wdt_mode(struct bd9576_wdt_priv *priv, int hw_margin, in bd957x_set_wdt_mode() argument
159 hw_margin *= 10; in bd957x_set_wdt_mode()
172 ret = find_closest_slow_by_fast(min, hw_margin, &slowng); in bd957x_set_wdt_mode()
181 ret = find_closest_slow(hw_margin, &slowng, &fastng); in bd957x_set_wdt_mode()
202 u32 hw_margin[2]; in bd9576_wdt_probe() local
241 if (count > ARRAY_SIZE(hw_margin)) in bd9576_wdt_probe()
246 hw_margin, count); in bd9576_wdt_probe()
251 hw_margin_max = hw_margin[0]; in bd9576_wdt_probe()
254 hw_margin_max = hw_margin[1]; in bd9576_wdt_probe()
255 hw_margin_min = hw_margin[0]; in bd9576_wdt_probe()
Dgpio_wdt.c112 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()