imx7ulp_wdt       161 drivers/watchdog/imx7ulp_wdt.c 	struct imx7ulp_wdt_device *imx7ulp_wdt;
imx7ulp_wdt       166 drivers/watchdog/imx7ulp_wdt.c 	imx7ulp_wdt = devm_kzalloc(dev, sizeof(*imx7ulp_wdt), GFP_KERNEL);
imx7ulp_wdt       167 drivers/watchdog/imx7ulp_wdt.c 	if (!imx7ulp_wdt)
imx7ulp_wdt       170 drivers/watchdog/imx7ulp_wdt.c 	platform_set_drvdata(pdev, imx7ulp_wdt);
imx7ulp_wdt       172 drivers/watchdog/imx7ulp_wdt.c 	imx7ulp_wdt->base = devm_platform_ioremap_resource(pdev, 0);
imx7ulp_wdt       173 drivers/watchdog/imx7ulp_wdt.c 	if (IS_ERR(imx7ulp_wdt->base))
imx7ulp_wdt       174 drivers/watchdog/imx7ulp_wdt.c 		return PTR_ERR(imx7ulp_wdt->base);
imx7ulp_wdt       176 drivers/watchdog/imx7ulp_wdt.c 	imx7ulp_wdt->clk = devm_clk_get(dev, NULL);
imx7ulp_wdt       177 drivers/watchdog/imx7ulp_wdt.c 	if (IS_ERR(imx7ulp_wdt->clk)) {
imx7ulp_wdt       179 drivers/watchdog/imx7ulp_wdt.c 		return PTR_ERR(imx7ulp_wdt->clk);
imx7ulp_wdt       182 drivers/watchdog/imx7ulp_wdt.c 	ret = clk_prepare_enable(imx7ulp_wdt->clk);
imx7ulp_wdt       186 drivers/watchdog/imx7ulp_wdt.c 	ret = devm_add_action_or_reset(dev, imx7ulp_wdt_action, imx7ulp_wdt->clk);
imx7ulp_wdt       190 drivers/watchdog/imx7ulp_wdt.c 	wdog = &imx7ulp_wdt->wdd;
imx7ulp_wdt       201 drivers/watchdog/imx7ulp_wdt.c 	watchdog_set_drvdata(wdog, imx7ulp_wdt);
imx7ulp_wdt       202 drivers/watchdog/imx7ulp_wdt.c 	imx7ulp_wdt_init(imx7ulp_wdt->base, wdog->timeout * WDOG_CLOCK_RATE);
imx7ulp_wdt       209 drivers/watchdog/imx7ulp_wdt.c 	struct imx7ulp_wdt_device *imx7ulp_wdt = dev_get_drvdata(dev);
imx7ulp_wdt       211 drivers/watchdog/imx7ulp_wdt.c 	if (watchdog_active(&imx7ulp_wdt->wdd))
imx7ulp_wdt       212 drivers/watchdog/imx7ulp_wdt.c 		imx7ulp_wdt_stop(&imx7ulp_wdt->wdd);
imx7ulp_wdt       214 drivers/watchdog/imx7ulp_wdt.c 	clk_disable_unprepare(imx7ulp_wdt->clk);
imx7ulp_wdt       221 drivers/watchdog/imx7ulp_wdt.c 	struct imx7ulp_wdt_device *imx7ulp_wdt = dev_get_drvdata(dev);
imx7ulp_wdt       222 drivers/watchdog/imx7ulp_wdt.c 	u32 timeout = imx7ulp_wdt->wdd.timeout * WDOG_CLOCK_RATE;
imx7ulp_wdt       225 drivers/watchdog/imx7ulp_wdt.c 	ret = clk_prepare_enable(imx7ulp_wdt->clk);
imx7ulp_wdt       229 drivers/watchdog/imx7ulp_wdt.c 	if (imx7ulp_wdt_is_enabled(imx7ulp_wdt->base))
imx7ulp_wdt       230 drivers/watchdog/imx7ulp_wdt.c 		imx7ulp_wdt_init(imx7ulp_wdt->base, timeout);
imx7ulp_wdt       232 drivers/watchdog/imx7ulp_wdt.c 	if (watchdog_active(&imx7ulp_wdt->wdd))
imx7ulp_wdt       233 drivers/watchdog/imx7ulp_wdt.c 		imx7ulp_wdt_start(&imx7ulp_wdt->wdd);