Lines Matching refs:st_wdog_dev
31 static struct watchdog_device st_wdog_dev; variable
139 static struct watchdog_device st_wdog_dev = { variable
203 st_wdog_dev.max_timeout = 0xFFFFFFFF / st_wdog->clkrate; in st_wdog_probe()
204 st_wdog_dev.parent = dev; in st_wdog_probe()
215 watchdog_set_drvdata(&st_wdog_dev, st_wdog); in st_wdog_probe()
216 watchdog_set_nowayout(&st_wdog_dev, WATCHDOG_NOWAYOUT); in st_wdog_probe()
219 ret = watchdog_init_timeout(&st_wdog_dev, 0, dev); in st_wdog_probe()
223 ret = devm_watchdog_register_device(dev, &st_wdog_dev); in st_wdog_probe()
237 struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); in st_wdog_remove()
244 struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); in st_wdog_suspend()
246 if (watchdog_active(&st_wdog_dev)) in st_wdog_suspend()
247 st_wdog_stop(&st_wdog_dev); in st_wdog_suspend()
258 struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); in st_wdog_resume()
264 watchdog_unregister_device(&st_wdog_dev); in st_wdog_resume()
271 if (watchdog_active(&st_wdog_dev)) { in st_wdog_resume()
272 st_wdog_load_timer(st_wdog, st_wdog_dev.timeout); in st_wdog_resume()
273 st_wdog_start(&st_wdog_dev); in st_wdog_resume()