Lines Matching refs:wdd
48 struct watchdog_device wdd; member
86 static int nic7018_set_timeout(struct watchdog_device *wdd, in nic7018_set_timeout() argument
89 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_set_timeout()
98 wdd->timeout = nic7018_timeout(config->period, counter); in nic7018_set_timeout()
104 static int nic7018_start(struct watchdog_device *wdd) in nic7018_start() argument
106 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_start()
109 nic7018_set_timeout(wdd, wdd->timeout); in nic7018_start()
122 static int nic7018_stop(struct watchdog_device *wdd) in nic7018_stop() argument
124 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_stop()
133 static int nic7018_ping(struct watchdog_device *wdd) in nic7018_ping() argument
135 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_ping()
142 static unsigned int nic7018_get_timeleft(struct watchdog_device *wdd) in nic7018_get_timeleft() argument
144 struct nic7018_wdt *wdt = watchdog_get_drvdata(wdd); in nic7018_get_timeleft()
171 struct watchdog_device *wdd; in nic7018_probe() local
195 wdd = &wdt->wdd; in nic7018_probe()
196 wdd->info = &nic7018_wdd_info; in nic7018_probe()
197 wdd->ops = &nic7018_wdd_ops; in nic7018_probe()
198 wdd->min_timeout = WDT_MIN_TIMEOUT; in nic7018_probe()
199 wdd->max_timeout = WDT_MAX_TIMEOUT; in nic7018_probe()
200 wdd->timeout = WDT_DEFAULT_TIMEOUT; in nic7018_probe()
201 wdd->parent = dev; in nic7018_probe()
203 watchdog_set_drvdata(wdd, wdt); in nic7018_probe()
204 watchdog_set_nowayout(wdd, nowayout); in nic7018_probe()
205 watchdog_init_timeout(wdd, timeout, dev); in nic7018_probe()
210 ret = watchdog_register_device(wdd); in nic7018_probe()
225 watchdog_unregister_device(&wdt->wdd); in nic7018_remove()