Home
last modified time | relevance | path

Searched refs:clock_event_device (Results 1 – 25 of 114) sorted by relevance

12345

/linux/include/linux/
H A Dclockchips.h19 struct clock_event_device;
103 struct clock_event_device { struct
104 void (*event_handler)(struct clock_event_device *); argument
105 int (*set_next_event)(unsigned long evt, struct clock_event_device *); argument
106 int (*set_next_ktime)(ktime_t expires, struct clock_event_device *); argument
107 void (*set_next_coupled)(u64 cycles, struct clock_event_device *); argument
119 int (*set_state_periodic)(struct clock_event_device *); argument
120 int (*set_state_oneshot)(struct clock_event_device *); argument
121 int (*set_state_oneshot_stopped)(struct clock_event_device *); argument
122 int (*set_state_shutdown)(struct clock_event_device *); argument
[all …]
/linux/kernel/time/
H A Dtick-broadcast.c36 static DEFINE_PER_CPU(struct clock_event_device *, tick_oneshot_wakeup_device);
38 static void tick_broadcast_setup_oneshot(struct clock_event_device *bc, bool from_periodic);
40 static void tick_resume_broadcast_oneshot(struct clock_event_device *bc);
46 tick_broadcast_setup_oneshot(struct clock_event_device *bc, bool from_periodic) { BUG(); } in tick_broadcast_setup_oneshot()
48 static inline void tick_resume_broadcast_oneshot(struct clock_event_device *bc) { } in tick_resume_broadcast_oneshot()
67 static struct clock_event_device *tick_get_oneshot_wakeup_device(int cpu);
69 const struct clock_event_device *tick_get_wakeup_device(int cpu) in tick_get_wakeup_device()
77 static void tick_broadcast_start_periodic(struct clock_event_device *bc) in tick_broadcast_start_periodic()
88 static bool tick_check_broadcast_device(struct clock_event_device *curdev, in tick_check_broadcast_device()
89 struct clock_event_device *newdev) in tick_check_broadcast_device()
[all …]
H A Dclockevents.c28 struct clock_event_device *ce;
32 static u64 cev_delta2ns(unsigned long latch, struct clock_event_device *evt, in cev_delta2ns()
85 u64 clockevent_delta2ns(unsigned long latch, struct clock_event_device *evt) in clockevent_delta2ns()
91 static int __clockevents_switch_state(struct clock_event_device *dev, in __clockevents_switch_state()
150 void clockevents_switch_state(struct clock_event_device *dev, in clockevents_switch_state()
174 void clockevents_shutdown(struct clock_event_device *dev) in clockevents_shutdown()
185 int clockevents_tick_resume(struct clock_event_device *dev) in clockevents_tick_resume()
206 static int clockevents_increase_min_delta(struct clock_event_device *dev) in clockevents_increase_min_delta()
237 static int clockevents_program_min_delta(struct clock_event_device *dev) in clockevents_program_min_delta()
276 static int clockevents_program_min_delta(struct clock_event_device *dev) in clockevents_program_min_delta()
[all …]
H A Dtick-common.c74 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_is_oneshot_available()
108 void tick_handle_periodic(struct clock_event_device *dev) in tick_handle_periodic()
152 void tick_setup_periodic(struct clock_event_device *dev, int broadcast) in tick_setup_periodic()
186 struct clock_event_device *newdev, int cpu, in tick_setup_device()
189 void (*handler)(struct clock_event_device *) = NULL; in tick_setup_device()
262 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement()
273 static bool tick_check_percpu(struct clock_event_device *curdev, in tick_check_percpu()
274 struct clock_event_device *newdev, int cpu) in tick_check_percpu()
289 static bool tick_check_preferred(struct clock_event_device *curdev, in tick_check_preferred()
290 struct clock_event_device *newdev) in tick_check_preferred()
[all …]
H A Dtick-oneshot.c29 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_program_event()
56 struct clock_event_device *dev = __this_cpu_read(tick_cpu_device.evtdev); in tick_resume_oneshot()
72 void tick_setup_oneshot(struct clock_event_device *newdev, in tick_setup_oneshot()
73 void (*handler)(struct clock_event_device *), in tick_setup_oneshot() argument
88 int tick_switch_to_oneshot(void (*handler)(struct clock_event_device *)) in tick_switch_to_oneshot() argument
91 struct clock_event_device *dev = td->evtdev; in tick_switch_to_oneshot()
/linux/drivers/clocksource/
H A Dtimer-digicolor.c58 struct clock_event_device ce;
64 static struct digicolor_timer *dc_timer(struct clock_event_device *ce) in dc_timer()
69 static inline void dc_timer_disable(struct clock_event_device *ce) in dc_timer_disable()
75 static inline void dc_timer_enable(struct clock_event_device *ce, u32 mode) in dc_timer_enable()
81 static inline void dc_timer_set_count(struct clock_event_device *ce, in dc_timer_set_count()
88 static int digicolor_clkevt_shutdown(struct clock_event_device *ce) in digicolor_clkevt_shutdown()
94 static int digicolor_clkevt_set_oneshot(struct clock_event_device *ce) in digicolor_clkevt_set_oneshot()
101 static int digicolor_clkevt_set_periodic(struct clock_event_device *ce) in digicolor_clkevt_set_periodic()
112 struct clock_event_device *ce) in digicolor_clkevt_next_event()
137 struct clock_event_device *evt = dev_id; in digicolor_timer_interrupt()
H A Dtimer-mediatek.c84 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 …]
H A Dtimer-owl.c61 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()
H A Dtimer-meson6.c101 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()
H A Dtimer-goldfish.c14 struct clock_event_device ced;
19 static struct goldfish_timer *ced_to_gf(struct clock_event_device *ced) in ced_to_gf()
48 static int goldfish_timer_set_oneshot(struct clock_event_device *evt) in goldfish_timer_set_oneshot()
60 static int goldfish_timer_shutdown(struct clock_event_device *evt) in goldfish_timer_shutdown()
71 struct clock_event_device *evt) in goldfish_timer_next_event()
90 struct clock_event_device *evt = &timerdrv->ced; in goldfish_timer_irq()
111 timerdrv->ced = (struct clock_event_device){ in goldfish_timer_init()
H A Dnumachip.c13 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()
H A Dmxs_timer.c63 static struct clock_event_device mxs_clockevent_device;
93 struct clock_event_device *dev) in timrotv1_set_next_event()
102 struct clock_event_device *dev) in timrotv2_set_next_event()
112 struct clock_event_device *evt = dev_id; in mxs_timer_interrupt()
137 static int mxs_shutdown(struct clock_event_device *evt) in mxs_shutdown()
144 static int mxs_set_oneshot(struct clock_event_device *evt) in mxs_set_oneshot()
152 static struct clock_event_device mxs_clockevent_device = {
H A Dtimer-ixp4xx.c49 struct clock_event_device clkevt;
62 to_ixp4xx_timer(struct clock_event_device *evt) in to_ixp4xx_timer()
85 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt()
97 struct clock_event_device *evt) in ixp4xx_set_next_event()
111 static int ixp4xx_shutdown(struct clock_event_device *evt) in ixp4xx_shutdown()
123 static int ixp4xx_set_oneshot(struct clock_event_device *evt) in ixp4xx_set_oneshot()
133 static int ixp4xx_set_periodic(struct clock_event_device *evt) in ixp4xx_set_periodic()
145 static int ixp4xx_resume(struct clock_event_device *evt) in ixp4xx_resume()
H A Dtimer-npcm7xx.c56 static int npcm7xx_timer_resume(struct clock_event_device *evt) in npcm7xx_timer_resume()
68 static int npcm7xx_timer_shutdown(struct clock_event_device *evt) in npcm7xx_timer_shutdown()
80 static int npcm7xx_timer_oneshot(struct clock_event_device *evt) in npcm7xx_timer_oneshot()
93 static int npcm7xx_timer_periodic(struct clock_event_device *evt) in npcm7xx_timer_periodic()
109 struct clock_event_device *clk) in npcm7xx_clockevent_set_next_event()
124 struct clock_event_device *evt = (struct clock_event_device *)dev_id; in npcm7xx_timer0_interrupt()
H A Dnomadik-mtu.c88 static int nmdk_clkevt_next(unsigned long evt, struct clock_event_device *ev) in nmdk_clkevt_next()
117 static int nmdk_clkevt_shutdown(struct clock_event_device *evt) in nmdk_clkevt_shutdown()
127 static int nmdk_clkevt_set_oneshot(struct clock_event_device *evt) in nmdk_clkevt_set_oneshot()
133 static int nmdk_clkevt_set_periodic(struct clock_event_device *evt) in nmdk_clkevt_set_periodic()
153 static void nmdk_clkevt_resume(struct clock_event_device *cedev) in nmdk_clkevt_resume()
159 static struct clock_event_device nmdk_clkevt = {
177 struct clock_event_device *evdev = dev_id; in nmdk_timer_interrupt()
/linux/arch/mips/kernel/
H A Dcevt-gt641xx.c36 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 = &gt641xx_timer0_clockevent; in gt641xx_timer0_interrupt()
125 struct clock_event_device *cd; in gt641xx_timer0_clockevent_init()
H A Dcevt-sb1250.c29 static int sibyte_shutdown(struct clock_event_device *evt) in sibyte_shutdown()
41 static int sibyte_set_periodic(struct clock_event_device *evt) in sibyte_set_periodic()
56 static int sibyte_next_event(unsigned long delta, struct clock_event_device *cd) in sibyte_next_event()
74 struct clock_event_device *cd = dev_id; in sibyte_counter_handler()
92 static DEFINE_PER_CPU(struct clock_event_device, sibyte_hpt_clockevent);
99 struct clock_event_device *cd = &per_cpu(sibyte_hpt_clockevent, cpu); in sb1250_clockevent_init()
/linux/arch/hexagon/kernel/
H A Dtime.c85 static int set_next_event(unsigned long delta, struct clock_event_device *evt) in set_next_event()
106 static struct clock_event_device hexagon_clockevent_dev = {
118 static DEFINE_PER_CPU(struct clock_event_device, clock_events);
123 struct clock_event_device *ce_dev = &hexagon_clockevent_dev; in setup_percpu_clockdev()
124 struct clock_event_device *dummy_clock_dev = in setup_percpu_clockdev()
140 struct clock_event_device *ce_dev = &per_cpu(clock_events, cpu); in ipi_timer()
148 struct clock_event_device *ce_dev = &hexagon_clockevent_dev; in timer_interrupt()
168 struct clock_event_device *ce_dev = &hexagon_clockevent_dev; in time_init_deferred()
/linux/arch/loongarch/kernel/
H A Dtime.c29 static DEFINE_PER_CPU(struct clock_event_device, constant_clockevent_device);
31 static void constant_event_handler(struct clock_event_device *dev) in constant_event_handler()
38 struct clock_event_device *cd; in constant_timer_interrupt()
48 static int constant_set_state_oneshot(struct clock_event_device *evt) in constant_set_state_oneshot()
64 static int constant_set_state_periodic(struct clock_event_device *evt) in constant_set_state_periodic()
81 static int constant_set_state_shutdown(struct clock_event_device *evt) in constant_set_state_shutdown()
96 static int constant_timer_next_event(unsigned long delta, struct clock_event_device *evt) in constant_timer_next_event()
153 struct clock_event_device *cd; in constant_clockevent_init()
/linux/arch/alpha/kernel/
H A Dtime.c88 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/mach-footbridge/
H A Ddc21285-timer.c52 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/
H A Dtime.c67 struct clock_event_device *clk_event_dev);
93 static inline void spear_timer_shutdown(struct clock_event_device *evt) in spear_timer_shutdown()
102 static int spear_shutdown(struct clock_event_device *evt) in spear_shutdown()
109 static int spear_set_oneshot(struct clock_event_device *evt) in spear_set_oneshot()
123 static int spear_set_periodic(struct clock_event_device *evt) in spear_set_periodic()
143 static struct clock_event_device clkevt = {
155 struct clock_event_device *clk_event_dev) in clockevent_next_event()
172 struct clock_event_device *evt = &clkevt; in spear_timer_interrupt()
/linux/arch/m68k/coldfire/
H A Dpit.c46 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/mips/loongson64/
H A Dhpet.c21 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/sparc/kernel/
H A Dtime_32.c57 static struct clock_event_device timer_ce;
61 DEFINE_PER_CPU(struct clock_event_device, sparc32_clockevent);
104 static int timer_ce_shutdown(struct clock_event_device *evt) in timer_ce_shutdown()
111 static int timer_ce_set_periodic(struct clock_event_device *evt) in timer_ce_set_periodic()
120 struct clock_event_device *ce = &timer_ce; in setup_timer_ce()
185 static int percpu_ce_shutdown(struct clock_event_device *evt) in percpu_ce_shutdown()
193 static int percpu_ce_set_periodic(struct clock_event_device *evt) in percpu_ce_set_periodic()
202 struct clock_event_device *evt) in percpu_ce_set_next_event()
213 struct clock_event_device *ce = &per_cpu(sparc32_clockevent, cpu); in register_percpu_ce()

12345