Lines Matching refs:wdd

26 	struct watchdog_device wdd;  member
38 static int gxp_wdt_start(struct watchdog_device *wdd) in gxp_wdt_start() argument
40 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_start()
42 writew(SECS_TO_WDOG_TICKS(wdd->timeout), drvdata->base + GXP_WDT_CNT_OFS); in gxp_wdt_start()
47 static int gxp_wdt_stop(struct watchdog_device *wdd) in gxp_wdt_stop() argument
49 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_stop()
58 static int gxp_wdt_set_timeout(struct watchdog_device *wdd, in gxp_wdt_set_timeout() argument
61 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_set_timeout()
64 wdd->timeout = timeout; in gxp_wdt_set_timeout()
65 actual = min(timeout * 100, wdd->max_hw_heartbeat_ms / 10); in gxp_wdt_set_timeout()
71 static unsigned int gxp_wdt_get_timeleft(struct watchdog_device *wdd) in gxp_wdt_get_timeleft() argument
73 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_get_timeleft()
79 static int gxp_wdt_ping(struct watchdog_device *wdd) in gxp_wdt_ping() argument
81 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_wdt_ping()
87 static int gxp_restart(struct watchdog_device *wdd, unsigned long action, in gxp_restart() argument
90 struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd); in gxp_restart()
136 drvdata->wdd.info = &gxp_wdt_info; in gxp_wdt_probe()
137 drvdata->wdd.ops = &gxp_wdt_ops; in gxp_wdt_probe()
138 drvdata->wdd.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT_MS; in gxp_wdt_probe()
139 drvdata->wdd.parent = dev; in gxp_wdt_probe()
140 drvdata->wdd.timeout = WDT_DEFAULT_TIMEOUT; in gxp_wdt_probe()
142 watchdog_set_drvdata(&drvdata->wdd, drvdata); in gxp_wdt_probe()
143 watchdog_set_nowayout(&drvdata->wdd, WATCHDOG_NOWAYOUT); in gxp_wdt_probe()
148 set_bit(WDOG_HW_RUNNING, &drvdata->wdd.status); in gxp_wdt_probe()
150 watchdog_set_restart_priority(&drvdata->wdd, 128); in gxp_wdt_probe()
152 watchdog_stop_on_reboot(&drvdata->wdd); in gxp_wdt_probe()
153 err = devm_watchdog_register_device(dev, &drvdata->wdd); in gxp_wdt_probe()