Lines Matching refs:ced
43 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced()
230 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init()
231 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init()
232 &dw_ced->ced); in dw_apb_clockevent_init()
233 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init()
234 dw_ced->ced.cpumask = cpumask_of(cpu); in dw_apb_clockevent_init()
235 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in dw_apb_clockevent_init()
236 dw_ced->ced.set_mode = apbt_set_mode; in dw_apb_clockevent_init()
237 dw_ced->ced.set_next_event = apbt_next_event; in dw_apb_clockevent_init()
238 dw_ced->ced.irq = dw_ced->timer.irq; in dw_apb_clockevent_init()
239 dw_ced->ced.rating = rating; in dw_apb_clockevent_init()
240 dw_ced->ced.name = name; in dw_apb_clockevent_init()
242 dw_ced->irqaction.name = dw_ced->ced.name; in dw_apb_clockevent_init()
244 dw_ced->irqaction.dev_id = &dw_ced->ced; in dw_apb_clockevent_init()
277 free_irq(dw_ced->timer.irq, &dw_ced->ced); in dw_apb_clockevent_stop()
288 clockevents_register_device(&dw_ced->ced); in dw_apb_clockevent_register()