Lines Matching refs:ced
32 struct clock_event_device ced;
144 p->ced.event_handler(&p->ced);
228 static struct em_sti_priv *ced_to_em_sti(struct clock_event_device *ced)
230 return container_of(ced, struct em_sti_priv, ced);
233 static int em_sti_clock_event_shutdown(struct clock_event_device *ced)
235 struct em_sti_priv *p = ced_to_em_sti(ced);
240 static int em_sti_clock_event_set_oneshot(struct clock_event_device *ced)
242 struct em_sti_priv *p = ced_to_em_sti(ced);
250 struct clock_event_device *ced)
252 struct em_sti_priv *p = ced_to_em_sti(ced);
264 struct clock_event_device *ced = &p->ced;
266 ced->name = dev_name(&p->pdev->dev);
267 ced->features = CLOCK_EVT_FEAT_ONESHOT;
268 ced->rating = 200;
269 ced->cpumask = cpu_possible_mask;
270 ced->set_next_event = em_sti_clock_event_next;
271 ced->set_state_shutdown = em_sti_clock_event_shutdown;
272 ced->set_state_oneshot = em_sti_clock_event_set_oneshot;
276 clockevents_config_and_register(ced, p->rate, 2, 0xffffffff);