Lines Matching refs:wdd

83 #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd)  argument
85 struct watchdog_device wdd; member
127 !watchdog_active(&wdt->wdd)) { in at91_ping()
135 static int at91_wdt_start(struct watchdog_device *wdd) in at91_wdt_start() argument
137 struct at91wdt *wdt = to_wdt(wdd); in at91_wdt_start()
139 wdt->next_heartbeat = jiffies + wdd->timeout * HZ; in at91_wdt_start()
143 static int at91_wdt_stop(struct watchdog_device *wdd) in at91_wdt_stop() argument
149 static int at91_wdt_set_timeout(struct watchdog_device *wdd, unsigned int new_timeout) in at91_wdt_set_timeout() argument
151 wdd->timeout = new_timeout; in at91_wdt_set_timeout()
152 return at91_wdt_start(wdd); in at91_wdt_set_timeout()
237 if (watchdog_init_timeout(&wdt->wdd, 0, dev)) in at91_wdt_init()
238 watchdog_init_timeout(&wdt->wdd, heartbeat, dev); in at91_wdt_init()
239 watchdog_set_nowayout(&wdt->wdd, wdt->nowayout); in at91_wdt_init()
240 err = watchdog_register_device(&wdt->wdd); in at91_wdt_init()
244 wdt->next_heartbeat = jiffies + wdt->wdd.timeout * HZ; in at91_wdt_init()
278 dev_warn(wdt->wdd.parent, "failed to get IRQ from DT\n"); in of_at91wdt_init()
345 wdt->wdd.parent = &pdev->dev; in at91wdt_probe()
346 wdt->wdd.info = &at91_wdt_info; in at91wdt_probe()
347 wdt->wdd.ops = &at91_wdt_ops; in at91wdt_probe()
348 wdt->wdd.timeout = WDT_HEARTBEAT; in at91wdt_probe()
349 wdt->wdd.min_timeout = 1; in at91wdt_probe()
350 wdt->wdd.max_timeout = 0xFFFF; in at91wdt_probe()
380 wdt->wdd.timeout, wdt->nowayout); in at91wdt_probe()
393 watchdog_unregister_device(&wdt->wdd); in at91wdt_remove()