Lines Matching refs:wdt_dev

183 static int orion_wdt_ping(struct watchdog_device *wdt_dev)
185 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
187 writel(dev->clk_rate * wdt_dev->timeout,
190 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout),
196 static int armada375_start(struct watchdog_device *wdt_dev)
198 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
202 writel(dev->clk_rate * wdt_dev->timeout,
205 writel(dev->clk_rate * (wdt_dev->timeout - wdt_dev->pretimeout),
226 static int armada370_start(struct watchdog_device *wdt_dev)
228 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
232 writel(dev->clk_rate * wdt_dev->timeout,
251 static int orion_start(struct watchdog_device *wdt_dev)
253 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
256 writel(dev->clk_rate * wdt_dev->timeout,
270 static int orion_wdt_start(struct watchdog_device *wdt_dev)
272 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
275 return dev->data->start(wdt_dev);
278 static int orion_stop(struct watchdog_device *wdt_dev)
280 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
291 static int armada375_stop(struct watchdog_device *wdt_dev)
293 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
305 if (wdt_dev->info->options & WDIOF_PRETIMEOUT)
312 static int armada370_stop(struct watchdog_device *wdt_dev)
314 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
324 if (wdt_dev->info->options & WDIOF_PRETIMEOUT)
331 static int orion_wdt_stop(struct watchdog_device *wdt_dev)
333 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
335 return dev->data->stop(wdt_dev);
359 static int orion_wdt_enabled(struct watchdog_device *wdt_dev)
361 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
366 static unsigned int orion_wdt_get_timeleft(struct watchdog_device *wdt_dev)
368 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
652 struct watchdog_device *wdt_dev = platform_get_drvdata(pdev);
653 struct orion_watchdog *dev = watchdog_get_drvdata(wdt_dev);
655 watchdog_unregister_device(wdt_dev);
662 struct watchdog_device *wdt_dev = platform_get_drvdata(pdev);
663 orion_wdt_stop(wdt_dev);