Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/clocksource/
Dh8300_timer8.c44 struct clock_event_device ced; member
84 if (clockevent_state_oneshot(&p->ced)) in timer8_interrupt()
86 p->ced.event_handler(&p->ced); in timer8_interrupt()
153 static inline struct timer8_priv *ced_to_priv(struct clock_event_device *ced) in ced_to_priv() argument
155 return container_of(ced, struct timer8_priv, ced); in ced_to_priv()
160 struct clock_event_device *ced = &p->ced; in timer8_clock_event_start() local
164 ced->shift = 32; in timer8_clock_event_start()
165 ced->mult = div_sc(p->rate, NSEC_PER_SEC, ced->shift); in timer8_clock_event_start()
166 ced->max_delta_ns = clockevent_delta2ns(0xffff, ced); in timer8_clock_event_start()
167 ced->min_delta_ns = clockevent_delta2ns(0x0001, ced); in timer8_clock_event_start()
[all …]
Dsh_tmu.c51 struct clock_event_device ced; member
243 if (clockevent_state_oneshot(&ch->ced)) in sh_tmu_interrupt()
249 ch->ced.event_handler(&ch->ced); in sh_tmu_interrupt()
342 static struct sh_tmu_channel *ced_to_sh_tmu(struct clock_event_device *ced) in ced_to_sh_tmu() argument
344 return container_of(ced, struct sh_tmu_channel, ced); in ced_to_sh_tmu()
349 struct clock_event_device *ced = &ch->ced; in sh_tmu_clock_event_start() local
353 clockevents_config(ced, ch->rate); in sh_tmu_clock_event_start()
361 static int sh_tmu_clock_event_shutdown(struct clock_event_device *ced) in sh_tmu_clock_event_shutdown() argument
363 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_shutdown()
365 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in sh_tmu_clock_event_shutdown()
[all …]
Dtimer-imx-gpt.c85 struct clock_event_device ced; member
98 struct clock_event_device *ced);
101 static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced) in to_imx_timer() argument
103 return container_of(ced, struct imx_timer, ced); in to_imx_timer()
186 struct clock_event_device *ced) in mx1_2_set_next_event() argument
188 struct imx_timer *imxtm = to_imx_timer(ced); in mx1_2_set_next_event()
200 struct clock_event_device *ced) in v2_set_next_event() argument
202 struct imx_timer *imxtm = to_imx_timer(ced); in v2_set_next_event()
214 static int mxc_shutdown(struct clock_event_device *ced) in mxc_shutdown() argument
216 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_shutdown()
[all …]
Dem_sti.c44 struct clock_event_device ced; member
159 p->ced.event_handler(&p->ced); in em_sti_interrupt()
248 static struct em_sti_priv *ced_to_em_sti(struct clock_event_device *ced) in ced_to_em_sti() argument
250 return container_of(ced, struct em_sti_priv, ced); in ced_to_em_sti()
253 static int em_sti_clock_event_shutdown(struct clock_event_device *ced) in em_sti_clock_event_shutdown() argument
255 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_shutdown()
260 static int em_sti_clock_event_set_oneshot(struct clock_event_device *ced) in em_sti_clock_event_set_oneshot() argument
262 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_set_oneshot()
266 clockevents_config(&p->ced, p->rate); in em_sti_clock_event_set_oneshot()
271 struct clock_event_device *ced) in em_sti_clock_event_next() argument
[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 …]
Dnumachip.c39 static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced) in numachip2_set_next_event() argument
59 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_interrupt() local
61 ced->event_handler(ced); in numachip_timer_interrupt()
67 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_each() local
74 *ced = numachip2_clockevent; in numachip_timer_each()
75 ced->cpumask = cpumask_of(smp_processor_id()); in numachip_timer_each()
76 clockevents_register_device(ced); in numachip_timer_each()
Dsh_cmt.c108 struct clock_event_device ced; member
541 if (clockevent_state_oneshot(&ch->ced)) { in sh_cmt_interrupt()
546 ch->ced.event_handler(&ch->ced); in sh_cmt_interrupt()
557 if ((clockevent_state_shutdown(&ch->ced)) in sh_cmt_interrupt()
705 static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced) in ced_to_sh_cmt() argument
707 return container_of(ced, struct sh_cmt_channel, ced); in ced_to_sh_cmt()
712 struct clock_event_device *ced = &ch->ced; in sh_cmt_clock_event_start() local
718 ced->shift = 32; in sh_cmt_clock_event_start()
719 ced->mult = div_sc(ch->rate, NSEC_PER_SEC, ced->shift); in sh_cmt_clock_event_start()
720 ced->max_delta_ns = clockevent_delta2ns(ch->max_match_value, ced); in sh_cmt_clock_event_start()
[all …]
Ddw_apb_timer.c43 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced()
246 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init()
247 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init()
248 &dw_ced->ced); in dw_apb_clockevent_init()
249 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init()
250 dw_ced->ced.cpumask = cpumask_of(cpu); in dw_apb_clockevent_init()
251 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | in dw_apb_clockevent_init()
253 dw_ced->ced.set_state_shutdown = apbt_shutdown; in dw_apb_clockevent_init()
254 dw_ced->ced.set_state_periodic = apbt_set_periodic; in dw_apb_clockevent_init()
255 dw_ced->ced.set_state_oneshot = apbt_set_oneshot; in dw_apb_clockevent_init()
[all …]
Ddw_apb_timer_of.c65 struct dw_apb_clock_event_device *ced; in add_clockevent() local
74 ced = dw_apb_clockevent_init(0, event_timer->name, 300, iobase, irq, in add_clockevent()
76 if (!ced) in add_clockevent()
79 dw_apb_clockevent_register(ced); in add_clockevent()
/linux-4.4.14/arch/x86/kernel/
Dcrash.c195 struct crash_elf_data *ced = arg; in get_gart_ranges_callback() local
197 ced->gart_start = start; in get_gart_ranges_callback()
198 ced->gart_end = end; in get_gart_ranges_callback()
206 static void fill_up_crash_elf_data(struct crash_elf_data *ced, in fill_up_crash_elf_data() argument
211 ced->image = image; in fill_up_crash_elf_data()
216 ced->max_nr_ranges = nr_ranges; in fill_up_crash_elf_data()
225 ced, get_gart_ranges_callback); in fill_up_crash_elf_data()
231 if (ced->gart_end) in fill_up_crash_elf_data()
232 ced->max_nr_ranges++; in fill_up_crash_elf_data()
235 ced->max_nr_ranges++; in fill_up_crash_elf_data()
[all …]
Dapb_timer.c159 global_clock_event = &adev->timer->ced; in apbt_clockevent_register()
/linux-4.4.14/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-4.4.14/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()
221 .ced = {
249 nios2_ce.ced.cpumask = cpumask_of(0); in nios2_clockevent_init()
250 nios2_ce.ced.irq = irq; in nios2_clockevent_init()
257 &nios2_ce.ced)) in nios2_clockevent_init()
260 clockevents_config_and_register(&nios2_ce.ced, freq, 1, ULONG_MAX); in nios2_clockevent_init()
/linux-4.4.14/kernel/time/
Dclockevents.c364 static int clockevents_replace(struct clock_event_device *ced) in clockevents_replace() argument
369 if (dev == ced || !clockevent_state_detached(dev)) in clockevents_replace()
384 list_del_init(&ced->list); in clockevents_replace()
392 static int __clockevents_try_unbind(struct clock_event_device *ced, int cpu) in __clockevents_try_unbind() argument
395 if (clockevent_state_detached(ced)) { in __clockevents_try_unbind()
396 list_del_init(&ced->list); in __clockevents_try_unbind()
400 return ced == per_cpu(tick_cpu_device, cpu).evtdev ? -EAGAIN : -EBUSY; in __clockevents_try_unbind()
423 static int clockevents_unbind(struct clock_event_device *ced, int cpu) in clockevents_unbind() argument
425 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; in clockevents_unbind()
434 int clockevents_unbind_device(struct clock_event_device *ced, int cpu) in clockevents_unbind_device() argument
[all …]
/linux-4.4.14/include/linux/
Ddw_apb_timer.h29 struct clock_event_device ced; member
Dclockchips.h183 extern int clockevents_unbind_device(struct clock_event_device *ced, int cpu);