Lines Matching refs:to

87 	struct timer_of *to = to_timer_of(evt);  in sun4i_clkevt_shutdown()  local
89 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_shutdown()
96 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_oneshot() local
98 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_oneshot()
99 sun4i_clkevt_time_start(timer_of_base(to), 0, false); in sun4i_clkevt_set_oneshot()
106 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_periodic() local
108 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_periodic()
109 sun4i_clkevt_time_setup(timer_of_base(to), 0, timer_of_period(to)); in sun4i_clkevt_set_periodic()
110 sun4i_clkevt_time_start(timer_of_base(to), 0, true); in sun4i_clkevt_set_periodic()
118 struct timer_of *to = to_timer_of(clkevt); in sun4i_clkevt_next_event() local
120 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_next_event()
121 sun4i_clkevt_time_setup(timer_of_base(to), 0, evt - TIMER_SYNC_TICKS); in sun4i_clkevt_next_event()
122 sun4i_clkevt_time_start(timer_of_base(to), 0, false); in sun4i_clkevt_next_event()
135 struct timer_of *to = to_timer_of(evt); in sun4i_timer_interrupt() local
137 sun4i_timer_clear_interrupt(timer_of_base(to)); in sun4i_timer_interrupt()
143 static struct timer_of to = { variable
166 return ~readl(timer_of_base(&to) + TIMER_CNTVAL_REG(1)); in sun4i_timer_sched_read()
174 ret = timer_of_init(node, &to); in sun4i_timer_init()
178 writel(~0, timer_of_base(&to) + TIMER_INTVAL_REG(1)); in sun4i_timer_init()
181 timer_of_base(&to) + TIMER_CTL_REG(1)); in sun4i_timer_init()
192 timer_of_rate(&to)); in sun4i_timer_init()
194 ret = clocksource_mmio_init(timer_of_base(&to) + TIMER_CNTVAL_REG(1), in sun4i_timer_init()
195 node->name, timer_of_rate(&to), 350, 32, in sun4i_timer_init()
203 timer_of_base(&to) + TIMER_CTL_REG(0)); in sun4i_timer_init()
206 sun4i_clkevt_time_stop(timer_of_base(&to), 0); in sun4i_timer_init()
209 sun4i_timer_clear_interrupt(timer_of_base(&to)); in sun4i_timer_init()
211 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), in sun4i_timer_init()
215 val = readl(timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()
216 writel(val | TIMER_IRQ_EN(0), timer_of_base(&to) + TIMER_IRQ_EN_REG); in sun4i_timer_init()