/linux/drivers/clocksource/ |
A D | timer-ti-dm.c | 59 return __omap_dm_timer_read(timer, reg, timer->posted); in omap_dm_timer_read_reg() 76 __omap_dm_timer_write(timer, reg, value, timer->posted); in omap_dm_timer_write_reg() 94 writel_relaxed(timer->context.tier, timer->irq_ena); in omap_timer_restore_context() 112 timer->context.tier = readl_relaxed(timer->irq_ena); in omap_timer_save_context() 180 if (unlikely(!timer) || IS_ERR(timer->fclk)) in omap_dm_timer_set_source() 248 timer->fclk = clk_get(&timer->pdev->dev, "fck"); in omap_dm_timer_prepare() 359 if (timer && omap_dm_timer_prepare(timer)) { in _omap_dm_timer_request() 364 if (!timer) in _omap_dm_timer_request() 430 if (timer) in omap_dm_timer_get_irq() 480 if (timer && !IS_ERR(timer->fclk)) in omap_dm_timer_get_fclk() [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 | 126 writel_relaxed(mode | timer->mode, timer->base + MCHP_PIT64B_MR); in mchp_pit64b_reset() 290 timer->mode = 0; in mchp_pit64b_init_mode() 349 cs->timer.base = timer->base; in mchp_pit64b_init_clksrc() 350 cs->timer.pclk = timer->pclk; in mchp_pit64b_init_clksrc() 351 cs->timer.gclk = timer->gclk; in mchp_pit64b_init_clksrc() 352 cs->timer.mode = timer->mode; in mchp_pit64b_init_clksrc() 390 ce->timer.base = timer->base; in mchp_pit64b_init_clkevt() 391 ce->timer.pclk = timer->pclk; in mchp_pit64b_init_clkevt() 392 ce->timer.gclk = timer->gclk; in mchp_pit64b_init_clkevt() 393 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 47 obj-$(CONFIG_CLKSRC_MPS2) += mps2-timer.o 51 obj-$(CONFIG_CLKSRC_QCOM) += timer-qcom.o 56 obj-$(CONFIG_OWL_TIMER) += timer-owl.o 58 obj-$(CONFIG_SPRD_TIMER) += timer-sprd.o [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 | 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 | 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 …]
|
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 …]
|
/linux/drivers/rtc/ |
A D | rtc-brcmstb-waketimer.c | 56 writel_relaxed(timer->rate, timer->base + BRCMSTB_WKTMR_PRESCALER); in brcmstb_waketmr_set_alarm() 125 wktmr_read(timer, &now); in brcmstb_waketmr_gettime() 205 timer = devm_kzalloc(dev, sizeof(*timer), GFP_KERNEL); in brcmstb_waketmr_probe() 206 if (!timer) in brcmstb_waketmr_probe() 210 timer->dev = dev; in brcmstb_waketmr_probe() 213 if (IS_ERR(timer->base)) in brcmstb_waketmr_probe() 217 if (IS_ERR(timer->rtc)) in brcmstb_waketmr_probe() 228 if (timer->irq < 0) in brcmstb_waketmr_probe() 236 timer->rate = clk_get_rate(timer->clk); in brcmstb_waketmr_probe() 237 if (!timer->rate) in brcmstb_waketmr_probe() [all …]
|
/linux/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 …]
|
/linux/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 del_timer_sync(&info->timer->timer); in idletimer_tg_destroy() [all …]
|
/linux/include/clocksource/ |
A D | timer-ti-dm.h | 283 timer->irq_stat = timer->io_base + OMAP_TIMER_V1_STAT_OFFSET; in __omap_dm_timer_init_regs() 284 timer->irq_ena = timer->io_base + OMAP_TIMER_V1_INT_EN_OFFSET; in __omap_dm_timer_init_regs() 285 timer->irq_dis = timer->io_base + OMAP_TIMER_V1_INT_EN_OFFSET; in __omap_dm_timer_init_regs() 286 timer->pend = timer->io_base + _OMAP_TIMER_WRITE_PEND_OFFSET; in __omap_dm_timer_init_regs() 287 timer->func_base = timer->io_base; in __omap_dm_timer_init_regs() 290 timer->irq_stat = timer->io_base + OMAP_TIMER_V2_IRQSTATUS; in __omap_dm_timer_init_regs() 291 timer->irq_ena = timer->io_base + OMAP_TIMER_V2_IRQENABLE_SET; in __omap_dm_timer_init_regs() 292 timer->irq_dis = timer->io_base + OMAP_TIMER_V2_IRQENABLE_CLR; in __omap_dm_timer_init_regs() 293 timer->pend = timer->io_base + in __omap_dm_timer_init_regs() 296 timer->func_base = timer->io_base + OMAP_TIMER_V2_FUNC_OFFSET; in __omap_dm_timer_init_regs() [all …]
|
/linux/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/kernel/time/ |
A D | timer.c | 485 timer->flags = (timer->flags & ~TIMER_ARRAYMASK) | in timer_set_idx() 586 trace_timer_start(timer, timer->expires, timer->flags); in enqueue_timer() 816 debug_init(timer); in init_timer_key() 1144 __mod_timer(timer, timer->expires, MOD_TIMER_NOTPENDING); in add_timer() 1160 BUG_ON(timer_pending(timer) || !timer->function); in add_timer_on() 1421 fn(timer); in call_timer_fn() 1879 timer_setup_on_stack(&timer.timer, process_timeout, 0); in schedule_timeout() 1880 __mod_timer(&timer.timer, expire, MOD_TIMER_NOTPENDING); in schedule_timeout() 1882 del_singleshot_timer_sync(&timer.timer); in schedule_timeout() 1885 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 …]
|
A D | posix-cpu-timers.c | 108 return pid_task(timer->it.cpu.pid, clock_pid_type(timer->it_clock)); in cpu_timer_task_rcu() 120 if (!timer->it_interval) in bump_cpu_timer() 126 incr = timer->it_interval; in bump_cpu_timer() 599 } else if (posix_timer_event(timer, ++timer->it_requeue_pending)) { in cpu_timer_fire() 731 arm_timer(timer, p); in posix_cpu_timer_set() 746 timer->it_requeue_pending = (timer->it_requeue_pending + 2) & in posix_cpu_timer_set() 749 timer->it_overrun = -1; in posix_cpu_timer_set() 1070 arm_timer(timer, p); in posix_cpu_timer_rearm() 1440 struct k_itimer timer; in do_cpu_nanosleep() local 1447 memset(&timer, 0, sizeof timer); in do_cpu_nanosleep() [all …]
|
/linux/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/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 314 timer->function(timer->data); in virt_timer_expire() 315 if (timer->interval) { in virt_timer_expire() 317 timer->expires = timer->interval + in virt_timer_expire() 328 timer->function = NULL; in init_virt_timer() 361 timer->interval = periodic ? timer->expires : 0; in __add_vtimer() 372 __add_vtimer(timer, 0); in add_virt_timer() 381 __add_vtimer(timer, 1); in add_virt_timer_periodic() [all …]
|
/linux/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/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/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/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 …]
|
/linux/Documentation/devicetree/bindings/timer/ |
A D | ti,timer.txt | 5 OMAP44xx devices have timer instances that are 100% 8 So for OMAP44xx devices timer instances may use 23 - ti,hwmods: Name of the hwmod associated to the timer, "timer<X>", 28 - ti,timer-alwon: Indicates the timer is in an alway-on power domain. 29 - ti,timer-dsp: Indicates the timer can interrupt the on-chip DSP in 31 - ti,timer-pwm: Indicates the timer can generate a PWM output. 32 - ti,timer-secure: Indicates the timer is reserved on a secure OMAP device 37 timer12: timer@48304000 { 38 compatible = "ti,omap3430-timer"; 42 ti,timer-alwon; [all …]
|
/linux/drivers/isdn/mISDN/ |
A D | timerdev.c | 80 list_del(&timer->list); in mISDN_close() 81 kfree(timer); in mISDN_close() 86 kfree(timer); in mISDN_close() 128 kfree(timer); in mISDN_read() 158 struct mISDNtimer *timer = from_timer(timer, t, tl); in dev_expire_timer() local 162 if (timer->id >= 0) in dev_expire_timer() 163 list_move_tail(&timer->list, &timer->dev->expired); in dev_expire_timer() 180 if (!timer) in misdn_add_timer() 182 timer->dev = dev; in misdn_add_timer() 205 timer->id = -1; in misdn_del_timer() [all …]
|