Lines Matching refs:wdd
41 struct watchdog_device wdd; member
47 static int sl28cpld_wdt_ping(struct watchdog_device *wdd) in sl28cpld_wdt_ping() argument
49 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_ping()
55 static int sl28cpld_wdt_start(struct watchdog_device *wdd) in sl28cpld_wdt_start() argument
57 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_start()
70 static int sl28cpld_wdt_stop(struct watchdog_device *wdd) in sl28cpld_wdt_stop() argument
72 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_stop()
78 static unsigned int sl28cpld_wdt_get_timeleft(struct watchdog_device *wdd) in sl28cpld_wdt_get_timeleft() argument
80 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_get_timeleft()
91 static int sl28cpld_wdt_set_timeout(struct watchdog_device *wdd, in sl28cpld_wdt_set_timeout() argument
94 struct sl28cpld_wdt *wdt = watchdog_get_drvdata(wdd); in sl28cpld_wdt_set_timeout()
101 wdd->timeout = timeout; in sl28cpld_wdt_set_timeout()
122 struct watchdog_device *wdd; in sl28cpld_wdt_probe() local
147 wdd = &wdt->wdd; in sl28cpld_wdt_probe()
148 wdd->parent = &pdev->dev; in sl28cpld_wdt_probe()
149 wdd->info = &sl28cpld_wdt_info; in sl28cpld_wdt_probe()
150 wdd->ops = &sl28cpld_wdt_ops; in sl28cpld_wdt_probe()
151 wdd->min_timeout = 1; in sl28cpld_wdt_probe()
152 wdd->max_timeout = 255; in sl28cpld_wdt_probe()
154 watchdog_set_drvdata(wdd, wdt); in sl28cpld_wdt_probe()
155 watchdog_stop_on_reboot(wdd); in sl28cpld_wdt_probe()
179 wdd->timeout = val; in sl28cpld_wdt_probe()
181 wdd->timeout = WDT_DEFAULT_TIMEOUT; in sl28cpld_wdt_probe()
183 watchdog_init_timeout(wdd, timeout, &pdev->dev); in sl28cpld_wdt_probe()
184 sl28cpld_wdt_set_timeout(wdd, wdd->timeout); in sl28cpld_wdt_probe()
189 watchdog_set_nowayout(wdd, nowayout); in sl28cpld_wdt_probe()
196 sl28cpld_wdt_start(wdd); in sl28cpld_wdt_probe()
197 set_bit(WDOG_HW_RUNNING, &wdd->status); in sl28cpld_wdt_probe()
200 ret = devm_watchdog_register_device(&pdev->dev, wdd); in sl28cpld_wdt_probe()
207 wdd->timeout, nowayout ? ", nowayout" : ""); in sl28cpld_wdt_probe()