Lines Matching full:wdd
38 struct watchdog_device wdd; member
45 struct ftwdt010_wdt *to_ftwdt010_wdt(struct watchdog_device *wdd) in to_ftwdt010_wdt() argument
47 return container_of(wdd, struct ftwdt010_wdt, wdd); in to_ftwdt010_wdt()
67 static int ftwdt010_wdt_start(struct watchdog_device *wdd) in ftwdt010_wdt_start() argument
69 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_start()
71 ftwdt010_enable(gwdt, wdd->timeout, gwdt->has_irq); in ftwdt010_wdt_start()
75 static int ftwdt010_wdt_stop(struct watchdog_device *wdd) in ftwdt010_wdt_stop() argument
77 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_stop()
84 static int ftwdt010_wdt_ping(struct watchdog_device *wdd) in ftwdt010_wdt_ping() argument
86 struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); in ftwdt010_wdt_ping()
93 static int ftwdt010_wdt_set_timeout(struct watchdog_device *wdd, in ftwdt010_wdt_set_timeout() argument
96 wdd->timeout = timeout; in ftwdt010_wdt_set_timeout()
97 if (watchdog_active(wdd)) in ftwdt010_wdt_set_timeout()
98 ftwdt010_wdt_start(wdd); in ftwdt010_wdt_set_timeout()
103 static int ftwdt010_wdt_restart(struct watchdog_device *wdd, in ftwdt010_wdt_restart() argument
106 ftwdt010_enable(to_ftwdt010_wdt(wdd), 0, false); in ftwdt010_wdt_restart()
114 watchdog_notify_pretimeout(&gwdt->wdd); in ftwdt010_wdt_interrupt()
153 gwdt->wdd.info = &ftwdt010_wdt_info; in ftwdt010_wdt_probe()
154 gwdt->wdd.ops = &ftwdt010_wdt_ops; in ftwdt010_wdt_probe()
155 gwdt->wdd.min_timeout = 1; in ftwdt010_wdt_probe()
156 gwdt->wdd.max_timeout = 0xFFFFFFFF / WDT_CLOCK; in ftwdt010_wdt_probe()
157 gwdt->wdd.parent = dev; in ftwdt010_wdt_probe()
163 gwdt->wdd.timeout = 13U; in ftwdt010_wdt_probe()
164 watchdog_init_timeout(&gwdt->wdd, 0, dev); in ftwdt010_wdt_probe()
182 ret = devm_watchdog_register_device(dev, &gwdt->wdd); in ftwdt010_wdt_probe()
210 if (watchdog_active(&gwdt->wdd)) { in ftwdt010_wdt_resume()