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

/linux-4.4.14/drivers/watchdog/
H A Dnv_tco.c48 static unsigned int tcobase; variable
85 val = inl(TCO_CNT(tcobase)); tco_timer_start()
87 outl(val, TCO_CNT(tcobase)); tco_timer_start()
97 val = inl(TCO_CNT(tcobase)); tco_timer_stop()
99 outl(val, TCO_CNT(tcobase)); tco_timer_stop()
108 outb(0x01, TCO_RLD(tcobase)); tco_timer_keepalive()
134 val = inb(TCO_TMR(tcobase)); tco_timer_set_heartbeat()
137 outb(val, TCO_TMR(tcobase)); tco_timer_set_heartbeat()
138 val = inb(TCO_TMR(tcobase)); tco_timer_set_heartbeat()
328 pr_err("failed to get tcobase address\n");
332 tcobase = val + 0x40;
334 if (!request_region(tcobase, 0x10, "NV TCO")) {
335 pr_err("I/O address 0x%04x already in use\n", tcobase);
350 if (!request_region(MCP51_SMI_EN(tcobase), 4, "NV TCO")) {
352 MCP51_SMI_EN(tcobase));
355 val = inl(MCP51_SMI_EN(tcobase));
357 outl(val, MCP51_SMI_EN(tcobase));
358 val = inl(MCP51_SMI_EN(tcobase));
359 release_region(MCP51_SMI_EN(tcobase), 4);
377 release_region(tcobase, 0x10);
391 inl(TCO_STS(tcobase)) & TCO_STS_TCO2TO_STS ? "" : "not "); nv_tco_init()
394 outl(TCO_STS_RESET, TCO_STS(tcobase)); nv_tco_init()
419 tcobase, heartbeat, nowayout); nv_tco_init()
424 release_region(tcobase, 0x10); nv_tco_init()
447 release_region(tcobase, 0x10); nv_tco_cleanup()
452 if (tcobase) nv_tco_remove()
H A Dsp5100_tco.c50 static void __iomem *tcobase; variable
82 val = readl(SP5100_WDT_CONTROL(tcobase)); tco_timer_start()
84 writel(val, SP5100_WDT_CONTROL(tcobase)); tco_timer_start()
94 val = readl(SP5100_WDT_CONTROL(tcobase)); tco_timer_stop()
96 writel(val, SP5100_WDT_CONTROL(tcobase)); tco_timer_stop()
106 val = readl(SP5100_WDT_CONTROL(tcobase)); tco_timer_keepalive()
108 writel(val, SP5100_WDT_CONTROL(tcobase)); tco_timer_keepalive()
121 writel(t, SP5100_WDT_COUNT(tcobase)); tco_timer_set_heartbeat()
424 tcobase = ioremap(val, SP5100_WDT_MEM_MAP_SIZE);
425 if (!tcobase) {
426 pr_err("failed to get tcobase address\n");
436 val = readl(SP5100_WDT_CONTROL(tcobase));
443 writel(val, SP5100_WDT_CONTROL(tcobase));
500 tcobase, heartbeat, nowayout); sp5100_tco_init()
505 iounmap(tcobase); sp5100_tco_init()
519 iounmap(tcobase); sp5100_tco_cleanup()
526 if (tcobase) sp5100_tco_remove()

Completed in 257 milliseconds