gwdt 52 drivers/watchdog/ftwdt010_wdt.c struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); gwdt 55 drivers/watchdog/ftwdt010_wdt.c writel(wdd->timeout * WDT_CLOCK, gwdt->base + FTWDT010_WDLOAD); gwdt 56 drivers/watchdog/ftwdt010_wdt.c writel(WDRESTART_MAGIC, gwdt->base + FTWDT010_WDRESTART); gwdt 59 drivers/watchdog/ftwdt010_wdt.c writel(enable, gwdt->base + FTWDT010_WDCR); gwdt 60 drivers/watchdog/ftwdt010_wdt.c if (gwdt->has_irq) gwdt 63 drivers/watchdog/ftwdt010_wdt.c writel(enable, gwdt->base + FTWDT010_WDCR); gwdt 70 drivers/watchdog/ftwdt010_wdt.c struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); gwdt 72 drivers/watchdog/ftwdt010_wdt.c writel(0, gwdt->base + FTWDT010_WDCR); gwdt 79 drivers/watchdog/ftwdt010_wdt.c struct ftwdt010_wdt *gwdt = to_ftwdt010_wdt(wdd); gwdt 81 drivers/watchdog/ftwdt010_wdt.c writel(WDRESTART_MAGIC, gwdt->base + FTWDT010_WDRESTART); gwdt 98 drivers/watchdog/ftwdt010_wdt.c struct ftwdt010_wdt *gwdt = data; gwdt 100 drivers/watchdog/ftwdt010_wdt.c watchdog_notify_pretimeout(&gwdt->wdd); gwdt 124 drivers/watchdog/ftwdt010_wdt.c struct ftwdt010_wdt *gwdt; gwdt 129 drivers/watchdog/ftwdt010_wdt.c gwdt = devm_kzalloc(dev, sizeof(*gwdt), GFP_KERNEL); gwdt 130 drivers/watchdog/ftwdt010_wdt.c if (!gwdt) gwdt 133 drivers/watchdog/ftwdt010_wdt.c gwdt->base = devm_platform_ioremap_resource(pdev, 0); gwdt 134 drivers/watchdog/ftwdt010_wdt.c if (IS_ERR(gwdt->base)) gwdt 135 drivers/watchdog/ftwdt010_wdt.c return PTR_ERR(gwdt->base); gwdt 137 drivers/watchdog/ftwdt010_wdt.c gwdt->dev = dev; gwdt 138 drivers/watchdog/ftwdt010_wdt.c gwdt->wdd.info = &ftwdt010_wdt_info; gwdt 139 drivers/watchdog/ftwdt010_wdt.c gwdt->wdd.ops = &ftwdt010_wdt_ops; gwdt 140 drivers/watchdog/ftwdt010_wdt.c gwdt->wdd.min_timeout = 1; gwdt 141 drivers/watchdog/ftwdt010_wdt.c gwdt->wdd.max_timeout = 0xFFFFFFFF / WDT_CLOCK; gwdt 142 drivers/watchdog/ftwdt010_wdt.c gwdt->wdd.parent = dev; gwdt 148 drivers/watchdog/ftwdt010_wdt.c gwdt->wdd.timeout = 13U; gwdt 149 drivers/watchdog/ftwdt010_wdt.c watchdog_init_timeout(&gwdt->wdd, 0, dev); gwdt 151 drivers/watchdog/ftwdt010_wdt.c reg = readw(gwdt->base + FTWDT010_WDCR); gwdt 155 drivers/watchdog/ftwdt010_wdt.c writel(reg, gwdt->base + FTWDT010_WDCR); gwdt 161 drivers/watchdog/ftwdt010_wdt.c "watchdog bark", gwdt); gwdt 164 drivers/watchdog/ftwdt010_wdt.c gwdt->has_irq = true; gwdt 167 drivers/watchdog/ftwdt010_wdt.c ret = devm_watchdog_register_device(dev, &gwdt->wdd); gwdt 172 drivers/watchdog/ftwdt010_wdt.c platform_set_drvdata(pdev, gwdt); gwdt 180 drivers/watchdog/ftwdt010_wdt.c struct ftwdt010_wdt *gwdt = dev_get_drvdata(dev); gwdt 183 drivers/watchdog/ftwdt010_wdt.c reg = readw(gwdt->base + FTWDT010_WDCR); gwdt 185 drivers/watchdog/ftwdt010_wdt.c writel(reg, gwdt->base + FTWDT010_WDCR); gwdt 192 drivers/watchdog/ftwdt010_wdt.c struct ftwdt010_wdt *gwdt = dev_get_drvdata(dev); gwdt 195 drivers/watchdog/ftwdt010_wdt.c if (watchdog_active(&gwdt->wdd)) { gwdt 196 drivers/watchdog/ftwdt010_wdt.c reg = readw(gwdt->base + FTWDT010_WDCR); gwdt 198 drivers/watchdog/ftwdt010_wdt.c writel(reg, gwdt->base + FTWDT010_WDCR); gwdt 121 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); gwdt 126 drivers/watchdog/sbsa_gwdt.c writel(gwdt->clk * timeout, gwdt 127 drivers/watchdog/sbsa_gwdt.c gwdt->control_base + SBSA_GWDT_WOR); gwdt 134 drivers/watchdog/sbsa_gwdt.c writel(gwdt->clk / 2 * timeout, gwdt 135 drivers/watchdog/sbsa_gwdt.c gwdt->control_base + SBSA_GWDT_WOR); gwdt 142 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); gwdt 151 drivers/watchdog/sbsa_gwdt.c !(readl(gwdt->control_base + SBSA_GWDT_WCS) & SBSA_GWDT_WCS_WS0)) gwdt 152 drivers/watchdog/sbsa_gwdt.c timeleft += readl(gwdt->control_base + SBSA_GWDT_WOR); gwdt 154 drivers/watchdog/sbsa_gwdt.c timeleft += lo_hi_readq(gwdt->control_base + SBSA_GWDT_WCV) - gwdt 157 drivers/watchdog/sbsa_gwdt.c do_div(timeleft, gwdt->clk); gwdt 164 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); gwdt 170 drivers/watchdog/sbsa_gwdt.c writel(0, gwdt->refresh_base + SBSA_GWDT_WRR); gwdt 177 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); gwdt 180 drivers/watchdog/sbsa_gwdt.c writel(SBSA_GWDT_WCS_EN, gwdt->control_base + SBSA_GWDT_WCS); gwdt 187 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt = watchdog_get_drvdata(wdd); gwdt 190 drivers/watchdog/sbsa_gwdt.c writel(0, gwdt->control_base + SBSA_GWDT_WCS); gwdt 224 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt; gwdt 228 drivers/watchdog/sbsa_gwdt.c gwdt = devm_kzalloc(dev, sizeof(*gwdt), GFP_KERNEL); gwdt 229 drivers/watchdog/sbsa_gwdt.c if (!gwdt) gwdt 231 drivers/watchdog/sbsa_gwdt.c platform_set_drvdata(pdev, gwdt); gwdt 246 drivers/watchdog/sbsa_gwdt.c gwdt->clk = arch_timer_get_cntfrq(); gwdt 247 drivers/watchdog/sbsa_gwdt.c gwdt->refresh_base = rf_base; gwdt 248 drivers/watchdog/sbsa_gwdt.c gwdt->control_base = cf_base; gwdt 250 drivers/watchdog/sbsa_gwdt.c wdd = &gwdt->wdd; gwdt 255 drivers/watchdog/sbsa_gwdt.c wdd->max_hw_heartbeat_ms = U32_MAX / gwdt->clk * 1000; gwdt 257 drivers/watchdog/sbsa_gwdt.c watchdog_set_drvdata(wdd, gwdt); gwdt 280 drivers/watchdog/sbsa_gwdt.c pdev->name, gwdt)) { gwdt 310 drivers/watchdog/sbsa_gwdt.c wdd->timeout, gwdt->clk, action, gwdt 319 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt = dev_get_drvdata(dev); gwdt 321 drivers/watchdog/sbsa_gwdt.c if (watchdog_active(&gwdt->wdd)) gwdt 322 drivers/watchdog/sbsa_gwdt.c sbsa_gwdt_stop(&gwdt->wdd); gwdt 330 drivers/watchdog/sbsa_gwdt.c struct sbsa_gwdt *gwdt = dev_get_drvdata(dev); gwdt 332 drivers/watchdog/sbsa_gwdt.c if (watchdog_active(&gwdt->wdd)) gwdt 333 drivers/watchdog/sbsa_gwdt.c sbsa_gwdt_start(&gwdt->wdd);