| /linux/drivers/clocksource/ |
| H A D | jcore-pit.c | 33 struct clock_event_device ced; member 76 static int jcore_pit_set_state_shutdown(struct clock_event_device *ced) in jcore_pit_set_state_shutdown() argument 78 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_shutdown() 83 static int jcore_pit_set_state_oneshot(struct clock_event_device *ced) in jcore_pit_set_state_oneshot() argument 85 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_oneshot() 90 static int jcore_pit_set_state_periodic(struct clock_event_device *ced) in jcore_pit_set_state_periodic() argument 92 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_state_periodic() 98 struct clock_event_device *ced) in jcore_pit_set_next_event() argument 100 struct jcore_pit *pit = container_of(ced, struct jcore_pit, ced); in jcore_pit_set_next_event() 116 clockevents_config_and_register(&pit->ced, freq, 1, ULONG_MAX); in jcore_pit_local_init() [all …]
|
| H A D | renesas-ostm.c | 86 struct clock_event_device *ced) in ostm_clock_event_next() argument 88 struct timer_of *to = to_timer_of(ced); in ostm_clock_event_next() 99 static int ostm_shutdown(struct clock_event_device *ced) in ostm_shutdown() argument 101 struct timer_of *to = to_timer_of(ced); in ostm_shutdown() 107 static int ostm_set_periodic(struct clock_event_device *ced) in ostm_set_periodic() argument 109 struct timer_of *to = to_timer_of(ced); in ostm_set_periodic() 111 if (clockevent_state_oneshot(ced) || clockevent_state_periodic(ced)) in ostm_set_periodic() 121 static int ostm_set_oneshot(struct clock_event_device *ced) in ostm_set_oneshot() argument 123 struct timer_of *to = to_timer_of(ced); in ostm_set_oneshot() 132 struct clock_event_device *ced = dev_id; in ostm_timer_interrupt() local [all …]
|
| H A D | timer-imx-gpt.c | 74 struct clock_event_device ced; member 86 struct clock_event_device *ced); 89 static inline struct imx_timer *to_imx_timer(struct clock_event_device *ced) in to_imx_timer() argument 91 return container_of(ced, struct imx_timer, ced); in to_imx_timer() 173 struct clock_event_device *ced) in mx1_2_set_next_event() argument 175 struct imx_timer *imxtm = to_imx_timer(ced); in mx1_2_set_next_event() 187 struct clock_event_device *ced) in v2_set_next_event() argument 189 struct imx_timer *imxtm = to_imx_timer(ced); in v2_set_next_event() 201 static int mxc_shutdown(struct clock_event_device *ced) in mxc_shutdown() argument 203 struct imx_timer *imxtm = to_imx_timer(ced); in mxc_shutdown() [all …]
|
| H A D | dw_apb_timer.c | 40 return container_of(evt, struct dw_apb_clock_event_device, ced); in ced_to_dw_apb_ced() 235 clockevents_calc_mult_shift(&dw_ced->ced, freq, APBT_MIN_PERIOD); in dw_apb_clockevent_init() 236 dw_ced->ced.max_delta_ns = clockevent_delta2ns(0x7fffffff, in dw_apb_clockevent_init() 237 &dw_ced->ced); in dw_apb_clockevent_init() 238 dw_ced->ced.max_delta_ticks = 0x7fffffff; in dw_apb_clockevent_init() 239 dw_ced->ced.min_delta_ns = clockevent_delta2ns(5000, &dw_ced->ced); in dw_apb_clockevent_init() 240 dw_ced->ced.min_delta_ticks = 5000; in dw_apb_clockevent_init() 241 dw_ced->ced.cpumask = cpu < 0 ? cpu_possible_mask : cpumask_of(cpu); in dw_apb_clockevent_init() 242 dw_ced->ced.features = CLOCK_EVT_FEAT_PERIODIC | in dw_apb_clockevent_init() 244 dw_ced->ced.set_state_shutdown = apbt_shutdown; in dw_apb_clockevent_init() [all …]
|
| H A D | numachip.c | 30 static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced) in numachip2_set_next_event() argument 52 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_interrupt() local 54 ced->event_handler(ced); in numachip_timer_interrupt() 60 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_each() local 67 *ced = numachip2_clockevent; in numachip_timer_each() 68 ced->cpumask = cpumask_of(smp_processor_id()); in numachip_timer_each() 69 clockevents_register_device(ced); in numachip_timer_each()
|
| H A D | timer-goldfish.c | 14 struct clock_event_device ced; member 19 static struct goldfish_timer *ced_to_gf(struct clock_event_device *ced) in ced_to_gf() argument 21 return container_of(ced, struct goldfish_timer, ced); in ced_to_gf() 90 struct clock_event_device *evt = &timerdrv->ced; in goldfish_timer_irq() 111 timerdrv->ced = (struct clock_event_device){ in goldfish_timer_init() 149 clockevents_config_and_register(&timerdrv->ced, NSEC_PER_SEC, in goldfish_timer_init()
|
| H A D | dw_apb_timer_of.c | 88 struct dw_apb_clock_event_device *ced; in add_clockevent() local 100 ced = dw_apb_clockevent_init(-1, event_timer->name, 300, iobase, irq, in add_clockevent() 102 if (!ced) in add_clockevent() 105 dw_apb_clockevent_register(ced); in add_clockevent()
|
| /linux/arch/x86/platform/uv/ |
| H A D | uv_time.c | 292 struct clock_event_device *ced) in uv_rtc_next_event() argument 294 int ced_cpu = cpumask_first(ced->cpumask); in uv_rtc_next_event() 313 struct clock_event_device *ced = &per_cpu(cpu_ced, cpu); in uv_rtc_interrupt() local 315 if (!ced || !ced->event_handler) in uv_rtc_interrupt() 321 ced->event_handler(ced); in uv_rtc_interrupt() 334 struct clock_event_device *ced = this_cpu_ptr(&cpu_ced); in uv_rtc_register_clockevents() local 336 *ced = clock_event_device_uv; in uv_rtc_register_clockevents() 337 ced->cpumask = cpumask_of(smp_processor_id()); in uv_rtc_register_clockevents() 338 clockevents_register_device(ced); in uv_rtc_register_clockevents()
|
| /linux/arch/nios2/kernel/ |
| H A D | time.c | 43 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/kernel/time/ |
| H A D | clockevents.c | 416 static int clockevents_replace(struct clock_event_device *ced) in clockevents_replace() argument 421 if (dev == ced || !clockevent_state_detached(dev)) in clockevents_replace() 436 list_del_init(&ced->list); in clockevents_replace() 444 static int __clockevents_try_unbind(struct clock_event_device *ced, int cpu) in __clockevents_try_unbind() argument 447 if (clockevent_state_detached(ced)) { in __clockevents_try_unbind() 448 list_del_init(&ced->list); in __clockevents_try_unbind() 452 return ced == per_cpu(tick_cpu_device, cpu).evtdev ? -EAGAIN : -EBUSY; in __clockevents_try_unbind() 475 static int clockevents_unbind(struct clock_event_device *ced, int cpu) in clockevents_unbind() argument 477 struct ce_unbind cu = { .ce = ced, .res = -ENODEV }; in clockevents_unbind() 486 int clockevents_unbind_device(struct clock_event_device *ced, int cpu) in clockevents_unbind_device() argument [all …]
|
| /linux/include/linux/ |
| H A D | clockchips.h | 190 extern int clockevents_unbind_device(struct clock_event_device *ced, int cpu);
|