Lines Matching refs:wdd
28 struct watchdog_device wdd; member
35 static int tqmx86_wdt_start(struct watchdog_device *wdd) in tqmx86_wdt_start() argument
37 struct tqmx86_wdt *priv = watchdog_get_drvdata(wdd); in tqmx86_wdt_start()
44 static int tqmx86_wdt_set_timeout(struct watchdog_device *wdd, unsigned int t) in tqmx86_wdt_set_timeout() argument
46 struct tqmx86_wdt *priv = watchdog_get_drvdata(wdd); in tqmx86_wdt_set_timeout()
54 wdd->timeout = t; in tqmx86_wdt_set_timeout()
90 watchdog_set_drvdata(&priv->wdd, priv); in tqmx86_wdt_probe()
92 priv->wdd.parent = dev; in tqmx86_wdt_probe()
93 priv->wdd.info = &tqmx86_wdt_info; in tqmx86_wdt_probe()
94 priv->wdd.ops = &tqmx86_wdt_ops; in tqmx86_wdt_probe()
95 priv->wdd.min_timeout = 1; in tqmx86_wdt_probe()
96 priv->wdd.max_timeout = 4096; in tqmx86_wdt_probe()
97 priv->wdd.max_hw_heartbeat_ms = 4096*1000; in tqmx86_wdt_probe()
98 priv->wdd.timeout = WDT_TIMEOUT; in tqmx86_wdt_probe()
100 watchdog_init_timeout(&priv->wdd, timeout, dev); in tqmx86_wdt_probe()
101 watchdog_set_nowayout(&priv->wdd, WATCHDOG_NOWAYOUT); in tqmx86_wdt_probe()
103 tqmx86_wdt_set_timeout(&priv->wdd, priv->wdd.timeout); in tqmx86_wdt_probe()
105 err = devm_watchdog_register_device(dev, &priv->wdd); in tqmx86_wdt_probe()