Lines Matching defs:ced
38 struct clock_event_device ced;
266 ch->ced.event_handler(&ch->ced);
270 static struct sh_mtu2_channel *ced_to_sh_mtu2(struct clock_event_device *ced)
272 return container_of(ced, struct sh_mtu2_channel, ced);
275 static int sh_mtu2_clock_event_shutdown(struct clock_event_device *ced)
277 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
279 if (clockevent_state_periodic(ced))
285 static int sh_mtu2_clock_event_set_periodic(struct clock_event_device *ced)
287 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
289 if (clockevent_state_periodic(ced))
298 static void sh_mtu2_clock_event_suspend(struct clock_event_device *ced)
300 dev_pm_genpd_suspend(&ced_to_sh_mtu2(ced)->mtu->pdev->dev);
303 static void sh_mtu2_clock_event_resume(struct clock_event_device *ced)
305 dev_pm_genpd_resume(&ced_to_sh_mtu2(ced)->mtu->pdev->dev);
311 struct clock_event_device *ced = &ch->ced;
313 ced->name = name;
314 ced->features = CLOCK_EVT_FEAT_PERIODIC;
315 ced->rating = 200;
316 ced->cpumask = cpu_possible_mask;
317 ced->set_state_shutdown = sh_mtu2_clock_event_shutdown;
318 ced->set_state_periodic = sh_mtu2_clock_event_set_periodic;
319 ced->suspend = sh_mtu2_clock_event_suspend;
320 ced->resume = sh_mtu2_clock_event_resume;
324 clockevents_register_device(ced);