/kernel/linux/linux-5.10/drivers/clocksource/ |
D | timer-stm32-lp.c | 25 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 …]
|
D | timer-mediatek.c | 83 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() argument 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() 125 static int mtk_syst_clkevt_oneshot(struct clock_event_device *clkevt) in mtk_syst_clkevt_oneshot() argument [all …]
|
D | timer-stm32.c | 117 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 …]
|
D | timer-atmel-pit.c | 39 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 …]
|
D | clps711x-timer.c | 54 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()
|
D | timer-zevio.c | 55 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 …]
|
D | timer-sun5i.c | 61 struct clock_event_device clkevt; member 65 container_of(x, struct sun5i_timer_clkevt, clkevt) 107 static int sun5i_clkevt_shutdown(struct clock_event_device *clkevt) in sun5i_clkevt_shutdown() argument 109 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_shutdown() 115 static int sun5i_clkevt_set_oneshot(struct clock_event_device *clkevt) in sun5i_clkevt_set_oneshot() argument 117 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_oneshot() 124 static int sun5i_clkevt_set_periodic(struct clock_event_device *clkevt) in sun5i_clkevt_set_periodic() argument 126 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_set_periodic() 135 struct clock_event_device *clkevt) in sun5i_clkevt_next_event() argument 137 struct sun5i_timer_clkevt *ce = to_sun5i_timer_clkevt(clkevt); in sun5i_clkevt_next_event() [all …]
|
D | timer-tegra.c | 119 .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 …]
|
D | timer-ti-dm-systimer.c | 437 struct dmtimer_clockevent *clkevt = data; in dmtimer_clockevent_interrupt() local 438 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_interrupt() 441 clkevt->dev.event_handler(&clkevt->dev); in dmtimer_clockevent_interrupt() 449 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_next_event() local 450 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_next_event() 466 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_clockevent_shutdown() local 467 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_clockevent_shutdown() 487 struct dmtimer_clockevent *clkevt = to_dmtimer_clockevent(evt); in dmtimer_set_periodic() local 488 struct dmtimer_systimer *t = &clkevt->t; in dmtimer_set_periodic() 496 writel_relaxed(clkevt->period, t->base + t->load); in dmtimer_set_periodic() [all …]
|
D | timer-sp804.c | 126 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->value, name, in sp804_clocksource_and_sched_clock_init() [all …]
|
D | timer-ixp4xx.c | 60 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.tick_resume = ixp4xx_resume; in ixp4xx_timer_register() [all …]
|
D | mps2-timer.c | 34 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 …]
|
D | timer-microchip-pit64b.c | 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.set_state_periodic = mchp_pit64b_clkevt_set_periodic; in mchp_pit64b_init_clkevt() 343 ce->clkevt.set_next_event = mchp_pit64b_clkevt_set_next_event; in mchp_pit64b_init_clkevt() 344 ce->clkevt.suspend = mchp_pit64b_clkevt_suspend; in mchp_pit64b_init_clkevt() [all …]
|
D | timer-of.c | 26 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()
|
D | timer-atmel-tcb.c | 147 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 …]
|
D | timer-atmel-st.c | 22 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()
|
D | timer-fttmr010.c | 104 struct clock_event_device clkevt; member 119 return container_of(evt, struct fttmr010, clkevt); in to_fttmr010() 387 "FTTMR010-TIMER1", &fttmr010->clkevt); in fttmr010_common_init() 393 fttmr010->clkevt.name = "FTTMR010-TIMER1"; in fttmr010_common_init() 395 fttmr010->clkevt.rating = 300; in fttmr010_common_init() 396 fttmr010->clkevt.features = CLOCK_EVT_FEAT_PERIODIC | in fttmr010_common_init() 398 fttmr010->clkevt.set_next_event = fttmr010_timer_set_next_event; in fttmr010_common_init() 399 fttmr010->clkevt.set_state_shutdown = fttmr010->timer_shutdown; in fttmr010_common_init() 400 fttmr010->clkevt.set_state_periodic = fttmr010_timer_set_periodic; in fttmr010_common_init() 401 fttmr010->clkevt.set_state_oneshot = fttmr010_timer_set_oneshot; in fttmr010_common_init() [all …]
|
D | timer-of.h | 37 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()
|
D | timer-mp-csky.c | 51 .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()
|
D | timer-imx-tpm.c | 129 .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()
|
D | timer-imx-sysctr.c | 102 .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()
|
D | timer-sun4i.c | 116 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()
|
D | timer-atcpit100.c | 122 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()
|
D | timer-npcm7xx.c | 137 .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()
|
/kernel/linux/linux-5.10/arch/arm/mach-spear/ |
D | time.c | 146 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()
|