Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/clocksource/ !
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()
36 static int stm32_clkevent_lp_shutdown(struct clock_event_device *clkevt) in stm32_clkevent_lp_shutdown() argument
38 struct stm32_lp_private *priv = to_priv(clkevt); in stm32_clkevent_lp_shutdown()
49 struct clock_event_device *clkevt, in stm32_clkevent_lp_set_timer() argument
52 struct stm32_lp_private *priv = to_priv(clkevt); in stm32_clkevent_lp_set_timer()
75 struct clock_event_device *clkevt) in stm32_clkevent_lp_set_next_event() argument
77 return stm32_clkevent_lp_set_timer(evt, clkevt, in stm32_clkevent_lp_set_next_event()
78 clockevent_state_periodic(clkevt)); in stm32_clkevent_lp_set_next_event()
[all …]
Dtimer-mediatek.c115 static int mtk_cpux_clkevt_shutdown(struct clock_event_device *clkevt) in mtk_cpux_clkevt_shutdown() argument
118 mtk_cpux_set_irq(to_timer_of(clkevt), false); in mtk_cpux_clkevt_shutdown()
128 static int mtk_cpux_clkevt_resume(struct clock_event_device *clkevt) in mtk_cpux_clkevt_resume() argument
130 mtk_cpux_set_irq(to_timer_of(clkevt), true); in mtk_cpux_clkevt_resume()
143 struct clock_event_device *clkevt = dev_id; in mtk_syst_handler() local
144 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_handler()
147 clkevt->event_handler(clkevt); in mtk_syst_handler()
153 struct clock_event_device *clkevt) in mtk_syst_clkevt_next_event() argument
155 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_clkevt_next_event()
172 static int mtk_syst_clkevt_shutdown(struct clock_event_device *clkevt) in mtk_syst_clkevt_shutdown() argument
[all …]
Dtimer-stm32.c117 static int stm32_clock_event_shutdown(struct clock_event_device *clkevt) in stm32_clock_event_shutdown() argument
119 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()
144 static int stm32_clock_event_set_periodic(struct clock_event_device *clkevt) in stm32_clock_event_set_periodic() argument
146 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_set_periodic()
150 return stm32_clock_event_set_next_event(timer_of_period(to), clkevt); in stm32_clock_event_set_periodic()
153 static int stm32_clock_event_set_oneshot(struct clock_event_device *clkevt) in stm32_clock_event_set_oneshot() argument
155 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_set_oneshot()
164 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; in stm32_clock_event_handler() local
[all …]
Dtimer-atmel-pit.c39 struct clock_event_device clkevt; member
54 static inline struct pit_data *clkevt_to_pit_data(struct clock_event_device *clkevt) in clkevt_to_pit_data() argument
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()
245 data->clkevt.features = CLOCK_EVT_FEAT_PERIODIC; 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()
[all …]
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()
155 timer->clkevt.set_next_event = zevio_timer_set_event; in zevio_timer_add()
156 timer->clkevt.set_state_shutdown = zevio_timer_shutdown; in zevio_timer_add()
157 timer->clkevt.set_state_oneshot = zevio_timer_set_oneshot; in zevio_timer_add()
[all …]
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()
Dtimer-sun5i.c58 struct clock_event_device clkevt; member
62 container_of(x, struct sun5i_timer_clkevt, clkevt)
104 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument
106 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_shutdown()
112 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument
114 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_oneshot()
121 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument
123 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_periodic()
132 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument
134 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_next_event()
[all …]
Dtimer-tegra.c119 .clkevt = {
139 irq_force_affinity(to->clkevt.irq, cpumask_of(cpu)); in tegra_timer_setup()
140 enable_irq(to->clkevt.irq); in tegra_timer_setup()
150 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), 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()
322 irq_set_status_flags(cpu_to->clkevt.irq, IRQ_NOAUTOEN); in tegra_init_timer()
[all …]
Dtimer-ti-dm-systimer.c438 struct dmtimer_clockevent *clkevt = data; in dmtimer_clockevent_interrupt() local
439 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_interrupt()
442 clkevt->dev.event_handler(&clkevt->dev); in dmtimer_clockevent_interrupt()
450 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_next_event() local
451 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_next_event()
467 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_clockevent_shutdown() local
468 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_shutdown()
488 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_periodic() local
489 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_periodic()
497 writel_relaxed(clkevt->period, t->base + t->load); in dmtimer_set_periodic()
[all …]
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()
121 writel(0xffffffff, clkevt->value); in sp804_clocksource_and_sched_clock_init()
122 if (clkevt->width == 64) { in sp804_clocksource_and_sched_clock_init()
123 writel(0xffffffff, clkevt->load_h); in sp804_clocksource_and_sched_clock_init()
124 writel(0xffffffff, clkevt->value_h); in sp804_clocksource_and_sched_clock_init()
127 clkevt->ctrl); in sp804_clocksource_and_sched_clock_init()
129 clocksource_mmio_init(clkevt->value, name, in sp804_clocksource_and_sched_clock_init()
[all …]
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()
150 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; 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()
[all …]
Dtimer-ixp4xx.c49 struct clock_event_device clkevt; member
64 return container_of(evt, struct ixp4xx_timer, clkevt); in to_ixp4xx_timer()
85 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt()
199 tmr->clkevt.name = "ixp4xx timer1"; in ixp4xx_timer_register()
200 tmr->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in ixp4xx_timer_register()
201 tmr->clkevt.rating = 200; in ixp4xx_timer_register()
202 tmr->clkevt.set_state_shutdown = ixp4xx_shutdown; in ixp4xx_timer_register()
203 tmr->clkevt.set_state_periodic = ixp4xx_set_periodic; in ixp4xx_timer_register()
204 tmr->clkevt.set_state_oneshot = ixp4xx_set_oneshot; in ixp4xx_timer_register()
205 tmr->clkevt.tick_resume = ixp4xx_resume; in ixp4xx_timer_register()
[all …]
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()
Dtimer-atmel-tcb.c147 struct clock_event_device clkevt; member
153 static struct tc_clkevt_device *to_tc_clkevt(struct clock_event_device *clkevt) in to_tc_clkevt() argument
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()
273 clkevt.rate = clk_get_rate(t2_clk) / atmel_tcb_divisors[divisor_idx]; in setup_clkevents()
281 clkevt.rate = clk_get_rate(tc->slow_clk); in setup_clkevents()
[all …]
Dtimer-microchip-pit64b.c70 struct clock_event_device clkevt; member
75 struct mchp_pit64b_clkevt, clkevt))
226 irq_data->clkevt.event_handler(&irq_data->clkevt); in mchp_pit64b_interrupt()
398 ce->clkevt.name = MCHP_PIT64B_NAME; in mchp_pit64b_init_clkevt()
399 ce->clkevt.features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC; in mchp_pit64b_init_clkevt()
400 ce->clkevt.rating = 150; in mchp_pit64b_init_clkevt()
401 ce->clkevt.set_state_shutdown = mchp_pit64b_clkevt_shutdown; in mchp_pit64b_init_clkevt()
402 ce->clkevt.set_state_periodic = mchp_pit64b_clkevt_set_periodic; in mchp_pit64b_init_clkevt()
403 ce->clkevt.set_state_oneshot = mchp_pit64b_clkevt_set_oneshot; in mchp_pit64b_init_clkevt()
404 ce->clkevt.set_next_event = mchp_pit64b_clkevt_set_next_event; in mchp_pit64b_init_clkevt()
[all …]
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()
404 fttmr010->clkevt.set_next_event = fttmr010_timer_set_next_event; in fttmr010_common_init()
405 fttmr010->clkevt.set_state_shutdown = fttmr010->timer_shutdown; in fttmr010_common_init()
406 fttmr010->clkevt.set_state_periodic = fttmr010_timer_set_periodic; in fttmr010_common_init()
[all …]
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()
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()
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()
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()
Dtimer-imx-sysctr.c102 .clkevt = {
122 to_sysctr.clkevt.cpumask = cpu_possible_mask; in sysctr_clockevent_init()
124 clockevents_config_and_register(&to_sysctr.clkevt, in sysctr_clockevent_init()
Dtimer-sun4i.c114 struct clock_event_device *clkevt) in sun4i_clkevt_next_event() argument
116 struct timer_of *to = to_timer_of(clkevt); in sun4i_clkevt_next_event()
144 .clkevt = {
209 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), in sun4i_timer_init()
Dtimer-msc313e.c121 static int msc313e_timer_clkevt_next_event(unsigned long evt, struct clock_event_device *clkevt) in msc313e_timer_clkevt_next_event() argument
123 struct timer_of *timer = to_timer_of(clkevt); in msc313e_timer_clkevt_next_event()
192 to->clkevt = msc313e_clkevt; in msc313e_clkevt_init()
194 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), in msc313e_clkevt_init()
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-6.1.9/arch/arm/mach-spear/ !
Dtime.c143 static struct clock_event_device clkevt = { variable
172 struct clock_event_device *evt = &clkevt; in spear_timer_interrupt()
191 clkevt.cpumask = cpumask_of(0); in spear_clockevent_init()
193 clockevents_config_and_register(&clkevt, tick_rate, 3, 0xfff0); in spear_clockevent_init()

12