Lines Matching refs:st_wdog_dev
32 static struct watchdog_device st_wdog_dev; variable
140 static struct watchdog_device st_wdog_dev = { variable
210 st_wdog_dev.max_timeout = 0xFFFFFFFF / st_wdog->clkrate; in st_wdog_probe()
211 st_wdog_dev.parent = dev; in st_wdog_probe()
222 watchdog_set_drvdata(&st_wdog_dev, st_wdog); in st_wdog_probe()
223 watchdog_set_nowayout(&st_wdog_dev, WATCHDOG_NOWAYOUT); in st_wdog_probe()
226 ret = watchdog_init_timeout(&st_wdog_dev, 0, dev); in st_wdog_probe()
230 ret = devm_watchdog_register_device(dev, &st_wdog_dev); in st_wdog_probe()
244 struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); in st_wdog_remove()
251 struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); in st_wdog_suspend()
253 if (watchdog_active(&st_wdog_dev)) in st_wdog_suspend()
254 st_wdog_stop(&st_wdog_dev); in st_wdog_suspend()
265 struct st_wdog *st_wdog = watchdog_get_drvdata(&st_wdog_dev); in st_wdog_resume()
271 watchdog_unregister_device(&st_wdog_dev); in st_wdog_resume()
278 if (watchdog_active(&st_wdog_dev)) { in st_wdog_resume()
279 st_wdog_load_timer(st_wdog, st_wdog_dev.timeout); in st_wdog_resume()
280 st_wdog_start(&st_wdog_dev); in st_wdog_resume()