Searched refs:mtk_wdt (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/watchdog/
H A Dmtk_wdt.c73 struct mtk_wdt_dev *mtk_wdt; mtk_reset_handler() local
76 mtk_wdt = container_of(this, struct mtk_wdt_dev, restart_handler); mtk_reset_handler()
77 wdt_base = mtk_wdt->wdt_base; mtk_reset_handler()
89 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_ping() local
90 void __iomem *wdt_base = mtk_wdt->wdt_base; mtk_wdt_ping()
100 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_set_timeout() local
101 void __iomem *wdt_base = mtk_wdt->wdt_base; mtk_wdt_set_timeout()
120 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_stop() local
121 void __iomem *wdt_base = mtk_wdt->wdt_base; mtk_wdt_stop()
134 struct mtk_wdt_dev *mtk_wdt = watchdog_get_drvdata(wdt_dev); mtk_wdt_start() local
135 void __iomem *wdt_base = mtk_wdt->wdt_base; mtk_wdt_start()
167 struct mtk_wdt_dev *mtk_wdt; mtk_wdt_probe() local
171 mtk_wdt = devm_kzalloc(&pdev->dev, sizeof(*mtk_wdt), GFP_KERNEL); mtk_wdt_probe()
172 if (!mtk_wdt) mtk_wdt_probe()
175 platform_set_drvdata(pdev, mtk_wdt); mtk_wdt_probe()
178 mtk_wdt->wdt_base = devm_ioremap_resource(&pdev->dev, res); mtk_wdt_probe()
179 if (IS_ERR(mtk_wdt->wdt_base)) mtk_wdt_probe()
180 return PTR_ERR(mtk_wdt->wdt_base); mtk_wdt_probe()
182 mtk_wdt->wdt_dev.info = &mtk_wdt_info; mtk_wdt_probe()
183 mtk_wdt->wdt_dev.ops = &mtk_wdt_ops; mtk_wdt_probe()
184 mtk_wdt->wdt_dev.timeout = WDT_MAX_TIMEOUT; mtk_wdt_probe()
185 mtk_wdt->wdt_dev.max_timeout = WDT_MAX_TIMEOUT; mtk_wdt_probe()
186 mtk_wdt->wdt_dev.min_timeout = WDT_MIN_TIMEOUT; mtk_wdt_probe()
187 mtk_wdt->wdt_dev.parent = &pdev->dev; mtk_wdt_probe()
189 watchdog_init_timeout(&mtk_wdt->wdt_dev, timeout, &pdev->dev); mtk_wdt_probe()
190 watchdog_set_nowayout(&mtk_wdt->wdt_dev, nowayout); mtk_wdt_probe()
192 watchdog_set_drvdata(&mtk_wdt->wdt_dev, mtk_wdt); mtk_wdt_probe()
194 mtk_wdt_stop(&mtk_wdt->wdt_dev); mtk_wdt_probe()
196 err = watchdog_register_device(&mtk_wdt->wdt_dev); mtk_wdt_probe()
200 mtk_wdt->restart_handler.notifier_call = mtk_reset_handler; mtk_wdt_probe()
201 mtk_wdt->restart_handler.priority = 128; mtk_wdt_probe()
202 err = register_restart_handler(&mtk_wdt->restart_handler); mtk_wdt_probe()
208 mtk_wdt->wdt_dev.timeout, nowayout); mtk_wdt_probe()
215 struct mtk_wdt_dev *mtk_wdt = platform_get_drvdata(pdev); mtk_wdt_remove() local
217 unregister_restart_handler(&mtk_wdt->restart_handler); mtk_wdt_remove()
219 watchdog_unregister_device(&mtk_wdt->wdt_dev); mtk_wdt_remove()
H A DMakefile66 obj-$(CONFIG_MEDIATEK_WATCHDOG) += mtk_wdt.o

Completed in 124 milliseconds