Lines Matching refs:timer
35 static struct timer_regs __iomem *timer; variable
69 ((soc_readl(&timer->emumgt) & (0xf << 16)) >> 16)
82 u32 tcr = soc_readl(&timer->tcr) & ~TCR_ENAMODELO_MASK; in timer64_config()
84 soc_writel(tcr, &timer->tcr); in timer64_config()
85 soc_writel(period - 1, &timer->prdlo); in timer64_config()
86 soc_writel(0, &timer->cntlo); in timer64_config()
88 soc_writel(tcr, &timer->tcr); in timer64_config()
99 soc_writel(soc_readl(&timer->tcr) & ~TCR_ENAMODELO_MASK, &timer->tcr); in timer64_enable()
100 soc_writel(0, &timer->prdlo); in timer64_enable()
103 val = soc_readl(&timer->tcr); in timer64_enable()
104 soc_writel(val & ~(TCR_CLKSRCLO | TCR_PWIDLO_MASK), &timer->tcr); in timer64_enable()
107 val = soc_readl(&timer->tgcr) & ~TGCR_TIMMODE_MASK; in timer64_enable()
108 soc_writel(val, &timer->tgcr); in timer64_enable()
109 soc_writel(val | (TGCR_TIMLORS | TGCR_TIMMODE_UD32), &timer->tgcr); in timer64_enable()
115 soc_writel(soc_readl(&timer->tcr) & ~TCR_ENAMODELO_MASK, &timer->tcr); in timer64_disable()
116 soc_writel(0, &timer->prdlo); in timer64_disable()
205 timer = of_iomap(np, 0); in timer64_init()
206 if (!timer) { in timer64_init()
210 pr_debug("%s: Timer registers=%p.\n", np->full_name, timer); in timer64_init()
215 iounmap(timer); in timer64_init()