Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clocksource/
H A Dtimer-atmel-tcb.c48 } tcb_cache[3]; variable
77 for (i = 0; i < ARRAY_SIZE(tcb_cache); i++) { in tc_clksrc_suspend()
78 tcb_cache[i].cmr = readl(tcaddr + ATMEL_TC_REG(i, CMR)); in tc_clksrc_suspend()
79 tcb_cache[i].imr = readl(tcaddr + ATMEL_TC_REG(i, IMR)); in tc_clksrc_suspend()
80 tcb_cache[i].rc = readl(tcaddr + ATMEL_TC_REG(i, RC)); in tc_clksrc_suspend()
81 tcb_cache[i].clken = !!(readl(tcaddr + ATMEL_TC_REG(i, SR)) & in tc_clksrc_suspend()
92 for (i = 0; i < ARRAY_SIZE(tcb_cache); i++) { in tc_clksrc_resume()
94 writel(tcb_cache[i].cmr, tcaddr + ATMEL_TC_REG(i, CMR)); in tc_clksrc_resume()
95 writel(tcb_cache[i].rc, tcaddr + ATMEL_TC_REG(i, RC)); in tc_clksrc_resume()
101 writel(tcb_cache[i].imr, tcaddr + ATMEL_TC_REG(i, IER)); in tc_clksrc_resume()
[all …]