Lines Matching refs:wdd
28 static int wdt_start(struct watchdog_device *wdd) in wdt_start() argument
30 struct device *dev = watchdog_get_drvdata(wdd); in wdt_start()
33 pdata->wdt_set_timeout(dev->parent, wdd->timeout * WDOG_TICK_RATE); in wdt_start()
37 static int wdt_stop(struct watchdog_device *wdd) in wdt_stop() argument
39 struct device *dev = watchdog_get_drvdata(wdd); in wdt_stop()
46 static int wdt_set_timeout(struct watchdog_device *wdd, unsigned new_timeout) in wdt_set_timeout() argument
48 wdd->timeout = new_timeout; in wdt_set_timeout()
49 return wdt_start(wdd); in wdt_set_timeout()
99 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_suspend() local
101 if (watchdog_active(wdd)) in stmp3xxx_wdt_suspend()
102 return wdt_stop(wdd); in stmp3xxx_wdt_suspend()
109 struct watchdog_device *wdd = &stmp3xxx_wdd; in stmp3xxx_wdt_resume() local
111 if (watchdog_active(wdd)) in stmp3xxx_wdt_resume()
112 return wdt_start(wdd); in stmp3xxx_wdt_resume()