Lines Matching refs:wdog
45 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument
47 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg()
50 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg()
55 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument
57 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping()
65 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument
67 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start()
68 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start()
73 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument
75 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop()
83 static int bcm7038_wdt_set_timeout(struct watchdog_device *wdog, in bcm7038_wdt_set_timeout() argument
87 bcm7038_wdt_stop(wdog); in bcm7038_wdt_set_timeout()
88 wdog->timeout = t; in bcm7038_wdt_set_timeout()
89 bcm7038_wdt_start(wdog); in bcm7038_wdt_set_timeout()
94 static unsigned int bcm7038_wdt_get_timeleft(struct watchdog_device *wdog) in bcm7038_wdt_get_timeleft() argument
96 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_get_timeleft()