Lines Matching full:wdog
57 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument
59 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg()
62 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg()
67 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument
69 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping()
77 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument
79 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start()
80 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start()
85 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument
87 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop()
95 static int bcm7038_wdt_set_timeout(struct watchdog_device *wdog, in bcm7038_wdt_set_timeout() argument
99 bcm7038_wdt_stop(wdog); in bcm7038_wdt_set_timeout()
100 wdog->timeout = t; in bcm7038_wdt_set_timeout()
101 bcm7038_wdt_start(wdog); in bcm7038_wdt_set_timeout()
106 static unsigned int bcm7038_wdt_get_timeleft(struct watchdog_device *wdog) in bcm7038_wdt_get_timeleft() argument
108 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_get_timeleft()