Home
last modified time | relevance | path

Searched refs:clkevt (Results 1 - 25 of 62) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/clocksource/
H 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()
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()
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()
77 return stm32_clkevent_lp_set_timer(evt, clkevt, in stm32_clkevent_lp_set_next_event()
48 stm32_clkevent_lp_set_timer(unsigned long evt, struct clock_event_device *clkevt, int is_periodic) stm32_clkevent_lp_set_timer() argument
74 stm32_clkevent_lp_set_next_event(unsigned long evt, struct clock_event_device *clkevt) stm32_clkevent_lp_set_next_event() argument
81 stm32_clkevent_lp_set_periodic(struct clock_event_device *clkevt) stm32_clkevent_lp_set_periodic() argument
88 stm32_clkevent_lp_set_oneshot(struct clock_event_device *clkevt) stm32_clkevent_lp_set_oneshot() argument
97 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; stm32_clkevent_lp_irq_handler() local
[all...]
H A Dtimer-mediatek.c83 struct clock_event_device *clkevt = dev_id; in mtk_syst_handler() local
84 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_handler()
87 clkevt->event_handler(clkevt); in mtk_syst_handler()
93 struct clock_event_device *clkevt) in mtk_syst_clkevt_next_event()
95 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_clkevt_next_event()
112 static int mtk_syst_clkevt_shutdown(struct clock_event_device *clkevt) in mtk_syst_clkevt_shutdown() argument
115 writel(0, SYST_CON_REG(to_timer_of(clkevt))); in mtk_syst_clkevt_shutdown()
120 static int mtk_syst_clkevt_resume(struct clock_event_device *clkevt) in mtk_syst_clkevt_resume() argument
122 return mtk_syst_clkevt_shutdown(clkevt); in mtk_syst_clkevt_resume()
92 mtk_syst_clkevt_next_event(unsigned long ticks, struct clock_event_device *clkevt) mtk_syst_clkevt_next_event() argument
125 mtk_syst_clkevt_oneshot(struct clock_event_device *clkevt) mtk_syst_clkevt_oneshot() argument
204 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; mtk_gpt_interrupt() local
[all...]
H A 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()
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 in stm32_clock_event_handler() local
126 stm32_clock_event_set_next_event(unsigned long evt, struct clock_event_device *clkevt) stm32_clock_event_set_next_event() argument
[all...]
H A 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 in at91sam926x_pit_dt_init()
[all...]
H A 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 in dmtimer_set_periodic()
513 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); omap_clockevent_idle() local
522 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); omap_clockevent_unidle() local
535 dmtimer_clkevt_init_common(struct dmtimer_clockevent *clkevt, struct device_node *np, unsigned int features, const struct cpumask *cpumask, const char *name, int rating) dmtimer_clkevt_init_common() argument
602 struct dmtimer_clockevent *clkevt; dmtimer_clockevent_init() local
640 struct dmtimer_clockevent *clkevt; dmtimer_percpu_timer_init() local
664 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); omap_dmtimer_starting_cpu() local
676 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, 0); dmtimer_percpu_timer_startup() local
[all...]
H 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()
155 timer->clkevt.set_next_event = zevio_timer_set_event; in zevio_timer_add()
156 timer->clkevt in zevio_timer_add()
[all...]
H 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()
[all...]
H A Dtimer-sp804.c126 struct sp804_clkevt *clkevt; in sp804_clocksource_and_sched_clock_init() local
132 clkevt = sp804_clkevt_get(base); in sp804_clocksource_and_sched_clock_init()
134 writel(0, clkevt->ctrl); in sp804_clocksource_and_sched_clock_init()
135 writel(0xffffffff, clkevt->load); in sp804_clocksource_and_sched_clock_init()
136 writel(0xffffffff, clkevt->value); in sp804_clocksource_and_sched_clock_init()
137 if (clkevt->width == 64) { in sp804_clocksource_and_sched_clock_init()
138 writel(0xffffffff, clkevt->load_h); in sp804_clocksource_and_sched_clock_init()
139 writel(0xffffffff, clkevt->value_h); in sp804_clocksource_and_sched_clock_init()
142 clkevt->ctrl); in sp804_clocksource_and_sched_clock_init()
144 clocksource_mmio_init(clkevt in sp804_clocksource_and_sched_clock_init()
251 struct sp804_clkevt *clkevt; sp804_clkevt_init() local
[all...]
H A 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 in tegra_init_timer()
[all...]
H A Dtimer-microchip-pit64b.c67 * @clkevt: clockevent
71 struct clock_event_device clkevt; member
76 struct mchp_pit64b_clkevt, clkevt))
185 irq_data->clkevt.event_handler(&irq_data->clkevt); in mchp_pit64b_interrupt()
338 ce->clkevt.name = MCHP_PIT64B_NAME; in mchp_pit64b_init_clkevt()
339 ce->clkevt.features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC; in mchp_pit64b_init_clkevt()
340 ce->clkevt.rating = 150; in mchp_pit64b_init_clkevt()
341 ce->clkevt.set_state_shutdown = mchp_pit64b_clkevt_shutdown; in mchp_pit64b_init_clkevt()
342 ce->clkevt in mchp_pit64b_init_clkevt()
362 mchp_pit64b_dt_init_timer(struct device_node *node, bool clkevt) mchp_pit64b_dt_init_timer() argument
[all...]
H 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()
105 const char *name = "mps2-clkevt"; in mps2_clockevent_init()
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 in mps2_clockevent_init()
[all...]
H A Dtimer-ixp4xx.c60 struct clock_event_device clkevt; member
75 return container_of(evt, struct ixp4xx_timer, clkevt); in to_ixp4xx_timer()
96 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt()
211 tmr->clkevt.name = "ixp4xx timer1"; in ixp4xx_timer_register()
212 tmr->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; in ixp4xx_timer_register()
213 tmr->clkevt.rating = 200; in ixp4xx_timer_register()
214 tmr->clkevt.set_state_shutdown = ixp4xx_shutdown; in ixp4xx_timer_register()
215 tmr->clkevt.set_state_periodic = ixp4xx_set_periodic; in ixp4xx_timer_register()
216 tmr->clkevt.set_state_oneshot = ixp4xx_set_oneshot; in ixp4xx_timer_register()
217 tmr->clkevt in ixp4xx_timer_register()
[all...]
/kernel/linux/linux-6.6/drivers/clocksource/
H 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()
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()
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()
77 return stm32_clkevent_lp_set_timer(evt, clkevt, in stm32_clkevent_lp_set_next_event()
48 stm32_clkevent_lp_set_timer(unsigned long evt, struct clock_event_device *clkevt, int is_periodic) stm32_clkevent_lp_set_timer() argument
74 stm32_clkevent_lp_set_next_event(unsigned long evt, struct clock_event_device *clkevt) stm32_clkevent_lp_set_next_event() argument
81 stm32_clkevent_lp_set_periodic(struct clock_event_device *clkevt) stm32_clkevent_lp_set_periodic() argument
88 stm32_clkevent_lp_set_oneshot(struct clock_event_device *clkevt) stm32_clkevent_lp_set_oneshot() argument
97 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; stm32_clkevent_lp_irq_handler() local
[all...]
H 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()
96 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_clkevt_next_event()
113 static int mtk_syst_clkevt_shutdown(struct clock_event_device *clkevt) in mtk_syst_clkevt_shutdown() argument
116 mtk_syst_ack_irq(to_timer_of(clkevt)); in mtk_syst_clkevt_shutdown()
119 writel(0, SYST_CON_REG(to_timer_of(clkevt))); in mtk_syst_clkevt_shutdown()
124 static int mtk_syst_clkevt_resume(struct clock_event_device *clkevt) in mtk_syst_clkevt_resume() argument
93 mtk_syst_clkevt_next_event(unsigned long ticks, struct clock_event_device *clkevt) mtk_syst_clkevt_next_event() argument
129 mtk_syst_clkevt_oneshot(struct clock_event_device *clkevt) mtk_syst_clkevt_oneshot() argument
208 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; mtk_gpt_interrupt() local
[all...]
H A 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()
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 in stm32_clock_event_handler() local
126 stm32_clock_event_set_next_event(unsigned long evt, struct clock_event_device *clkevt) stm32_clock_event_set_next_event() argument
[all...]
H A 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 in at91sam926x_pit_dt_init()
[all...]
H A Dtimer-sun5i.c42 struct clock_event_device clkevt; member
50 container_of(x, struct sun5i_timer, clkevt)
92 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument
94 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_shutdown()
100 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument
102 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_set_oneshot()
109 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument
111 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_set_periodic()
120 struct clock_event_device *clkevt) in sun5i_clkevt_next_event()
122 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); in sun5i_clkevt_next_event()
119 sun5i_clkevt_next_event(unsigned long evt, struct clock_event_device *clkevt) sun5i_clkevt_next_event() argument
[all...]
H A Dtimer-ti-dm-systimer.c436 struct dmtimer_clockevent *clkevt = data; in dmtimer_clockevent_interrupt() local
437 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_interrupt()
440 clkevt->dev.event_handler(&clkevt->dev); in dmtimer_clockevent_interrupt()
448 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_next_event() local
449 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_next_event()
465 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_clockevent_shutdown() local
466 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_shutdown()
486 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_periodic() local
487 struct dmtimer_systimer *t = &clkevt in dmtimer_set_periodic()
511 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); omap_clockevent_idle() local
520 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); omap_clockevent_unidle() local
533 dmtimer_clkevt_init_common(struct dmtimer_clockevent *clkevt, struct device_node *np, unsigned int features, const struct cpumask *cpumask, const char *name, int rating) dmtimer_clkevt_init_common() argument
600 struct dmtimer_clockevent *clkevt; dmtimer_clockevent_init() local
638 struct dmtimer_clockevent *clkevt; dmtimer_percpu_timer_init() local
662 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); omap_dmtimer_starting_cpu() local
674 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, 0); dmtimer_percpu_timer_startup() local
[all...]
H 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()
155 timer->clkevt.set_next_event = zevio_timer_set_event; in zevio_timer_add()
156 timer->clkevt in zevio_timer_add()
[all...]
H 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()
[all...]
H A Dtimer-loongson1-pwm.c77 struct clock_event_device *clkevt = dev_id; in ls1x_clockevent_isr() local
78 struct timer_of *to = to_timer_of(clkevt); in ls1x_clockevent_isr()
84 clkevt->event_handler(clkevt); in ls1x_clockevent_isr()
89 static int ls1x_clockevent_set_state_periodic(struct clock_event_device *clkevt) in ls1x_clockevent_set_state_periodic() argument
91 struct timer_of *to = to_timer_of(clkevt); in ls1x_clockevent_set_state_periodic()
102 static int ls1x_clockevent_tick_resume(struct clock_event_device *clkevt) in ls1x_clockevent_tick_resume() argument
105 ls1x_pwmtimer_start(to_timer_of(clkevt)); in ls1x_clockevent_tick_resume()
111 static int ls1x_clockevent_set_state_shutdown(struct clock_event_device *clkevt) in ls1x_clockevent_set_state_shutdown() argument
114 ls1x_pwmtimer_stop(to_timer_of(clkevt)); in ls1x_clockevent_set_state_shutdown()
120 ls1x_clockevent_set_next(unsigned long evt, struct clock_event_device *clkevt) ls1x_clockevent_set_next() argument
[all...]
H 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()
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 in sp804_clocksource_and_sched_clock_init()
236 struct sp804_clkevt *clkevt; sp804_clkevt_init() local
[all...]
H A 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 in tegra_init_timer()
[all...]
H 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()
105 const char *name = "mps2-clkevt"; in mps2_clockevent_init()
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 in mps2_clockevent_init()
[all...]
H A 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 in ixp4xx_timer_register()
[all...]

Completed in 13 milliseconds

123