Lines Matching defs:wdd
82 #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd)
84 struct watchdog_device wdd;
125 !watchdog_active(&wdt->wdd)) {
133 static int at91_wdt_start(struct watchdog_device *wdd)
135 struct at91wdt *wdt = to_wdt(wdd);
137 wdt->next_heartbeat = jiffies + wdd->timeout * HZ;
141 static int at91_wdt_stop(struct watchdog_device *wdd)
147 static int at91_wdt_set_timeout(struct watchdog_device *wdd, unsigned int new_timeout)
149 wdd->timeout = new_timeout;
150 return at91_wdt_start(wdd);
234 if (watchdog_init_timeout(&wdt->wdd, 0, dev))
235 watchdog_init_timeout(&wdt->wdd, heartbeat, dev);
236 watchdog_set_nowayout(&wdt->wdd, wdt->nowayout);
237 err = watchdog_register_device(&wdt->wdd);
241 wdt->next_heartbeat = jiffies + wdt->wdd.timeout * HZ;
275 dev_warn(wdt->wdd.parent, "failed to get IRQ from DT\n");
342 wdt->wdd.parent = &pdev->dev;
343 wdt->wdd.info = &at91_wdt_info;
344 wdt->wdd.ops = &at91_wdt_ops;
345 wdt->wdd.timeout = WDT_HEARTBEAT;
346 wdt->wdd.min_timeout = 1;
347 wdt->wdd.max_timeout = 0xFFFF;
367 wdt->wdd.timeout, wdt->nowayout);
375 watchdog_unregister_device(&wdt->wdd);