/linux-6.3-rc2/drivers/clocksource/ |
A D | timer-ti-dm.c | 218 timer->func_base = timer->io_base; in __omap_dm_timer_init_regs() 224 timer->pend = timer->io_base + in __omap_dm_timer_init_regs() 284 dmtimer_write(timer, timer->irq_ena, value); in __omap_dm_timer_int_enable() 297 dmtimer_write(timer, timer->irq_stat, value); in __omap_dm_timer_write_status() 309 dmtimer_write(timer, timer->irq_ena, timer->context.tier); in omap_timer_restore_context() 321 timer->context.tier = dmtimer_read(timer, timer->irq_ena); in omap_timer_save_context() 403 if (unlikely(!timer) || IS_ERR(timer->fclk)) in omap_dm_timer_set_source() 572 if (timer && omap_dm_timer_prepare(timer)) { in _omap_dm_timer_request() 714 if (timer && !IS_ERR(timer->fclk)) in omap_dm_timer_get_fclk() 965 dmtimer_write(timer, timer->irq_dis, l); in omap_dm_timer_set_int_disable() [all …]
|
A D | timer-zevio.c | 111 timer->clkevt.event_handler(&timer->clkevt); in zevio_timer_interrupt() 122 timer = kzalloc(sizeof(*timer), GFP_KERNEL); in zevio_timer_add() 123 if (!timer) in zevio_timer_add() 127 if (!timer->base) { in zevio_timer_add() 131 timer->timer1 = timer->base + IO_TIMER1; in zevio_timer_add() 132 timer->timer2 = timer->base + IO_TIMER2; in zevio_timer_add() 145 scnprintf(timer->clocksource_name, sizeof(timer->clocksource_name), in zevio_timer_add() 149 scnprintf(timer->clockevent_name, sizeof(timer->clockevent_name), in zevio_timer_add() 154 timer->clkevt.name = timer->clockevent_name; in zevio_timer_add() 176 timer->clockevent_name, timer)) { in zevio_timer_add() [all …]
|
A D | timer-microchip-pit64b.c | 128 writel_relaxed(mode | timer->mode, timer->base + MCHP_PIT64B_MR); in mchp_pit64b_reset() 302 timer->mode = 0; in mchp_pit64b_init_mode() 362 cs->timer.base = timer->base; in mchp_pit64b_init_clksrc() 363 cs->timer.pclk = timer->pclk; in mchp_pit64b_init_clksrc() 364 cs->timer.gclk = timer->gclk; in mchp_pit64b_init_clksrc() 365 cs->timer.mode = timer->mode; in mchp_pit64b_init_clksrc() 406 ce->timer.base = timer->base; in mchp_pit64b_init_clkevt() 407 ce->timer.pclk = timer->pclk; in mchp_pit64b_init_clkevt() 408 ce->timer.gclk = timer->gclk; in mchp_pit64b_init_clkevt() 409 ce->timer.mode = timer->mode; in mchp_pit64b_init_clkevt() [all …]
|
A D | Makefile | 2 obj-$(CONFIG_TIMER_OF) += timer-of.o 3 obj-$(CONFIG_TIMER_PROBE) += timer-probe.o 4 obj-$(CONFIG_ATMEL_PIT) += timer-atmel-pit.o 5 obj-$(CONFIG_ATMEL_ST) += timer-atmel-st.o 30 obj-$(CONFIG_ORION_TIMER) += timer-orion.o 34 obj-$(CONFIG_CLKSRC_PXA) += timer-pxa.o 35 obj-$(CONFIG_SUN4I_TIMER) += timer-sun4i.o 48 obj-$(CONFIG_CLKSRC_MPS2) += mps2-timer.o 57 obj-$(CONFIG_OWL_TIMER) += timer-owl.o 59 obj-$(CONFIG_SPRD_TIMER) += timer-sprd.o [all …]
|
A D | timer-rockchip.c | 44 struct rk_timer timer; member 82 rk_timer_disable(timer); in rk_timer_set_next_event() 93 rk_timer_disable(timer); in rk_timer_shutdown() 101 rk_timer_disable(timer); in rk_timer_set_periodic() 102 rk_timer_update_counter(timer->freq / HZ - 1, timer); in rk_timer_set_periodic() 136 if (!timer->base) { in rk_timer_probe() 144 timer->ctrl = timer->base + ctrl_reg; in rk_timer_probe() 158 timer->pclk = pclk; in rk_timer_probe() 182 timer->irq = irq; in rk_timer_probe() 193 iounmap(timer->base); in rk_timer_probe() [all …]
|
A D | dw_apb_timer.c | 51 return readl(timer->base + offs); in apbt_readl() 57 writel(val, timer->base + offs); in apbt_writel() 86 disable_irq(dw_ced->timer.irq); in dw_apb_clockevent_pause() 106 dw_ced->eoi(&dw_ced->timer); in dw_apb_clockevent_irq() 116 apbt_readl(timer, APBTMR_N_EOI); in apbt_enable_int() 251 dw_ced->timer.base = base; in dw_apb_clockevent_init() 252 dw_ced->timer.irq = irq; in dw_apb_clockevent_init() 253 dw_ced->timer.freq = freq; in dw_apb_clockevent_init() 294 enable_irq(dw_ced->timer.irq); in dw_apb_clockevent_resume() 387 dw_cs->timer.base = base; in dw_apb_clocksource_init() [all …]
|
A D | bcm2835_timer.c | 49 timer->compare); in bcm2835_time_set_next_event() 57 if (readl_relaxed(timer->control) & timer->match_mask) { in bcm2835_time_interrupt() 58 writel_relaxed(timer->match_mask, timer->control); in bcm2835_time_interrupt() 62 event_handler(&timer->evt); in bcm2835_time_interrupt() 74 struct bcm2835_timer *timer; in bcm2835_timer_init() local 101 timer = kzalloc(sizeof(*timer), GFP_KERNEL); in bcm2835_timer_init() 102 if (!timer) { in bcm2835_timer_init() 110 timer->evt.name = node->name; in bcm2835_timer_init() 111 timer->evt.rating = 300; in bcm2835_timer_init() 117 node->name, timer); in bcm2835_timer_init() [all …]
|
A D | ingenic-timer.c | 70 return container_of(timer, struct ingenic_tcu, timers[timer->cpu]); in to_ingenic_tcu() 150 timer->clk = ingenic_tcu_get_clock(tcu->np, timer->channel); in ingenic_tcu_setup_cevt() 151 if (IS_ERR(timer->clk)) in ingenic_tcu_setup_cevt() 152 return PTR_ERR(timer->clk); in ingenic_tcu_setup_cevt() 176 snprintf(timer->name, sizeof(timer->name), "TCU%u", timer->channel); in ingenic_tcu_setup_cevt() 179 timer->name, timer); in ingenic_tcu_setup_cevt() 186 timer->cevt.name = timer->name; in ingenic_tcu_setup_cevt() 187 timer->cevt.rating = 200; in ingenic_tcu_setup_cevt() 200 clk_put(timer->clk); in ingenic_tcu_setup_cevt() 318 timer = &tcu->timers[cpu]; in ingenic_tcu_init() [all …]
|
/linux-6.3-rc2/drivers/rtc/ |
A D | rtc-brcmstb-waketimer.c | 60 if (timer->alarm_en && timer->alarm_irq) in brcmstb_waketmr_clear_alarm() 77 writel_relaxed(timer->rate, timer->base + BRCMSTB_WKTMR_PRESCALER); in brcmstb_waketmr_set_alarm() 146 if (timer->alarm_en && timer->alarm_irq) { in brcmstb_waketmr_prepare_suspend() 242 brcmstb_waketmr_set_alarm(timer, timer->rtc_alarm); in brcmstb_waketmr_setalarm() 261 timer = devm_kzalloc(dev, sizeof(*timer), GFP_KERNEL); in brcmstb_waketmr_probe() 262 if (!timer) in brcmstb_waketmr_probe() 266 timer->dev = dev; in brcmstb_waketmr_probe() 292 timer->rate = clk_get_rate(timer->clk); in brcmstb_waketmr_probe() 293 if (!timer->rate) in brcmstb_waketmr_probe() 313 timer); in brcmstb_waketmr_probe() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | hrtimer.h | 137 struct hrtimer timer; member 242 timer->node.expires = time; in hrtimer_set_expires() 243 timer->_softexpires = time; in hrtimer_set_expires() 248 timer->_softexpires = time; in hrtimer_set_expires_range() 266 timer->node.expires = ktime_add_safe(timer->node.expires, time); in hrtimer_add_expires() 267 timer->_softexpires = ktime_add_safe(timer->_softexpires, time); in hrtimer_add_expires() 272 timer->node.expires = ktime_add_ns(timer->node.expires, ns); in hrtimer_add_expires_ns() 273 timer->_softexpires = ktime_add_ns(timer->_softexpires, ns); in hrtimer_add_expires_ns() 302 return ktime_sub(timer->node.expires, timer->base->get_time()); in hrtimer_expires_remaining() 480 return timer->base->running == timer; in hrtimer_callback_running() [all …]
|
A D | timer.h | 91 void init_timer_key(struct timer_list *timer, 107 init_timer_key(timer, func, flags, name, key); in init_timer_on_stack_key() 141 #define timer_setup(timer, callback, flags) \ argument 142 __init_timer((timer), (callback), (flags)) 145 __init_timer_on_stack((timer), (callback), (flags)) 168 return !hlist_unhashed_lockless(&timer->entry); in timer_pending() 182 extern void add_timer(struct timer_list *timer); 186 extern int timer_delete(struct timer_list *timer); 188 extern int timer_shutdown(struct timer_list *timer); 200 return timer_delete_sync(timer); in del_timer_sync() [all …]
|
/linux-6.3-rc2/net/netfilter/ |
A D | xt_IDLETIMER.c | 80 expires = timer->timer.expires; in idletimer_tg_show() 103 struct idletimer_tg *timer = from_timer(timer, t, timer); in idletimer_tg_expired() local 172 mod_timer(&info->timer->timer, in idletimer_tg_create() 228 info->timer->alarm.data = info->timer; in idletimer_tg_create_v1() 233 mod_timer(&info->timer->timer, in idletimer_tg_create_v1() 258 mod_timer(&info->timer->timer, in idletimer_tg_target() 279 mod_timer(&info->timer->timer, in idletimer_tg_target_v1() 324 mod_timer(&info->timer->timer, in idletimer_tg_checkentry() 386 mod_timer(&info->timer->timer, in idletimer_tg_checkentry_v1() 416 timer_shutdown_sync(&info->timer->timer); in idletimer_tg_destroy() [all …]
|
/linux-6.3-rc2/kernel/time/ |
A D | timer.c | 508 timer->flags = (timer->flags & ~TIMER_ARRAYMASK) | in timer_set_idx() 609 trace_timer_start(timer, timer->expires, timer->flags); in enqueue_timer() 869 debug_init(timer); in init_timer_key() 1244 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer() 1279 if (!timer->function) in add_timer_on() 1700 fn(timer); in call_timer_fn() 2165 timer_setup_on_stack(&timer.timer, process_timeout, 0); in schedule_timeout() 2166 __mod_timer(&timer.timer, expire, MOD_TIMER_NOTPENDING); in schedule_timeout() 2168 del_timer_sync(&timer.timer); in schedule_timeout() 2171 destroy_timer_on_stack(&timer.timer); in schedule_timeout() [all …]
|
A D | hrtimer.c | 362 hrtimer_cancel(timer); in hrtimer_fixup_init() 396 hrtimer_cancel(timer); in hrtimer_fixup_free() 512 struct hrtimer *timer; in __hrtimer_next_event_base() local 532 if (timer->is_soft) in __hrtimer_next_event_base() 823 if (timer->is_soft) { in hrtimer_reprogram() 1181 if (timer->is_rel) in hrtimer_update_lowres() 1654 base->running = timer; in __run_hrtimer() 1666 fn = timer->function; in __run_hrtimer() 1685 restart = fn(timer); in __run_hrtimer() 1934 container_of(timer, struct hrtimer_sleeper, timer); in hrtimer_wakeup() [all …]
|
/linux-6.3-rc2/arch/nios2/kernel/ |
A D | time.c | 42 struct nios2_timer timer; member 47 struct nios2_timer timer; member 111 if (nios2_cs.timer.base) in get_cycles() 174 struct nios2_timer *timer = &nios2_ced->timer; in nios2_timer_shutdown() local 176 nios2_timer_stop(timer); in nios2_timer_shutdown() 184 struct nios2_timer *timer = &nios2_ced->timer; in nios2_timer_set_periodic() local 194 struct nios2_timer *timer = &nios2_ced->timer; in nios2_timer_resume() local 196 nios2_timer_start(timer); in nios2_timer_resume() 259 nios2_ce.timer.base = iobase; in nios2_clockevent_init() 260 nios2_ce.timer.freq = freq; in nios2_clockevent_init() [all …]
|
/linux-6.3-rc2/sound/core/ |
A D | timer.c | 365 timeri->timer = timer; in snd_timer_open() 444 timer->hw.close(timer); in snd_timer_close_locked() 487 timer = timeri->timer; in snd_timer_resolution() 537 timer = timeri->timer; in snd_timer_start1() 572 timer->hw.start(timer); in snd_timer_start1() 623 timer = timeri->timer; in snd_timer_stop1() 642 timer->hw.stop(timer); in snd_timer_stop1() 648 timer->hw.start(timer); in snd_timer_stop1() 905 timer->hw.stop(timer); in snd_timer_interrupt() 912 timer->hw.start(timer); in snd_timer_interrupt() [all …]
|
A D | pcm_timer.c | 56 substream = timer->private_data; in snd_pcm_timer_resolution() 64 substream = snd_timer_chip(timer); in snd_pcm_timer_start() 95 substream->timer = NULL; in snd_pcm_timer_free() 101 struct snd_timer *timer; in snd_pcm_timer_init() local 114 timer->hw = snd_pcm_timer; in snd_pcm_timer_init() 115 if (snd_device_register(timer->card, timer) < 0) { in snd_pcm_timer_init() 116 snd_device_free(timer->card, timer); in snd_pcm_timer_init() 119 timer->private_data = substream; in snd_pcm_timer_init() 121 substream->timer = timer; in snd_pcm_timer_init() 126 if (substream->timer) { in snd_pcm_timer_done() [all …]
|
/linux-6.3-rc2/arch/s390/kernel/ |
A D | vtime.c | 38 u64 timer; in get_vtimer() local 41 return timer; in get_vtimer() 46 u64 timer; in set_vtimer() local 313 timer->function(timer->data); in virt_timer_expire() 314 if (timer->interval) { in virt_timer_expire() 316 timer->expires = timer->interval + in virt_timer_expire() 327 timer->function = NULL; in init_virt_timer() 360 timer->interval = periodic ? timer->expires : 0; in __add_vtimer() 371 __add_vtimer(timer, 0); in add_virt_timer() 380 __add_vtimer(timer, 1); in add_virt_timer_periodic() [all …]
|
/linux-6.3-rc2/sound/core/seq/oss/ |
A D | seq_oss_timer.c | 118 timer->tempo = (60 * 1000000) / timer->oss_tempo; in calc_alsa_tempo() 119 timer->ppq = timer->oss_timebase; in calc_alsa_tempo() 152 if (timer->running) in snd_seq_oss_timer_start() 162 timer->running = 1; in snd_seq_oss_timer_start() 163 timer->cur_tick = 0; in snd_seq_oss_timer_start() 177 timer->running = 0; in snd_seq_oss_timer_stop() 188 if (timer->running) in snd_seq_oss_timer_continue() 191 timer->running = 1; in snd_seq_oss_timer_continue() 208 if (timer->running) in snd_seq_oss_timer_tempo() 209 send_timer_event(timer->dp, SNDRV_SEQ_EVENT_TEMPO, timer->tempo); in snd_seq_oss_timer_tempo() [all …]
|
/linux-6.3-rc2/sound/isa/gus/ |
A D | gus_timer.c | 24 gus = snd_timer_chip(timer); in snd_gf1_timer1_start() 26 ticks = timer->sticks; in snd_gf1_timer1_start() 41 gus = snd_timer_chip(timer); in snd_gf1_timer1_stop() 62 ticks = timer->sticks; in snd_gf1_timer2_start() 93 if (timer == NULL) in snd_gf1_interrupt_timer1() 95 snd_timer_interrupt(timer, timer->sticks); in snd_gf1_interrupt_timer1() 102 if (timer == NULL) in snd_gf1_interrupt_timer2() 104 snd_timer_interrupt(timer, timer->sticks); in snd_gf1_interrupt_timer2() 143 struct snd_timer *timer; in snd_gf1_timers_init() local 164 gus->gf1.timer1 = timer; in snd_gf1_timers_init() [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/timer/ |
A D | ti,timer-dm.yaml | 4 $id: http://devicetree.org/schemas/timer/ti,timer-dm.yaml# 7 title: TI dual-mode timer 13 The TI dual-mode timer is a general purpose timer with PWM capabilities. 22 - ti,am654-timer 23 - ti,dm814-timer 65 ti,timer-alwon: 72 ti,timer-dsp: 77 ti,timer-pwm: 82 ti,timer-secure: 151 timer1: timer@0 { [all …]
|
A D | rockchip,rk-timer.yaml | 4 $id: http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml# 15 - const: rockchip,rk3288-timer 16 - const: rockchip,rk3399-timer 19 - rockchip,rv1108-timer 20 - rockchip,rv1126-timer 21 - rockchip,rk3036-timer 22 - rockchip,rk3128-timer 23 - rockchip,rk3188-timer 28 - rockchip,px30-timer 43 - const: timer [all …]
|
A D | nvidia,tegra-timer.yaml | 4 $id: "http://devicetree.org/schemas/timer/nvidia,tegra-timer.yaml#" 7 title: NVIDIA Tegra timer 17 const: nvidia,tegra210-timer 68 The Tegra210 timer provides fourteen 29-bit timer counters and one 32-bit 83 The Tegra30 timer provides ten 29-bit timer channels, a single 32-bit free 88 The Tegra20 timer provides four 29-bit timer channels and a single 32-bit free 101 - const: timer 115 timer@60005000 { 116 compatible = "nvidia,tegra30-timer", "nvidia,tegra20-timer"; 131 timer@60005000 { [all …]
|
/linux-6.3-rc2/tools/testing/selftests/kvm/include/aarch64/ |
A D | arch_timer.h | 38 switch (timer) { in timer_get_cntct() 44 GUEST_ASSERT_1(0, timer); in timer_get_cntct() 53 switch (timer) { in timer_set_cval() 61 GUEST_ASSERT_1(0, timer); in timer_set_cval() 69 switch (timer) { in timer_get_cval() 75 GUEST_ASSERT_1(0, timer); in timer_get_cval() 84 switch (timer) { in timer_set_tval() 92 GUEST_ASSERT_1(0, timer); in timer_set_tval() 100 switch (timer) { in timer_set_ctl() 108 GUEST_ASSERT_1(0, timer); in timer_set_ctl() [all …]
|
/linux-6.3-rc2/include/linux/platform_data/ |
A D | dmtimer-omap.h | 17 int (*free)(struct omap_dm_timer *timer); 19 void (*enable)(struct omap_dm_timer *timer); 20 void (*disable)(struct omap_dm_timer *timer); 22 int (*get_irq)(struct omap_dm_timer *timer); 23 int (*set_int_enable)(struct omap_dm_timer *timer, 27 struct clk *(*get_fclk)(struct omap_dm_timer *timer); 29 int (*start)(struct omap_dm_timer *timer); 30 int (*stop)(struct omap_dm_timer *timer); 38 int (*get_pwm_status)(struct omap_dm_timer *timer); 42 int (*write_counter)(struct omap_dm_timer *timer, [all …]
|