Lines Matching full:wdd
41 struct watchdog_device wdd; member
64 static int ni903x_wdd_set_timeout(struct watchdog_device *wdd, in ni903x_wdd_set_timeout() argument
67 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_set_timeout()
74 wdd->timeout = timeout; in ni903x_wdd_set_timeout()
79 static unsigned int ni903x_wdd_get_timeleft(struct watchdog_device *wdd) in ni903x_wdd_get_timeleft() argument
81 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_get_timeleft()
98 static int ni903x_wdd_ping(struct watchdog_device *wdd) in ni903x_wdd_ping() argument
100 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_ping()
109 static int ni903x_wdd_start(struct watchdog_device *wdd) in ni903x_wdd_start() argument
111 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_start()
116 ni903x_wdd_set_timeout(wdd, wdd->timeout); in ni903x_wdd_start()
122 static int ni903x_wdd_stop(struct watchdog_device *wdd) in ni903x_wdd_stop() argument
124 struct ni903x_wdt *wdt = watchdog_get_drvdata(wdd); in ni903x_wdd_stop()
183 struct watchdog_device *wdd; in ni903x_acpi_add() local
202 wdd = &wdt->wdd; in ni903x_acpi_add()
203 wdd->info = &ni903x_wdd_info; in ni903x_acpi_add()
204 wdd->ops = &ni903x_wdd_ops; in ni903x_acpi_add()
205 wdd->min_timeout = NIWD_MIN_TIMEOUT; in ni903x_acpi_add()
206 wdd->max_timeout = NIWD_MAX_TIMEOUT; in ni903x_acpi_add()
207 wdd->timeout = NIWD_DEFAULT_TIMEOUT; in ni903x_acpi_add()
208 wdd->parent = dev; in ni903x_acpi_add()
209 watchdog_set_drvdata(wdd, wdt); in ni903x_acpi_add()
210 watchdog_set_nowayout(wdd, nowayout); in ni903x_acpi_add()
211 watchdog_init_timeout(wdd, timeout, dev); in ni903x_acpi_add()
213 ret = watchdog_register_device(wdd); in ni903x_acpi_add()
231 ni903x_wdd_stop(&wdt->wdd); in ni903x_acpi_remove()
232 watchdog_unregister_device(&wdt->wdd); in ni903x_acpi_remove()