Lines Matching full:wdog

49 static int imx_sc_wdt_ping(struct watchdog_device *wdog)  in imx_sc_wdt_ping()  argument
78 static int imx_sc_wdt_start(struct watchdog_device *wdog) in imx_sc_wdt_start() argument
95 static int imx_sc_wdt_stop(struct watchdog_device *wdog) in imx_sc_wdt_stop() argument
105 static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, in imx_sc_wdt_set_timeout() argument
110 wdog->timeout = timeout; in imx_sc_wdt_set_timeout()
117 static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, in imx_sc_wdt_set_pretimeout() argument
128 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout()
133 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout()
181 struct watchdog_device *wdog; in imx_sc_wdt_probe() local
191 wdog = &imx_sc_wdd->wdd; in imx_sc_wdt_probe()
192 wdog->info = &imx_sc_wdt_info; in imx_sc_wdt_probe()
193 wdog->ops = &imx_sc_wdt_ops; in imx_sc_wdt_probe()
194 wdog->min_timeout = 1; in imx_sc_wdt_probe()
195 wdog->max_timeout = MAX_TIMEOUT; in imx_sc_wdt_probe()
196 wdog->parent = dev; in imx_sc_wdt_probe()
197 wdog->timeout = DEFAULT_TIMEOUT; in imx_sc_wdt_probe()
199 watchdog_init_timeout(wdog, 0, dev); in imx_sc_wdt_probe()
201 ret = imx_sc_wdt_set_timeout(wdog, wdog->timeout); in imx_sc_wdt_probe()
206 set_bit(WDOG_HW_RUNNING, &wdog->status); in imx_sc_wdt_probe()
208 watchdog_stop_on_reboot(wdog); in imx_sc_wdt_probe()
209 watchdog_stop_on_unregister(wdog); in imx_sc_wdt_probe()
238 return devm_watchdog_register_device(dev, wdog); in imx_sc_wdt_probe()