Lines Matching refs:twd_base
26 static void __iomem *twd_base; variable
39 writel_relaxed(0, twd_base + TWD_TIMER_CONTROL); in twd_shutdown()
47 twd_base + TWD_TIMER_CONTROL); in twd_set_oneshot()
58 twd_base + TWD_TIMER_LOAD); in twd_set_periodic()
59 writel_relaxed(ctrl, twd_base + TWD_TIMER_CONTROL); in twd_set_periodic()
66 unsigned long ctrl = readl_relaxed(twd_base + TWD_TIMER_CONTROL); in twd_set_next_event()
70 writel_relaxed(evt, twd_base + TWD_TIMER_COUNTER); in twd_set_next_event()
71 writel_relaxed(ctrl, twd_base + TWD_TIMER_CONTROL); in twd_set_next_event()
84 if (readl_relaxed(twd_base + TWD_TIMER_INTSTAT)) { in twd_timer_ack()
85 writel_relaxed(1, twd_base + TWD_TIMER_INTSTAT); in twd_timer_ack()
163 writel_relaxed(0x1, twd_base + TWD_TIMER_CONTROL); in twd_calibrate_rate()
166 writel_relaxed(0xFFFFFFFFU, twd_base + TWD_TIMER_COUNTER); in twd_calibrate_rate()
171 count = readl_relaxed(twd_base + TWD_TIMER_COUNTER); in twd_calibrate_rate()
229 writel_relaxed(0, twd_base + TWD_TIMER_CONTROL); in twd_timer_setup()
242 writel_relaxed(0, twd_base + TWD_TIMER_CONTROL); in twd_timer_setup()
309 iounmap(twd_base); in twd_local_timer_common_register()
310 twd_base = NULL; in twd_local_timer_common_register()
326 twd_base = of_iomap(np, 0); in twd_local_timer_of_register()
327 if (!twd_base) { in twd_local_timer_of_register()