Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/clocksource/
Dsh_tmu.c44 struct clock_event_device ced; member
179 if (p->ced.mode == CLOCK_EVT_MODE_ONESHOT) in sh_tmu_interrupt()
185 p->ced.event_handler(&p->ced); in sh_tmu_interrupt()
237 static struct sh_tmu_priv *ced_to_sh_tmu(struct clock_event_device *ced) in ced_to_sh_tmu() argument
239 return container_of(ced, struct sh_tmu_priv, ced); in ced_to_sh_tmu()
244 struct clock_event_device *ced = &p->ced; in sh_tmu_clock_event_start() local
250 ced->shift = 32; in sh_tmu_clock_event_start()
251 ced->mult = div_sc(p->rate, NSEC_PER_SEC, ced->shift); in sh_tmu_clock_event_start()
252 ced->max_delta_ns = clockevent_delta2ns(0xffffffff, ced); in sh_tmu_clock_event_start()
253 ced->min_delta_ns = 5000; in sh_tmu_clock_event_start()
[all …]
Dsh_mtu2.c43 struct clock_event_device ced; member
171 p->ced.event_handler(&p->ced); in sh_mtu2_interrupt()
175 static struct sh_mtu2_priv *ced_to_sh_mtu2(struct clock_event_device *ced) in ced_to_sh_mtu2() argument
177 return container_of(ced, struct sh_mtu2_priv, ced); in ced_to_sh_mtu2()
181 struct clock_event_device *ced) in sh_mtu2_clock_event_mode() argument
183 struct sh_mtu2_priv *p = ced_to_sh_mtu2(ced); in sh_mtu2_clock_event_mode()
187 switch (ced->mode) { in sh_mtu2_clock_event_mode()
214 struct clock_event_device *ced = &p->ced; in sh_mtu2_register_clockevent() local
217 memset(ced, 0, sizeof(*ced)); in sh_mtu2_register_clockevent()
219 ced->name = name; in sh_mtu2_register_clockevent()
[all …]
Dsh_cmt.c52 struct clock_event_device ced; member
357 if (p->ced.mode == CLOCK_EVT_MODE_ONESHOT) { in sh_cmt_interrupt()
362 p->ced.event_handler(&p->ced); in sh_cmt_interrupt()
373 if ((p->ced.mode == CLOCK_EVT_MODE_SHUTDOWN) in sh_cmt_interrupt()
494 static struct sh_cmt_priv *ced_to_sh_cmt(struct clock_event_device *ced) in ced_to_sh_cmt() argument
496 return container_of(ced, struct sh_cmt_priv, ced); in ced_to_sh_cmt()
501 struct clock_event_device *ced = &p->ced; in sh_cmt_clock_event_start() local
507 ced->shift = 32; in sh_cmt_clock_event_start()
508 ced->mult = div_sc(p->rate, NSEC_PER_SEC, ced->shift); in sh_cmt_clock_event_start()
509 ced->max_delta_ns = clockevent_delta2ns(p->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()
229 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init()
230 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init()
231 &dw_ced->ced); in dw_apb_clockevent_init()
232 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init()
233 dw_ced->ced.cpumask = cpumask_of(cpu); in dw_apb_clockevent_init()
234 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in dw_apb_clockevent_init()
235 dw_ced->ced.set_mode = apbt_set_mode; in dw_apb_clockevent_init()
236 dw_ced->ced.set_next_event = apbt_next_event; in dw_apb_clockevent_init()
237 dw_ced->ced.irq = dw_ced->timer.irq; in dw_apb_clockevent_init()
[all …]
/linux-3.4.99/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 = &__get_cpu_var(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-3.4.99/arch/arm/mach-picoxcell/
Dtime.c35 struct dw_apb_clock_event_device *ced; in picoxcell_add_clockevent() local
44 ced = dw_apb_clockevent_init(0, event_timer->name, 300, iobase, irq, in picoxcell_add_clockevent()
46 if (!ced) in picoxcell_add_clockevent()
49 dw_apb_clockevent_register(ced); in picoxcell_add_clockevent()
/linux-3.4.99/include/linux/
Ddw_apb_timer.h29 struct clock_event_device ced; member
/linux-3.4.99/arch/x86/kernel/
Dapb_timer.c167 global_clock_event = &adev->timer->ced; in apbt_clockevent_register()