Lines Matching refs:wdd

57 	struct watchdog_device wdd;  member
62 static struct apple_wdt *to_apple_wdt(struct watchdog_device *wdd) in to_apple_wdt() argument
64 return container_of(wdd, struct apple_wdt, wdd); in to_apple_wdt()
67 static int apple_wdt_start(struct watchdog_device *wdd) in apple_wdt_start() argument
69 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_start()
77 static int apple_wdt_stop(struct watchdog_device *wdd) in apple_wdt_stop() argument
79 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_stop()
86 static int apple_wdt_ping(struct watchdog_device *wdd) in apple_wdt_ping() argument
88 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_ping()
95 static int apple_wdt_set_timeout(struct watchdog_device *wdd, unsigned int s) in apple_wdt_set_timeout() argument
97 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_set_timeout()
102 wdd->timeout = s; in apple_wdt_set_timeout()
107 static unsigned int apple_wdt_get_timeleft(struct watchdog_device *wdd) in apple_wdt_get_timeleft() argument
109 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_get_timeleft()
118 static int apple_wdt_restart(struct watchdog_device *wdd, unsigned long mode, in apple_wdt_restart() argument
121 struct apple_wdt *wdt = to_apple_wdt(wdd); in apple_wdt_restart()
192 wdt->wdd.ops = &apple_wdt_ops; in apple_wdt_probe()
193 wdt->wdd.info = &apple_wdt_info; in apple_wdt_probe()
194 wdt->wdd.max_timeout = U32_MAX / wdt->clk_rate; in apple_wdt_probe()
195 wdt->wdd.timeout = APPLE_WDT_TIMEOUT_DEFAULT; in apple_wdt_probe()
199 set_bit(WDOG_HW_RUNNING, &wdt->wdd.status); in apple_wdt_probe()
201 watchdog_init_timeout(&wdt->wdd, 0, dev); in apple_wdt_probe()
202 apple_wdt_set_timeout(&wdt->wdd, wdt->wdd.timeout); in apple_wdt_probe()
203 watchdog_stop_on_unregister(&wdt->wdd); in apple_wdt_probe()
204 watchdog_set_restart_priority(&wdt->wdd, 128); in apple_wdt_probe()
206 return devm_watchdog_register_device(dev, &wdt->wdd); in apple_wdt_probe()