Lines Matching refs:wdd

45 	struct watchdog_device wdd;  member
49 static int ts72xx_wdt_start(struct watchdog_device *wdd) in ts72xx_wdt_start() argument
51 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_start()
59 static int ts72xx_wdt_stop(struct watchdog_device *wdd) in ts72xx_wdt_stop() argument
61 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_stop()
69 static int ts72xx_wdt_ping(struct watchdog_device *wdd) in ts72xx_wdt_ping() argument
71 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_ping()
78 static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in ts72xx_wdt_settimeout() argument
80 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_settimeout()
95 wdd->timeout = to; in ts72xx_wdt_settimeout()
97 if (watchdog_active(wdd)) { in ts72xx_wdt_settimeout()
98 ts72xx_wdt_stop(wdd); in ts72xx_wdt_settimeout()
99 ts72xx_wdt_start(wdd); in ts72xx_wdt_settimeout()
125 struct watchdog_device *wdd; in ts72xx_wdt_probe() local
140 wdd = &priv->wdd; in ts72xx_wdt_probe()
141 wdd->info = &ts72xx_wdt_ident; in ts72xx_wdt_probe()
142 wdd->ops = &ts72xx_wdt_ops; in ts72xx_wdt_probe()
143 wdd->min_timeout = 1; in ts72xx_wdt_probe()
144 wdd->max_hw_heartbeat_ms = 8000; in ts72xx_wdt_probe()
145 wdd->parent = dev; in ts72xx_wdt_probe()
147 watchdog_set_nowayout(wdd, nowayout); in ts72xx_wdt_probe()
149 wdd->timeout = TS72XX_WDT_DEFAULT_TIMEOUT; in ts72xx_wdt_probe()
150 watchdog_init_timeout(wdd, timeout, dev); in ts72xx_wdt_probe()
152 watchdog_set_drvdata(wdd, priv); in ts72xx_wdt_probe()
154 ret = devm_watchdog_register_device(dev, wdd); in ts72xx_wdt_probe()