/linux-master/drivers/clocksource/ |
H A D | numachip.c | 30 static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced) argument 52 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); local 54 ced->event_handler(ced); 60 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); local 67 *ced = numachip2_clockevent; 68 ced->cpumask = cpumask_of(smp_processor_id()); 69 clockevents_register_device(ced);
|
H A D | jcore-pit.c | 33 struct clock_event_device ced; member in struct:jcore_pit 76 static int jcore_pit_set_state_shutdown(struct clock_event_device *ced) argument 78 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); 83 static int jcore_pit_set_state_oneshot(struct clock_event_device *ced) argument 85 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); 90 static int jcore_pit_set_state_periodic(struct clock_event_device *ced) argument 92 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); 97 jcore_pit_set_next_event(unsigned long delta, struct clock_event_device *ced) argument [all...] |
H A D | renesas-ostm.c | 86 struct clock_event_device *ced) 88 struct timer_of *to = to_timer_of(ced); 99 static int ostm_shutdown(struct clock_event_device *ced) argument 101 struct timer_of *to = to_timer_of(ced); 107 static int ostm_set_periodic(struct clock_event_device *ced) argument 109 struct timer_of *to = to_timer_of(ced); 111 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) 121 static int ostm_set_oneshot(struct clock_event_device *ced) argument 123 struct timer_of *to = to_timer_of(ced); 85 ostm_clock_event_next(unsigned long delta, struct clock_event_device *ced) argument 132 struct clock_event_device *ced = dev_id; local 146 struct clock_event_device *ced = &to->clkevt; local [all...] |
H A D | dw_apb_timer.c | 40 return container_of(evt, struct dw_apb_clock_event_device, ced); 255 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); 256 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, 257 &dw_ced->ced); 258 dw_ced->ced.max_delta_ticks = 0x7fffffff; 259 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); 260 dw_ced->ced.min_delta_ticks = 5000; 261 dw_ced->ced.cpumask = cpu < 0 ? cpu_possible_mask : cpumask_of(cpu); 262 dw_ced->ced [all...] |
H A D | timer-imx-gpt.c | 74 struct clock_event_device ced; member in struct:imx_timer 86 struct clock_event_device *ced); 89 static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced) argument 91 return container_of(ced, struct imx_timer, ced); 173 struct clock_event_device *ced) 175 struct imx_timer *imxtm = to_imx_timer(ced); 187 struct clock_event_device *ced) 189 struct imx_timer *imxtm = to_imx_timer(ced); 201 static int mxc_shutdown(struct clock_event_device *ced) argument 172 mx1_2_set_next_event(unsigned long evt, struct clock_event_device *ced) argument 186 v2_set_next_event(unsigned long evt, struct clock_event_device *ced) argument 223 mxc_set_oneshot(struct clock_event_device *ced) argument 259 struct clock_event_device *ced = dev_id; local 273 struct clock_event_device *ced = &imxtm->ced; local [all...] |
H A D | em_sti.c | 32 struct clock_event_device ced; member in struct:em_sti_priv 144 p->ced.event_handler(&p->ced); 228 static struct em_sti_priv *ced_to_em_sti(struct clock_event_device *ced) argument 230 return container_of(ced, struct em_sti_priv, ced); 233 static int em_sti_clock_event_shutdown(struct clock_event_device *ced) argument 235 struct em_sti_priv *p = ced_to_em_sti(ced); 240 static int em_sti_clock_event_set_oneshot(struct clock_event_device *ced) argument 242 struct em_sti_priv *p = ced_to_em_sti(ced); 249 em_sti_clock_event_next(unsigned long delta, struct clock_event_device *ced) argument 264 struct clock_event_device *ced = &p->ced; local [all...] |
H A D | sh_tmu.c | 46 struct clock_event_device ced; member in struct:sh_tmu_channel 238 if (clockevent_state_oneshot(&ch->ced)) 244 ch->ced.event_handler(&ch->ced); 334 static struct sh_tmu_channel *ced_to_sh_tmu(struct clock_event_device *ced) argument 336 return container_of(ced, struct sh_tmu_channel, ced); 349 static int sh_tmu_clock_event_shutdown(struct clock_event_device *ced) argument 351 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced); 353 if (clockevent_state_oneshot(ced) || clockevent_state_periodi 358 sh_tmu_clock_event_set_state(struct clock_event_device *ced, int periodic) argument 373 sh_tmu_clock_event_set_oneshot(struct clock_event_device *ced) argument 378 sh_tmu_clock_event_set_periodic(struct clock_event_device *ced) argument 383 sh_tmu_clock_event_next(unsigned long delta, struct clock_event_device *ced) argument 395 sh_tmu_clock_event_suspend(struct clock_event_device *ced) argument 400 sh_tmu_clock_event_resume(struct clock_event_device *ced) argument 408 struct clock_event_device *ced = &ch->ced; local [all...] |
H A D | sh_mtu2.c | 38 struct clock_event_device ced; member in struct:sh_mtu2_channel 266 ch->ced.event_handler(&ch->ced); 270 static struct sh_mtu2_channel *ced_to_sh_mtu2(struct clock_event_device *ced) argument 272 return container_of(ced, struct sh_mtu2_channel, ced); 275 static int sh_mtu2_clock_event_shutdown(struct clock_event_device *ced) argument 277 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced); 279 if (clockevent_state_periodic(ced)) 285 static int sh_mtu2_clock_event_set_periodic(struct clock_event_device *ced) argument 298 sh_mtu2_clock_event_suspend(struct clock_event_device *ced) argument 303 sh_mtu2_clock_event_resume(struct clock_event_device *ced) argument 311 struct clock_event_device *ced = &ch->ced; local [all...] |
H A D | sh_cmt.c | 105 struct clock_event_device ced; member in struct:sh_cmt_channel 550 if (clockevent_state_oneshot(&ch->ced)) { 555 ch->ced.event_handler(&ch->ced); 566 if ((clockevent_state_shutdown(&ch->ced)) 731 static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced) argument 733 return container_of(ced, struct sh_cmt_channel, ced); 746 static int sh_cmt_clock_event_shutdown(struct clock_event_device *ced) argument 748 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced); 754 sh_cmt_clock_event_set_state(struct clock_event_device *ced, int periodic) argument 769 sh_cmt_clock_event_set_oneshot(struct clock_event_device *ced) argument 774 sh_cmt_clock_event_set_periodic(struct clock_event_device *ced) argument 779 sh_cmt_clock_event_next(unsigned long delta, struct clock_event_device *ced) argument 793 sh_cmt_clock_event_suspend(struct clock_event_device *ced) argument 801 sh_cmt_clock_event_resume(struct clock_event_device *ced) argument 812 struct clock_event_device *ced = &ch->ced; local [all...] |
H A D | timer-goldfish.c | 14 struct clock_event_device ced; member in struct:goldfish_timer 19 static struct goldfish_timer *ced_to_gf(struct clock_event_device *ced) argument 21 return container_of(ced, struct goldfish_timer, ced); 90 struct clock_event_device *evt = &timerdrv->ced; 111 timerdrv->ced = (struct clock_event_device){ 149 clockevents_config_and_register(&timerdrv->ced, NSEC_PER_SEC,
|
H A D | dw_apb_timer_of.c | 88 struct dw_apb_clock_event_device *ced; local 100 ced = dw_apb_clockevent_init(-1, event_timer->name, 300, iobase, irq, 102 if (!ced) 105 dw_apb_clockevent_register(ced);
|
/linux-master/arch/x86/platform/uv/ |
H A D | uv_time.c | 292 struct clock_event_device *ced) 294 int ced_cpu = cpumask_first(ced->cpumask); 313 struct clock_event_device *ced = &per_cpu(cpu_ced, cpu); local 315 if (!ced || !ced->event_handler) 321 ced->event_handler(ced); 334 struct clock_event_device *ced = this_cpu_ptr(&cpu_ced); local 336 *ced = clock_event_device_uv; 337 ced 291 uv_rtc_next_event(unsigned long delta, struct clock_event_device *ced) argument [all...] |
/linux-master/arch/nios2/kernel/ |
H A D | time.c | 43 struct clock_event_device ced; member in struct:nios2_clockevent_dev 54 return container_of(evt, struct nios2_clockevent_dev, ced); 230 .ced = { 262 nios2_ce.ced.cpumask = cpumask_of(0); 263 nios2_ce.ced.irq = irq; 270 &nios2_ce.ced); 276 clockevents_config_and_register(&nios2_ce.ced, freq, 1, ULONG_MAX);
|
/linux-master/include/linux/ |
H A D | dw_apb_timer.h | 26 struct clock_event_device ced; member in struct:dw_apb_clock_event_device
|
H A D | clockchips.h | 184 extern int clockevents_unbind_device(struct clock_event_device *ced, int cpu);
|
/linux-master/kernel/time/ |
H A D | clockevents.c | 358 static int clockevents_replace(struct clock_event_device *ced) argument 363 if (dev == ced || !clockevent_state_detached(dev)) 378 list_del_init(&ced->list); 386 static int __clockevents_try_unbind(struct clock_event_device *ced, int cpu) argument 389 if (clockevent_state_detached(ced)) { 390 list_del_init(&ced->list); 394 return ced == per_cpu(tick_cpu_device, cpu).evtdev ? -EAGAIN : -EBUSY; 417 static int clockevents_unbind(struct clock_event_device *ced, int cpu) argument 419 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; 428 int clockevents_unbind_device(struct clock_event_device *ced, in argument [all...] |
/linux-master/drivers/char/hw_random/ |
H A D | stm32-rng.c | 78 bool ced; member in struct:stm32_rng_private 307 if (priv->ced) 338 if (priv->ced) 530 priv->ced = of_property_read_bool(np, "clock-error-detect");
|