Lines Matching full:wdog

55 #define to_omap_wdt_dev(_wdog)	container_of(_wdog, struct omap_wdt_dev, wdog)
63 struct watchdog_device wdog; member
131 static int omap_wdt_start(struct watchdog_device *wdog) in omap_wdt_start() argument
133 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_start()
157 omap_wdt_set_timer(wdev, wdog->timeout); in omap_wdt_start()
166 static int omap_wdt_stop(struct watchdog_device *wdog) in omap_wdt_stop() argument
168 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_stop()
178 static int omap_wdt_ping(struct watchdog_device *wdog) in omap_wdt_ping() argument
180 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_ping()
189 static int omap_wdt_set_timeout(struct watchdog_device *wdog, in omap_wdt_set_timeout() argument
192 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_set_timeout()
199 wdog->timeout = timeout; in omap_wdt_set_timeout()
205 static unsigned int omap_wdt_get_timeleft(struct watchdog_device *wdog) in omap_wdt_get_timeleft() argument
207 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_get_timeleft()
249 wdev->wdog.info = &omap_wdt_info; in omap_wdt_probe()
250 wdev->wdog.ops = &omap_wdt_ops; in omap_wdt_probe()
251 wdev->wdog.min_timeout = TIMER_MARGIN_MIN; in omap_wdt_probe()
252 wdev->wdog.max_timeout = TIMER_MARGIN_MAX; in omap_wdt_probe()
253 wdev->wdog.timeout = TIMER_MARGIN_DEFAULT; in omap_wdt_probe()
254 wdev->wdog.parent = &pdev->dev; in omap_wdt_probe()
256 watchdog_init_timeout(&wdev->wdog, timer_margin, &pdev->dev); in omap_wdt_probe()
258 watchdog_set_nowayout(&wdev->wdog, nowayout); in omap_wdt_probe()
268 wdev->wdog.bootstatus = WDIOF_CARDRESET; in omap_wdt_probe()
272 omap_wdt_start(&wdev->wdog); in omap_wdt_probe()
273 set_bit(WDOG_HW_RUNNING, &wdev->wdog.status); in omap_wdt_probe()
278 ret = watchdog_register_device(&wdev->wdog); in omap_wdt_probe()
287 wdev->wdog.timeout); in omap_wdt_probe()
290 omap_wdt_start(&wdev->wdog); in omap_wdt_probe()
314 watchdog_unregister_device(&wdev->wdog); in omap_wdt_remove()