Lines Matching refs:clkevt

60 	struct clock_event_device	clkevt;  member
64 container_of(x, struct sun5i_timer_clkevt, clkevt)
106 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument
108 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_shutdown()
114 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument
116 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_oneshot()
123 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument
125 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_periodic()
134 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument
136 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_next_event()
150 ce->clkevt.event_handler(&ce->clkevt); in sun5i_timer_interrupt()
251 clockevents_update_freq(&ce->clkevt, ndata->new_rate); in sun5i_rate_cb_clkevt()
290 ce->clkevt.name = node->name; in sun5i_setup_clockevent()
291 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in sun5i_setup_clockevent()
292 ce->clkevt.set_next_event = sun5i_clkevt_next_event; in sun5i_setup_clockevent()
293 ce->clkevt.set_state_shutdown = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
294 ce->clkevt.set_state_periodic = sun5i_clkevt_set_periodic; in sun5i_setup_clockevent()
295 ce->clkevt.set_state_oneshot = sun5i_clkevt_set_oneshot; in sun5i_setup_clockevent()
296 ce->clkevt.tick_resume = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
297 ce->clkevt.rating = 340; in sun5i_setup_clockevent()
298 ce->clkevt.irq = irq; in sun5i_setup_clockevent()
299 ce->clkevt.cpumask = cpu_possible_mask; in sun5i_setup_clockevent()
305 clockevents_config_and_register(&ce->clkevt, rate, in sun5i_setup_clockevent()