Lines Matching refs:wdd
45 struct watchdog_device wdd; member
48 static int ep93xx_wdt_start(struct watchdog_device *wdd) in ep93xx_wdt_start() argument
50 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_start()
57 static int ep93xx_wdt_stop(struct watchdog_device *wdd) in ep93xx_wdt_stop() argument
59 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_stop()
66 static int ep93xx_wdt_ping(struct watchdog_device *wdd) in ep93xx_wdt_ping() argument
68 struct ep93xx_wdt_priv *priv = watchdog_get_drvdata(wdd); in ep93xx_wdt_ping()
94 struct watchdog_device *wdd; in ep93xx_wdt_probe() local
108 wdd = &priv->wdd; in ep93xx_wdt_probe()
109 wdd->bootstatus = (val & 0x01) ? WDIOF_CARDRESET : 0; in ep93xx_wdt_probe()
110 wdd->info = &ep93xx_wdt_ident; in ep93xx_wdt_probe()
111 wdd->ops = &ep93xx_wdt_ops; in ep93xx_wdt_probe()
112 wdd->min_timeout = 1; in ep93xx_wdt_probe()
113 wdd->max_hw_heartbeat_ms = 200; in ep93xx_wdt_probe()
114 wdd->parent = dev; in ep93xx_wdt_probe()
116 watchdog_set_nowayout(wdd, nowayout); in ep93xx_wdt_probe()
118 wdd->timeout = WDT_TIMEOUT; in ep93xx_wdt_probe()
119 watchdog_init_timeout(wdd, timeout, dev); in ep93xx_wdt_probe()
121 watchdog_set_drvdata(wdd, priv); in ep93xx_wdt_probe()
123 ret = devm_watchdog_register_device(dev, wdd); in ep93xx_wdt_probe()