Lines Matching refs:ced
40 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced()
255 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init()
256 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init()
257 &dw_ced->ced); in dw_apb_clockevent_init()
258 dw_ced->ced.max_delta_ticks = 0x7fffffff; in dw_apb_clockevent_init()
259 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init()
260 dw_ced->ced.min_delta_ticks = 5000; in dw_apb_clockevent_init()
261 dw_ced->ced.cpumask = cpu < 0 ? cpu_possible_mask : cpumask_of(cpu); in dw_apb_clockevent_init()
262 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | in dw_apb_clockevent_init()
264 dw_ced->ced.set_state_shutdown = apbt_shutdown; in dw_apb_clockevent_init()
265 dw_ced->ced.set_state_periodic = apbt_set_periodic; in dw_apb_clockevent_init()
266 dw_ced->ced.set_state_oneshot = apbt_set_oneshot; in dw_apb_clockevent_init()
267 dw_ced->ced.set_state_oneshot_stopped = apbt_shutdown; in dw_apb_clockevent_init()
268 dw_ced->ced.tick_resume = apbt_resume; in dw_apb_clockevent_init()
269 dw_ced->ced.set_next_event = apbt_next_event; in dw_apb_clockevent_init()
270 dw_ced->ced.irq = dw_ced->timer.irq; in dw_apb_clockevent_init()
271 dw_ced->ced.rating = rating; in dw_apb_clockevent_init()
272 dw_ced->ced.name = name; in dw_apb_clockevent_init()
277 dw_ced->ced.name, &dw_ced->ced); in dw_apb_clockevent_init()
304 free_irq(dw_ced->timer.irq, &dw_ced->ced); in dw_apb_clockevent_stop()
315 clockevents_register_device(&dw_ced->ced); in dw_apb_clockevent_register()