Lines Matching refs:clkevt
61 struct clock_event_device clkevt; member
65 container_of(x, struct sun5i_timer_clkevt, clkevt)
107 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument
109 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_shutdown()
115 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument
117 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_oneshot()
124 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument
126 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_periodic()
135 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument
137 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_next_event()
151 ce->clkevt.event_handler(&ce->clkevt); in sun5i_timer_interrupt()
257 clockevents_update_freq(&ce->clkevt, ndata->new_rate); in sun5i_rate_cb_clkevt()
301 ce->clkevt.name = node->name; in sun5i_setup_clockevent()
302 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in sun5i_setup_clockevent()
303 ce->clkevt.set_next_event = sun5i_clkevt_next_event; in sun5i_setup_clockevent()
304 ce->clkevt.set_state_shutdown = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
305 ce->clkevt.set_state_periodic = sun5i_clkevt_set_periodic; in sun5i_setup_clockevent()
306 ce->clkevt.set_state_oneshot = sun5i_clkevt_set_oneshot; in sun5i_setup_clockevent()
307 ce->clkevt.tick_resume = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
308 ce->clkevt.rating = 340; in sun5i_setup_clockevent()
309 ce->clkevt.irq = irq; in sun5i_setup_clockevent()
310 ce->clkevt.cpumask = cpu_possible_mask; in sun5i_setup_clockevent()
316 clockevents_config_and_register(&ce->clkevt, rate, in sun5i_setup_clockevent()