Lines Matching refs:ced
60 struct clock_event_device ced; member
87 static struct stm_timer *ced_to_stm(struct clock_event_device *ced) in ced_to_stm() argument
89 return container_of(ced, struct stm_timer, ced); in ced_to_stm()
239 static int nxp_stm_clockevent_shutdown(struct clock_event_device *ced) in nxp_stm_clockevent_shutdown() argument
241 struct stm_timer *stm_timer = ced_to_stm(ced); in nxp_stm_clockevent_shutdown()
248 static int nxp_stm_clockevent_set_next_event(unsigned long delta, struct clock_event_device *ced) in nxp_stm_clockevent_set_next_event() argument
250 struct stm_timer *stm_timer = ced_to_stm(ced); in nxp_stm_clockevent_set_next_event()
279 static int nxp_stm_clockevent_set_periodic(struct clock_event_device *ced) in nxp_stm_clockevent_set_periodic() argument
281 struct stm_timer *stm_timer = ced_to_stm(ced); in nxp_stm_clockevent_set_periodic()
283 return nxp_stm_clockevent_set_next_event(stm_timer->rate, ced); in nxp_stm_clockevent_set_periodic()
286 static void nxp_stm_clockevent_suspend(struct clock_event_device *ced) in nxp_stm_clockevent_suspend() argument
288 struct stm_timer *stm_timer = ced_to_stm(ced); in nxp_stm_clockevent_suspend()
293 static void nxp_stm_clockevent_resume(struct clock_event_device *ced) in nxp_stm_clockevent_resume() argument
295 struct stm_timer *stm_timer = ced_to_stm(ced); in nxp_stm_clockevent_resume()
307 stm_timer->ced.name = name; in nxp_stm_clockevent_per_cpu_init()
308 stm_timer->ced.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in nxp_stm_clockevent_per_cpu_init()
309 stm_timer->ced.set_state_shutdown = nxp_stm_clockevent_shutdown; in nxp_stm_clockevent_per_cpu_init()
310 stm_timer->ced.set_state_periodic = nxp_stm_clockevent_set_periodic; in nxp_stm_clockevent_per_cpu_init()
311 stm_timer->ced.set_next_event = nxp_stm_clockevent_set_next_event; in nxp_stm_clockevent_per_cpu_init()
312 stm_timer->ced.suspend = nxp_stm_clockevent_suspend; in nxp_stm_clockevent_per_cpu_init()
313 stm_timer->ced.resume = nxp_stm_clockevent_resume; in nxp_stm_clockevent_per_cpu_init()
314 stm_timer->ced.cpumask = cpumask_of(cpu); in nxp_stm_clockevent_per_cpu_init()
315 stm_timer->ced.rating = 460; in nxp_stm_clockevent_per_cpu_init()
316 stm_timer->ced.irq = irq; in nxp_stm_clockevent_per_cpu_init()
335 ret = irq_force_affinity(stm_timer->ced.irq, cpumask_of(cpu)); in nxp_stm_clockevent_starting_cpu()
348 clockevents_config_and_register(&stm_timer->ced, stm_timer->rate, in nxp_stm_clockevent_starting_cpu()
357 struct clock_event_device *ced = &stm_timer->ced; in nxp_stm_module_interrupt() local
381 if (likely(clockevent_state_oneshot(ced))) in nxp_stm_module_interrupt()
384 ced->event_handler(ced); in nxp_stm_module_interrupt()