Lines Matching refs:wdd

24 	struct watchdog_device wdd;  member
46 struct ixp4xx_wdt *to_ixp4xx_wdt(struct watchdog_device *wdd) in to_ixp4xx_wdt() argument
48 return container_of(wdd, struct ixp4xx_wdt, wdd); in to_ixp4xx_wdt()
51 static int ixp4xx_wdt_start(struct watchdog_device *wdd) in ixp4xx_wdt_start() argument
53 struct ixp4xx_wdt *iwdt = to_ixp4xx_wdt(wdd); in ixp4xx_wdt_start()
57 __raw_writel(wdd->timeout * iwdt->rate, in ixp4xx_wdt_start()
66 static int ixp4xx_wdt_stop(struct watchdog_device *wdd) in ixp4xx_wdt_stop() argument
68 struct ixp4xx_wdt *iwdt = to_ixp4xx_wdt(wdd); in ixp4xx_wdt_stop()
77 static int ixp4xx_wdt_set_timeout(struct watchdog_device *wdd, in ixp4xx_wdt_set_timeout() argument
80 wdd->timeout = timeout; in ixp4xx_wdt_set_timeout()
81 if (watchdog_active(wdd)) in ixp4xx_wdt_set_timeout()
82 ixp4xx_wdt_start(wdd); in ixp4xx_wdt_set_timeout()
87 static int ixp4xx_wdt_restart(struct watchdog_device *wdd, in ixp4xx_wdt_restart() argument
90 struct ixp4xx_wdt *iwdt = to_ixp4xx_wdt(wdd); in ixp4xx_wdt_restart()
155 iwdt->wdd.info = &ixp4xx_wdt_info; in ixp4xx_wdt_probe()
156 iwdt->wdd.ops = &ixp4xx_wdt_ops; in ixp4xx_wdt_probe()
157 iwdt->wdd.min_timeout = 1; in ixp4xx_wdt_probe()
158 iwdt->wdd.max_timeout = U32_MAX / iwdt->rate; in ixp4xx_wdt_probe()
159 iwdt->wdd.parent = dev; in ixp4xx_wdt_probe()
161 iwdt->wdd.timeout = 60U; in ixp4xx_wdt_probe()
162 watchdog_init_timeout(&iwdt->wdd, 0, dev); in ixp4xx_wdt_probe()
166 iwdt->wdd.bootstatus = WDIOF_CARDRESET; in ixp4xx_wdt_probe()
168 ret = devm_watchdog_register_device(dev, &iwdt->wdd); in ixp4xx_wdt_probe()