Lines Matching refs:wdog
37 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument
39 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg()
42 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg()
47 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument
49 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping()
57 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument
59 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start()
60 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start()
65 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument
67 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop()
75 static int bcm7038_wdt_set_timeout(struct watchdog_device *wdog, in bcm7038_wdt_set_timeout() argument
79 bcm7038_wdt_stop(wdog); in bcm7038_wdt_set_timeout()
80 wdog->timeout = t; in bcm7038_wdt_set_timeout()
81 bcm7038_wdt_start(wdog); in bcm7038_wdt_set_timeout()
86 static unsigned int bcm7038_wdt_get_timeleft(struct watchdog_device *wdog) in bcm7038_wdt_get_timeleft() argument
88 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_get_timeleft()