Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/clocksource/
Dem_sti.c44 struct clock_event_device ced; member
159 p->ced.event_handler(&p->ced); in em_sti_interrupt()
249 static struct em_sti_priv *ced_to_em_sti(struct clock_event_device *ced) in ced_to_em_sti() argument
251 return container_of(ced, struct em_sti_priv, ced); in ced_to_em_sti()
255 struct clock_event_device *ced) in em_sti_clock_event_mode() argument
257 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_mode()
260 switch (ced->mode) { in em_sti_clock_event_mode()
272 clockevents_config(&p->ced, p->rate); in em_sti_clock_event_mode()
284 struct clock_event_device *ced) in em_sti_clock_event_next() argument
286 struct em_sti_priv *p = ced_to_em_sti(ced); in em_sti_clock_event_next()
[all …]
Dsh_tmu.c51 struct clock_event_device ced; member
243 if (ch->ced.mode == CLOCK_EVT_MODE_ONESHOT) 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()
362 struct clock_event_device *ced) in sh_tmu_clock_event_mode() argument
364 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); in sh_tmu_clock_event_mode()
368 switch (ced->mode) { in sh_tmu_clock_event_mode()
[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()
280 struct clock_event_device *ced) in sh_mtu2_clock_event_mode() argument
282 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_mode()
286 switch (ced->mode) { in sh_mtu2_clock_event_mode()
311 static void sh_mtu2_clock_event_suspend(struct clock_event_device *ced) in sh_mtu2_clock_event_suspend() argument
313 pm_genpd_syscore_poweroff(&ced_to_sh_mtu2(ced)->mtu->pdev->dev); in sh_mtu2_clock_event_suspend()
316 static void sh_mtu2_clock_event_resume(struct clock_event_device *ced) in sh_mtu2_clock_event_resume() argument
[all …]
Ddw_apb_timer.c43 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced()
230 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init()
231 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init()
232 &dw_ced->ced); in dw_apb_clockevent_init()
233 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init()
234 dw_ced->ced.cpumask = cpumask_of(cpu); in dw_apb_clockevent_init()
235 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in dw_apb_clockevent_init()
236 dw_ced->ced.set_mode = apbt_set_mode; in dw_apb_clockevent_init()
237 dw_ced->ced.set_next_event = apbt_next_event; in dw_apb_clockevent_init()
238 dw_ced->ced.irq = dw_ced->timer.irq; in dw_apb_clockevent_init()
[all …]
Dsh_cmt.c108 struct clock_event_device ced; member
541 if (ch->ced.mode == CLOCK_EVT_MODE_ONESHOT) { in sh_cmt_interrupt()
546 ch->ced.event_handler(&ch->ced); in sh_cmt_interrupt()
557 if ((ch->ced.mode == CLOCK_EVT_MODE_SHUTDOWN) in sh_cmt_interrupt()
699 static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced) in ced_to_sh_cmt() argument
701 return container_of(ced, struct sh_cmt_channel, ced); in ced_to_sh_cmt()
706 struct clock_event_device *ced = &ch->ced; in sh_cmt_clock_event_start() local
712 ced->shift = 32; in sh_cmt_clock_event_start()
713 ced->mult = div_sc(ch->rate, NSEC_PER_SEC, ced->shift); in sh_cmt_clock_event_start()
714 ced->max_delta_ns = clockevent_delta2ns(ch->max_match_value, ced); in sh_cmt_clock_event_start()
[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.1.27/arch/x86/kernel/
Dcrash.c197 struct crash_elf_data *ced = arg; in get_gart_ranges_callback() local
199 ced->gart_start = start; in get_gart_ranges_callback()
200 ced->gart_end = end; in get_gart_ranges_callback()
208 static void fill_up_crash_elf_data(struct crash_elf_data *ced, in fill_up_crash_elf_data() argument
213 ced->image = image; in fill_up_crash_elf_data()
218 ced->max_nr_ranges = nr_ranges; in fill_up_crash_elf_data()
227 ced, get_gart_ranges_callback); in fill_up_crash_elf_data()
233 if (ced->gart_end) in fill_up_crash_elf_data()
234 ced->max_nr_ranges++; in fill_up_crash_elf_data()
237 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.1.27/arch/x86/platform/uv/
Duv_time.c316 struct clock_event_device *ced) in uv_rtc_next_event() argument
318 int ced_cpu = cpumask_first(ced->cpumask); in uv_rtc_next_event()
347 struct clock_event_device *ced = &per_cpu(cpu_ced, cpu); in uv_rtc_interrupt() local
349 if (!ced || !ced->event_handler) in uv_rtc_interrupt()
355 ced->event_handler(ced); in uv_rtc_interrupt()
368 struct clock_event_device *ced = this_cpu_ptr(&cpu_ced); in uv_rtc_register_clockevents() local
370 *ced = clock_event_device_uv; in uv_rtc_register_clockevents()
371 ced->cpumask = cpumask_of(smp_processor_id()); in uv_rtc_register_clockevents()
372 clockevents_register_device(ced); in uv_rtc_register_clockevents()
/linux-4.1.27/arch/nios2/kernel/
Dtime.c40 struct clock_event_device ced; member
51 return container_of(evt, struct nios2_clockevent_dev, ced); in to_nios2_clkevent()
211 .ced = {
236 nios2_ce.ced.cpumask = cpumask_of(0); in nios2_clockevent_init()
237 nios2_ce.ced.irq = irq; in nios2_clockevent_init()
244 &nios2_ce.ced)) in nios2_clockevent_init()
247 clockevents_config_and_register(&nios2_ce.ced, freq, 1, ULONG_MAX); in nios2_clockevent_init()
/linux-4.1.27/kernel/time/
Dclockevents.c360 static int clockevents_replace(struct clock_event_device *ced) in clockevents_replace() argument
365 if (dev == ced || dev->state != CLOCK_EVT_STATE_DETACHED) in clockevents_replace()
380 list_del_init(&ced->list); in clockevents_replace()
388 static int __clockevents_try_unbind(struct clock_event_device *ced, int cpu) in __clockevents_try_unbind() argument
391 if (ced->state == CLOCK_EVT_STATE_DETACHED) { in __clockevents_try_unbind()
392 list_del_init(&ced->list); in __clockevents_try_unbind()
396 return ced == per_cpu(tick_cpu_device, cpu).evtdev ? -EAGAIN : -EBUSY; in __clockevents_try_unbind()
419 static int clockevents_unbind(struct clock_event_device *ced, int cpu) in clockevents_unbind() argument
421 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; in clockevents_unbind()
430 int clockevents_unbind_device(struct clock_event_device *ced, int cpu) in clockevents_unbind_device() argument
[all …]
/linux-4.1.27/include/linux/
Ddw_apb_timer.h29 struct clock_event_device ced; member
Dclockchips.h171 extern int clockevents_unbind_device(struct clock_event_device *ced, int cpu);