Lines Matching refs:ced
43 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced()
246 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init()
247 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init()
248 &dw_ced->ced); in dw_apb_clockevent_init()
249 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init()
250 dw_ced->ced.cpumask = cpumask_of(cpu); in dw_apb_clockevent_init()
251 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | in dw_apb_clockevent_init()
253 dw_ced->ced.set_state_shutdown = apbt_shutdown; in dw_apb_clockevent_init()
254 dw_ced->ced.set_state_periodic = apbt_set_periodic; in dw_apb_clockevent_init()
255 dw_ced->ced.set_state_oneshot = apbt_set_oneshot; in dw_apb_clockevent_init()
256 dw_ced->ced.tick_resume = apbt_resume; in dw_apb_clockevent_init()
257 dw_ced->ced.set_next_event = apbt_next_event; in dw_apb_clockevent_init()
258 dw_ced->ced.irq = dw_ced->timer.irq; in dw_apb_clockevent_init()
259 dw_ced->ced.rating = rating; in dw_apb_clockevent_init()
260 dw_ced->ced.name = name; in dw_apb_clockevent_init()
262 dw_ced->irqaction.name = dw_ced->ced.name; in dw_apb_clockevent_init()
264 dw_ced->irqaction.dev_id = &dw_ced->ced; in dw_apb_clockevent_init()
297 free_irq(dw_ced->timer.irq, &dw_ced->ced); in dw_apb_clockevent_stop()
308 clockevents_register_device(&dw_ced->ced); in dw_apb_clockevent_register()