Lines Matching full:tcu
77 struct ep93xx_tcu *tcu = ep93xx_tcu; in ep93xx_clocksource_read() local
79 return lo_hi_readq(tcu->base + EP93XX_TIMER4_VALUE_LOW) & GENMASK_ULL(39, 0); in ep93xx_clocksource_read()
90 struct ep93xx_tcu *tcu = ep93xx_tcu; in ep93xx_clkevt_set_next_event() local
96 writel(tmode, tcu->base + EP93XX_TIMER3_CONTROL); in ep93xx_clkevt_set_next_event()
99 writel(next, tcu->base + EP93XX_TIMER3_LOAD); in ep93xx_clkevt_set_next_event()
101 tcu->base + EP93XX_TIMER3_CONTROL); in ep93xx_clkevt_set_next_event()
107 struct ep93xx_tcu *tcu = ep93xx_tcu; in ep93xx_clkevt_shutdown() local
109 writel(0, tcu->base + EP93XX_TIMER3_CONTROL); in ep93xx_clkevt_shutdown()
126 struct ep93xx_tcu *tcu = ep93xx_tcu; in ep93xx_timer_interrupt() local
130 writel(1, tcu->base + EP93XX_TIMER3_CLEAR); in ep93xx_timer_interrupt()
141 struct ep93xx_tcu *tcu; in ep93xx_timer_of_init() local
144 tcu = kzalloc(sizeof(*tcu), GFP_KERNEL); in ep93xx_timer_of_init()
145 if (!tcu) in ep93xx_timer_of_init()
148 tcu->base = of_iomap(np, 0); in ep93xx_timer_of_init()
149 if (!tcu->base) { in ep93xx_timer_of_init()
155 ep93xx_tcu = tcu; in ep93xx_timer_of_init()
166 tcu->base + EP93XX_TIMER4_VALUE_HIGH); in ep93xx_timer_of_init()
186 kfree(tcu); in ep93xx_timer_of_init()