Home
last modified time | relevance | path

Searched refs:wdt_mem (Results 1 – 4 of 4) sorted by relevance

/drivers/watchdog/
Ddavinci_wdt.c72 static struct resource *wdt_mem; variable
218 wdt_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in davinci_wdt_probe()
219 if (wdt_mem == NULL) { in davinci_wdt_probe()
224 size = resource_size(wdt_mem); in davinci_wdt_probe()
225 if (!request_mem_region(wdt_mem->start, size, pdev->name)) { in davinci_wdt_probe()
230 wdt_base = ioremap(wdt_mem->start, size); in davinci_wdt_probe()
233 release_mem_region(wdt_mem->start, size); in davinci_wdt_probe()
234 wdt_mem = NULL; in davinci_wdt_probe()
241 release_mem_region(wdt_mem->start, size); in davinci_wdt_probe()
242 wdt_mem = NULL; in davinci_wdt_probe()
[all …]
Dvia_wdt.c68 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()
[all …]
Ds3c2410_wdt.c78 static struct resource *wdt_mem; variable
318 wdt_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c2410wdt_probe()
319 if (wdt_mem == NULL) { in s3c2410wdt_probe()
333 size = resource_size(wdt_mem); in s3c2410wdt_probe()
334 if (!request_mem_region(wdt_mem->start, size, pdev->name)) { in s3c2410wdt_probe()
340 wdt_base = ioremap(wdt_mem->start, size); in s3c2410wdt_probe()
431 release_mem_region(wdt_mem->start, size); in s3c2410wdt_probe()
435 wdt_mem = NULL; in s3c2410wdt_probe()
453 release_mem_region(wdt_mem->start, resource_size(wdt_mem)); in s3c2410wdt_remove()
455 wdt_mem = NULL; in s3c2410wdt_remove()
Dmax63xx_wdt.c179 struct resource *wdt_mem; in max63xx_wdt_probe() local
200 wdt_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in max63xx_wdt_probe()
201 wdt_base = devm_request_and_ioremap(&pdev->dev, wdt_mem); in max63xx_wdt_probe()