Lines Matching refs:wdd
47 struct watchdog_device wdd; member
51 static int ts72xx_wdt_start(struct watchdog_device *wdd) in ts72xx_wdt_start() argument
53 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_start()
61 static int ts72xx_wdt_stop(struct watchdog_device *wdd) in ts72xx_wdt_stop() argument
63 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_stop()
71 static int ts72xx_wdt_ping(struct watchdog_device *wdd) in ts72xx_wdt_ping() argument
73 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_ping()
80 static int ts72xx_wdt_settimeout(struct watchdog_device *wdd, unsigned int to) in ts72xx_wdt_settimeout() argument
82 struct ts72xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ts72xx_wdt_settimeout()
97 wdd->timeout = to; in ts72xx_wdt_settimeout()
99 if (watchdog_active(wdd)) { in ts72xx_wdt_settimeout()
100 ts72xx_wdt_stop(wdd); in ts72xx_wdt_settimeout()
101 ts72xx_wdt_start(wdd); in ts72xx_wdt_settimeout()
127 struct watchdog_device *wdd; in ts72xx_wdt_probe() local
142 wdd = &priv->wdd; in ts72xx_wdt_probe()
143 wdd->info = &ts72xx_wdt_ident; in ts72xx_wdt_probe()
144 wdd->ops = &ts72xx_wdt_ops; in ts72xx_wdt_probe()
145 wdd->min_timeout = 1; in ts72xx_wdt_probe()
146 wdd->max_hw_heartbeat_ms = 8000; in ts72xx_wdt_probe()
147 wdd->parent = dev; in ts72xx_wdt_probe()
149 watchdog_set_nowayout(wdd, nowayout); in ts72xx_wdt_probe()
151 wdd->timeout = TS72XX_WDT_DEFAULT_TIMEOUT; in ts72xx_wdt_probe()
152 watchdog_init_timeout(wdd, timeout, dev); in ts72xx_wdt_probe()
154 watchdog_set_drvdata(wdd, priv); in ts72xx_wdt_probe()
156 ret = devm_watchdog_register_device(dev, wdd); in ts72xx_wdt_probe()