ced                43 arch/nios2/kernel/time.c 	struct clock_event_device ced;
ced                54 arch/nios2/kernel/time.c 	return container_of(evt, struct nios2_clockevent_dev, ced);
ced               230 arch/nios2/kernel/time.c 	.ced = {
ced               262 arch/nios2/kernel/time.c 	nios2_ce.ced.cpumask = cpumask_of(0);
ced               263 arch/nios2/kernel/time.c 	nios2_ce.ced.irq = irq;
ced               270 arch/nios2/kernel/time.c 			  &nios2_ce.ced);
ced               276 arch/nios2/kernel/time.c 	clockevents_config_and_register(&nios2_ce.ced, freq, 1, ULONG_MAX);
ced               155 arch/x86/kernel/apb_timer.c 		global_clock_event = &adev->timer->ced;
ced               302 arch/x86/platform/uv/uv_time.c 			     struct clock_event_device *ced)
ced               304 arch/x86/platform/uv/uv_time.c 	int ced_cpu = cpumask_first(ced->cpumask);
ced               323 arch/x86/platform/uv/uv_time.c 	struct clock_event_device *ced = &per_cpu(cpu_ced, cpu);
ced               325 arch/x86/platform/uv/uv_time.c 	if (!ced || !ced->event_handler)
ced               331 arch/x86/platform/uv/uv_time.c 	ced->event_handler(ced);
ced               344 arch/x86/platform/uv/uv_time.c 	struct clock_event_device *ced = this_cpu_ptr(&cpu_ced);
ced               346 arch/x86/platform/uv/uv_time.c 	*ced = clock_event_device_uv;
ced               347 arch/x86/platform/uv/uv_time.c 	ced->cpumask = cpumask_of(smp_processor_id());
ced               348 arch/x86/platform/uv/uv_time.c 	clockevents_register_device(ced);
ced                35 drivers/char/hw_random/stm32-rng.c 	bool ced;
ced                92 drivers/char/hw_random/stm32-rng.c 	if (priv->ced)
ced               144 drivers/char/hw_random/stm32-rng.c 	priv->ced = of_property_read_bool(np, "clock-error-detect");
ced                40 drivers/clocksource/dw_apb_timer.c 	return container_of(evt, struct dw_apb_clock_event_device, ced);
ced               254 drivers/clocksource/dw_apb_timer.c 	clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD);
ced               255 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff,
ced               256 drivers/clocksource/dw_apb_timer.c 						       &dw_ced->ced);
ced               257 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.max_delta_ticks = 0x7fffffff;
ced               258 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced);
ced               259 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.min_delta_ticks = 5000;
ced               260 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.cpumask = cpumask_of(cpu);
ced               261 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC |
ced               263 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.set_state_shutdown = apbt_shutdown;
ced               264 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.set_state_periodic = apbt_set_periodic;
ced               265 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.set_state_oneshot = apbt_set_oneshot;
ced               266 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.set_state_oneshot_stopped = apbt_shutdown;
ced               267 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.tick_resume = apbt_resume;
ced               268 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.set_next_event = apbt_next_event;
ced               269 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.irq = dw_ced->timer.irq;
ced               270 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.rating = rating;
ced               271 drivers/clocksource/dw_apb_timer.c 	dw_ced->ced.name = name;
ced               273 drivers/clocksource/dw_apb_timer.c 	dw_ced->irqaction.name		= dw_ced->ced.name;
ced               275 drivers/clocksource/dw_apb_timer.c 	dw_ced->irqaction.dev_id	= &dw_ced->ced;
ced               308 drivers/clocksource/dw_apb_timer.c 	free_irq(dw_ced->timer.irq, &dw_ced->ced);
ced               319 drivers/clocksource/dw_apb_timer.c 	clockevents_register_device(&dw_ced->ced);
ced                67 drivers/clocksource/dw_apb_timer_of.c 	struct dw_apb_clock_event_device *ced;
ced                76 drivers/clocksource/dw_apb_timer_of.c 	ced = dw_apb_clockevent_init(0, event_timer->name, 300, iobase, irq,
ced                78 drivers/clocksource/dw_apb_timer_of.c 	if (!ced)
ced                81 drivers/clocksource/dw_apb_timer_of.c 	dw_apb_clockevent_register(ced);
ced                32 drivers/clocksource/em_sti.c 	struct clock_event_device ced;
ced               144 drivers/clocksource/em_sti.c 	p->ced.event_handler(&p->ced);
ced               228 drivers/clocksource/em_sti.c static struct em_sti_priv *ced_to_em_sti(struct clock_event_device *ced)
ced               230 drivers/clocksource/em_sti.c 	return container_of(ced, struct em_sti_priv, ced);
ced               233 drivers/clocksource/em_sti.c static int em_sti_clock_event_shutdown(struct clock_event_device *ced)
ced               235 drivers/clocksource/em_sti.c 	struct em_sti_priv *p = ced_to_em_sti(ced);
ced               240 drivers/clocksource/em_sti.c static int em_sti_clock_event_set_oneshot(struct clock_event_device *ced)
ced               242 drivers/clocksource/em_sti.c 	struct em_sti_priv *p = ced_to_em_sti(ced);
ced               250 drivers/clocksource/em_sti.c 				   struct clock_event_device *ced)
ced               252 drivers/clocksource/em_sti.c 	struct em_sti_priv *p = ced_to_em_sti(ced);
ced               264 drivers/clocksource/em_sti.c 	struct clock_event_device *ced = &p->ced;
ced               266 drivers/clocksource/em_sti.c 	ced->name = dev_name(&p->pdev->dev);
ced               267 drivers/clocksource/em_sti.c 	ced->features = CLOCK_EVT_FEAT_ONESHOT;
ced               268 drivers/clocksource/em_sti.c 	ced->rating = 200;
ced               269 drivers/clocksource/em_sti.c 	ced->cpumask = cpu_possible_mask;
ced               270 drivers/clocksource/em_sti.c 	ced->set_next_event = em_sti_clock_event_next;
ced               271 drivers/clocksource/em_sti.c 	ced->set_state_shutdown = em_sti_clock_event_shutdown;
ced               272 drivers/clocksource/em_sti.c 	ced->set_state_oneshot = em_sti_clock_event_set_oneshot;
ced               276 drivers/clocksource/em_sti.c 	clockevents_config_and_register(ced, p->rate, 2, 0xffffffff);
ced                39 drivers/clocksource/h8300_timer8.c 	struct clock_event_device ced;
ced                49 drivers/clocksource/h8300_timer8.c 	if (clockevent_state_oneshot(&p->ced))
ced                52 drivers/clocksource/h8300_timer8.c 	p->ced.event_handler(&p->ced);
ced                98 drivers/clocksource/h8300_timer8.c static inline struct timer8_priv *ced_to_priv(struct clock_event_device *ced)
ced               100 drivers/clocksource/h8300_timer8.c 	return container_of(ced, struct timer8_priv, ced);
ced               109 drivers/clocksource/h8300_timer8.c static int timer8_clock_event_shutdown(struct clock_event_device *ced)
ced               111 drivers/clocksource/h8300_timer8.c 	timer8_stop(ced_to_priv(ced));
ced               115 drivers/clocksource/h8300_timer8.c static int timer8_clock_event_periodic(struct clock_event_device *ced)
ced               117 drivers/clocksource/h8300_timer8.c 	struct timer8_priv *p = ced_to_priv(ced);
ced               119 drivers/clocksource/h8300_timer8.c 	pr_info("%s: used for periodic clock events\n", ced->name);
ced               126 drivers/clocksource/h8300_timer8.c static int timer8_clock_event_oneshot(struct clock_event_device *ced)
ced               128 drivers/clocksource/h8300_timer8.c 	struct timer8_priv *p = ced_to_priv(ced);
ced               130 drivers/clocksource/h8300_timer8.c 	pr_info("%s: used for oneshot clock events\n", ced->name);
ced               138 drivers/clocksource/h8300_timer8.c 				   struct clock_event_device *ced)
ced               140 drivers/clocksource/h8300_timer8.c 	struct timer8_priv *p = ced_to_priv(ced);
ced               142 drivers/clocksource/h8300_timer8.c 	BUG_ON(!clockevent_state_oneshot(ced));
ced               149 drivers/clocksource/h8300_timer8.c 	.ced = {
ced               195 drivers/clocksource/h8300_timer8.c 			timer8_priv.ced.name, &timer8_priv) < 0) {
ced               200 drivers/clocksource/h8300_timer8.c 	clockevents_config_and_register(&timer8_priv.ced,
ced                36 drivers/clocksource/jcore-pit.c 	struct clock_event_device	ced;
ced                79 drivers/clocksource/jcore-pit.c static int jcore_pit_set_state_shutdown(struct clock_event_device *ced)
ced                81 drivers/clocksource/jcore-pit.c 	struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
ced                86 drivers/clocksource/jcore-pit.c static int jcore_pit_set_state_oneshot(struct clock_event_device *ced)
ced                88 drivers/clocksource/jcore-pit.c 	struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
ced                93 drivers/clocksource/jcore-pit.c static int jcore_pit_set_state_periodic(struct clock_event_device *ced)
ced                95 drivers/clocksource/jcore-pit.c 	struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
ced               101 drivers/clocksource/jcore-pit.c 				    struct clock_event_device *ced)
ced               103 drivers/clocksource/jcore-pit.c 	struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced);
ced               119 drivers/clocksource/jcore-pit.c 	clockevents_config_and_register(&pit->ced, freq, 1, ULONG_MAX);
ced               128 drivers/clocksource/jcore-pit.c 	if (clockevent_state_oneshot(&pit->ced))
ced               131 drivers/clocksource/jcore-pit.c 	pit->ced.event_handler(&pit->ced);
ced               227 drivers/clocksource/jcore-pit.c 		pit->ced.name = "jcore_pit";
ced               228 drivers/clocksource/jcore-pit.c 		pit->ced.features = CLOCK_EVT_FEAT_PERIODIC
ced               231 drivers/clocksource/jcore-pit.c 		pit->ced.cpumask = cpumask_of(cpu);
ced               232 drivers/clocksource/jcore-pit.c 		pit->ced.rating = 400;
ced               233 drivers/clocksource/jcore-pit.c 		pit->ced.irq = pit_irq;
ced               234 drivers/clocksource/jcore-pit.c 		pit->ced.set_state_shutdown = jcore_pit_set_state_shutdown;
ced               235 drivers/clocksource/jcore-pit.c 		pit->ced.set_state_periodic = jcore_pit_set_state_periodic;
ced               236 drivers/clocksource/jcore-pit.c 		pit->ced.set_state_oneshot = jcore_pit_set_state_oneshot;
ced               237 drivers/clocksource/jcore-pit.c 		pit->ced.set_next_event = jcore_pit_set_next_event;
ced                30 drivers/clocksource/numachip.c static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced)
ced                52 drivers/clocksource/numachip.c 	struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced);
ced                54 drivers/clocksource/numachip.c 	ced->event_handler(ced);
ced                60 drivers/clocksource/numachip.c 	struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced);
ced                67 drivers/clocksource/numachip.c 	*ced = numachip2_clockevent;
ced                68 drivers/clocksource/numachip.c 	ced->cpumask = cpumask_of(smp_processor_id());
ced                69 drivers/clocksource/numachip.c 	clockevents_register_device(ced);
ced                30 drivers/clocksource/renesas-ostm.c 	struct clock_event_device ced;
ced                50 drivers/clocksource/renesas-ostm.c static struct ostm_device *ced_to_ostm(struct clock_event_device *ced)
ced                52 drivers/clocksource/renesas-ostm.c 	return container_of(ced, struct ostm_device, ced);
ced               100 drivers/clocksource/renesas-ostm.c 				     struct clock_event_device *ced)
ced               102 drivers/clocksource/renesas-ostm.c 	struct ostm_device *ostm = ced_to_ostm(ced);
ced               113 drivers/clocksource/renesas-ostm.c static int ostm_shutdown(struct clock_event_device *ced)
ced               115 drivers/clocksource/renesas-ostm.c 	struct ostm_device *ostm = ced_to_ostm(ced);
ced               121 drivers/clocksource/renesas-ostm.c static int ostm_set_periodic(struct clock_event_device *ced)
ced               123 drivers/clocksource/renesas-ostm.c 	struct ostm_device *ostm = ced_to_ostm(ced);
ced               125 drivers/clocksource/renesas-ostm.c 	if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced))
ced               135 drivers/clocksource/renesas-ostm.c static int ostm_set_oneshot(struct clock_event_device *ced)
ced               137 drivers/clocksource/renesas-ostm.c 	struct ostm_device *ostm = ced_to_ostm(ced);
ced               148 drivers/clocksource/renesas-ostm.c 	if (clockevent_state_oneshot(&ostm->ced))
ced               152 drivers/clocksource/renesas-ostm.c 	if (ostm->ced.event_handler)
ced               153 drivers/clocksource/renesas-ostm.c 		ostm->ced.event_handler(&ostm->ced);
ced               161 drivers/clocksource/renesas-ostm.c 	struct clock_event_device *ced = &ostm->ced;
ced               172 drivers/clocksource/renesas-ostm.c 	ced->name = "ostm";
ced               173 drivers/clocksource/renesas-ostm.c 	ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC;
ced               174 drivers/clocksource/renesas-ostm.c 	ced->set_state_shutdown = ostm_shutdown;
ced               175 drivers/clocksource/renesas-ostm.c 	ced->set_state_periodic = ostm_set_periodic;
ced               176 drivers/clocksource/renesas-ostm.c 	ced->set_state_oneshot = ostm_set_oneshot;
ced               177 drivers/clocksource/renesas-ostm.c 	ced->set_next_event = ostm_clock_event_next;
ced               178 drivers/clocksource/renesas-ostm.c 	ced->shift = 32;
ced               179 drivers/clocksource/renesas-ostm.c 	ced->rating = 300;
ced               180 drivers/clocksource/renesas-ostm.c 	ced->cpumask = cpumask_of(0);
ced               181 drivers/clocksource/renesas-ostm.c 	clockevents_config_and_register(ced, rate, 0xf, 0xffffffff);
ced               101 drivers/clocksource/sh_cmt.c 	struct clock_event_device ced;
ced               530 drivers/clocksource/sh_cmt.c 			if (clockevent_state_oneshot(&ch->ced)) {
ced               535 drivers/clocksource/sh_cmt.c 			ch->ced.event_handler(&ch->ced);
ced               546 drivers/clocksource/sh_cmt.c 			if ((clockevent_state_shutdown(&ch->ced))
ced               693 drivers/clocksource/sh_cmt.c static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced)
ced               695 drivers/clocksource/sh_cmt.c 	return container_of(ced, struct sh_cmt_channel, ced);
ced               708 drivers/clocksource/sh_cmt.c static int sh_cmt_clock_event_shutdown(struct clock_event_device *ced)
ced               710 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ced               716 drivers/clocksource/sh_cmt.c static int sh_cmt_clock_event_set_state(struct clock_event_device *ced,
ced               719 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ced               722 drivers/clocksource/sh_cmt.c 	if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced))
ced               731 drivers/clocksource/sh_cmt.c static int sh_cmt_clock_event_set_oneshot(struct clock_event_device *ced)
ced               733 drivers/clocksource/sh_cmt.c 	return sh_cmt_clock_event_set_state(ced, 0);
ced               736 drivers/clocksource/sh_cmt.c static int sh_cmt_clock_event_set_periodic(struct clock_event_device *ced)
ced               738 drivers/clocksource/sh_cmt.c 	return sh_cmt_clock_event_set_state(ced, 1);
ced               742 drivers/clocksource/sh_cmt.c 				   struct clock_event_device *ced)
ced               744 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ced               746 drivers/clocksource/sh_cmt.c 	BUG_ON(!clockevent_state_oneshot(ced));
ced               755 drivers/clocksource/sh_cmt.c static void sh_cmt_clock_event_suspend(struct clock_event_device *ced)
ced               757 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ced               763 drivers/clocksource/sh_cmt.c static void sh_cmt_clock_event_resume(struct clock_event_device *ced)
ced               765 drivers/clocksource/sh_cmt.c 	struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
ced               774 drivers/clocksource/sh_cmt.c 	struct clock_event_device *ced = &ch->ced;
ced               791 drivers/clocksource/sh_cmt.c 	ced->name = name;
ced               792 drivers/clocksource/sh_cmt.c 	ced->features = CLOCK_EVT_FEAT_PERIODIC;
ced               793 drivers/clocksource/sh_cmt.c 	ced->features |= CLOCK_EVT_FEAT_ONESHOT;
ced               794 drivers/clocksource/sh_cmt.c 	ced->rating = 125;
ced               795 drivers/clocksource/sh_cmt.c 	ced->cpumask = cpu_possible_mask;
ced               796 drivers/clocksource/sh_cmt.c 	ced->set_next_event = sh_cmt_clock_event_next;
ced               797 drivers/clocksource/sh_cmt.c 	ced->set_state_shutdown = sh_cmt_clock_event_shutdown;
ced               798 drivers/clocksource/sh_cmt.c 	ced->set_state_periodic = sh_cmt_clock_event_set_periodic;
ced               799 drivers/clocksource/sh_cmt.c 	ced->set_state_oneshot = sh_cmt_clock_event_set_oneshot;
ced               800 drivers/clocksource/sh_cmt.c 	ced->suspend = sh_cmt_clock_event_suspend;
ced               801 drivers/clocksource/sh_cmt.c 	ced->resume = sh_cmt_clock_event_resume;
ced               804 drivers/clocksource/sh_cmt.c 	ced->shift = 32;
ced               805 drivers/clocksource/sh_cmt.c 	ced->mult = div_sc(ch->cmt->rate, NSEC_PER_SEC, ced->shift);
ced               806 drivers/clocksource/sh_cmt.c 	ced->max_delta_ns = clockevent_delta2ns(ch->max_match_value, ced);
ced               807 drivers/clocksource/sh_cmt.c 	ced->max_delta_ticks = ch->max_match_value;
ced               808 drivers/clocksource/sh_cmt.c 	ced->min_delta_ns = clockevent_delta2ns(0x1f, ced);
ced               809 drivers/clocksource/sh_cmt.c 	ced->min_delta_ticks = 0x1f;
ced               813 drivers/clocksource/sh_cmt.c 	clockevents_register_device(ced);
ced                34 drivers/clocksource/sh_mtu2.c 	struct clock_event_device ced;
ced               262 drivers/clocksource/sh_mtu2.c 	ch->ced.event_handler(&ch->ced);
ced               266 drivers/clocksource/sh_mtu2.c static struct sh_mtu2_channel *ced_to_sh_mtu2(struct clock_event_device *ced)
ced               268 drivers/clocksource/sh_mtu2.c 	return container_of(ced, struct sh_mtu2_channel, ced);
ced               271 drivers/clocksource/sh_mtu2.c static int sh_mtu2_clock_event_shutdown(struct clock_event_device *ced)
ced               273 drivers/clocksource/sh_mtu2.c 	struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
ced               275 drivers/clocksource/sh_mtu2.c 	if (clockevent_state_periodic(ced))
ced               281 drivers/clocksource/sh_mtu2.c static int sh_mtu2_clock_event_set_periodic(struct clock_event_device *ced)
ced               283 drivers/clocksource/sh_mtu2.c 	struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
ced               285 drivers/clocksource/sh_mtu2.c 	if (clockevent_state_periodic(ced))
ced               294 drivers/clocksource/sh_mtu2.c static void sh_mtu2_clock_event_suspend(struct clock_event_device *ced)
ced               296 drivers/clocksource/sh_mtu2.c 	pm_genpd_syscore_poweroff(&ced_to_sh_mtu2(ced)->mtu->pdev->dev);
ced               299 drivers/clocksource/sh_mtu2.c static void sh_mtu2_clock_event_resume(struct clock_event_device *ced)
ced               301 drivers/clocksource/sh_mtu2.c 	pm_genpd_syscore_poweron(&ced_to_sh_mtu2(ced)->mtu->pdev->dev);
ced               307 drivers/clocksource/sh_mtu2.c 	struct clock_event_device *ced = &ch->ced;
ced               309 drivers/clocksource/sh_mtu2.c 	ced->name = name;
ced               310 drivers/clocksource/sh_mtu2.c 	ced->features = CLOCK_EVT_FEAT_PERIODIC;
ced               311 drivers/clocksource/sh_mtu2.c 	ced->rating = 200;
ced               312 drivers/clocksource/sh_mtu2.c 	ced->cpumask = cpu_possible_mask;
ced               313 drivers/clocksource/sh_mtu2.c 	ced->set_state_shutdown = sh_mtu2_clock_event_shutdown;
ced               314 drivers/clocksource/sh_mtu2.c 	ced->set_state_periodic = sh_mtu2_clock_event_set_periodic;
ced               315 drivers/clocksource/sh_mtu2.c 	ced->suspend = sh_mtu2_clock_event_suspend;
ced               316 drivers/clocksource/sh_mtu2.c 	ced->resume = sh_mtu2_clock_event_resume;
ced               320 drivers/clocksource/sh_mtu2.c 	clockevents_register_device(ced);
ced                42 drivers/clocksource/sh_tmu.c 	struct clock_event_device ced;
ced               234 drivers/clocksource/sh_tmu.c 	if (clockevent_state_oneshot(&ch->ced))
ced               240 drivers/clocksource/sh_tmu.c 	ch->ced.event_handler(&ch->ced);
ced               330 drivers/clocksource/sh_tmu.c static struct sh_tmu_channel *ced_to_sh_tmu(struct clock_event_device *ced)
ced               332 drivers/clocksource/sh_tmu.c 	return container_of(ced, struct sh_tmu_channel, ced);
ced               345 drivers/clocksource/sh_tmu.c static int sh_tmu_clock_event_shutdown(struct clock_event_device *ced)
ced               347 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
ced               349 drivers/clocksource/sh_tmu.c 	if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced))
ced               354 drivers/clocksource/sh_tmu.c static int sh_tmu_clock_event_set_state(struct clock_event_device *ced,
ced               357 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
ced               360 drivers/clocksource/sh_tmu.c 	if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced))
ced               369 drivers/clocksource/sh_tmu.c static int sh_tmu_clock_event_set_oneshot(struct clock_event_device *ced)
ced               371 drivers/clocksource/sh_tmu.c 	return sh_tmu_clock_event_set_state(ced, 0);
ced               374 drivers/clocksource/sh_tmu.c static int sh_tmu_clock_event_set_periodic(struct clock_event_device *ced)
ced               376 drivers/clocksource/sh_tmu.c 	return sh_tmu_clock_event_set_state(ced, 1);
ced               380 drivers/clocksource/sh_tmu.c 				   struct clock_event_device *ced)
ced               382 drivers/clocksource/sh_tmu.c 	struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
ced               384 drivers/clocksource/sh_tmu.c 	BUG_ON(!clockevent_state_oneshot(ced));
ced               391 drivers/clocksource/sh_tmu.c static void sh_tmu_clock_event_suspend(struct clock_event_device *ced)
ced               393 drivers/clocksource/sh_tmu.c 	pm_genpd_syscore_poweroff(&ced_to_sh_tmu(ced)->tmu->pdev->dev);
ced               396 drivers/clocksource/sh_tmu.c static void sh_tmu_clock_event_resume(struct clock_event_device *ced)
ced               398 drivers/clocksource/sh_tmu.c 	pm_genpd_syscore_poweron(&ced_to_sh_tmu(ced)->tmu->pdev->dev);
ced               404 drivers/clocksource/sh_tmu.c 	struct clock_event_device *ced = &ch->ced;
ced               407 drivers/clocksource/sh_tmu.c 	ced->name = name;
ced               408 drivers/clocksource/sh_tmu.c 	ced->features = CLOCK_EVT_FEAT_PERIODIC;
ced               409 drivers/clocksource/sh_tmu.c 	ced->features |= CLOCK_EVT_FEAT_ONESHOT;
ced               410 drivers/clocksource/sh_tmu.c 	ced->rating = 200;
ced               411 drivers/clocksource/sh_tmu.c 	ced->cpumask = cpu_possible_mask;
ced               412 drivers/clocksource/sh_tmu.c 	ced->set_next_event = sh_tmu_clock_event_next;
ced               413 drivers/clocksource/sh_tmu.c 	ced->set_state_shutdown = sh_tmu_clock_event_shutdown;
ced               414 drivers/clocksource/sh_tmu.c 	ced->set_state_periodic = sh_tmu_clock_event_set_periodic;
ced               415 drivers/clocksource/sh_tmu.c 	ced->set_state_oneshot = sh_tmu_clock_event_set_oneshot;
ced               416 drivers/clocksource/sh_tmu.c 	ced->suspend = sh_tmu_clock_event_suspend;
ced               417 drivers/clocksource/sh_tmu.c 	ced->resume = sh_tmu_clock_event_resume;
ced               422 drivers/clocksource/sh_tmu.c 	clockevents_config_and_register(ced, ch->tmu->rate, 0x300, 0xffffffff);
ced                69 drivers/clocksource/timer-imx-gpt.c 	struct clock_event_device ced;
ced                82 drivers/clocksource/timer-imx-gpt.c 			      struct clock_event_device *ced);
ced                85 drivers/clocksource/timer-imx-gpt.c static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced)
ced                87 drivers/clocksource/timer-imx-gpt.c 	return container_of(ced, struct imx_timer, ced);
ced               174 drivers/clocksource/timer-imx-gpt.c 			      struct clock_event_device *ced)
ced               176 drivers/clocksource/timer-imx-gpt.c 	struct imx_timer *imxtm = to_imx_timer(ced);
ced               188 drivers/clocksource/timer-imx-gpt.c 			      struct clock_event_device *ced)
ced               190 drivers/clocksource/timer-imx-gpt.c 	struct imx_timer *imxtm = to_imx_timer(ced);
ced               202 drivers/clocksource/timer-imx-gpt.c static int mxc_shutdown(struct clock_event_device *ced)
ced               204 drivers/clocksource/timer-imx-gpt.c 	struct imx_timer *imxtm = to_imx_timer(ced);
ced               224 drivers/clocksource/timer-imx-gpt.c static int mxc_set_oneshot(struct clock_event_device *ced)
ced               226 drivers/clocksource/timer-imx-gpt.c 	struct imx_timer *imxtm = to_imx_timer(ced);
ced               231 drivers/clocksource/timer-imx-gpt.c 	if (!clockevent_state_oneshot(ced)) {
ced               260 drivers/clocksource/timer-imx-gpt.c 	struct clock_event_device *ced = dev_id;
ced               261 drivers/clocksource/timer-imx-gpt.c 	struct imx_timer *imxtm = to_imx_timer(ced);
ced               268 drivers/clocksource/timer-imx-gpt.c 	ced->event_handler(ced);
ced               275 drivers/clocksource/timer-imx-gpt.c 	struct clock_event_device *ced = &imxtm->ced;
ced               278 drivers/clocksource/timer-imx-gpt.c 	ced->name = "mxc_timer1";
ced               279 drivers/clocksource/timer-imx-gpt.c 	ced->features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_DYNIRQ;
ced               280 drivers/clocksource/timer-imx-gpt.c 	ced->set_state_shutdown = mxc_shutdown;
ced               281 drivers/clocksource/timer-imx-gpt.c 	ced->set_state_oneshot = mxc_set_oneshot;
ced               282 drivers/clocksource/timer-imx-gpt.c 	ced->tick_resume = mxc_shutdown;
ced               283 drivers/clocksource/timer-imx-gpt.c 	ced->set_next_event = imxtm->gpt->set_next_event;
ced               284 drivers/clocksource/timer-imx-gpt.c 	ced->rating = 200;
ced               285 drivers/clocksource/timer-imx-gpt.c 	ced->cpumask = cpumask_of(0);
ced               286 drivers/clocksource/timer-imx-gpt.c 	ced->irq = imxtm->irq;
ced               287 drivers/clocksource/timer-imx-gpt.c 	clockevents_config_and_register(ced, clk_get_rate(imxtm->clk_per),
ced               293 drivers/clocksource/timer-imx-gpt.c 	act->dev_id = ced;
ced               184 include/linux/clockchips.h extern int clockevents_unbind_device(struct clock_event_device *ced, int cpu);
ced                26 include/linux/dw_apb_timer.h 	struct clock_event_device		ced;
ced               359 kernel/time/clockevents.c static int clockevents_replace(struct clock_event_device *ced)
ced               364 kernel/time/clockevents.c 		if (dev == ced || !clockevent_state_detached(dev))
ced               379 kernel/time/clockevents.c 		list_del_init(&ced->list);
ced               387 kernel/time/clockevents.c static int __clockevents_try_unbind(struct clock_event_device *ced, int cpu)
ced               390 kernel/time/clockevents.c 	if (clockevent_state_detached(ced)) {
ced               391 kernel/time/clockevents.c 		list_del_init(&ced->list);
ced               395 kernel/time/clockevents.c 	return ced == per_cpu(tick_cpu_device, cpu).evtdev ? -EAGAIN : -EBUSY;
ced               418 kernel/time/clockevents.c static int clockevents_unbind(struct clock_event_device *ced, int cpu)
ced               420 kernel/time/clockevents.c 	struct ce_unbind cu = { .ce = ced, .res = -ENODEV };
ced               429 kernel/time/clockevents.c int clockevents_unbind_device(struct clock_event_device *ced, int cpu)
ced               434 kernel/time/clockevents.c 	ret = clockevents_unbind(ced, cpu);