Home
last modified time | relevance | path

Searched refs:clkevt (Results 1 – 25 of 30) sorted by relevance

12

/linux/drivers/clocksource/
A Dtimer-stm32-lp.c25 struct clock_event_device clkevt; member
31 to_priv(struct clock_event_device *clkevt) in to_priv() argument
33 return container_of(clkevt, struct stm32_lp_private, clkevt); in to_priv()
49 struct clock_event_device *clkevt, in stm32_clkevent_lp_set_timer() argument
75 struct clock_event_device *clkevt) in stm32_clkevent_lp_set_next_event() argument
78 clockevent_state_periodic(clkevt)); in stm32_clkevent_lp_set_next_event()
102 if (clkevt->event_handler) in stm32_clkevent_lp_irq_handler()
103 clkevt->event_handler(clkevt); in stm32_clkevent_lp_irq_handler()
128 priv->clkevt.name = np->full_name; in stm32_clkevent_lp_init()
129 priv->clkevt.cpumask = cpu_possible_mask; in stm32_clkevent_lp_init()
[all …]
A Dtimer-mediatek.c84 struct clock_event_device *clkevt = dev_id; in mtk_syst_handler() local
85 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_handler()
88 clkevt->event_handler(clkevt); in mtk_syst_handler()
94 struct clock_event_device *clkevt) in mtk_syst_clkevt_next_event() argument
96 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_clkevt_next_event()
116 mtk_syst_ack_irq(to_timer_of(clkevt)); in mtk_syst_clkevt_shutdown()
126 return mtk_syst_clkevt_shutdown(clkevt); in mtk_syst_clkevt_resume()
213 clkevt->event_handler(clkevt); in mtk_gpt_interrupt()
273 .clkevt = {
315 to.clkevt.suspend = mtk_gpt_suspend; in mtk_gpt_init()
[all …]
A Dtimer-stm32.c119 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_shutdown()
127 struct clock_event_device *clkevt) in stm32_clock_event_set_next_event() argument
129 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_set_next_event()
146 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_set_periodic()
155 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_set_oneshot()
165 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_handler()
169 if (clockevent_state_periodic(clkevt)) in stm32_clock_event_handler()
170 stm32_clock_event_set_periodic(clkevt); in stm32_clock_event_handler()
172 stm32_clock_event_shutdown(clkevt); in stm32_clock_event_handler()
174 clkevt->event_handler(clkevt); in stm32_clock_event_handler()
[all …]
A Dtimer-atmel-pit.c39 struct clock_event_device clkevt; member
56 return container_of(clkevt, struct pit_data, clkevt); in clkevt_to_pit_data()
150 if (clockevent_state_periodic(&data->clkevt) && in at91sam926x_pit_interrupt()
155 data->clkevt.event_handler(&data->clkevt); in at91sam926x_pit_interrupt()
244 data->clkevt.name = "pit"; in at91sam926x_pit_dt_init()
246 data->clkevt.shift = 32; in at91sam926x_pit_dt_init()
247 data->clkevt.mult = div_sc(pit_rate, NSEC_PER_SEC, data->clkevt.shift); in at91sam926x_pit_dt_init()
248 data->clkevt.rating = 100; in at91sam926x_pit_dt_init()
249 data->clkevt.cpumask = cpumask_of(0); in at91sam926x_pit_dt_init()
253 data->clkevt.resume = at91sam926x_pit_resume; in at91sam926x_pit_dt_init()
[all …]
A Dtimer-ti-dm-systimer.c438 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_interrupt()
441 clkevt->dev.event_handler(&clkevt->dev); in dmtimer_clockevent_interrupt()
545 t = &clkevt->t; in dmtimer_clkevt_init_common()
546 dev = &clkevt->dev; in dmtimer_clkevt_init_common()
580 IRQF_TIMER, name, clkevt); in dmtimer_clkevt_init_common()
601 struct dmtimer_clockevent *clkevt; in dmtimer_clockevent_init() local
604 clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL); in dmtimer_clockevent_init()
605 if (!clkevt) in dmtimer_clockevent_init()
616 clockevents_config_and_register(&clkevt->dev, clkevt->t.rate, in dmtimer_clockevent_init()
629 kfree(clkevt); in dmtimer_clockevent_init()
[all …]
A Dtimer-sun5i.c61 struct clock_event_device clkevt; member
65 container_of(x, struct sun5i_timer_clkevt, clkevt)
135 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument
151 ce->clkevt.event_handler(&ce->clkevt); in sun5i_timer_interrupt()
301 ce->clkevt.name = node->name; in sun5i_setup_clockevent()
303 ce->clkevt.set_next_event = sun5i_clkevt_next_event; in sun5i_setup_clockevent()
307 ce->clkevt.tick_resume = sun5i_clkevt_shutdown; in sun5i_setup_clockevent()
308 ce->clkevt.rating = 340; in sun5i_setup_clockevent()
309 ce->clkevt.irq = irq; in sun5i_setup_clockevent()
310 ce->clkevt.cpumask = cpu_possible_mask; in sun5i_setup_clockevent()
[all …]
A Dtimer-zevio.c55 struct clock_event_device clkevt; member
65 clkevt); in zevio_timer_set_event()
77 clkevt); in zevio_timer_shutdown()
90 clkevt); in zevio_timer_set_oneshot()
110 if (timer->clkevt.event_handler) in zevio_timer_interrupt()
111 timer->clkevt.event_handler(&timer->clkevt); in zevio_timer_interrupt()
154 timer->clkevt.name = timer->clockevent_name; in zevio_timer_add()
159 timer->clkevt.rating = 200; in zevio_timer_add()
160 timer->clkevt.cpumask = cpu_possible_mask; in zevio_timer_add()
162 timer->clkevt.irq = irqnr; in zevio_timer_add()
[all …]
A Dtimer-tegra.c119 .clkevt = {
140 enable_irq(to->clkevt.irq); in tegra_timer_setup()
161 to->clkevt.set_state_shutdown(&to->clkevt); in tegra_timer_stop()
162 disable_irq_nosync(to->clkevt.irq); in tegra_timer_stop()
315 cpu_to->clkevt.irq = irq; in tegra_init_timer()
316 cpu_to->clkevt.rating = rating; in tegra_init_timer()
317 cpu_to->clkevt.cpumask = cpumask_of(cpu); in tegra_init_timer()
325 cpu_to->clkevt.name, &cpu_to->clkevt); in tegra_init_timer()
330 cpu_to->clkevt.irq = 0; in tegra_init_timer()
360 if (cpu_to->clkevt.irq) { in tegra_init_timer()
[all …]
A Dtimer-sp804.c111 struct sp804_clkevt *clkevt; in sp804_clocksource_and_sched_clock_init() local
117 clkevt = sp804_clkevt_get(base); in sp804_clocksource_and_sched_clock_init()
119 writel(0, clkevt->ctrl); in sp804_clocksource_and_sched_clock_init()
120 writel(0xffffffff, clkevt->load); in sp804_clocksource_and_sched_clock_init()
122 if (clkevt->width == 64) { in sp804_clocksource_and_sched_clock_init()
127 clkevt->ctrl); in sp804_clocksource_and_sched_clock_init()
133 sched_clkevt = clkevt; in sp804_clocksource_and_sched_clock_init()
236 struct sp804_clkevt *clkevt; in sp804_clkevt_init() local
239 clkevt = &sp804_clkevt[i]; in sp804_clkevt_init()
240 clkevt->base = timer_base; in sp804_clkevt_init()
[all …]
A Dclps711x-timer.c54 struct clock_event_device *clkevt; in _clps711x_clkevt_init() local
57 clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL); in _clps711x_clkevt_init()
58 if (!clkevt) in _clps711x_clkevt_init()
66 clkevt->name = "clps711x-clockevent"; in _clps711x_clkevt_init()
67 clkevt->rating = 300; in _clps711x_clkevt_init()
68 clkevt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_C3STOP; in _clps711x_clkevt_init()
69 clkevt->cpumask = cpumask_of(0); in _clps711x_clkevt_init()
70 clockevents_config_and_register(clkevt, HZ, 0, 0); in _clps711x_clkevt_init()
73 "clps711x-timer", clkevt); in _clps711x_clkevt_init()
A Dmps2-timer.c34 struct clock_event_device clkevt; member
46 return container_of(c, struct clockevent_mps2, clkevt); in to_mps2_clkevt()
93 ce->clkevt.event_handler(&ce->clkevt); in mps2_timer_interrupt()
147 ce->clkevt.irq = irq; in mps2_clockevent_init()
148 ce->clkevt.name = name; in mps2_clockevent_init()
149 ce->clkevt.rating = 200; in mps2_clockevent_init()
151 ce->clkevt.cpumask = cpu_possible_mask; in mps2_clockevent_init()
152 ce->clkevt.set_state_shutdown = mps2_timer_shutdown; in mps2_clockevent_init()
153 ce->clkevt.set_state_periodic = mps2_timer_set_periodic; in mps2_clockevent_init()
154 ce->clkevt.set_state_oneshot = mps2_timer_shutdown; in mps2_clockevent_init()
[all …]
A Dtimer-ixp4xx.c51 struct clock_event_device clkevt; member
66 return container_of(evt, struct ixp4xx_timer, clkevt); in to_ixp4xx_timer()
87 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt()
201 tmr->clkevt.name = "ixp4xx timer1"; in ixp4xx_timer_register()
203 tmr->clkevt.rating = 200; in ixp4xx_timer_register()
204 tmr->clkevt.set_state_shutdown = ixp4xx_shutdown; in ixp4xx_timer_register()
206 tmr->clkevt.set_state_oneshot = ixp4xx_set_oneshot; in ixp4xx_timer_register()
207 tmr->clkevt.tick_resume = ixp4xx_resume; in ixp4xx_timer_register()
208 tmr->clkevt.set_next_event = ixp4xx_set_next_event; in ixp4xx_timer_register()
209 tmr->clkevt.cpumask = cpumask_of(0); in ixp4xx_timer_register()
[all …]
A Dtimer-microchip-pit64b.c71 struct clock_event_device clkevt; member
76 struct mchp_pit64b_clkevt, clkevt))
224 irq_data->clkevt.event_handler(&irq_data->clkevt); in mchp_pit64b_interrupt()
394 ce->clkevt.name = MCHP_PIT64B_NAME; in mchp_pit64b_init_clkevt()
396 ce->clkevt.rating = 150; in mchp_pit64b_init_clkevt()
401 ce->clkevt.resume = mchp_pit64b_clkevt_resume; in mchp_pit64b_init_clkevt()
402 ce->clkevt.cpumask = cpumask_of(0); in mchp_pit64b_init_clkevt()
403 ce->clkevt.irq = irq; in mchp_pit64b_init_clkevt()
419 bool clkevt) in mchp_pit64b_dt_init_timer() argument
440 if (clkevt) { in mchp_pit64b_dt_init_timer()
[all …]
A Dtimer-atmel-tcb.c147 struct clock_event_device clkevt; member
155 return container_of(clkevt, struct tc_clkevt_device, clkevt); in to_tc_clkevt()
229 static struct tc_clkevt_device clkevt = { variable
230 .clkevt = {
249 dev->clkevt.event_handler(&dev->clkevt); in ch2_irq()
268 clkevt.regs = tc->regs; in setup_clkevents()
269 clkevt.clk = t2_clk; in setup_clkevents()
281 clkevt.rate = clk_get_rate(tc->slow_clk); in setup_clkevents()
287 clkevt.clkevt.cpumask = cpumask_of(0); in setup_clkevents()
297 clockevents_config_and_register(&clkevt.clkevt, clkevt.rate, 1, BIT(bits) - 1); in setup_clkevents()
[all …]
A Dtimer-of.c26 struct clock_event_device *clkevt = &to->clkevt; in timer_of_irq_exit() local
29 free_percpu_irq(of_irq->irq, clkevt); in timer_of_irq_exit()
31 free_irq(of_irq->irq, clkevt); in timer_of_irq_exit()
55 struct clock_event_device *clkevt = &to->clkevt; in timer_of_irq_init() local
74 np->full_name, clkevt) : in timer_of_irq_init()
77 np->full_name, clkevt); in timer_of_irq_init()
83 clkevt->irq = of_irq->irq; in timer_of_irq_init()
194 if (!to->clkevt.name) in timer_of_init()
195 to->clkevt.name = np->full_name; in timer_of_init()
A Dtimer-fttmr010.c104 struct clock_event_device clkevt; member
119 return container_of(evt, struct fttmr010, clkevt); in to_fttmr010()
387 &fttmr010->clkevt); in fttmr010_common_init()
392 &fttmr010->clkevt); in fttmr010_common_init()
399 fttmr010->clkevt.name = "FTTMR010-TIMER1"; in fttmr010_common_init()
401 fttmr010->clkevt.rating = 300; in fttmr010_common_init()
402 fttmr010->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | in fttmr010_common_init()
408 fttmr010->clkevt.tick_resume = fttmr010->timer_shutdown; in fttmr010_common_init()
409 fttmr010->clkevt.cpumask = cpumask_of(0); in fttmr010_common_init()
410 fttmr010->clkevt.irq = irq; in fttmr010_common_init()
[all …]
A Dtimer-atmel-st.c22 static struct clock_event_device clkevt; variable
63 clkevt.event_handler(&clkevt); in at91rm9200_timer_interrupt()
73 clkevt.event_handler(&clkevt); in at91rm9200_timer_interrupt()
168 static struct clock_event_device clkevt = { variable
242 clkevt.cpumask = cpumask_of(0); in atmel_st_timer_init()
243 clockevents_config_and_register(&clkevt, sclk_rate, in atmel_st_timer_init()
A Dtimer-mp-csky.c51 .clkevt = {
68 to->clkevt.event_handler(&to->clkevt); in csky_timer_interrupt()
80 to->clkevt.cpumask = cpumask_of(cpu); in csky_mptimer_starting_cpu()
84 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), in csky_mptimer_starting_cpu()
A Dtimer-of.h37 struct clock_event_device clkevt; member
44 static inline struct timer_of *to_timer_of(struct clock_event_device *clkevt) in to_timer_of() argument
46 return container_of(clkevt, struct timer_of, clkevt); in to_timer_of()
A Dtimer-imx-tpm.c129 .clkevt = {
161 to_tpm.clkevt.rating, in tpm_clocksource_init()
168 clockevents_config_and_register(&to_tpm.clkevt, in tpm_clockevent_init()
202 to_tpm.clkevt.rating = counter_width == 0x20 ? 200 : 150; in tpm_timer_init()
A Dtimer-sun4i.c116 struct clock_event_device *clkevt) in sun4i_clkevt_next_event() argument
118 struct timer_of *to = to_timer_of(clkevt); in sun4i_clkevt_next_event()
146 .clkevt = {
211 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), in sun4i_timer_init()
A Dtimer-imx-sysctr.c102 .clkevt = {
122 to_sysctr.clkevt.cpumask = cpumask_of(0); in sysctr_clockevent_init()
124 clockevents_config_and_register(&to_sysctr.clkevt, in sysctr_clockevent_init()
A Dtimer-atcpit100.c122 struct clock_event_device *clkevt) in atcpit100_clkevt_next_event() argument
125 struct timer_of *to = to_timer_of(clkevt); in atcpit100_clkevt_next_event()
179 .clkevt = {
248 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), in atcpit100_timer_init()
A Dtimer-npcm7xx.c137 .clkevt = {
163 npcm7xx_to.clkevt.cpumask = cpumask_of(0); in npcm7xx_clockevents_init()
164 clockevents_config_and_register(&npcm7xx_to.clkevt, in npcm7xx_clockevents_init()
/linux/arch/arm/mach-spear/
A Dtime.c146 static struct clock_event_device clkevt = { variable
175 struct clock_event_device *evt = &clkevt; in spear_timer_interrupt()
194 clkevt.cpumask = cpumask_of(0); in spear_clockevent_init()
196 clockevents_config_and_register(&clkevt, tick_rate, 3, 0xfff0); in spear_clockevent_init()

Completed in 38 milliseconds

12