Lines Matching refs:to

84 	struct timer_of *to = to_timer_of(evt);  in sun4i_clkevt_shutdown()  local
86 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_shutdown()
93 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_oneshot() local
95 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_oneshot()
96 sun4i_clkevt_time_start(timer_of_base(to), 0, false); in sun4i_clkevt_set_oneshot()
103 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_periodic() local
105 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_periodic()
106 sun4i_clkevt_time_setup(timer_of_base(to), 0, timer_of_period(to)); in sun4i_clkevt_set_periodic()
107 sun4i_clkevt_time_start(timer_of_base(to), 0, true); in sun4i_clkevt_set_periodic()
115 struct timer_of *to = to_timer_of(clkevt); in sun4i_clkevt_next_event() local
117 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_next_event()
118 sun4i_clkevt_time_setup(timer_of_base(to), 0, evt - TIMER_SYNC_TICKS); in sun4i_clkevt_next_event()
119 sun4i_clkevt_time_start(timer_of_base(to), 0, false); in sun4i_clkevt_next_event()
132 struct timer_of *to = to_timer_of(evt); in sun4i_timer_interrupt() local
134 sun4i_timer_clear_interrupt(timer_of_base(to)); in sun4i_timer_interrupt()
140 static struct timer_of to = { variable
163 return ~readl(timer_of_base(&to) + TIMER_CNTVAL_REG(1)); in sun4i_timer_sched_read()
171 ret = timer_of_init(node, &to); in sun4i_timer_init()
175 writel(~0, timer_of_base(&to) + TIMER_INTVAL_REG(1)); in sun4i_timer_init()
178 timer_of_base(&to) + TIMER_CTL_REG(1)); in sun4i_timer_init()
189 timer_of_rate(&to)); in sun4i_timer_init()
191 ret = clocksource_mmio_init(timer_of_base(&to) + TIMER_CNTVAL_REG(1), in sun4i_timer_init()
192 node->name, timer_of_rate(&to), 350, 32, in sun4i_timer_init()
200 timer_of_base(&to) + TIMER_CTL_REG(0)); in sun4i_timer_init()
203 sun4i_clkevt_time_stop(timer_of_base(&to), 0); in sun4i_timer_init()
206 sun4i_timer_clear_interrupt(timer_of_base(&to)); in sun4i_timer_init()
208 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), in sun4i_timer_init()
212 val = readl(timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()
213 writel(val | TIMER_IRQ_EN(0), timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()