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