/linux/kernel/time/ |
A D | tick-internal.h | 21 extern void tick_handle_periodic(struct clock_event_device *dev); 22 extern void tick_check_new_device(struct clock_event_device *dev); 26 extern bool tick_check_replacement(struct clock_event_device *curdev, 27 struct clock_event_device *newdev); 28 extern void tick_install_replacement(struct clock_event_device *dev); 32 extern int clockevents_tick_resume(struct clock_event_device *dev); 50 extern void clockevents_shutdown(struct clock_event_device *dev); 52 struct clock_event_device *new); 101 void (*handler)(struct clock_event_device *), 114 void tick_setup_oneshot(struct clock_event_device *newdev, in tick_setup_oneshot() [all …]
|
A D | tick-broadcast.c | 86 struct clock_event_device *newdev) in tick_check_broadcast_device() 208 int tick_is_broadcast_device(struct clock_event_device *dev) in tick_is_broadcast_device() 330 struct clock_event_device *evt = td->evtdev; in tick_receive_broadcast() 439 struct clock_event_device *bc, *dev; in tick_broadcast_control() 550 struct clock_event_device *bc; in tick_suspend_broadcast() 580 struct clock_event_device *bc; in tick_resume_broadcast() 775 struct clock_event_device *dev) in broadcast_shutdown_local() 795 struct clock_event_device *bc, *dev = td->evtdev; in ___tick_broadcast_oneshot_control() 933 struct clock_event_device *dev, *wd; in tick_oneshot_wakeup_control() 1068 struct clock_event_device *bc; in tick_broadcast_switch_to_oneshot() [all …]
|
A D | clockevents.c | 28 struct clock_event_device *ce; 171 void clockevents_shutdown(struct clock_event_device *dev) in clockevents_shutdown() 181 int clockevents_tick_resume(struct clock_event_device *dev) in clockevents_tick_resume() 345 struct clock_event_device *dev; in clockevents_notify_released() 349 struct clock_event_device, list); in clockevents_notify_released() 360 struct clock_event_device *dev, *newdev = NULL; in clockevents_replace() 569 struct clock_event_device *new) in clockevents_exchange_device() 592 struct clock_event_device *dev; in clockevents_suspend() 604 struct clock_event_device *dev; in clockevents_resume() 634 struct clock_event_device *dev, *tmp; in tick_cleanup_dead_cpu() [all …]
|
A D | tick-common.c | 107 void tick_handle_periodic(struct clock_event_device *dev) in tick_handle_periodic() 206 struct clock_event_device *newdev, int cpu, in tick_setup_device() 209 void (*handler)(struct clock_event_device *) = NULL; in tick_setup_device() 277 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() 289 struct clock_event_device *newdev, int cpu) in tick_check_percpu() 305 struct clock_event_device *newdev) in tick_check_preferred() 328 bool tick_check_replacement(struct clock_event_device *curdev, in tick_check_replacement() 329 struct clock_event_device *newdev) in tick_check_replacement() 341 void tick_check_new_device(struct clock_event_device *newdev) in tick_check_new_device() 343 struct clock_event_device *curdev; in tick_check_new_device() [all …]
|
A D | tick-oneshot.c | 25 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_program_event() 52 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_resume_oneshot() 61 void tick_setup_oneshot(struct clock_event_device *newdev, in tick_setup_oneshot() 62 void (*handler)(struct clock_event_device *), in tick_setup_oneshot() argument 73 int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *)) in tick_switch_to_oneshot() argument 76 struct clock_event_device *dev = td->evtdev; in tick_switch_to_oneshot()
|
/linux/include/linux/ |
A D | clockchips.h | 19 struct clock_event_device; 100 struct clock_event_device { struct 101 void (*event_handler)(struct clock_event_device *); argument 103 int (*set_next_ktime)(ktime_t expires, struct clock_event_device *); argument 113 int (*set_state_periodic)(struct clock_event_device *); argument 114 int (*set_state_oneshot)(struct clock_event_device *); argument 115 int (*set_state_oneshot_stopped)(struct clock_event_device *); argument 116 int (*set_state_shutdown)(struct clock_event_device *); argument 117 int (*tick_resume)(struct clock_event_device *); argument 120 void (*suspend)(struct clock_event_device *); argument [all …]
|
/linux/arch/mips/ralink/ |
A D | cevt-rt3352.c | 34 struct clock_event_device dev; 39 static int systick_set_oneshot(struct clock_event_device *evt); 40 static int systick_shutdown(struct clock_event_device *evt); 43 struct clock_event_device *evt) in systick_next_event() 56 static void systick_event_handler(struct clock_event_device *dev) in systick_event_handler() 63 struct clock_event_device *dev = (struct clock_event_device *) dev_id; in systick_interrupt() 85 static int systick_shutdown(struct clock_event_device *evt) in systick_shutdown() 99 static int systick_set_oneshot(struct clock_event_device *evt) in systick_set_oneshot()
|
/linux/drivers/clocksource/ |
A D | timer-digicolor.c | 61 struct clock_event_device ce; 67 static struct digicolor_timer *dc_timer(struct clock_event_device *ce) in dc_timer() 72 static inline void dc_timer_disable(struct clock_event_device *ce) in dc_timer_disable() 78 static inline void dc_timer_enable(struct clock_event_device *ce, u32 mode) in dc_timer_enable() 84 static inline void dc_timer_set_count(struct clock_event_device *ce, in dc_timer_set_count() 91 static int digicolor_clkevt_shutdown(struct clock_event_device *ce) in digicolor_clkevt_shutdown() 97 static int digicolor_clkevt_set_oneshot(struct clock_event_device *ce) in digicolor_clkevt_set_oneshot() 104 static int digicolor_clkevt_set_periodic(struct clock_event_device *ce) in digicolor_clkevt_set_periodic() 115 struct clock_event_device *ce) in digicolor_clkevt_next_event() 140 struct clock_event_device *evt = dev_id; in digicolor_timer_interrupt()
|
A D | timer-mediatek.c | 84 struct clock_event_device *clkevt = dev_id; in mtk_syst_handler() 94 struct clock_event_device *clkevt) in mtk_syst_clkevt_next_event() 113 static int mtk_syst_clkevt_shutdown(struct clock_event_device *clkevt) in mtk_syst_clkevt_shutdown() 124 static int mtk_syst_clkevt_resume(struct clock_event_device *clkevt) in mtk_syst_clkevt_resume() 129 static int mtk_syst_clkevt_oneshot(struct clock_event_device *clkevt) in mtk_syst_clkevt_oneshot() 176 static int mtk_gpt_clkevt_shutdown(struct clock_event_device *clk) in mtk_gpt_clkevt_shutdown() 183 static int mtk_gpt_clkevt_set_periodic(struct clock_event_device *clk) in mtk_gpt_clkevt_set_periodic() 195 struct clock_event_device *clk) in mtk_gpt_clkevt_next_event() 208 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; in mtk_gpt_interrupt() 248 static void mtk_gpt_resume(struct clock_event_device *clk) in mtk_gpt_resume() [all …]
|
A D | timer-stm32-lp.c | 25 struct clock_event_device clkevt; 31 to_priv(struct clock_event_device *clkevt) in to_priv() 36 static int stm32_clkevent_lp_shutdown(struct clock_event_device *clkevt) in stm32_clkevent_lp_shutdown() 49 struct clock_event_device *clkevt, in stm32_clkevent_lp_set_timer() 75 struct clock_event_device *clkevt) in stm32_clkevent_lp_set_next_event() 81 static int stm32_clkevent_lp_set_periodic(struct clock_event_device *clkevt) in stm32_clkevent_lp_set_periodic() 88 static int stm32_clkevent_lp_set_oneshot(struct clock_event_device *clkevt) in stm32_clkevent_lp_set_oneshot() 97 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; in stm32_clkevent_lp_irq_handler()
|
A D | timer-owl.c | 61 static int owl_timer_set_state_shutdown(struct clock_event_device *evt) in owl_timer_set_state_shutdown() 68 static int owl_timer_set_state_oneshot(struct clock_event_device *evt) in owl_timer_set_state_oneshot() 75 static int owl_timer_tick_resume(struct clock_event_device *evt) in owl_timer_tick_resume() 81 struct clock_event_device *ev) in owl_timer_set_next_event() 94 static struct clock_event_device owl_clockevent = { 107 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in owl_timer1_interrupt()
|
A D | timer-meson6.c | 101 static int meson6_shutdown(struct clock_event_device *evt) in meson6_shutdown() 107 static int meson6_set_oneshot(struct clock_event_device *evt) in meson6_set_oneshot() 114 static int meson6_set_periodic(struct clock_event_device *evt) in meson6_set_periodic() 123 struct clock_event_device *unused) in meson6_clkevt_next_event() 132 static struct clock_event_device meson6_clockevent = { 146 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in meson6_timer_interrupt()
|
A D | numachip.c | 13 static DEFINE_PER_CPU(struct clock_event_device, numachip2_ced); 30 static int numachip2_set_next_event(unsigned long delta, struct clock_event_device *ced) in numachip2_set_next_event() 37 static const struct clock_event_device numachip2_clockevent __initconst = { 52 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_interrupt() 60 struct clock_event_device *ced = this_cpu_ptr(&numachip2_ced); in numachip_timer_each()
|
/linux/arch/mips/kernel/ |
A D | cevt-gt641xx.c | 36 struct clock_event_device *evt) in gt641xx_timer0_set_next_event() 54 static int gt641xx_timer0_shutdown(struct clock_event_device *evt) in gt641xx_timer0_shutdown() 68 static int gt641xx_timer0_set_oneshot(struct clock_event_device *evt) in gt641xx_timer0_set_oneshot() 83 static int gt641xx_timer0_set_periodic(struct clock_event_device *evt) in gt641xx_timer0_set_periodic() 97 static void gt641xx_timer0_event_handler(struct clock_event_device *dev) in gt641xx_timer0_event_handler() 101 static struct clock_event_device gt641xx_timer0_clockevent = { 116 struct clock_event_device *cd = >641xx_timer0_clockevent; in gt641xx_timer0_interrupt() 125 struct clock_event_device *cd; in gt641xx_timer0_clockevent_init()
|
A D | cevt-ds1287.c | 44 struct clock_event_device *evt) in ds1287_set_next_event() 49 static int ds1287_shutdown(struct clock_event_device *evt) in ds1287_shutdown() 63 static int ds1287_set_periodic(struct clock_event_device *evt) in ds1287_set_periodic() 77 static void ds1287_event_handler(struct clock_event_device *dev) in ds1287_event_handler() 81 static struct clock_event_device ds1287_clockevent = { 93 struct clock_event_device *cd = &ds1287_clockevent; in ds1287_interrupt() 106 struct clock_event_device *cd; in ds1287_clockevent_init()
|
/linux/arch/hexagon/kernel/ |
A D | time.c | 83 static int set_next_event(unsigned long delta, struct clock_event_device *evt) in set_next_event() 104 static struct clock_event_device hexagon_clockevent_dev = { 116 static DEFINE_PER_CPU(struct clock_event_device, clock_events); 121 struct clock_event_device *ce_dev = &hexagon_clockevent_dev; in setup_percpu_clockdev() 122 struct clock_event_device *dummy_clock_dev = in setup_percpu_clockdev() 138 struct clock_event_device *ce_dev = &per_cpu(clock_events, cpu); in ipi_timer() 146 struct clock_event_device *ce_dev = &hexagon_clockevent_dev; in timer_interrupt() 166 struct clock_event_device *ce_dev = &hexagon_clockevent_dev; in time_init_deferred()
|
/linux/arch/arm/mach-iop32x/ |
A D | time.c | 63 struct clock_event_device *unused) in iop_set_next_event() 77 static int iop_set_periodic(struct clock_event_device *evt) in iop_set_periodic() 90 static int iop_set_oneshot(struct clock_event_device *evt) in iop_set_oneshot() 100 static int iop_shutdown(struct clock_event_device *evt) in iop_shutdown() 109 static int iop_resume(struct clock_event_device *evt) in iop_resume() 118 static struct clock_event_device iop_clockevent = { 133 struct clock_event_device *evt = dev_id; in iop_timer_interrupt()
|
/linux/arch/alpha/kernel/ |
A D | time.c | 88 static DEFINE_PER_CPU(struct clock_event_device, cpu_ce); 94 struct clock_event_device *ce = &per_cpu(cpu_ce, cpu); in rtc_timer_interrupt() 109 rtc_ce_set_next_event(unsigned long evt, struct clock_event_device *ce) in rtc_ce_set_next_event() 119 struct clock_event_device *ce = &per_cpu(cpu_ce, cpu); in init_rtc_clockevent() 121 *ce = (struct clock_event_device){ in init_rtc_clockevent() 157 static int qemu_ce_shutdown(struct clock_event_device *ce) in qemu_ce_shutdown() 166 qemu_ce_set_next_event(unsigned long evt, struct clock_event_device *ce) in qemu_ce_set_next_event() 176 struct clock_event_device *ce = &per_cpu(cpu_ce, cpu); in qemu_timer_interrupt() 186 struct clock_event_device *ce = &per_cpu(cpu_ce, cpu); in init_qemu_clockevent() 188 *ce = (struct clock_event_device){ in init_qemu_clockevent()
|
/linux/arch/arm/kernel/ |
A D | smp_twd.c | 32 static struct clock_event_device __percpu *twd_evt; 37 static int twd_shutdown(struct clock_event_device *clk) in twd_shutdown() 43 static int twd_set_oneshot(struct clock_event_device *clk) in twd_set_oneshot() 51 static int twd_set_periodic(struct clock_event_device *clk) in twd_set_periodic() 64 struct clock_event_device *unused) in twd_set_next_event() 94 struct clock_event_device *clk = raw_cpu_ptr(twd_evt); in twd_timer_stop() 182 struct clock_event_device *evt = dev_id; in twd_handler() 221 struct clock_event_device *clk = raw_cpu_ptr(twd_evt); in twd_timer_setup() 276 twd_evt = alloc_percpu(struct clock_event_device); in twd_local_timer_common_register()
|
/linux/arch/arm/mach-footbridge/ |
A D | dc21285-timer.c | 52 struct clock_event_device *c) in ckevt_dc21285_set_next_event() 61 static int ckevt_dc21285_shutdown(struct clock_event_device *c) in ckevt_dc21285_shutdown() 67 static int ckevt_dc21285_set_periodic(struct clock_event_device *c) in ckevt_dc21285_set_periodic() 76 static struct clock_event_device ckevt_dc21285 = { 91 struct clock_event_device *ce = dev_id; in timer1_interrupt() 109 struct clock_event_device *ce = &ckevt_dc21285; in footbridge_timer_init()
|
/linux/arch/arm/mach-spear/ |
A D | time.c | 70 struct clock_event_device *clk_event_dev); 96 static inline void timer_shutdown(struct clock_event_device *evt) in timer_shutdown() 105 static int spear_shutdown(struct clock_event_device *evt) in spear_shutdown() 112 static int spear_set_oneshot(struct clock_event_device *evt) in spear_set_oneshot() 126 static int spear_set_periodic(struct clock_event_device *evt) in spear_set_periodic() 146 static struct clock_event_device clkevt = { 158 struct clock_event_device *clk_event_dev) in clockevent_next_event() 175 struct clock_event_device *evt = &clkevt; in spear_timer_interrupt()
|
/linux/arch/x86/xen/ |
A D | time.c | 200 static int xen_timerop_shutdown(struct clock_event_device *evt) in xen_timerop_shutdown() 209 struct clock_event_device *evt) in xen_timerop_set_next_event() 240 static int xen_vcpuop_shutdown(struct clock_event_device *evt) in xen_vcpuop_shutdown() 253 static int xen_vcpuop_set_oneshot(struct clock_event_device *evt) in xen_vcpuop_set_oneshot() 265 struct clock_event_device *evt) in xen_vcpuop_set_next_event() 284 static struct clock_event_device xen_vcpuop_clockevent __ro_after_init = { 302 static const struct clock_event_device *xen_clockevent = 306 struct clock_event_device evt; 313 struct clock_event_device *evt = this_cpu_ptr(&xen_clock_events.evt); in xen_timer_interrupt() 327 struct clock_event_device *evt; in xen_teardown_timer() [all …]
|
/linux/arch/mips/loongson64/ |
A D | hpet.c | 21 DEFINE_PER_CPU(struct clock_event_device, hpet_clockevent_device); 85 static int hpet_set_state_periodic(struct clock_event_device *evt) in hpet_set_state_periodic() 114 static int hpet_set_state_shutdown(struct clock_event_device *evt) in hpet_set_state_shutdown() 128 static int hpet_set_state_oneshot(struct clock_event_device *evt) in hpet_set_state_oneshot() 149 static int hpet_tick_resume(struct clock_event_device *evt) in hpet_tick_resume() 159 struct clock_event_device *evt) in hpet_next_event() 176 struct clock_event_device *cd; in hpet_irq_handler() 223 struct clock_event_device *cd; in setup_hpet_timer()
|
/linux/arch/m68k/coldfire/ |
A D | pit.c | 46 static int cf_pit_set_periodic(struct clock_event_device *evt) in cf_pit_set_periodic() 56 static int cf_pit_set_oneshot(struct clock_event_device *evt) in cf_pit_set_oneshot() 64 static int cf_pit_shutdown(struct clock_event_device *evt) in cf_pit_shutdown() 76 struct clock_event_device *evt) in cf_pit_next_event() 82 struct clock_event_device cf_pit_clockevent = { 100 struct clock_event_device *evt = &cf_pit_clockevent; in pit_tick()
|
/linux/arch/sparc/kernel/ |
A D | time_32.c | 58 static struct clock_event_device timer_ce; 62 DEFINE_PER_CPU(struct clock_event_device, sparc32_clockevent); 105 static int timer_ce_shutdown(struct clock_event_device *evt) in timer_ce_shutdown() 112 static int timer_ce_set_periodic(struct clock_event_device *evt) in timer_ce_set_periodic() 121 struct clock_event_device *ce = &timer_ce; in setup_timer_ce() 186 static int percpu_ce_shutdown(struct clock_event_device *evt) in percpu_ce_shutdown() 194 static int percpu_ce_set_periodic(struct clock_event_device *evt) in percpu_ce_set_periodic() 203 struct clock_event_device *evt) in percpu_ce_set_next_event() 214 struct clock_event_device *ce = &per_cpu(sparc32_clockevent, cpu); in register_percpu_ce()
|