Lines Matching refs:wdt_mem
68 static void __iomem *wdt_mem; variable
77 unsigned int ctl = readl(wdt_mem); in wdt_reset()
79 writel(ctl | VIA_WDT_TRIGGER, wdt_mem); in wdt_reset()
110 unsigned int ctl = readl(wdt_mem); in wdt_start()
112 writel(wdd->timeout, wdt_mem + VIA_WDT_COUNT); in wdt_start()
113 writel(ctl | VIA_WDT_RUNNING | VIA_WDT_TRIGGER, wdt_mem); in wdt_start()
121 unsigned int ctl = readl(wdt_mem); in wdt_stop()
123 writel(ctl & ~VIA_WDT_RUNNING, wdt_mem); in wdt_stop()
130 writel(new_timeout, wdt_mem + VIA_WDT_COUNT); in wdt_set_timeout()
199 wdt_mem = ioremap(mmio, VIA_WDT_MMIO_LEN); in wdt_probe()
200 if (wdt_mem == NULL) { in wdt_probe()
211 if (readl(wdt_mem) & VIA_WDT_FIRED) in wdt_probe()
223 iounmap(wdt_mem); in wdt_probe()
237 iounmap(wdt_mem); in wdt_remove()