Lines Matching refs:clkevt
58 struct clock_event_device clkevt; member
62 container_of(x, struct sun5i_timer_clkevt, clkevt)
104 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument
106 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_shutdown()
112 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument
114 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_oneshot()
121 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument
123 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_periodic()
132 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument
134 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_next_event()
148 ce->clkevt.event_handler(&ce->clkevt); in sun5i_timer_interrupt()
254 clockevents_update_freq(&ce->clkevt, ndata->new_rate); in sun5i_rate_cb_clkevt()
298 ce->clkevt.name = node->name; in sun5i_setup_clockevent()
299 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in sun5i_setup_clockevent()
300 ce->clkevt.set_next_event = sun5i_clkevt_next_event; in sun5i_setup_clockevent()
301 ce->clkevt.set_state_shutdown = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
302 ce->clkevt.set_state_periodic = sun5i_clkevt_set_periodic; in sun5i_setup_clockevent()
303 ce->clkevt.set_state_oneshot = sun5i_clkevt_set_oneshot; in sun5i_setup_clockevent()
304 ce->clkevt.tick_resume = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
305 ce->clkevt.rating = 340; in sun5i_setup_clockevent()
306 ce->clkevt.irq = irq; in sun5i_setup_clockevent()
307 ce->clkevt.cpumask = cpu_possible_mask; in sun5i_setup_clockevent()
313 clockevents_config_and_register(&ce->clkevt, rate, in sun5i_setup_clockevent()