Lines Matching refs:wdd
82 #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd) argument
84 struct watchdog_device wdd; member
125 !watchdog_active(&wdt->wdd)) { in at91_ping()
133 static int at91_wdt_start(struct watchdog_device *wdd) in at91_wdt_start() argument
135 struct at91wdt *wdt = to_wdt(wdd); in at91_wdt_start()
137 wdt->next_heartbeat = jiffies + wdd->timeout * HZ; in at91_wdt_start()
141 static int at91_wdt_stop(struct watchdog_device *wdd) in at91_wdt_stop() argument
147 static int at91_wdt_set_timeout(struct watchdog_device *wdd, unsigned int new_timeout) in at91_wdt_set_timeout() argument
149 wdd->timeout = new_timeout; in at91_wdt_set_timeout()
150 return at91_wdt_start(wdd); in at91_wdt_set_timeout()
235 if (watchdog_init_timeout(&wdt->wdd, 0, dev)) in at91_wdt_init()
236 watchdog_init_timeout(&wdt->wdd, heartbeat, dev); in at91_wdt_init()
237 watchdog_set_nowayout(&wdt->wdd, wdt->nowayout); in at91_wdt_init()
238 err = watchdog_register_device(&wdt->wdd); in at91_wdt_init()
242 wdt->next_heartbeat = jiffies + wdt->wdd.timeout * HZ; in at91_wdt_init()
276 dev_warn(wdt->wdd.parent, "failed to get IRQ from DT\n"); in of_at91wdt_init()
343 wdt->wdd.parent = &pdev->dev; in at91wdt_probe()
344 wdt->wdd.info = &at91_wdt_info; in at91wdt_probe()
345 wdt->wdd.ops = &at91_wdt_ops; in at91wdt_probe()
346 wdt->wdd.timeout = WDT_HEARTBEAT; in at91wdt_probe()
347 wdt->wdd.min_timeout = 1; in at91wdt_probe()
348 wdt->wdd.max_timeout = 0xFFFF; in at91wdt_probe()
368 wdt->wdd.timeout, wdt->nowayout); in at91wdt_probe()
376 watchdog_unregister_device(&wdt->wdd); in at91wdt_remove()