/linux-master/drivers/clocksource/ |
H A D | timer-stm32-lp.c | 25 struct clock_event_device clkevt; member in struct:stm32_lp_private 31 to_priv(struct clock_event_device *clkevt) argument 33 return container_of(clkevt, struct stm32_lp_private, clkevt); 36 static int stm32_clkevent_lp_shutdown(struct clock_event_device *clkevt) argument 38 struct stm32_lp_private *priv = to_priv(clkevt); 49 struct clock_event_device *clkevt, 52 struct stm32_lp_private *priv = to_priv(clkevt); 75 struct clock_event_device *clkevt) 77 return stm32_clkevent_lp_set_timer(evt, clkevt, 48 stm32_clkevent_lp_set_timer(unsigned long evt, struct clock_event_device *clkevt, int is_periodic) argument 74 stm32_clkevent_lp_set_next_event(unsigned long evt, struct clock_event_device *clkevt) argument 81 stm32_clkevent_lp_set_periodic(struct clock_event_device *clkevt) argument 88 stm32_clkevent_lp_set_oneshot(struct clock_event_device *clkevt) argument 97 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; local [all...] |
H A D | clps711x-timer.c | 54 struct clock_event_device *clkevt; local 57 clkevt = kzalloc(sizeof(*clkevt), GFP_KERNEL); 58 if (!clkevt) 66 clkevt->name = "clps711x-clockevent"; 67 clkevt->rating = 300; 68 clkevt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_C3STOP; 69 clkevt->cpumask = cpumask_of(0); 70 clockevents_config_and_register(clkevt, HZ, 0, 0); 73 "clps711x-timer", clkevt); [all...] |
H A D | timer-stm32.c | 117 static int stm32_clock_event_shutdown(struct clock_event_device *clkevt) argument 119 struct timer_of *to = to_timer_of(clkevt); 127 struct clock_event_device *clkevt) 129 struct timer_of *to = to_timer_of(clkevt); 144 static int stm32_clock_event_set_periodic(struct clock_event_device *clkevt) argument 146 struct timer_of *to = to_timer_of(clkevt); 150 return stm32_clock_event_set_next_event(timer_of_period(to), clkevt); 153 static int stm32_clock_event_set_oneshot(struct clock_event_device *clkevt) argument 155 struct timer_of *to = to_timer_of(clkevt); 164 struct clock_event_device *clkevt local 126 stm32_clock_event_set_next_event(unsigned long evt, struct clock_event_device *clkevt) argument [all...] |
H A D | timer-mediatek.c | 84 struct clock_event_device *clkevt = dev_id; local 85 struct timer_of *to = to_timer_of(clkevt); 88 clkevt->event_handler(clkevt); 94 struct clock_event_device *clkevt) 96 struct timer_of *to = to_timer_of(clkevt); 113 static int mtk_syst_clkevt_shutdown(struct clock_event_device *clkevt) argument 116 mtk_syst_ack_irq(to_timer_of(clkevt)); 119 writel(0, SYST_CON_REG(to_timer_of(clkevt))); 124 static int mtk_syst_clkevt_resume(struct clock_event_device *clkevt) argument 93 mtk_syst_clkevt_next_event(unsigned long ticks, struct clock_event_device *clkevt) argument 129 mtk_syst_clkevt_oneshot(struct clock_event_device *clkevt) argument 208 struct clock_event_device *clkevt = (struct clock_event_device *)dev_id; local [all...] |
H A D | timer-loongson1-pwm.c | 77 struct clock_event_device *clkevt = dev_id; local 78 struct timer_of *to = to_timer_of(clkevt); 84 clkevt->event_handler(clkevt); 89 static int ls1x_clockevent_set_state_periodic(struct clock_event_device *clkevt) argument 91 struct timer_of *to = to_timer_of(clkevt); 102 static int ls1x_clockevent_tick_resume(struct clock_event_device *clkevt) argument 105 ls1x_pwmtimer_start(to_timer_of(clkevt)); 111 static int ls1x_clockevent_set_state_shutdown(struct clock_event_device *clkevt) argument 114 ls1x_pwmtimer_stop(to_timer_of(clkevt)); 120 ls1x_clockevent_set_next(unsigned long evt, struct clock_event_device *clkevt) argument [all...] |
H A D | timer-atmel-pit.c | 39 struct clock_event_device clkevt; member in struct:pit_data 54 static inline struct pit_data *clkevt_to_pit_data(struct clock_event_device *clkevt) argument 56 return container_of(clkevt, struct pit_data, clkevt); 150 if (clockevent_state_periodic(&data->clkevt) && 155 data->clkevt.event_handler(&data->clkevt); 244 data->clkevt.name = "pit"; 245 data->clkevt.features = CLOCK_EVT_FEAT_PERIODIC; 246 data->clkevt [all...] |
H A D | timer-sun5i.c | 42 struct clock_event_device clkevt; member in struct:sun5i_timer 50 container_of(x, struct sun5i_timer, clkevt) 92 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) argument 94 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); 100 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) argument 102 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); 109 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) argument 111 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); 120 struct clock_event_device *clkevt) 122 struct sun5i_timer *ce = clkevt_to_sun5i_timer(clkevt); 119 sun5i_clkevt_next_event(unsigned long evt, struct clock_event_device *clkevt) argument [all...] |
H A D | timer-zevio.c | 55 struct clock_event_device clkevt; member in struct:zevio_timer 65 clkevt); 77 clkevt); 90 clkevt); 110 if (timer->clkevt.event_handler) 111 timer->clkevt.event_handler(&timer->clkevt); 154 timer->clkevt.name = timer->clockevent_name; 155 timer->clkevt.set_next_event = zevio_timer_set_event; 156 timer->clkevt [all...] |
H A D | timer-sp804.c | 111 struct sp804_clkevt *clkevt; local 117 clkevt = sp804_clkevt_get(base); 119 writel(0, clkevt->ctrl); 120 writel(0xffffffff, clkevt->load); 121 writel(0xffffffff, clkevt->value); 122 if (clkevt->width == 64) { 123 writel(0xffffffff, clkevt->load_h); 124 writel(0xffffffff, clkevt->value_h); 127 clkevt->ctrl); 129 clocksource_mmio_init(clkevt 236 struct sp804_clkevt *clkevt; local [all...] |
H A D | timer-of.h | 37 struct clock_event_device clkevt; member in struct:timer_of 44 static inline struct timer_of *to_timer_of(struct clock_event_device *clkevt) argument 46 return container_of(clkevt, struct timer_of, clkevt);
|
H A D | timer-ti-dm-systimer.c | 436 struct dmtimer_clockevent *clkevt = data; local 437 struct dmtimer_systimer *t = &clkevt->t; 440 clkevt->dev.event_handler(&clkevt->dev); 448 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); local 449 struct dmtimer_systimer *t = &clkevt->t; 465 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); local 466 struct dmtimer_systimer *t = &clkevt->t; 486 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); local 487 struct dmtimer_systimer *t = &clkevt 511 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); local 520 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); 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) argument 600 struct dmtimer_clockevent *clkevt; local 638 struct dmtimer_clockevent *clkevt; local 662 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, cpu); local 674 struct dmtimer_clockevent *clkevt = per_cpu_ptr(&dmtimer_percpu_timer, 0); local [all...] |
H A D | timer-tegra.c | 119 .clkevt = { 139 irq_force_affinity(to->clkevt.irq, cpumask_of(cpu)); 140 enable_irq(to->clkevt.irq); 150 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), 161 to->clkevt.set_state_shutdown(&to->clkevt); 162 disable_irq_nosync(to->clkevt.irq); 315 cpu_to->clkevt.irq = irq; 316 cpu_to->clkevt.rating = rating; 317 cpu_to->clkevt [all...] |
H A D | mps2-timer.c | 34 struct clock_event_device clkevt; member in struct:clockevent_mps2 46 return container_of(c, struct clockevent_mps2, clkevt); 93 ce->clkevt.event_handler(&ce->clkevt); 105 const char *name = "mps2-clkevt"; 147 ce->clkevt.irq = irq; 148 ce->clkevt.name = name; 149 ce->clkevt.rating = 200; 150 ce->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; 151 ce->clkevt [all...] |
H A D | timer-ixp4xx.c | 49 struct clock_event_device clkevt; member in struct:ixp4xx_timer 64 return container_of(evt, struct ixp4xx_timer, clkevt); 85 struct clock_event_device *evt = &tmr->clkevt; 199 tmr->clkevt.name = "ixp4xx timer1"; 200 tmr->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; 201 tmr->clkevt.rating = 200; 202 tmr->clkevt.set_state_shutdown = ixp4xx_shutdown; 203 tmr->clkevt.set_state_periodic = ixp4xx_set_periodic; 204 tmr->clkevt.set_state_oneshot = ixp4xx_set_oneshot; 205 tmr->clkevt [all...] |
H A D | timer-mediatek-cpux.c | 64 static int mtk_cpux_clkevt_shutdown(struct clock_event_device *clkevt) argument 67 mtk_cpux_set_irq(to_timer_of(clkevt), false); 77 static int mtk_cpux_clkevt_resume(struct clock_event_device *clkevt) argument 79 mtk_cpux_set_irq(to_timer_of(clkevt), true); 91 .clkevt = { 135 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to),
|
H A D | timer-atmel-st.c | 22 static struct clock_event_device clkevt; variable in typeref:struct:clock_event_device 63 clkevt.event_handler(&clkevt); 73 clkevt.event_handler(&clkevt); 168 static struct clock_event_device clkevt = { variable in typeref:struct:clock_event_device 242 clkevt.cpumask = cpumask_of(0); 243 clockevents_config_and_register(&clkevt, sclk_rate,
|
H A D | timer-mp-csky.c | 51 .clkevt = { 68 to->clkevt.event_handler(&to->clkevt); 80 to->clkevt.cpumask = cpumask_of(cpu); 84 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), 125 * every core has it's own private irq and regs for clkevt and
|
H A D | timer-atmel-tcb.c | 147 struct clock_event_device clkevt; member in struct:tc_clkevt_device 153 static struct tc_clkevt_device *to_tc_clkevt(struct clock_event_device *clkevt) argument 155 return container_of(clkevt, struct tc_clkevt_device, clkevt); 229 static struct tc_clkevt_device clkevt = { variable in typeref:struct:tc_clkevt_device 230 .clkevt = { 249 dev->clkevt.event_handler(&dev->clkevt); 268 clkevt.regs = tc->regs; 269 clkevt [all...] |
H A D | timer-of.c | 26 struct clock_event_device *clkevt = &to->clkevt; local 29 free_percpu_irq(of_irq->irq, clkevt); 31 free_irq(of_irq->irq, clkevt); 55 struct clock_event_device *clkevt = &to->clkevt; local 74 np->full_name, clkevt) : 77 np->full_name, clkevt); 83 clkevt->irq = of_irq->irq; 194 if (!to->clkevt [all...] |
H A D | timer-microchip-pit64b.c | 67 * @clkevt: clockevent 71 struct clock_event_device clkevt; member in struct:mchp_pit64b_clkevt 76 struct mchp_pit64b_clkevt, clkevt)) 234 irq_data->clkevt.event_handler(&irq_data->clkevt); 410 ce->clkevt.name = MCHP_PIT64B_NAME; 411 ce->clkevt.features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_PERIODIC; 412 ce->clkevt.rating = 150; 413 ce->clkevt.set_state_shutdown = mchp_pit64b_clkevt_shutdown; 414 ce->clkevt 433 mchp_pit64b_dt_init_timer(struct device_node *node, bool clkevt) argument [all...] |
H A D | timer-fttmr010.c | 104 struct clock_event_device clkevt; member in struct:fttmr010 119 return container_of(evt, struct fttmr010, clkevt); 387 &fttmr010->clkevt); 392 &fttmr010->clkevt); 399 fttmr010->clkevt.name = "FTTMR010-TIMER1"; 401 fttmr010->clkevt.rating = 300; 402 fttmr010->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | 404 fttmr010->clkevt.set_next_event = fttmr010_timer_set_next_event; 405 fttmr010->clkevt.set_state_shutdown = fttmr010->timer_shutdown; 406 fttmr010->clkevt [all...] |
H A D | timer-imx-tpm.c | 129 .clkevt = { 161 to_tpm.clkevt.rating, 168 clockevents_config_and_register(&to_tpm.clkevt, 202 to_tpm.clkevt.rating = counter_width == 0x20 ? 200 : 150;
|
H A D | timer-imx-sysctr.c | 118 .clkevt = { 157 to_sysctr.clkevt.cpumask = cpu_possible_mask; 179 clockevents_config_and_register(&to_sysctr.clkevt, 199 clockevents_config_and_register(&to_sysctr.clkevt,
|
H A D | timer-gx6605s.c | 79 .clkevt = { 108 clockevents_config_and_register(&to.clkevt, timer_of_rate(&to), 2, 135 * same timer in gx6605s. We use one for clkevt and another for clksrc.
|
H A D | timer-msc313e.c | 121 static int msc313e_timer_clkevt_next_event(unsigned long evt, struct clock_event_device *clkevt) argument 123 struct timer_of *timer = to_timer_of(clkevt); 192 to->clkevt = msc313e_clkevt; 194 clockevents_config_and_register(&to->clkevt, timer_of_rate(to),
|