• Home
  • Raw
  • Download

Lines Matching refs:wdt_dev

46 	struct watchdog_device wdt_dev;  member
67 static int meson_wdt_ping(struct watchdog_device *wdt_dev) in meson_wdt_ping() argument
69 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_ping()
76 static void meson_wdt_change_timeout(struct watchdog_device *wdt_dev, in meson_wdt_change_timeout() argument
79 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_change_timeout()
88 static int meson_wdt_set_timeout(struct watchdog_device *wdt_dev, in meson_wdt_set_timeout() argument
91 wdt_dev->timeout = timeout; in meson_wdt_set_timeout()
93 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout()
94 meson_wdt_ping(wdt_dev); in meson_wdt_set_timeout()
99 static int meson_wdt_stop(struct watchdog_device *wdt_dev) in meson_wdt_stop() argument
101 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_stop()
111 static int meson_wdt_start(struct watchdog_device *wdt_dev) in meson_wdt_start() argument
113 struct meson_wdt_dev *meson_wdt = watchdog_get_drvdata(wdt_dev); in meson_wdt_start()
116 meson_wdt_change_timeout(wdt_dev, meson_wdt->wdt_dev.timeout); in meson_wdt_start()
117 meson_wdt_ping(wdt_dev); in meson_wdt_start()
156 meson_wdt->wdt_dev.parent = &pdev->dev; in meson_wdt_probe()
157 meson_wdt->wdt_dev.info = &meson_wdt_info; in meson_wdt_probe()
158 meson_wdt->wdt_dev.ops = &meson_wdt_ops; in meson_wdt_probe()
159 meson_wdt->wdt_dev.timeout = MESON_WDT_TIMEOUT; in meson_wdt_probe()
160 meson_wdt->wdt_dev.max_timeout = MESON_WDT_MAX_TIMEOUT; in meson_wdt_probe()
161 meson_wdt->wdt_dev.min_timeout = MESON_WDT_MIN_TIMEOUT; in meson_wdt_probe()
163 watchdog_set_drvdata(&meson_wdt->wdt_dev, meson_wdt); in meson_wdt_probe()
165 watchdog_init_timeout(&meson_wdt->wdt_dev, timeout, &pdev->dev); in meson_wdt_probe()
166 watchdog_set_nowayout(&meson_wdt->wdt_dev, nowayout); in meson_wdt_probe()
168 meson_wdt_stop(&meson_wdt->wdt_dev); in meson_wdt_probe()
170 err = watchdog_register_device(&meson_wdt->wdt_dev); in meson_wdt_probe()
184 meson_wdt->wdt_dev.timeout, nowayout); in meson_wdt_probe()
195 watchdog_unregister_device(&meson_wdt->wdt_dev); in meson_wdt_remove()
204 meson_wdt_stop(&meson_wdt->wdt_dev); in meson_wdt_shutdown()