Lines Matching refs:wdd
31 struct watchdog_device wdd; member
64 static int ts4800_wdt_start(struct watchdog_device *wdd) in ts4800_wdt_start() argument
66 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_start()
72 static int ts4800_wdt_stop(struct watchdog_device *wdd) in ts4800_wdt_stop() argument
74 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_stop()
80 static int ts4800_wdt_set_timeout(struct watchdog_device *wdd, in ts4800_wdt_set_timeout() argument
83 struct ts4800_wdt *wdt = watchdog_get_drvdata(wdd); in ts4800_wdt_set_timeout()
91 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout()
114 struct watchdog_device *wdd; in ts4800_wdt_probe() local
149 wdd = &wdt->wdd; in ts4800_wdt_probe()
150 wdd->parent = dev; in ts4800_wdt_probe()
151 wdd->info = &ts4800_wdt_info; in ts4800_wdt_probe()
152 wdd->ops = &ts4800_wdt_ops; in ts4800_wdt_probe()
153 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe()
154 wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout; in ts4800_wdt_probe()
156 watchdog_set_drvdata(wdd, wdt); in ts4800_wdt_probe()
157 watchdog_set_nowayout(wdd, nowayout); in ts4800_wdt_probe()
158 watchdog_init_timeout(wdd, 0, dev); in ts4800_wdt_probe()
166 if (!wdd->timeout) in ts4800_wdt_probe()
167 wdd->timeout = wdd->max_timeout; in ts4800_wdt_probe()
168 ts4800_wdt_set_timeout(wdd, wdd->timeout); in ts4800_wdt_probe()
174 ts4800_wdt_stop(wdd); in ts4800_wdt_probe()
176 ret = devm_watchdog_register_device(dev, wdd); in ts4800_wdt_probe()
183 wdd->timeout, nowayout); in ts4800_wdt_probe()