Lines Matching full:wdog
48 static int imx_sc_wdt_ping(struct watchdog_device *wdog) in imx_sc_wdt_ping() argument
58 static int imx_sc_wdt_start(struct watchdog_device *wdog) in imx_sc_wdt_start() argument
73 static int imx_sc_wdt_stop(struct watchdog_device *wdog) in imx_sc_wdt_stop() argument
83 static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, in imx_sc_wdt_set_timeout() argument
88 wdog->timeout = timeout; in imx_sc_wdt_set_timeout()
95 static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, in imx_sc_wdt_set_pretimeout() argument
106 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout()
111 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout()
159 struct watchdog_device *wdog; in imx_sc_wdt_probe() local
169 wdog = &imx_sc_wdd->wdd; in imx_sc_wdt_probe()
170 wdog->info = &imx_sc_wdt_info; in imx_sc_wdt_probe()
171 wdog->ops = &imx_sc_wdt_ops; in imx_sc_wdt_probe()
172 wdog->min_timeout = 1; in imx_sc_wdt_probe()
173 wdog->max_timeout = MAX_TIMEOUT; in imx_sc_wdt_probe()
174 wdog->parent = dev; in imx_sc_wdt_probe()
175 wdog->timeout = DEFAULT_TIMEOUT; in imx_sc_wdt_probe()
177 watchdog_init_timeout(wdog, 0, dev); in imx_sc_wdt_probe()
179 ret = imx_sc_wdt_set_timeout(wdog, wdog->timeout); in imx_sc_wdt_probe()
183 watchdog_stop_on_reboot(wdog); in imx_sc_wdt_probe()
184 watchdog_stop_on_unregister(wdog); in imx_sc_wdt_probe()
213 return devm_watchdog_register_device(dev, wdog); in imx_sc_wdt_probe()