Home
last modified time | relevance | path

Searched refs:ced (Results 1 – 18 of 18) sorted by relevance

/Linux-v4.19/drivers/clocksource/
Drenesas-ostm.c39 struct clock_event_device ced; member
59 static struct ostm_device *ced_to_ostm(struct clock_event_device *ced) in ced_to_ostm() argument
61 return container_of(ced, struct ostm_device, ced); in ced_to_ostm()
109 struct clock_event_device *ced) in ostm_clock_event_next() argument
111 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_clock_event_next()
122 static int ostm_shutdown(struct clock_event_device *ced) in ostm_shutdown() argument
124 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_shutdown()
130 static int ostm_set_periodic(struct clock_event_device *ced) in ostm_set_periodic() argument
132 struct ostm_device *ostm = ced_to_ostm(ced); in ostm_set_periodic()
134 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in ostm_set_periodic()
[all …]
Djcore-pit.c36 struct clock_event_device ced; member
79 static int jcore_pit_set_state_shutdown(struct clock_event_device *ced) in jcore_pit_set_state_shutdown() argument
81 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_shutdown()
86 static int jcore_pit_set_state_oneshot(struct clock_event_device *ced) in jcore_pit_set_state_oneshot() argument
88 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_oneshot()
93 static int jcore_pit_set_state_periodic(struct clock_event_device *ced) in jcore_pit_set_state_periodic() argument
95 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_periodic()
101 struct clock_event_device *ced) in jcore_pit_set_next_event() argument
103 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_next_event()
119 clockevents_config_and_register(&pit->ced, freq, 1, ULONG_MAX); in jcore_pit_local_init()
[all …]
Dh8300_timer8.c39 struct clock_event_device ced; member
49 if (clockevent_state_oneshot(&p->ced)) in timer8_interrupt()
52 p->ced.event_handler(&p->ced); in timer8_interrupt()
98 static inline struct timer8_priv *ced_to_priv(struct clock_event_device *ced) in ced_to_priv() argument
100 return container_of(ced, struct timer8_priv, ced); in ced_to_priv()
109 static int timer8_clock_event_shutdown(struct clock_event_device *ced) in timer8_clock_event_shutdown() argument
111 timer8_stop(ced_to_priv(ced)); in timer8_clock_event_shutdown()
115 static int timer8_clock_event_periodic(struct clock_event_device *ced) in timer8_clock_event_periodic() argument
117 struct timer8_priv *p = ced_to_priv(ced); in timer8_clock_event_periodic()
119 pr_info("%s: used for periodic clock events\n", ced->name); in timer8_clock_event_periodic()
[all …]
Dsh_tmu.c50 struct clock_event_device ced; member
242 if (clockevent_state_oneshot(&ch->ced)) in sh_tmu_interrupt()
248 ch->ced.event_handler(&ch->ced); in sh_tmu_interrupt()
338 static struct sh_tmu_channel *ced_to_sh_tmu(struct clock_event_device *ced) in ced_to_sh_tmu() argument
340 return container_of(ced, struct sh_tmu_channel, ced); in ced_to_sh_tmu()
353 static int sh_tmu_clock_event_shutdown(struct clock_event_device *ced) in sh_tmu_clock_event_shutdown() argument
355 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_shutdown()
357 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in sh_tmu_clock_event_shutdown()
362 static int sh_tmu_clock_event_set_state(struct clock_event_device *ced, in sh_tmu_clock_event_set_state() argument
365 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_set_state()
[all …]
Dtimer-imx-gpt.c69 struct clock_event_device ced; member
82 struct clock_event_device *ced);
85 static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced) in to_imx_timer() argument
87 return container_of(ced, struct imx_timer, ced); in to_imx_timer()
170 struct clock_event_device *ced) in mx1_2_set_next_event() argument
172 struct imx_timer *imxtm = to_imx_timer(ced); in mx1_2_set_next_event()
184 struct clock_event_device *ced) in v2_set_next_event() argument
186 struct imx_timer *imxtm = to_imx_timer(ced); in v2_set_next_event()
198 static int mxc_shutdown(struct clock_event_device *ced) in mxc_shutdown() argument
200 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_shutdown()
[all …]
Dsh_mtu2.c42 struct clock_event_device ced; member
270 ch->ced.event_handler(&ch->ced); in sh_mtu2_interrupt()
274 static struct sh_mtu2_channel *ced_to_sh_mtu2(struct clock_event_device *ced) in ced_to_sh_mtu2() argument
276 return container_of(ced, struct sh_mtu2_channel, ced); in ced_to_sh_mtu2()
279 static int sh_mtu2_clock_event_shutdown(struct clock_event_device *ced) in sh_mtu2_clock_event_shutdown() argument
281 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_shutdown()
283 if (clockevent_state_periodic(ced)) in sh_mtu2_clock_event_shutdown()
289 static int sh_mtu2_clock_event_set_periodic(struct clock_event_device *ced) in sh_mtu2_clock_event_set_periodic() argument
291 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_set_periodic()
293 if (clockevent_state_periodic(ced)) in sh_mtu2_clock_event_set_periodic()
[all …]
Dem_sti.c44 struct clock_event_device ced; member
156 p->ced.event_handler(&p->ced); in em_sti_interrupt()
240 static struct em_sti_priv *ced_to_em_sti(struct clock_event_device *ced) in ced_to_em_sti() argument
242 return container_of(ced, struct em_sti_priv, ced); in ced_to_em_sti()
245 static int em_sti_clock_event_shutdown(struct clock_event_device *ced) in em_sti_clock_event_shutdown() argument
247 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_shutdown()
252 static int em_sti_clock_event_set_oneshot(struct clock_event_device *ced) in em_sti_clock_event_set_oneshot() argument
254 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_set_oneshot()
262 struct clock_event_device *ced) in em_sti_clock_event_next() argument
264 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_next()
[all …]
Ddw_apb_timer.c43 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced()
257 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init()
258 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init()
259 &dw_ced->ced); in dw_apb_clockevent_init()
260 dw_ced->ced.max_delta_ticks = 0x7fffffff; in dw_apb_clockevent_init()
261 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init()
262 dw_ced->ced.min_delta_ticks = 5000; in dw_apb_clockevent_init()
263 dw_ced->ced.cpumask = cpumask_of(cpu); in dw_apb_clockevent_init()
264 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | in dw_apb_clockevent_init()
266 dw_ced->ced.set_state_shutdown = apbt_shutdown; in dw_apb_clockevent_init()
[all …]
Dsh_cmt.c110 struct clock_event_device ced; member
545 if (clockevent_state_oneshot(&ch->ced)) { in sh_cmt_interrupt()
550 ch->ced.event_handler(&ch->ced); in sh_cmt_interrupt()
561 if ((clockevent_state_shutdown(&ch->ced)) in sh_cmt_interrupt()
707 static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced) in ced_to_sh_cmt() argument
709 return container_of(ced, struct sh_cmt_channel, ced); in ced_to_sh_cmt()
722 static int sh_cmt_clock_event_shutdown(struct clock_event_device *ced) in sh_cmt_clock_event_shutdown() argument
724 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced); in sh_cmt_clock_event_shutdown()
730 static int sh_cmt_clock_event_set_state(struct clock_event_device *ced, in sh_cmt_clock_event_set_state() argument
733 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced); in sh_cmt_clock_event_set_state()
[all …]
Dnumachip.c39 static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced) in numachip2_set_next_event() argument
61 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_interrupt() local
63 ced->event_handler(ced); in numachip_timer_interrupt()
69 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_each() local
76 *ced = numachip2_clockevent; in numachip_timer_each()
77 ced->cpumask = cpumask_of(smp_processor_id()); in numachip_timer_each()
78 clockevents_register_device(ced); in numachip_timer_each()
Ddw_apb_timer_of.c66 struct dw_apb_clock_event_device *ced; in add_clockevent() local
75 ced = dw_apb_clockevent_init(0, event_timer->name, 300, iobase, irq, in add_clockevent()
77 if (!ced) in add_clockevent()
80 dw_apb_clockevent_register(ced); in add_clockevent()
/Linux-v4.19/arch/x86/platform/uv/
Duv_time.c315 struct clock_event_device *ced) in uv_rtc_next_event() argument
317 int ced_cpu = cpumask_first(ced->cpumask); in uv_rtc_next_event()
336 struct clock_event_device *ced = &per_cpu(cpu_ced, cpu); in uv_rtc_interrupt() local
338 if (!ced || !ced->event_handler) in uv_rtc_interrupt()
344 ced->event_handler(ced); in uv_rtc_interrupt()
357 struct clock_event_device *ced = this_cpu_ptr(&cpu_ced); in uv_rtc_register_clockevents() local
359 *ced = clock_event_device_uv; in uv_rtc_register_clockevents()
360 ced->cpumask = cpumask_of(smp_processor_id()); in uv_rtc_register_clockevents()
361 clockevents_register_device(ced); in uv_rtc_register_clockevents()
/Linux-v4.19/arch/nios2/kernel/
Dtime.c43 struct clock_event_device ced; member
54 return container_of(evt, struct nios2_clockevent_dev, ced); in to_nios2_clkevent()
230 .ced = {
262 nios2_ce.ced.cpumask = cpumask_of(0); in nios2_clockevent_init()
263 nios2_ce.ced.irq = irq; in nios2_clockevent_init()
270 &nios2_ce.ced); in nios2_clockevent_init()
276 clockevents_config_and_register(&nios2_ce.ced, freq, 1, ULONG_MAX); in nios2_clockevent_init()
/Linux-v4.19/kernel/time/
Dclockevents.c369 static int clockevents_replace(struct clock_event_device *ced) in clockevents_replace() argument
374 if (dev == ced || !clockevent_state_detached(dev)) in clockevents_replace()
389 list_del_init(&ced->list); in clockevents_replace()
397 static int __clockevents_try_unbind(struct clock_event_device *ced, int cpu) in __clockevents_try_unbind() argument
400 if (clockevent_state_detached(ced)) { in __clockevents_try_unbind()
401 list_del_init(&ced->list); in __clockevents_try_unbind()
405 return ced == per_cpu(tick_cpu_device, cpu).evtdev ? -EAGAIN : -EBUSY; in __clockevents_try_unbind()
428 static int clockevents_unbind(struct clock_event_device *ced, int cpu) in clockevents_unbind() argument
430 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; in clockevents_unbind()
439 int clockevents_unbind_device(struct clock_event_device *ced, int cpu) in clockevents_unbind_device() argument
[all …]
/Linux-v4.19/drivers/char/hw_random/
Dstm32-rng.c44 bool ced; member
101 if (priv->ced) in stm32_rng_init()
153 priv->ced = of_property_read_bool(np, "clock-error-detect"); in stm32_rng_probe()
/Linux-v4.19/include/linux/
Ddw_apb_timer.h29 struct clock_event_device ced; member
Dclockchips.h184 extern int clockevents_unbind_device(struct clock_event_device *ced, int cpu);
/Linux-v4.19/arch/x86/kernel/
Dapb_timer.c159 global_clock_event = &adev->timer->ced; in apbt_clockevent_register()