Lines Matching refs:clkevt

42 	struct clock_event_device	clkevt;  member
50 container_of(x, struct sun5i_timer, clkevt)
92 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument
94 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_shutdown()
100 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument
102 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_set_oneshot()
109 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument
111 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_set_periodic()
120 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument
122 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_next_event()
136 ce->clkevt.event_handler(&ce->clkevt); in sun5i_timer_interrupt()
161 clockevents_update_freq(&cs->clkevt, ndata->new_rate); in sun5i_rate_cb()
207 ce->clkevt.name = dev->of_node->name; in sun5i_setup_clockevent()
208 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in sun5i_setup_clockevent()
209 ce->clkevt.set_next_event = sun5i_clkevt_next_event; in sun5i_setup_clockevent()
210 ce->clkevt.set_state_shutdown = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
211 ce->clkevt.set_state_periodic = sun5i_clkevt_set_periodic; in sun5i_setup_clockevent()
212 ce->clkevt.set_state_oneshot = sun5i_clkevt_set_oneshot; in sun5i_setup_clockevent()
213 ce->clkevt.tick_resume = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
214 ce->clkevt.rating = 340; in sun5i_setup_clockevent()
215 ce->clkevt.irq = irq; in sun5i_setup_clockevent()
216 ce->clkevt.cpumask = cpu_possible_mask; in sun5i_setup_clockevent()
222 clockevents_config_and_register(&ce->clkevt, rate, in sun5i_setup_clockevent()