Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 200 of 1360) sorted by relevance

1234567

/linux-4.4.14/arch/arm/plat-omap/
Ddmtimer.c71 static inline u32 omap_dm_timer_read_reg(struct omap_dm_timer *timer, u32 reg) in omap_dm_timer_read_reg() argument
74 return __omap_dm_timer_read(timer, reg, timer->posted); in omap_dm_timer_read_reg()
87 static void omap_dm_timer_write_reg(struct omap_dm_timer *timer, u32 reg, in omap_dm_timer_write_reg() argument
91 __omap_dm_timer_write(timer, reg, value, timer->posted); in omap_dm_timer_write_reg()
94 static void omap_timer_restore_context(struct omap_dm_timer *timer) in omap_timer_restore_context() argument
96 omap_dm_timer_write_reg(timer, OMAP_TIMER_WAKEUP_EN_REG, in omap_timer_restore_context()
97 timer->context.twer); in omap_timer_restore_context()
98 omap_dm_timer_write_reg(timer, OMAP_TIMER_COUNTER_REG, in omap_timer_restore_context()
99 timer->context.tcrr); in omap_timer_restore_context()
100 omap_dm_timer_write_reg(timer, OMAP_TIMER_LOAD_REG, in omap_timer_restore_context()
[all …]
DKconfig93 bool "Use mpu timer"
96 Select this option if you want to use the OMAP mpu timer. This
97 timer provides more intra-tick resolution than the 32KHz timer,
101 bool "Use 32KHz timer"
105 Select this option if you want to enable the OMAP 32KHz timer.
106 This timer saves power compared to the OMAP_MPU_TIMER, and has
107 support for no tick during idle. The 32KHz timer provides less
108 intra-tick resolution than OMAP_MPU_TIMER. The 32KHz timer is
113 The actual timer selection is done in the board file
135 bool "Use dual-mode timer"
/linux-4.4.14/drivers/clocksource/
Dzevio-timer.c69 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_set_event() local
72 writel(delta, timer->timer1 + IO_CURRENT_VAL); in zevio_timer_set_event()
74 timer->timer1 + IO_CONTROL); in zevio_timer_set_event()
81 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_shutdown() local
85 writel(0, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_shutdown()
86 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_shutdown()
88 writel(CNTL_STOP_TIMER, timer->timer1 + IO_CONTROL); in zevio_timer_shutdown()
94 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_set_oneshot() local
98 writel(TIMER_INTR_MSK, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_set_oneshot()
99 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_set_oneshot()
[all …]
Dbcm2835_timer.c60 struct bcm2835_timer *timer = container_of(evt_dev, in bcm2835_time_set_next_event() local
63 timer->compare); in bcm2835_time_set_next_event()
69 struct bcm2835_timer *timer = dev_id; in bcm2835_time_interrupt() local
71 if (readl_relaxed(timer->control) & timer->match_mask) { in bcm2835_time_interrupt()
72 writel_relaxed(timer->match_mask, timer->control); in bcm2835_time_interrupt()
74 event_handler = ACCESS_ONCE(timer->evt.event_handler); in bcm2835_time_interrupt()
76 event_handler(&timer->evt); in bcm2835_time_interrupt()
88 struct bcm2835_timer *timer; in bcm2835_timer_init() local
107 timer = kzalloc(sizeof(*timer), GFP_KERNEL); in bcm2835_timer_init()
108 if (!timer) in bcm2835_timer_init()
[all …]
Ddw_apb_timer.c52 static unsigned long apbt_readl(struct dw_apb_timer *timer, unsigned long offs) in apbt_readl() argument
54 return readl(timer->base + offs); in apbt_readl()
57 static void apbt_writel(struct dw_apb_timer *timer, unsigned long val, in apbt_writel() argument
60 writel(val, timer->base + offs); in apbt_writel()
63 static void apbt_disable_int(struct dw_apb_timer *timer) in apbt_disable_int() argument
65 unsigned long ctrl = apbt_readl(timer, APBTMR_N_CONTROL); in apbt_disable_int()
68 apbt_writel(timer, ctrl, APBTMR_N_CONTROL); in apbt_disable_int()
78 disable_irq(dw_ced->timer.irq); in dw_apb_clockevent_pause()
79 apbt_disable_int(&dw_ced->timer); in dw_apb_clockevent_pause()
82 static void apbt_eoi(struct dw_apb_timer *timer) in apbt_eoi() argument
[all …]
Dtimer-sun5i.c51 struct sun5i_timer timer; member
59 struct sun5i_timer timer; member
74 u32 old = readl(ce->timer.base + TIMER_CNTVAL_LO_REG(1)); in sun5i_clkevt_sync()
76 while ((old - readl(ce->timer.base + TIMER_CNTVAL_LO_REG(1))) < TIMER_SYNC_TICKS) in sun5i_clkevt_sync()
80 static void sun5i_clkevt_time_stop(struct sun5i_timer_clkevt *ce, u8 timer) in sun5i_clkevt_time_stop() argument
82 u32 val = readl(ce->timer.base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
83 writel(val & ~TIMER_CTL_ENABLE, ce->timer.base + TIMER_CTL_REG(timer)); in sun5i_clkevt_time_stop()
88 static void sun5i_clkevt_time_setup(struct sun5i_timer_clkevt *ce, u8 timer, u32 delay) in sun5i_clkevt_time_setup() argument
90 writel(delay, ce->timer.base + TIMER_INTVAL_LO_REG(timer)); in sun5i_clkevt_time_setup()
93 static void sun5i_clkevt_time_start(struct sun5i_timer_clkevt *ce, u8 timer, bool periodic) in sun5i_clkevt_time_start() argument
[all …]
DMakefile2 obj-$(CONFIG_ATMEL_PIT) += timer-atmel-pit.o
3 obj-$(CONFIG_ATMEL_ST) += timer-atmel-st.o
14 obj-$(CONFIG_DIGICOLOR_TIMER) += timer-digicolor.o
23 obj-$(CONFIG_ARCH_CLPS711X) += clps711x-timer.o
24 obj-$(CONFIG_ARCH_ATLAS7) += timer-atlas7.o
28 obj-$(CONFIG_ARCH_PRIMA2) += timer-prima2.o
29 obj-$(CONFIG_ARCH_U300) += timer-u300.o
31 obj-$(CONFIG_SUN5I_HSTIMER) += timer-sun5i.o
35 obj-$(CONFIG_ARCH_NSPIRE) += zevio-timer.o
39 obj-$(CONFIG_CLKSRC_STM32) += timer-stm32.o
[all …]
Dcadence_ttc_timer.c114 static void ttc_set_interval(struct ttc_timer *timer, in ttc_set_interval() argument
120 ctrl_reg = readl_relaxed(timer->base_addr + TTC_CNT_CNTRL_OFFSET); in ttc_set_interval()
122 writel_relaxed(ctrl_reg, timer->base_addr + TTC_CNT_CNTRL_OFFSET); in ttc_set_interval()
124 writel_relaxed(cycles, timer->base_addr + TTC_INTR_VAL_OFFSET); in ttc_set_interval()
132 writel_relaxed(ctrl_reg, timer->base_addr + TTC_CNT_CNTRL_OFFSET); in ttc_set_interval()
146 struct ttc_timer *timer = &ttce->ttc; in ttc_clock_event_interrupt() local
149 readl_relaxed(timer->base_addr + TTC_ISR_OFFSET); in ttc_clock_event_interrupt()
163 struct ttc_timer *timer = &to_ttc_timer_clksrc(cs)->ttc; in __ttc_clocksource_read() local
165 return (cycle_t)readl_relaxed(timer->base_addr + in __ttc_clocksource_read()
186 struct ttc_timer *timer = &ttce->ttc; in ttc_set_next_event() local
[all …]
Dcs5535-clockevt.c62 static void disable_timer(struct cs5535_mfgpt_timer *timer) in disable_timer() argument
65 cs5535_mfgpt_write(timer, MFGPT_REG_SETUP, in disable_timer()
70 static void start_timer(struct cs5535_mfgpt_timer *timer, uint16_t delta) in start_timer() argument
72 cs5535_mfgpt_write(timer, MFGPT_REG_CMP2, delta); in start_timer()
73 cs5535_mfgpt_write(timer, MFGPT_REG_COUNTER, 0); in start_timer()
75 cs5535_mfgpt_write(timer, MFGPT_REG_SETUP, in start_timer()
144 struct cs5535_mfgpt_timer *timer; in cs5535_mfgpt_init() local
148 timer = cs5535_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING); in cs5535_mfgpt_init()
149 if (!timer) { in cs5535_mfgpt_init()
153 cs5535_event_clock = timer; in cs5535_mfgpt_init()
[all …]
Dmtk_timer.c76 static void mtk_clkevt_time_stop(struct mtk_clock_event_device *evt, u8 timer) in mtk_clkevt_time_stop() argument
80 val = readl(evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_stop()
82 TIMER_CTRL_REG(timer)); in mtk_clkevt_time_stop()
86 unsigned long delay, u8 timer) in mtk_clkevt_time_setup() argument
88 writel(delay, evt->gpt_base + TIMER_CMP_REG(timer)); in mtk_clkevt_time_setup()
92 bool periodic, u8 timer) in mtk_clkevt_time_start() argument
97 writel(GPT_IRQ_ACK(timer), evt->gpt_base + GPT_IRQ_ACK_REG); in mtk_clkevt_time_start()
99 val = readl(evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_start()
110 evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_start()
153 mtk_timer_setup(struct mtk_clock_event_device *evt, u8 timer, u8 option) in mtk_timer_setup() argument
[all …]
Dtimer-keystone.c50 } timer; variable
54 return readl_relaxed(timer.base + rg); in keystone_timer_readl()
59 writel_relaxed(val, timer.base + rg); in keystone_timer_writel()
143 keystone_timer_config(timer.hz_period, TCR_ENAMODE_PERIODIC_MASK); in keystone_set_periodic()
149 struct clock_event_device *event_dev = &timer.event_dev; in keystone_timer_init()
160 timer.base = of_iomap(np, 0); in keystone_timer_init()
161 if (!timer.base) { in keystone_timer_init()
169 iounmap(timer.base); in keystone_timer_init()
196 timer.hz_period = DIV_ROUND_UP(rate, HZ); in keystone_timer_init()
225 iounmap(timer.base); in keystone_timer_init()
Dmeson6_timer.c46 static void meson6_clkevt_time_stop(unsigned char timer) in meson6_clkevt_time_stop() argument
50 writel(val & ~TIMER_ENABLE_BIT(timer), timer_base + TIMER_ISA_MUX); in meson6_clkevt_time_stop()
53 static void meson6_clkevt_time_setup(unsigned char timer, unsigned long delay) in meson6_clkevt_time_setup() argument
55 writel(delay, timer_base + TIMER_ISA_VAL(timer)); in meson6_clkevt_time_setup()
58 static void meson6_clkevt_time_start(unsigned char timer, bool periodic) in meson6_clkevt_time_start() argument
63 val |= TIMER_PERIODIC_BIT(timer); in meson6_clkevt_time_start()
65 val &= ~TIMER_PERIODIC_BIT(timer); in meson6_clkevt_time_start()
67 writel(val | TIMER_ENABLE_BIT(timer), timer_base + TIMER_ISA_MUX); in meson6_clkevt_time_start()
Dsun4i_timer.c59 static void sun4i_clkevt_time_stop(u8 timer) in sun4i_clkevt_time_stop() argument
61 u32 val = readl(timer_base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
62 writel(val & ~TIMER_CTL_ENABLE, timer_base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_stop()
66 static void sun4i_clkevt_time_setup(u8 timer, unsigned long delay) in sun4i_clkevt_time_setup() argument
68 writel(delay, timer_base + TIMER_INTVAL_REG(timer)); in sun4i_clkevt_time_setup()
71 static void sun4i_clkevt_time_start(u8 timer, bool periodic) in sun4i_clkevt_time_start() argument
73 u32 val = readl(timer_base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
81 timer_base + TIMER_CTL_REG(timer)); in sun4i_clkevt_time_start()
DKconfig146 bool "Support for ARM architected timer event stream generation"
151 the ARM architected timer. It is used for waking up CPUs executing
165 This options enables support for the ARM global timer unit
178 Use ARM global timer clock source as sched_clock
185 This options enables support for the ARMv7M system timer unit
210 This is a new clocksource driver for the PWM timer found in
218 Support for Freescale FlexTimer Module (FTM) timer.
243 bool "Renesas CMT timer driver" if COMPILE_TEST
253 bool "Renesas MTU2 timer driver" if COMPILE_TEST
260 This hardware comes with 16 bit-timer registers.
[all …]
/linux-4.4.14/include/linux/
Dhrtimer.h122 struct hrtimer timer; member
209 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires() argument
213 timer->node.expires = time; in hrtimer_set_expires()
214 timer->_softexpires = time; in hrtimer_set_expires()
217 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range() argument
219 timer->_softexpires = time; in hrtimer_set_expires_range()
220 timer->node.expires = ktime_add_safe(time, delta); in hrtimer_set_expires_range()
223 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, unsigned long … in hrtimer_set_expires_range_ns() argument
225 timer->_softexpires = time; in hrtimer_set_expires_range_ns()
226 timer->node.expires = ktime_add_safe(time, ns_to_ktime(delta)); in hrtimer_set_expires_range_ns()
[all …]
Dtimer.h88 void init_timer_key(struct timer_list *timer, unsigned int flags,
92 extern void init_timer_on_stack_key(struct timer_list *timer,
95 extern void destroy_timer_on_stack(struct timer_list *timer);
97 static inline void destroy_timer_on_stack(struct timer_list *timer) { } in destroy_timer_on_stack() argument
98 static inline void init_timer_on_stack_key(struct timer_list *timer, in init_timer_on_stack_key() argument
102 init_timer_key(timer, flags, name, key); in init_timer_on_stack_key()
125 #define init_timer(timer) \ argument
126 __init_timer((timer), 0)
127 #define init_timer_deferrable(timer) \ argument
128 __init_timer((timer), TIMER_DEFERRABLE)
[all …]
Dcs5535.h214 extern uint16_t cs5535_mfgpt_read(struct cs5535_mfgpt_timer *timer,
216 extern void cs5535_mfgpt_write(struct cs5535_mfgpt_timer *timer, uint16_t reg,
219 extern int cs5535_mfgpt_toggle_event(struct cs5535_mfgpt_timer *timer, int cmp,
221 extern int cs5535_mfgpt_set_irq(struct cs5535_mfgpt_timer *timer, int cmp,
223 extern struct cs5535_mfgpt_timer *cs5535_mfgpt_alloc_timer(int timer,
225 extern void cs5535_mfgpt_free_timer(struct cs5535_mfgpt_timer *timer);
227 static inline int cs5535_mfgpt_setup_irq(struct cs5535_mfgpt_timer *timer, in cs5535_mfgpt_setup_irq() argument
230 return cs5535_mfgpt_set_irq(timer, cmp, irq, 1); in cs5535_mfgpt_setup_irq()
233 static inline int cs5535_mfgpt_release_irq(struct cs5535_mfgpt_timer *timer, in cs5535_mfgpt_release_irq() argument
236 return cs5535_mfgpt_set_irq(timer, cmp, irq, 0); in cs5535_mfgpt_release_irq()
/linux-4.4.14/arch/arm/plat-omap/include/plat/
Ddmtimer.h132 int omap_dm_timer_free(struct omap_dm_timer *timer);
133 void omap_dm_timer_enable(struct omap_dm_timer *timer);
134 void omap_dm_timer_disable(struct omap_dm_timer *timer);
136 int omap_dm_timer_get_irq(struct omap_dm_timer *timer);
139 struct clk *omap_dm_timer_get_fclk(struct omap_dm_timer *timer);
141 int omap_dm_timer_trigger(struct omap_dm_timer *timer);
142 int omap_dm_timer_start(struct omap_dm_timer *timer);
143 int omap_dm_timer_stop(struct omap_dm_timer *timer);
145 int omap_dm_timer_set_source(struct omap_dm_timer *timer, int source);
146 int omap_dm_timer_set_load(struct omap_dm_timer *timer, int autoreload, unsigned int value);
[all …]
/linux-4.4.14/kernel/time/
Dtimer.c367 void set_timer_slack(struct timer_list *timer, int slack_hz) in set_timer_slack() argument
369 timer->slack = slack_hz; in set_timer_slack()
374 __internal_add_timer(struct tvec_base *base, struct timer_list *timer) in __internal_add_timer() argument
376 unsigned long expires = timer->expires; in __internal_add_timer()
412 hlist_add_head(&timer->entry, vec); in __internal_add_timer()
415 static void internal_add_timer(struct tvec_base *base, struct timer_list *timer) in internal_add_timer() argument
421 __internal_add_timer(base, timer); in internal_add_timer()
425 if (!(timer->flags & TIMER_DEFERRABLE)) { in internal_add_timer()
427 time_before(timer->expires, base->next_timer)) in internal_add_timer()
428 base->next_timer = timer->expires; in internal_add_timer()
[all …]
Dhrtimer.c139 struct hrtimer_clock_base *lock_hrtimer_base(const struct hrtimer *timer, in lock_hrtimer_base() argument
145 base = timer->base; in lock_hrtimer_base()
148 if (likely(base == timer->base)) in lock_hrtimer_base()
165 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() argument
173 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
211 switch_hrtimer_base(struct hrtimer *timer, struct hrtimer_clock_base *base, in switch_hrtimer_base() argument
233 if (unlikely(hrtimer_callback_running(timer))) in switch_hrtimer_base()
237 timer->base = &migration_base; in switch_hrtimer_base()
242 hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
246 timer->base = base; in switch_hrtimer_base()
[all …]
Dposix-cpu-timers.c82 static void bump_cpu_timer(struct k_itimer *timer, in bump_cpu_timer() argument
88 if (timer->it.cpu.incr == 0) in bump_cpu_timer()
91 if (now < timer->it.cpu.expires) in bump_cpu_timer()
94 incr = timer->it.cpu.incr; in bump_cpu_timer()
95 delta = now + incr - timer->it.cpu.expires; in bump_cpu_timer()
105 timer->it.cpu.expires += incr; in bump_cpu_timer()
106 timer->it_overrun += 1 << i; in bump_cpu_timer()
388 static int posix_cpu_timer_del(struct k_itimer *timer) in posix_cpu_timer_del() argument
393 struct task_struct *p = timer->it.cpu.task; in posix_cpu_timer_del()
407 WARN_ON_ONCE(!list_empty(&timer->it.cpu.entry)); in posix_cpu_timer_del()
[all …]
Dposix-timers.c138 static int common_timer_del(struct k_itimer *timer);
159 struct k_itimer *timer; in __posix_timers_find() local
161 hlist_for_each_entry_rcu(timer, head, t_hash) { in __posix_timers_find()
162 if ((timer->it_signal == sig) && (timer->it_id == id)) in __posix_timers_find()
163 return timer; in __posix_timers_find()
176 static int posix_timer_add(struct k_itimer *timer) in posix_timer_add() argument
187 hlist_add_head_rcu(&timer->t_hash, head); in posix_timer_add()
360 struct hrtimer *timer = &timr->it.real.timer; in schedule_next_timer() local
365 timr->it_overrun += (unsigned int) hrtimer_forward(timer, in schedule_next_timer()
366 timer->base->get_time(), in schedule_next_timer()
[all …]
Dtimer_list.c62 print_timer(struct seq_file *m, struct hrtimer *taddr, struct hrtimer *timer, in print_timer() argument
71 print_name_offset(m, timer->function); in print_timer()
72 SEQ_printf(m, ", S:%02x", timer->state); in print_timer()
75 print_name_offset(m, timer->start_site); in print_timer()
76 memcpy(tmp, timer->start_comm, TASK_COMM_LEN); in print_timer()
78 SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); in print_timer()
82 (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)), in print_timer()
83 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)), in print_timer()
84 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
85 (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now)); in print_timer()
[all …]
Ditimer.c27 static struct timeval itimer_get_remtime(struct hrtimer *timer) in itimer_get_remtime() argument
29 ktime_t rem = __hrtimer_get_remaining(timer, true); in itimer_get_remtime()
36 if (hrtimer_active(timer)) { in itimer_get_remtime()
121 enum hrtimer_restart it_real_fn(struct hrtimer *timer) in it_real_fn() argument
124 container_of(timer, struct signal_struct, real_timer); in it_real_fn()
193 struct hrtimer *timer; in do_setitimer() local
207 timer = &tsk->signal->real_timer; in do_setitimer()
209 ovalue->it_value = itimer_get_remtime(timer); in do_setitimer()
214 if (hrtimer_try_to_cancel(timer) < 0) { in do_setitimer()
222 hrtimer_start(timer, expires, HRTIMER_MODE_REL); in do_setitimer()
Dtimer_stats.c62 void *timer; member
129 (((unsigned long)(entry)->timer ^ \
156 return entry1->timer == entry2->timer && in match_entries()
235 void timer_stats_update_stats(void *timer, pid_t pid, void *startf, in timer_stats_update_stats() argument
250 input.timer = timer; in timer_stats_update_stats()
/linux-4.4.14/virt/kvm/arm/
Darch_timer.c42 static bool timer_is_armed(struct arch_timer_cpu *timer) in timer_is_armed() argument
44 return timer->armed; in timer_is_armed()
48 static void timer_arm(struct arch_timer_cpu *timer, u64 ns) in timer_arm() argument
50 timer->armed = true; in timer_arm()
51 hrtimer_start(&timer->timer, ktime_add_ns(ktime_get(), ns), in timer_arm()
55 static void timer_disarm(struct arch_timer_cpu *timer) in timer_disarm() argument
57 if (timer_is_armed(timer)) { in timer_disarm()
58 hrtimer_cancel(&timer->timer); in timer_disarm()
59 cancel_work_sync(&timer->expired); in timer_disarm()
60 timer->armed = false; in timer_disarm()
[all …]
/linux-4.4.14/arch/s390/kernel/
Dvtime.c35 u64 timer; in get_vtimer() local
37 asm volatile("stpt %0" : "=m" (timer)); in get_vtimer()
38 return timer; in get_vtimer()
43 u64 timer; in set_vtimer() local
48 : "=m" (timer) : "m" (expires)); in set_vtimer()
49 S390_lowcore.system_timer += S390_lowcore.last_update_timer - timer; in set_vtimer()
98 u64 timer, clock, user, system, steal; in do_account_vtime() local
101 timer = S390_lowcore.last_update_timer; in do_account_vtime()
112 S390_lowcore.system_timer += timer - S390_lowcore.last_update_timer; in do_account_vtime()
181 u64 timer, system, system_scaled; in vtime_account_irq_enter() local
[all …]
/linux-4.4.14/sound/core/
Dtimer.c91 static int snd_timer_free(struct snd_timer *timer);
96 static void snd_timer_reschedule(struct snd_timer * timer, unsigned long ticks_left);
103 struct snd_timer *timer) in snd_timer_instance_new() argument
120 timeri->timer = timer; in snd_timer_instance_new()
121 if (timer && !try_module_get(timer->module)) { in snd_timer_instance_new()
135 struct snd_timer *timer = NULL; in snd_timer_find() local
137 list_for_each_entry(timer, &snd_timer_list, device_list) { in snd_timer_find()
138 if (timer->tmr_class != tid->dev_class) in snd_timer_find()
140 if ((timer->tmr_class == SNDRV_TIMER_CLASS_CARD || in snd_timer_find()
141 timer->tmr_class == SNDRV_TIMER_CLASS_PCM) && in snd_timer_find()
[all …]
Dpcm_timer.c65 static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) in snd_pcm_timer_resolution() argument
69 substream = timer->private_data; in snd_pcm_timer_resolution()
73 static int snd_pcm_timer_start(struct snd_timer * timer) in snd_pcm_timer_start() argument
77 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
82 static int snd_pcm_timer_stop(struct snd_timer * timer) in snd_pcm_timer_stop() argument
86 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
105 static void snd_pcm_timer_free(struct snd_timer *timer) in snd_pcm_timer_free() argument
107 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free()
108 substream->timer = NULL; in snd_pcm_timer_free()
114 struct snd_timer *timer; in snd_pcm_timer_init() local
[all …]
Drtctimer.c91 rtctimer_start(struct snd_timer *timer) in rtctimer_start() argument
93 rtc_task_t *rtc = timer->private_data; in rtctimer_start()
102 rtctimer_stop(struct snd_timer *timer) in rtctimer_stop() argument
104 rtc_task_t *rtc = timer->private_data; in rtctimer_stop()
131 struct snd_timer *timer; in rtctimer_init() local
140 err = snd_timer_global_new("rtc", SNDRV_TIMER_GLOBAL_RTC, &timer); in rtctimer_init()
144 timer->module = THIS_MODULE; in rtctimer_init()
145 strcpy(timer->name, "RTC timer"); in rtctimer_init()
146 timer->hw = rtc_hw; in rtctimer_init()
147 timer->hw.resolution = NANO_SEC / rtctimer_freq; in rtctimer_init()
[all …]
Dhrtimer.c39 struct snd_timer *timer; member
47 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
54 snd_timer_interrupt(stime->timer, t->sticks * oruns); in snd_hrtimer_callback()
69 stime->timer = t; in snd_hrtimer_open()
124 struct snd_timer *timer; in snd_hrtimer_init() local
131 &timer); in snd_hrtimer_init()
135 timer->module = THIS_MODULE; in snd_hrtimer_init()
136 strcpy(timer->name, "HR timer"); in snd_hrtimer_init()
137 timer->hw = hrtimer_hw; in snd_hrtimer_init()
138 timer->hw.resolution = resolution; in snd_hrtimer_init()
[all …]
DKconfig97 bool "PCM timer interface" if EXPERT
100 If you disable this option, pcm timer will be inavailable, so
101 those stubs used pcm timer (e.g. dmix, dsnoop & co) may work
122 tristate "HR-timer backend support"
126 Say Y here to enable HR-timer backend for ALSA timer. ALSA uses
134 bool "Use HR-timer as default sequencer timer"
138 Say Y here to use the HR-timer backend as the default sequencer
139 timer.
146 Say Y here to enable RTC timer support for ALSA. ALSA uses
147 the RTC timer as a precise timing source and maps the RTC
[all …]
/linux-4.4.14/arch/nios2/kernel/
Dtime.c42 struct nios2_timer timer; member
47 struct nios2_timer timer; member
63 static u16 timer_readw(struct nios2_timer *timer, u32 offs) in timer_readw() argument
65 return readw(timer->base + offs); in timer_readw()
68 static void timer_writew(struct nios2_timer *timer, u16 val, u32 offs) in timer_writew() argument
70 writew(val, timer->base + offs); in timer_writew()
73 static inline unsigned long read_timersnapshot(struct nios2_timer *timer) in read_timersnapshot() argument
77 timer_writew(timer, 0, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot()
78 count = timer_readw(timer, ALTERA_TIMER_SNAPH_REG) << 16 | in read_timersnapshot()
79 timer_readw(timer, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot()
[all …]
/linux-4.4.14/arch/mips/include/asm/mach-jz4740/
Dtimer.h64 static inline void jz4740_timer_stop(unsigned int timer) in jz4740_timer_stop() argument
66 writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); in jz4740_timer_stop()
69 static inline void jz4740_timer_start(unsigned int timer) in jz4740_timer_start() argument
71 writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); in jz4740_timer_start()
74 static inline bool jz4740_timer_is_enabled(unsigned int timer) in jz4740_timer_is_enabled() argument
76 return readb(jz4740_timer_base + JZ_REG_TIMER_ENABLE) & BIT(timer); in jz4740_timer_is_enabled()
79 static inline void jz4740_timer_enable(unsigned int timer) in jz4740_timer_enable() argument
81 writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_SET); in jz4740_timer_enable()
84 static inline void jz4740_timer_disable(unsigned int timer) in jz4740_timer_disable() argument
86 writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_CLEAR); in jz4740_timer_disable()
[all …]
/linux-4.4.14/net/netfilter/
Dxt_IDLETIMER.c52 struct timer_list timer; member
84 struct idletimer_tg *timer; in idletimer_tg_show() local
89 timer = __idletimer_tg_find_by_label(attr->name); in idletimer_tg_show()
90 if (timer) in idletimer_tg_show()
91 expires = timer->timer.expires; in idletimer_tg_show()
104 struct idletimer_tg *timer = container_of(work, struct idletimer_tg, in idletimer_tg_work() local
107 sysfs_notify(idletimer_tg_kobj, NULL, timer->attr.attr.name); in idletimer_tg_work()
112 struct idletimer_tg *timer = (struct idletimer_tg *) data; in idletimer_tg_expired() local
114 pr_debug("timer %s expired\n", timer->attr.attr.name); in idletimer_tg_expired()
116 schedule_work(&timer->work); in idletimer_tg_expired()
[all …]
Dxt_LED.c50 struct timer_list timer; member
67 timer_pending(&ledinternal->timer)) in led_tg()
75 mod_timer(&ledinternal->timer, in led_tg()
146 setup_timer(&ledinternal->timer, led_timeout_callback, in led_tg_check()
185 del_timer_sync(&ledinternal->timer); in led_tg_destroy()
/linux-4.4.14/sound/core/seq/oss/
Dseq_oss_timer.c37 static void calc_alsa_tempo(struct seq_oss_timer *timer);
129 calc_alsa_tempo(struct seq_oss_timer *timer) in calc_alsa_tempo() argument
131 timer->tempo = (60 * 1000000) / timer->oss_tempo; in calc_alsa_tempo()
132 timer->ppq = timer->oss_timebase; in calc_alsa_tempo()
160 snd_seq_oss_timer_start(struct seq_oss_timer *timer) in snd_seq_oss_timer_start() argument
162 struct seq_oss_devinfo *dp = timer->dp; in snd_seq_oss_timer_start()
165 if (timer->running) in snd_seq_oss_timer_start()
166 snd_seq_oss_timer_stop(timer); in snd_seq_oss_timer_start()
170 tmprec.ppq = timer->ppq; in snd_seq_oss_timer_start()
171 tmprec.tempo = timer->tempo; in snd_seq_oss_timer_start()
[all …]
Dseq_oss_timer.h43 int snd_seq_oss_timer_start(struct seq_oss_timer *timer);
44 int snd_seq_oss_timer_stop(struct seq_oss_timer *timer);
45 int snd_seq_oss_timer_continue(struct seq_oss_timer *timer);
46 int snd_seq_oss_timer_tempo(struct seq_oss_timer *timer, int value);
49 int snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __user *arg);
55 snd_seq_oss_timer_cur_tick(struct seq_oss_timer *timer) in snd_seq_oss_timer_cur_tick() argument
57 return timer->cur_tick; in snd_seq_oss_timer_cur_tick()
65 snd_seq_oss_timer_is_realtime(struct seq_oss_timer *timer) in snd_seq_oss_timer_is_realtime() argument
67 return timer->realtime; in snd_seq_oss_timer_is_realtime()
/linux-4.4.14/sound/isa/gus/
Dgus_timer.c32 static int snd_gf1_timer1_start(struct snd_timer * timer) in snd_gf1_timer1_start() argument
39 gus = snd_timer_chip(timer); in snd_gf1_timer1_start()
41 ticks = timer->sticks; in snd_gf1_timer1_start()
50 static int snd_gf1_timer1_stop(struct snd_timer * timer) in snd_gf1_timer1_stop() argument
56 gus = snd_timer_chip(timer); in snd_gf1_timer1_stop()
68 static int snd_gf1_timer2_start(struct snd_timer * timer) in snd_gf1_timer2_start() argument
75 gus = snd_timer_chip(timer); in snd_gf1_timer2_start()
77 ticks = timer->sticks; in snd_gf1_timer2_start()
86 static int snd_gf1_timer2_stop(struct snd_timer * timer) in snd_gf1_timer2_stop() argument
92 gus = snd_timer_chip(timer); in snd_gf1_timer2_stop()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/omap/
Dtimer.txt5 OMAP44xx devices have timer instances that are 100%
8 So for OMAP44xx devices timer instances may use
11 ti,omap2420-timer (applicable to OMAP24xx devices)
12 ti,omap3430-timer (applicable to OMAP3xxx/44xx devices)
13 ti,omap4430-timer (applicable to OMAP44xx devices)
14 ti,omap5430-timer (applicable to OMAP543x devices)
15 ti,am335x-timer (applicable to AM335x devices)
16 ti,am335x-timer-1ms (applicable to AM335x devices)
18 - reg: Contains timer register address range (base address and
20 - interrupts: Contains the interrupt information for the timer. The
[all …]
/linux-4.4.14/drivers/isdn/mISDN/
Dtimerdev.c75 struct mISDNtimer *timer, *next; in mISDN_close() local
82 timer = list_first_entry(list, struct mISDNtimer, list); in mISDN_close()
84 del_timer_sync(&timer->tl); in mISDN_close()
87 list_del(&timer->list); in mISDN_close()
88 kfree(timer); in mISDN_close()
92 list_for_each_entry_safe(timer, next, &dev->expired, list) { in mISDN_close()
93 kfree(timer); in mISDN_close()
104 struct mISDNtimer *timer; in mISDN_read() local
128 timer = list_first_entry(list, struct mISDNtimer, list); in mISDN_read()
129 list_del(&timer->list); in mISDN_read()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/
Dfsl_mpic_timer_wakeup.c23 struct mpic_timer *timer; member
37 if (wakeup->timer) { in fsl_free_resource()
38 disable_irq_wake(wakeup->timer->irq); in fsl_free_resource()
39 mpic_free_timer(wakeup->timer); in fsl_free_resource()
42 wakeup->timer = NULL; in fsl_free_resource()
52 return wakeup->timer ? IRQ_HANDLED : IRQ_NONE; in fsl_mpic_timer_irq()
63 if (fsl_wakeup->timer) { in fsl_timer_wakeup_show()
64 mpic_get_remain_time(fsl_wakeup->timer, &interval); in fsl_timer_wakeup_show()
86 if (fsl_wakeup->timer) { in fsl_timer_wakeup_store()
87 disable_irq_wake(fsl_wakeup->timer->irq); in fsl_timer_wakeup_store()
[all …]
Dmpic_timer.c72 struct mpic_timer timer[TIMERS_PER_GROUP]; member
159 priv->timer[num].cascade_handle = casc_priv; in detect_idle_cascade_timer()
164 return &priv->timer[num]; in detect_idle_cascade_timer()
182 casc_priv = priv->timer[num].cascade_handle; in set_cascade_timer()
229 struct mpic_timer *timer; in get_timer() local
246 timer = get_cascade_timer(priv, ticks); in get_timer()
247 if (!timer) in get_timer()
250 return timer; in get_timer()
264 priv->timer[num].cascade_handle = NULL; in get_timer()
266 return &priv->timer[num]; in get_timer()
[all …]
/linux-4.4.14/drivers/misc/
Dcs5535-mfgpt.c47 int cs5535_mfgpt_toggle_event(struct cs5535_mfgpt_timer *timer, int cmp, in cs5535_mfgpt_toggle_event() argument
53 if (!timer) { in cs5535_mfgpt_toggle_event()
70 mask = 1 << (timer->nr + 24); in cs5535_mfgpt_toggle_event()
75 mask = 1 << (timer->nr + shift); in cs5535_mfgpt_toggle_event()
80 mask = 1 << (timer->nr + shift); in cs5535_mfgpt_toggle_event()
99 int cs5535_mfgpt_set_irq(struct cs5535_mfgpt_timer *timer, int cmp, int *irq, in cs5535_mfgpt_set_irq() argument
105 if (!timer) { in cs5535_mfgpt_set_irq()
119 shift = ((cmp == MFGPT_CMP1 ? 0 : 4) + timer->nr % 4) * 4; in cs5535_mfgpt_set_irq()
137 if (cs5535_mfgpt_toggle_event(timer, cmp, MFGPT_EVENT_IRQ, enable)) in cs5535_mfgpt_set_irq()
151 struct cs5535_mfgpt_timer *timer = NULL; in cs5535_mfgpt_alloc_timer() local
[all …]
/linux-4.4.14/arch/c6x/platforms/
Dtimer64.c35 static struct timer_regs __iomem *timer; variable
69 ((soc_readl(&timer->emumgt) & (0xf << 16)) >> 16)
82 u32 tcr = soc_readl(&timer->tcr) & ~TCR_ENAMODELO_MASK; in timer64_config()
84 soc_writel(tcr, &timer->tcr); in timer64_config()
85 soc_writel(period - 1, &timer->prdlo); in timer64_config()
86 soc_writel(0, &timer->cntlo); in timer64_config()
88 soc_writel(tcr, &timer->tcr); in timer64_config()
99 soc_writel(soc_readl(&timer->tcr) & ~TCR_ENAMODELO_MASK, &timer->tcr); in timer64_enable()
100 soc_writel(0, &timer->prdlo); in timer64_enable()
103 val = soc_readl(&timer->tcr); in timer64_enable()
[all …]
/linux-4.4.14/include/trace/events/
Dtimer.h2 #define TRACE_SYSTEM timer
13 TP_PROTO(struct timer_list *timer),
15 TP_ARGS(timer),
18 __field( void *, timer )
22 __entry->timer = timer;
25 TP_printk("timer=%p", __entry->timer)
34 TP_PROTO(struct timer_list *timer),
36 TP_ARGS(timer)
46 TP_PROTO(struct timer_list *timer,
50 TP_ARGS(timer, expires, flags),
[all …]
/linux-4.4.14/arch/arm/mach-omap1/
Dtime.c74 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_timer_read() local
75 return readl(&timer->read_tim); in omap_mpu_timer_read()
80 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_set_autoreset() local
82 writel(readl(&timer->cntl) | MPU_TIMER_AR, &timer->cntl); in omap_mpu_set_autoreset()
87 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_remove_autoreset() local
89 writel(readl(&timer->cntl) & ~MPU_TIMER_AR, &timer->cntl); in omap_mpu_remove_autoreset()
95 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_timer_start() local
101 writel(MPU_TIMER_CLOCK_ENABLE, &timer->cntl); in omap_mpu_timer_start()
103 writel(load_val, &timer->load_tim); in omap_mpu_timer_start()
105 writel(timerflags, &timer->cntl); in omap_mpu_timer_start()
[all …]
/linux-4.4.14/sound/pci/emu10k1/
Dtimer.c32 static int snd_emu10k1_timer_start(struct snd_timer *timer) in snd_emu10k1_timer_start() argument
38 emu = snd_timer_chip(timer); in snd_emu10k1_timer_start()
39 delay = timer->sticks - 1; in snd_emu10k1_timer_start()
49 static int snd_emu10k1_timer_stop(struct snd_timer *timer) in snd_emu10k1_timer_stop() argument
54 emu = snd_timer_chip(timer); in snd_emu10k1_timer_stop()
61 static int snd_emu10k1_timer_precise_resolution(struct snd_timer *timer, in snd_emu10k1_timer_precise_resolution() argument
80 struct snd_timer *timer = NULL; in snd_emu10k1_timer() local
89 if ((err = snd_timer_new(emu->card, "EMU10K1", &tid, &timer)) >= 0) { in snd_emu10k1_timer()
90 strcpy(timer->name, "EMU10K1 timer"); in snd_emu10k1_timer()
91 timer->private_data = emu; in snd_emu10k1_timer()
[all …]
/linux-4.4.14/net/rose/
Drose_timer.c50 del_timer(&rose->timer); in rose_start_t1timer()
52 rose->timer.data = (unsigned long)sk; in rose_start_t1timer()
53 rose->timer.function = &rose_timer_expiry; in rose_start_t1timer()
54 rose->timer.expires = jiffies + rose->t1; in rose_start_t1timer()
56 add_timer(&rose->timer); in rose_start_t1timer()
63 del_timer(&rose->timer); in rose_start_t2timer()
65 rose->timer.data = (unsigned long)sk; in rose_start_t2timer()
66 rose->timer.function = &rose_timer_expiry; in rose_start_t2timer()
67 rose->timer.expires = jiffies + rose->t2; in rose_start_t2timer()
69 add_timer(&rose->timer); in rose_start_t2timer()
[all …]
/linux-4.4.14/drivers/net/fddi/skfp/
Dsmttimer.c39 void smt_timer_stop(struct s_smc *smc, struct smt_timer *timer) in smt_timer_stop() argument
47 timer->tm_active = FALSE ; in smt_timer_stop()
48 if (smc->t.st_queue == timer && !timer->tm_next) { in smt_timer_stop()
52 if (tm == timer) { in smt_timer_stop()
62 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, in smt_timer_start() argument
72 smt_timer_stop(smc,timer) ; in smt_timer_start()
73 timer->tm_smc = smc ; in smt_timer_start()
74 timer->tm_token = token ; in smt_timer_start()
75 timer->tm_active = TRUE ; in smt_timer_start()
77 smc->t.st_queue = timer ; in smt_timer_start()
[all …]
/linux-4.4.14/include/sound/
Dtimer.h29 #define snd_timer_chip(timer) ((timer)->private_data) argument
63 int (*open) (struct snd_timer * timer);
64 int (*close) (struct snd_timer * timer);
65 unsigned long (*c_resolution) (struct snd_timer * timer);
66 int (*start) (struct snd_timer * timer);
67 int (*stop) (struct snd_timer * timer);
68 int (*set_period) (struct snd_timer * timer, unsigned long period_num, unsigned long period_den);
69 int (*precise_resolution) (struct snd_timer * timer, unsigned long *num, unsigned long *den);
84 void (*private_free) (struct snd_timer *timer);
96 struct snd_timer *timer; member
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Domap2.dtsi182 timer2: timer@4802a000 {
183 compatible = "ti,omap2420-timer";
189 timer3: timer@48078000 {
190 compatible = "ti,omap2420-timer";
196 timer4: timer@4807a000 {
197 compatible = "ti,omap2420-timer";
203 timer5: timer@4807c000 {
204 compatible = "ti,omap2420-timer";
208 ti,timer-dsp;
211 timer6: timer@4807e000 {
[all …]
Dberlin2cd.dtsi117 local-timer@ad0600 {
118 compatible = "arm,cortex-a9-twd-timer";
256 timer0: timer@2c00 {
257 compatible = "snps,dw-apb-timer";
261 clock-names = "timer";
265 timer1: timer@2c14 {
266 compatible = "snps,dw-apb-timer";
270 clock-names = "timer";
274 timer2: timer@2c28 {
275 compatible = "snps,dw-apb-timer";
[all …]
Dberlin2.dtsi148 local-timer@ad0600 {
149 compatible = "arm,cortex-a9-twd-timer";
276 timer0: timer@2c00 {
277 compatible = "snps,dw-apb-timer";
281 clock-names = "timer";
285 timer1: timer@2c14 {
286 compatible = "snps,dw-apb-timer";
290 clock-names = "timer";
294 timer2: timer@2c28 {
295 compatible = "snps,dw-apb-timer";
[all …]
Domap3.dtsi590 timer1: timer@48318000 {
591 compatible = "ti,omap3430-timer";
595 ti,timer-alwon;
598 timer2: timer@49032000 {
599 compatible = "ti,omap3430-timer";
605 timer3: timer@49034000 {
606 compatible = "ti,omap3430-timer";
612 timer4: timer@49036000 {
613 compatible = "ti,omap3430-timer";
619 timer5: timer@49038000 {
[all …]
Dam4372.dtsi72 global_timer: timer@48240200 {
73 compatible = "arm,cortex-a9-global-timer";
80 local_timer: timer@48240600 {
81 compatible = "arm,cortex-a9-twd-timer";
257 timer1: timer@44e31000 {
258 compatible = "ti,am4372-timer-1ms","ti,am335x-timer-1ms";
261 ti,timer-alwon;
265 timer2: timer@48040000 {
266 compatible = "ti,am4372-timer","ti,am335x-timer";
272 timer3: timer@48042000 {
[all …]
Dstm32f429.dtsi60 timer2: timer@40000000 {
61 compatible = "st,stm32-timer";
68 timer3: timer@40000400 {
69 compatible = "st,stm32-timer";
76 timer4: timer@40000800 {
77 compatible = "st,stm32-timer";
84 timer5: timer@40000c00 {
85 compatible = "st,stm32-timer";
91 timer6: timer@40001000 {
92 compatible = "st,stm32-timer";
[all …]
Dberlin2q.dtsi158 local-timer@ad0600 {
159 compatible = "arm,cortex-a9-twd-timer";
335 timer0: timer@2c00 {
336 compatible = "snps,dw-apb-timer";
339 clock-names = "timer";
343 timer1: timer@2c14 {
344 compatible = "snps,dw-apb-timer";
347 clock-names = "timer";
350 timer2: timer@2c28 {
351 compatible = "snps,dw-apb-timer";
[all …]
Dbcm63138.dtsi92 global_timer: timer@1e200 {
93 compatible = "arm,cortex-a9-global-timer";
99 local_timer: local-timer@1e600 {
100 compatible = "arm,cortex-a9-twd-timer";
132 timer: timer@80 { label
133 compatible = "brcm,bcm6328-timer", "syscon";
173 regmap = <&timer>;
Defm32gg.dtsi137 timer0: timer@40010000 {
138 compatible = "energymicro,efm32-timer";
144 timer1: timer@40010400 {
145 compatible = "energymicro,efm32-timer";
151 timer2: timer@40010800 {
152 compatible = "energymicro,efm32-timer";
158 timer3: timer@40010c00 {
159 compatible = "energymicro,efm32-timer";
Domap4.dtsi69 local-timer@48240600 {
70 compatible = "arm,cortex-a9-twd-timer";
733 timer1: timer@4a318000 {
734 compatible = "ti,omap3430-timer";
738 ti,timer-alwon;
741 timer2: timer@48032000 {
742 compatible = "ti,omap3430-timer";
748 timer3: timer@48034000 {
749 compatible = "ti,omap4430-timer";
755 timer4: timer@48036000 {
[all …]
Domap5.dtsi75 timer {
76 compatible = "arm,armv7-timer";
723 timer1: timer@4ae18000 {
724 compatible = "ti,omap5430-timer";
728 ti,timer-alwon;
731 timer2: timer@48032000 {
732 compatible = "ti,omap5430-timer";
738 timer3: timer@48034000 {
739 compatible = "ti,omap5430-timer";
745 timer4: timer@48036000 {
[all …]
Dintegratorap.dts14 arm,timer-primary = &timer2;
15 arm,timer-secondary = &timer1;
52 timer0: timer@13000000 {
53 compatible = "arm,integrator-timer";
57 timer1: timer@13000100 {
58 compatible = "arm,integrator-timer";
62 timer2: timer@13000200 {
63 compatible = "arm,integrator-timer";
Ddm816x.dtsi299 timer1: timer@4802e000 {
300 compatible = "ti,dm816-timer";
304 ti,timer-alwon;
307 timer2: timer@48040000 {
308 compatible = "ti,dm816-timer";
314 timer3: timer@48042000 {
315 compatible = "ti,dm816-timer";
321 timer4: timer@48044000 {
322 compatible = "ti,dm816-timer";
328 timer5: timer@48046000 {
[all …]
Dpicoxcell-pc3x2.dtsi135 timer0: timer@10000 {
136 compatible = "picochip,pc3x2-timer";
143 timer1: timer@10014 {
144 compatible = "picochip,pc3x2-timer";
151 timer2: timer@10028 {
152 compatible = "picochip,pc3x2-timer";
159 timer3: timer@1003c {
160 compatible = "picochip,pc3x2-timer";
Dmt8127.dtsi87 timer {
88 compatible = "arm,armv7-timer";
108 timer: timer@10008000 { label
109 compatible = "mediatek,mt8127-timer",
110 "mediatek,mt6577-timer";
Dintegratorcp.dts86 /* The timer clock is the 24 MHz oscillator divided to 1MHz */
101 timer0: timer@13000000 {
103 compatible = "arm,integrator-cp-timer";
107 timer1: timer@13000100 {
109 compatible = "arm,integrator-cp-timer";
113 timer2: timer@13000200 {
115 compatible = "arm,integrator-cp-timer";
/linux-4.4.14/Documentation/devicetree/bindings/timer/
Dcirrus,clps711x-timer.txt4 - compatible: Shall contain "cirrus,clps711x-timer".
6 - interrupts: The interrupt number of the timer.
7 - clocks : phandle of timer reference clock.
9 Note: Each timer should have an alias correctly numbered in "aliases" node.
17 timer1: timer@80000300 {
18 compatible = "cirrus,ep7312-timer", "cirrus,clps711x-timer";
24 timer2: timer@80000340 {
25 compatible = "cirrus,ep7312-timer", "cirrus,clps711x-timer";
Dlsi,zevio-timer.txt1 TI-NSPIRE timer
5 - compatible : should be "lsi,zevio-timer".
6 - reg : The physical base address and size of the timer (always first).
11 - interrupts : The interrupt number of the first timer.
13 (always after timer base address)
15 If any of the optional properties are not given, the timer is added as a
20 timer {
21 compatible = "lsi,zevio-timer";
29 timer {
30 compatible = "lsi,zevio-timer";
Drenesas,16bit-timer.txt1 * Renesas H8/300 16bit timer
3 The 16bit timer is a 16bit timer/counter with configurable clock inputs and
8 - compatible: must contain "renesas,16bit-timer"
9 - reg: base address and length of the registers block for the timer module.
10 - interrupts: interrupt-specifier for the timer, IMIA
13 - renesas,channel: timer channel number.
17 timer16: timer@ffff68 {
18 compatible = "reneas,16bit-timer";
Dnvidia,tegra30-timer.txt1 NVIDIA Tegra30 timer
3 The Tegra30 timer provides ten 29-bit timer channels, a single 32-bit free
9 - compatible : For Tegra30, must contain "nvidia,tegra30-timer". Otherwise,
10 must contain '"nvidia,<chip>-timer", "nvidia,tegra30-timer"' where
13 - interrupts : A list of 6 interrupts; one per each of timer channels 1
18 timer {
19 compatible = "nvidia,tegra30-timer", "nvidia,tegra20-timer";
Dmarvell,armada-370-xp-timer.txt6 "marvell,armada-370-timer",
7 "marvell,armada-375-timer",
8 "marvell,armada-xp-timer".
10 then local timer interrupts
15 Clocks required for compatible = "marvell,armada-370-timer":
18 Clocks required for compatibles = "marvell,armada-xp-timer",
19 "marvell,armada-375-timer":
29 timer {
30 compatible = "marvell,armada-370-timer";
38 timer {
[all …]
Dti,keystone-timer.txt1 * Device tree bindings for Texas instruments Keystone timer
3 This document provides bindings for the 64-bit timer in the KeyStone
4 architecture devices. The timer can be configured as a general-purpose 64-bit
5 timer, dual general-purpose 32-bit timers. When configured as dual 32-bit
9 It is global timer is a free running up-counter and can generate interrupt
17 - compatible : should be "ti,keystone-timer".
19 - interrupts : interrupt generated by the timer.
20 - clocks : the clock feeding the timer clock.
24 timer@22f0000 {
25 compatible = "ti,keystone-timer";
Dmediatek,mtk-timer.txt6 * "mediatek,mt6580-timer" for MT6580 compatible timers
7 * "mediatek,mt6589-timer" for MT6589 compatible timers
8 * "mediatek,mt8127-timer" for MT8127 compatible timers
9 * "mediatek,mt8135-timer" for MT8135 compatible timers
10 * "mediatek,mt8173-timer" for MT8173 compatible timers
11 * "mediatek,mt6577-timer" for MT6577 and all above compatible timers
13 - clocks: Clocks driving the timer hardware. This list should include two
18 timer@10008000 {
19 compatible = "mediatek,mt6577-timer";
Drockchip,rk3288-timer.txt1 Rockchip rk3288 timer
4 - compatible: shall be "rockchip,rk3288-timer"
5 - reg: base address of the timer register starting with TIMERS CONTROL register
9 "timer", "pclk"
12 timer: timer@ff810000 {
13 compatible = "rockchip,rk3288-timer";
17 clock-names = "timer", "pclk";
Drenesas,8bit-timer.txt1 * Renesas H8/300 8bit timer
3 The 8bit timer is a 8bit timer/counter with configurable clock inputs and
10 - compatible: must contain "renesas,8bit-timer"
11 - reg: base address and length of the registers block for the timer module.
12 - interrupts: interrupt-specifier for the timer, CMIA and TOVI
18 timer8_0: timer@ffff80 {
19 compatible = "renesas,8bit-timer";
Dbrcm,kona-timer.txt1 Broadcom Kona Family timer
3 This timer is used in the following Broadcom SoCs:
7 - compatible : "brcm,kona-timer"
8 - DEPRECATED: compatible : "bcm,kona-timer"
9 - reg : Register range for the timer
10 - interrupts : interrupt for the timer
19 timer@35006000 {
20 compatible = "brcm,kona-timer";
Dmarvell,orion-timer.txt1 Marvell Orion SoC timer
4 - compatible: shall be "marvell,orion-timer"
5 - reg: base address of the timer register starting with TIMERS CONTROL register
8 - clocks: phandle of timer reference clock (tclk)
11 timer: timer {
12 compatible = "marvell,orion-timer";
Dst,stm32-timer.txt1 . STMicroelectronics STM32 timer
6 - compatible : Should be "st,stm32-timer"
8 - clocks : Reference on the timer input clock
9 - interrupts : Reference to the timer interrupt
12 - resets: Reference to a reset controller asserting the timer
16 timer5: timer@40000c00 {
17 compatible = "st,stm32-timer";
Darm,sp804.txt7 interrupt for timer 1 and timer 2. In the case of a single entry, it is
9 specifies which timer interrupt is connected.
10 - reg: Should contain location and length for dual timer register.
11 - clocks: clocks driving the dual timer hardware. This list should be 1 or 3
17 - arm,sp804-has-irq = <#>: In the case of only 1 timer irq line connected, this
18 specifies if the irq connection is for timer 1 or timer 2. A value of 1
23 timer0: timer@fc800000 {
Dnxp,lpc3220-timer.txt1 * NXP LPC3220 timer
3 The NXP LPC3220 timer is used on a wide range of NXP SoCs. This
8 Should be "nxp,lpc3220-timer".
12 Reference to the timer interrupt
14 Should contain a reference to timer clock.
20 timer1: timer@40085000 {
21 compatible = "nxp,lpc3220-timer";
Dnvidia,tegra20-timer.txt1 NVIDIA Tegra20 timer
3 The Tegra20 timer provides four 29-bit timer channels and a single 32-bit free
8 - compatible : should be "nvidia,tegra20-timer".
10 - interrupts : A list of 4 interrupts; one per timer channel.
16 timer {
17 compatible = "nvidia,tegra20-timer";
Dmoxa,moxart-timer.txt1 MOXA ART timer
5 - compatible : Must be "moxa,moxart-timer"
7 - interrupts : Should contain the timer interrupt number
12 timer: timer@98400000 {
13 compatible = "moxa,moxart-timer";
Denergymicro,efm32-timer.txt1 * EFM32 timer hardware
4 connected to form a 32 bit counter. Each timer has three Compare/Capture
9 - compatible : Should be "energymicro,efm32-timer"
14 - interrupts : Reference to the timer interrupt
18 timer@40010c00 {
19 compatible = "energymicro,efm32-timer";
Ddigicolor-timer.txt5 - compatible : should be "cnxt,cx92755-timer"
7 timer registers
8 - interrupts : Contains 8 interrupts, one for each timer
13 timer@f0000fc0 {
14 compatible = "cnxt,cx92755-timer";
Dsamsung,exynos4210-mct.txt4 global timer and CPU local timers. The global timer is a 64-bit free running
8 one CPU local timer instantiated in MCT for every CPU in the system.
20 should be the order of the interrupts specified. The local timer interrupts
21 should be specified after the four global timer interrupts have been
35 as ones compatible with "samsung,exynos4412-mct", only one local timer
40 interrupts, so two local timer interrupts have been specified,
41 in addition to four global timer interrupts.
50 Example 2: In this example, the timer interrupts are connected to two separate
75 timer interrupts can be specified, with the same interrupt specifier
Dbrcm,bcm2835-system-timer.txt3 The System Timer peripheral provides four 32-bit timer channels and a
10 - compatible : should be "brcm,bcm2835-system-timer"
12 - interrupts : A list of 4 interrupt sinks; one per timer channel.
17 timer {
18 compatible = "brcm,bcm2835-system-timer";
Damlogic,meson6-timer.txt5 - compatible : should be "amlogic,meson6-timer"
7 - interrupts : The interrupt of the first timer
11 timer@c1109940 {
12 compatible = "amlogic,meson6-timer";
Dallwinner,sun4i-timer.txt5 - compatible : should be "allwinner,sun4i-a10-timer"
7 - interrupts : The interrupt of the first timer
12 timer {
13 compatible = "allwinner,sun4i-a10-timer";
Dcadence,ttc-timer.txt6 - interrupts : A list of 3 interrupts; one per timer channel.
10 - timer-width: Bit width of the timer, necessary if not 16.
20 timer-width = <32>;
Dimg,pistachio-gptimer.txt1 * Pistachio general-purpose timer based clocksource
5 - reg: Address range of the timer registers.
16 timer: timer@18102000 {
Drenesas,tmu.txt3 The TMU is a 32-bit timer/counter with configurable clock inputs and
18 - reg: base address and length of the registers block for the timer module.
20 - interrupts: interrupt-specifier for the timer, one per channel.
28 - #renesas,channels: number of channels implemented by the timer, must be 2
34 tmu0: timer@ffd80000 {
Dfsl,imxgpt.txt7 - interrupts : A list of 4 interrupts; one per timer channel.
8 - clocks : The clocks provided by the SoC to drive the timer.
12 gpt1: timer@10003000 {
Drenesas,mtu2.txt3 The MTU2 is a multi-purpose, multi-channel timer/counter with configurable
16 - reg: base address and length of the registers block for the timer module.
18 - interrupts: interrupt specifiers for the timer, one for each entry in
31 mtu2: timer@fcff0000 {
/linux-4.4.14/drivers/staging/lustre/lnet/selftest/
Dtimer.c70 stt_add_timer(stt_timer_t *timer) in stt_add_timer() argument
78 LASSERT(timer->stt_func != NULL); in stt_add_timer()
79 LASSERT(list_empty(&timer->stt_list)); in stt_add_timer()
80 LASSERT(timer->stt_expires > ktime_get_real_seconds()); in stt_add_timer()
83 list_for_each_prev(pos, STTIMER_SLOT(timer->stt_expires)) { in stt_add_timer()
86 if (timer->stt_expires >= old->stt_expires) in stt_add_timer()
89 list_add(&timer->stt_list, pos); in stt_add_timer()
104 stt_del_timer(stt_timer_t *timer) in stt_del_timer() argument
113 if (!list_empty(&timer->stt_list)) { in stt_del_timer()
115 list_del_init(&timer->stt_list); in stt_del_timer()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/msm/
Dtimer.txt5 - compatible : Should at least contain "qcom,msm-timer". More specific
8 "qcom,kpss-timer" - krait subsystem
9 "qcom,scss-timer" - scorpion subsystem
11 - interrupts : Interrupts for the debug timer, the first general purpose
12 timer, and optionally a second general purpose timer, and
15 - reg : Specifies the base address of the timer registers.
23 - clock-frequency : The frequency of the debug timer and the general purpose
24 timer(s) in Hz in that order.
28 - cpu-offset : per-cpu offset used when the timer is accessed without the
34 timer@200a000 {
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/
Darch_timer.txt1 * ARM architected timer
3 ARM cores may have a per-core architected timer, which provides per-cpu timers,
4 or a memory mapped architected timer, which provides up to 8 frames with a
5 physical and optional virtual timer per frame.
7 The per-core architected timer is attached to a GIC to deliver its
8 per-processor interrupts via PPIs. The memory mapped timer is attached to a GIC
14 "arm,armv7-timer"
15 "arm,armv8-timer"
25 - always-on : a boolean property. If present, the timer is powered through an
31 any of the generic timer CPU registers, which contain their
[all …]
Dtwd.txt4 Timer-Watchdog (aka TWD), which provides both a per-cpu local timer
13 "arm,cortex-a9-twd-timer"
14 "arm,cortex-a5-twd-timer"
15 "arm,arm11mp-twd-timer"
19 - reg : Specify the base address and the size of the TWD timer
24 - always-on : a boolean property. If present, the timer is powered through
29 twd-timer@2c000600 {
30 compatible = "arm,arm11mp-twd-timer"";
Dglobal_timer.txt3 Cortex-A9 are often associated with a per-core Global timer.
8 * "arm,cortex-a5-global-timer" for Cortex-A5 global timers.
9 * "arm,cortex-a9-global-timer" for Cortex-A9 global
15 - reg : Specify the base address and the size of the GT timer
22 timer@2c000600 {
23 compatible = "arm,cortex-a9-global-timer";
Dspear-timer.txt6 "st,spear-timer"
7 - reg: Address range of the timer registers
10 - interrupt: Should contain the timer interrupt number
14 timer@f0000000 {
15 compatible = "st,spear-timer";
Darmv7m_systick.txt3 ARMv7-M includes a system timer, known as SysTick. Current driver only
8 - reg : The address range of the timer
11 - clocks : The input clock of the timer
16 systick: timer@e000e010 {
22 systick: timer@e000e010 {
Dpicoxcell.txt12 - compatible = "picochip,pc3x2-timer"
13 - interrupts : The single IRQ line for the timer.
14 - clock-freq : The frequency in HZ of the timer.
15 - reg : The register bank for the timer.
/linux-4.4.14/Documentation/devicetree/bindings/powerpc/fsl/
Dmpic-timer.txt4 - compatible: "fsl,mpic-global-timer"
6 - reg : Contains two regions. The first is the main timer register bank
7 (GTCCRxx, GTBCRxx, GTVPRxx, GTDRxx). The second is the timer control
11 timer interrupts can be used. This property is optional; without this,
14 - interrupts: one interrupt per timer in the group, in order, starting
15 with timer zero. If timer-available-ranges is present, only the
20 timer0: timer@41100 {
21 compatible = "fsl,mpic-global-timer";
31 timer1: timer@42100 {
32 compatible = "fsl,mpic-global-timer";
/linux-4.4.14/include/linux/sunrpc/
Dtimer.h23 extern void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m);
24 extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer);
26 static inline void rpc_set_timeo(struct rpc_rtt *rt, int timer, int ntimeo) in rpc_set_timeo() argument
29 if (!timer) in rpc_set_timeo()
31 t = &rt->ntimeouts[timer-1]; in rpc_set_timeo()
42 static inline int rpc_ntimeo(struct rpc_rtt *rt, int timer) in rpc_ntimeo() argument
44 if (!timer) in rpc_ntimeo()
46 return rt->ntimeouts[timer-1]; in rpc_ntimeo()
/linux-4.4.14/Documentation/devicetree/bindings/rtc/
Ddw-apb.txt1 * Designware APB timer
5 "snps,dw-apb-timer"
6 "snps,dw-apb-timer-sp" <DEPRECATED>
7 "snps,dw-apb-timer-osc" <DEPRECATED>
10 - interrupts: IRQ line for the timer.
16 - clock-names : should contain "timer" and "pclk" entries, matching entries
18 - clock-frequency: The frequency in HZ of the timer.
26 timer@ffe00000 {
27 compatible = "snps,dw-apb-timer";
31 clock-names = "timer", "pclk";
/linux-4.4.14/drivers/rtc/
Dinterface.c20 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer);
21 static void rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer);
542 enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer) in rtc_pie_update_irq() argument
547 rtc = container_of(timer, struct rtc_device, pie_timer); in rtc_pie_update_irq()
550 count = hrtimer_forward_now(timer, period); in rtc_pie_update_irq()
749 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer) in rtc_timer_enqueue() argument
751 timer->enabled = 1; in rtc_timer_enqueue()
752 timerqueue_add(&rtc->timerqueue, &timer->node); in rtc_timer_enqueue()
753 if (&timer->node == timerqueue_getnext(&rtc->timerqueue)) { in rtc_timer_enqueue()
756 alarm.time = rtc_ktime_to_tm(timer->node.expires); in rtc_timer_enqueue()
[all …]
/linux-4.4.14/arch/xtensa/kernel/
Dtime.c86 struct ccount_timer *timer = in ccount_timer_shutdown() local
89 if (timer->irq_enabled) { in ccount_timer_shutdown()
91 timer->irq_enabled = 0; in ccount_timer_shutdown()
98 struct ccount_timer *timer = in ccount_timer_set_oneshot() local
101 if (!timer->irq_enabled) { in ccount_timer_set_oneshot()
103 timer->irq_enabled = 1; in ccount_timer_set_oneshot()
117 struct ccount_timer *timer = &per_cpu(ccount_timer, cpu); in local_timer_setup() local
118 struct clock_event_device *clockevent = &timer->evt; in local_timer_setup()
120 timer->irq_enabled = 1; in local_timer_setup()
121 clockevent->name = timer->name; in local_timer_setup()
[all …]
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dtime.c64 data = REG_RD(timer, regi_timer0, r_tmr0_data); in get_ns_in_jiffie()
112 REG_WR(timer, regi_timer0, rw_wd_ctrl, wd_ctrl); in reset_watchdog()
127 REG_WR(timer, regi_timer0, rw_wd_ctrl, wd_ctrl); in stop_watchdog()
182 REG_WR(timer, timer_base, rw_tmr0_ctrl, ctrl); in crisv32_clkevt_switch_state()
194 REG_WR(timer, timer_base, rw_tmr0_div, evt); in crisv32_clkevt_next_event()
195 REG_WR(timer, timer_base, rw_tmr0_ctrl, ctrl); in crisv32_clkevt_next_event()
198 REG_WR(timer, timer_base, rw_tmr0_ctrl, ctrl); in crisv32_clkevt_next_event()
213 intr = REG_RD(timer, timer_base, r_masked_intr); in crisv32_timer_interrupt()
217 REG_WR(timer, timer_base, rw_tmr0_ctrl, ctrl); in crisv32_timer_interrupt()
218 REG_WR(timer, timer_base, rw_ack_intr, ack); in crisv32_timer_interrupt()
[all …]
Dfasttimer.c139 r_time0 = REG_RD(timer, regi_timer0, r_time); in start_timer_trig()
144 intr_mask = REG_RD(timer, regi_timer0, rw_intr_mask); in start_timer_trig()
146 REG_WR(timer, regi_timer0, rw_intr_mask, intr_mask); in start_timer_trig()
157 REG_WR(timer, regi_timer0, rw_ack_intr, ack_intr); in start_timer_trig()
160 REG_WR(timer, regi_timer0, rw_trig, trig); in start_timer_trig()
162 REG_WR(timer, regi_timer0, rw_trig_cfg, trig_cfg); in start_timer_trig()
165 r_time1 = REG_RD(timer, regi_timer0, r_time); in start_timer_trig()
170 intr_mask = REG_RD(timer, regi_timer0, rw_intr_mask); in start_timer_trig()
172 REG_WR(timer, regi_timer0, rw_intr_mask, intr_mask); in start_timer_trig()
178 REG_WR(timer, regi_timer0, rw_trig_cfg, trig_cfg); in start_timer_trig()
[all …]
/linux-4.4.14/sound/drivers/opl3/
Dopl3_lib.c158 static int snd_opl3_timer1_start(struct snd_timer * timer) in snd_opl3_timer1_start() argument
165 opl3 = snd_timer_chip(timer); in snd_opl3_timer1_start()
167 ticks = timer->sticks; in snd_opl3_timer1_start()
176 static int snd_opl3_timer1_stop(struct snd_timer * timer) in snd_opl3_timer1_stop() argument
182 opl3 = snd_timer_chip(timer); in snd_opl3_timer1_stop()
195 static int snd_opl3_timer2_start(struct snd_timer * timer) in snd_opl3_timer2_start() argument
202 opl3 = snd_timer_chip(timer); in snd_opl3_timer2_start()
204 ticks = timer->sticks; in snd_opl3_timer2_start()
213 static int snd_opl3_timer2_stop(struct snd_timer * timer) in snd_opl3_timer2_stop() argument
219 opl3 = snd_timer_chip(timer); in snd_opl3_timer2_stop()
[all …]
/linux-4.4.14/net/sunrpc/
Dtimer.c60 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument
64 if (timer-- == 0) in rpc_update_rtt()
74 srtt = (long *)&rt->srtt[timer]; in rpc_update_rtt()
81 sdrtt = (long *)&rt->sdrtt[timer]; in rpc_update_rtt()
109 unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) in rpc_calc_rto() argument
113 if (timer-- == 0) in rpc_calc_rto()
116 res = ((rt->srtt[timer] + 7) >> 3) + rt->sdrtt[timer]; in rpc_calc_rto()
/linux-4.4.14/drivers/char/
Dhpet.c204 struct hpet_timer __iomem *timer; in hpet_timer_set_irq() local
212 timer = devp->hd_timer; in hpet_timer_set_irq()
215 v = readl(&timer->hpet_config); in hpet_timer_set_irq()
218 writel(v, &timer->hpet_config); in hpet_timer_set_irq()
222 v = (readq(&timer->hpet_config) & Tn_INT_ROUTE_CAP_MASK) >> in hpet_timer_set_irq()
250 v = readl(&timer->hpet_config); in hpet_timer_set_irq()
252 writel(v, &timer->hpet_config); in hpet_timer_set_irq()
420 struct hpet_timer __iomem *timer; in hpet_release() local
424 timer = devp->hd_timer; in hpet_release()
428 writeq((readq(&timer->hpet_config) & ~Tn_INT_ENB_CNF_MASK), in hpet_release()
[all …]
Dmmtimer.c238 struct k_itimer *timer; member
262 int nodeid = n->timer->it.mmtimer.node; in mmtimer_add_list()
263 unsigned long expires = n->timer->it.mmtimer.expires; in mmtimer_add_list()
275 if (expires < x->timer->it.mmtimer.expires) in mmtimer_add_list()
289 struct mmtimer, list)->timer->it.mmtimer.expires) in mmtimer_add_list()
310 t = x->timer; in mmtimer_set_next_timer()
540 if (base->timer) in mmtimer_interrupt()
541 expires = base->timer->it.mmtimer.expires; in mmtimer_interrupt()
568 t = x->timer; in mmtimer_tasklet()
598 static int sgi_timer_create(struct k_itimer *timer) in sgi_timer_create() argument
[all …]
/linux-4.4.14/arch/s390/include/asm/
Dvtimer.h21 extern void init_virt_timer(struct vtimer_list *timer);
22 extern void add_virt_timer(struct vtimer_list *timer);
23 extern void add_virt_timer_periodic(struct vtimer_list *timer);
24 extern int mod_virt_timer(struct vtimer_list *timer, u64 expires);
25 extern int mod_virt_timer_periodic(struct vtimer_list *timer, u64 expires);
26 extern int del_virt_timer(struct vtimer_list *timer);
/linux-4.4.14/Documentation/leds/
Dledtrig-transient.txt4 The leds timer trigger does not currently have an interface to activate
5 a one shot timer. The current support allows for setting two timers, one for
14 Without one shot timer interface, user space can still use timer trigger to
15 set a timer to hold a state, however when user space application crashes or
16 goes away without deactivating the timer, the hardware will be left in that
21 PMIC. There is a need to activate one shot timer to control the vibrate
25 Transient trigger addresses the need for one shot timer activation. The
59 deactivation routine, will cancel any timer that is active before it cleans
75 - duration allows setting timer value in msecs. The initial value is 0.
76 - activate allows activating and deactivating the timer specified by
[all …]
/linux-4.4.14/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci1564.c12 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
15 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
20 devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
34 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
38 outl(data[2], devpriv->timer + ADDI_TCW_TIMEBASE_REG); in apci1564_timer_insn_config()
41 outl(data[3], devpriv->timer + ADDI_TCW_RELOAD_REG); in apci1564_timer_insn_config()
43 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
49 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
62 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_write()
72 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_write()
[all …]
/linux-4.4.14/arch/c6x/boot/dts/
Devmc6678.dts39 timer8: timer@2280000 {
44 timer9: timer@2290000 {
49 timer10: timer@22A0000 {
54 timer11: timer@22B0000 {
59 timer12: timer@22C0000 {
64 timer13: timer@22D0000 {
69 timer14: timer@22E0000 {
74 timer15: timer@22F0000 {
Devmc6472.dts39 timer0: timer@25e0000 {
44 timer1: timer@25f0000 {
49 timer2: timer@2600000 {
54 timer3: timer@2610000 {
59 timer4: timer@2620000 {
64 timer5: timer@2630000 {
Dtms320c6678.dtsi78 timer8: timer@2280000 {
84 timer9: timer@2290000 {
90 timer10: timer@22A0000 {
96 timer11: timer@22B0000 {
102 timer12: timer@22C0000 {
108 timer13: timer@22D0000 {
114 timer14: timer@22E0000 {
120 timer15: timer@22F0000 {
Dtms320c6472.dtsi68 timer0: timer@25e0000 {
74 timer1: timer@25f0000 {
80 timer2: timer@2600000 {
86 timer3: timer@2610000 {
92 timer4: timer@2620000 {
98 timer5: timer@2630000 {
/linux-4.4.14/drivers/staging/android/
Dtimed_gpio.c31 struct hrtimer timer; member
38 static enum hrtimer_restart gpio_timer_func(struct hrtimer *timer) in gpio_timer_func() argument
41 container_of(timer, struct timed_gpio_data, timer); in gpio_timer_func()
54 if (!hrtimer_active(&data->timer)) in gpio_get_time()
57 t = hrtimer_get_remaining(&data->timer); in gpio_get_time()
71 hrtimer_cancel(&data->timer); in gpio_enable()
78 hrtimer_start(&data->timer, in gpio_enable()
106 hrtimer_init(&gpio_dat->timer, CLOCK_MONOTONIC, in timed_gpio_probe()
108 gpio_dat->timer.function = gpio_timer_func; in timed_gpio_probe()
/linux-4.4.14/arch/powerpc/oprofile/cell/
Dspu_profiler.c137 static enum hrtimer_restart profile_spus(struct hrtimer *timer) in profile_spus() argument
186 hrtimer_forward(timer, timer->base->get_time(), kt); in profile_spus()
194 static struct hrtimer timer; variable
208 hrtimer_init(&timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in start_spu_profiling_cycles()
209 hrtimer_set_expires(&timer, kt); in start_spu_profiling_cycles()
210 timer.function = profile_spus; in start_spu_profiling_cycles()
220 hrtimer_start(&timer, kt, HRTIMER_MODE_REL); in start_spu_profiling_cycles()
244 hrtimer_cancel(&timer); in stop_spu_profiling_cycles()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
DKbuild1 nvkm-y += nvkm/subdev/timer/base.o
2 nvkm-y += nvkm/subdev/timer/nv04.o
3 nvkm-y += nvkm/subdev/timer/nv40.o
4 nvkm-y += nvkm/subdev/timer/nv41.o
5 nvkm-y += nvkm/subdev/timer/gk20a.o
/linux-4.4.14/net/x25/
Dx25_timer.c36 setup_timer(&x25->timer, x25_timer_expiry, (unsigned long)sk); in x25_init_timers()
57 mod_timer(&x25->timer, jiffies + x25->t2); in x25_start_t2timer()
64 mod_timer(&x25->timer, jiffies + x25->t21); in x25_start_t21timer()
71 mod_timer(&x25->timer, jiffies + x25->t22); in x25_start_t22timer()
78 mod_timer(&x25->timer, jiffies + x25->t23); in x25_start_t23timer()
83 del_timer(&x25_sk(sk)->timer); in x25_stop_timer()
90 if (!timer_pending(&x25->timer)) in x25_display_timer()
93 return x25->timer.expires - jiffies; in x25_display_timer()
/linux-4.4.14/sound/core/seq/
Dseq_queue.c125 q->timer = snd_seq_timer_new(); in queue_new()
126 if (q->tickq == NULL || q->timeq == NULL || q->timer == NULL) { in queue_new()
129 snd_seq_timer_delete(&q->timer); in queue_new()
146 snd_seq_timer_stop(q->timer); in queue_delete()
154 snd_seq_timer_delete(&q->timer); in queue_delete()
275 if (snd_seq_compare_tick_time(&q->timer->tick.cur_tick, in snd_seq_check_queue()
289 if (snd_seq_compare_real_time(&q->timer->cur_time, in snd_seq_check_queue()
328 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
333 &q->timer->cur_time); in snd_seq_enqueue_event()
455 tmr = queue->timer; in snd_seq_queue_timer_open()
[all …]
/linux-4.4.14/arch/arm/mach-omap2/
Dtimer.c229 static int __init omap_dm_timer_init_one(struct omap_dm_timer *timer, in omap_dm_timer_init_one() argument
252 timer->irq = irq_of_parse_and_map(np, 0); in omap_dm_timer_init_one()
253 if (!timer->irq) in omap_dm_timer_init_one()
256 timer->io_base = of_iomap(np, 0); in omap_dm_timer_init_one()
260 if (omap_dm_timer_reserve_systimer(timer->id)) in omap_dm_timer_init_one()
263 sprintf(name, "timer%d", timer->id); in omap_dm_timer_init_one()
278 timer->irq = irq.start; in omap_dm_timer_init_one()
286 timer->io_base = ioremap(mem.start, mem.end - mem.start); in omap_dm_timer_init_one()
289 if (!timer->io_base) in omap_dm_timer_init_one()
293 timer->fclk = clk_get(NULL, omap_hwmod_get_main_clk(oh)); in omap_dm_timer_init_one()
[all …]
/linux-4.4.14/arch/x86/kernel/
Dapb_timer.c62 struct dw_apb_clock_event_device *timer; member
151 adev->timer = dw_apb_clockevent_init(smp_processor_id(), "apbt0", in apbt_clockevent_register()
156 adev->timer->eoi = NULL; in apbt_clockevent_register()
159 global_clock_event = &adev->timer->ced; in apbt_clockevent_register()
164 dw_apb_clockevent_register(adev->timer); in apbt_clockevent_register()
190 if (!adev->timer) { in apbt_setup_secondary_clock()
191 adev->timer = dw_apb_clockevent_init(cpu, adev->name, in apbt_setup_secondary_clock()
194 adev->timer->eoi = NULL; in apbt_setup_secondary_clock()
196 dw_apb_clockevent_resume(adev->timer); in apbt_setup_secondary_clock()
203 dw_apb_clockevent_register(adev->timer); in apbt_setup_secondary_clock()
[all …]
Dhpet.c186 struct hpet_timer __iomem *timer = &hpet->hpet_timers[2]; in hpet_reserve_platform_timers() local
210 for (i = 2; i < nrtimers; timer++, i++) { in hpet_reserve_platform_timers()
211 hd.hd_irq[i] = (readl(&timer->hpet_config) & in hpet_reserve_platform_timers()
294 static int hpet_set_periodic(struct clock_event_device *evt, int timer) in hpet_set_periodic() argument
304 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_set_periodic()
307 hpet_writel(cfg, HPET_Tn_CFG(timer)); in hpet_set_periodic()
308 hpet_writel(cmp, HPET_Tn_CMP(timer)); in hpet_set_periodic()
317 hpet_writel((unsigned int)delta, HPET_Tn_CMP(timer)); in hpet_set_periodic()
324 static int hpet_set_oneshot(struct clock_event_device *evt, int timer) in hpet_set_oneshot() argument
328 cfg = hpet_readl(HPET_Tn_CFG(timer)); in hpet_set_oneshot()
[all …]
/linux-4.4.14/drivers/isdn/divert/
Disdn_divert.c27 struct timer_list timer; /* timer control structure */ member
64 del_timer(&cs->timer); /* delete active timer */ in deflect_timer_expire()
73 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_timer_expire()
74 add_timer(&cs->timer); in deflect_timer_expire()
85 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_timer_expire()
86 add_timer(&cs->timer); in deflect_timer_expire()
160 init_timer(&cs->timer); in cf_command()
162 cs->timer.function = deflect_timer_expire; in cf_command()
163 cs->timer.data = (ulong) cs; /* pointer to own structure */ in cf_command()
226 del_timer(&cs->timer); in deflect_extern_action()
[all …]
/linux-4.4.14/drivers/pps/generators/
Dpps_gen_parport.c57 struct hrtimer timer; member
71 static enum hrtimer_restart hrtimer_event(struct hrtimer *timer) in hrtimer_event() argument
92 expire_time = ktime_to_timespec(hrtimer_get_softexpires(timer)); in hrtimer_event()
93 dev = container_of(timer, struct pps_generator_pp, timer); in hrtimer_event()
146 hrtimer_set_expires(timer, in hrtimer_event()
217 hrtimer_init(&device.timer, CLOCK_REALTIME, HRTIMER_MODE_ABS); in parport_attach()
218 device.timer.function = hrtimer_event; in parport_attach()
219 hrtimer_start(&device.timer, next_intr_time(&device), HRTIMER_MODE_ABS); in parport_attach()
232 hrtimer_cancel(&device.timer); in parport_detach()
/linux-4.4.14/arch/mips/include/asm/netlogic/xlr/
Dpic.h267 nlm_pic_read_timer(uint64_t base, int timer) in nlm_pic_read_timer() argument
271 up1 = nlm_read_reg(base, PIC_TIMER_COUNT_1(timer)); in nlm_pic_read_timer()
272 low = nlm_read_reg(base, PIC_TIMER_COUNT_0(timer)); in nlm_pic_read_timer()
273 up2 = nlm_read_reg(base, PIC_TIMER_COUNT_1(timer)); in nlm_pic_read_timer()
276 low = nlm_read_reg(base, PIC_TIMER_COUNT_0(timer)); in nlm_pic_read_timer()
282 nlm_pic_read_timer32(uint64_t base, int timer) in nlm_pic_read_timer32() argument
284 return nlm_read_reg(base, PIC_TIMER_COUNT_0(timer)); in nlm_pic_read_timer32()
288 nlm_pic_set_timer(uint64_t base, int timer, uint64_t value, int irq, int cpu) in nlm_pic_set_timer() argument
297 nlm_write_reg(base, PIC_TIMER_MAXVAL_0(timer), low); in nlm_pic_set_timer()
298 nlm_write_reg(base, PIC_TIMER_MAXVAL_1(timer), up); in nlm_pic_set_timer()
[all …]
/linux-4.4.14/Documentation/timers/
Dtimer_stats.txt1 timer_stats - timer usage statistics
4 timer_stats is a debugging facility to make the timer (ab)usage in a Linux
17 timer_stats collects information about the timer events which are fired in a
20 - the pid of the task(process) which initialized the timer
21 - the name of the process which initialized the timer
22 - the function where the timer was initialized
23 - the callback function which is associated to the timer
65 initialized the timer and in parenthesis the callback function which was
70 Added flag to indicate 'deferrable timer' in /proc/timer_stats. A deferrable
71 timer will appear as follows
Dhrtimers.txt7 One might ask the question: we already have a timer subsystem
8 (kernel/timers.c), why do we need two timer subsystems? After a lot of
10 features into the existing timer framework, and after testing various
11 such high-resolution timer implementations in practice, we came to the
12 conclusion that the timer wheel code is fundamentally not suitable for
15 things into the timer wheel, but we failed. In hindsight, there are
24 the wheel concept, leading to even worse compromises. The timer wheel
32 timing inaccuracies. Cascading is a fundamental property of the timer
36 - the implementation of the current posix-timer subsystem on top of
37 the timer wheel has already introduced a quite complex handling of
[all …]
D00-INDEX8 - sample hpet timer test program
16 - Clock sources, clock events, sched_clock() and delay timer notes
20 - timer usage statistics
Dhighres.txt25 - high resolution timer functionality
36 The main differences to the timer wheel, which holds the armed timer_list type
108 The clock event device delegates the selection of those timer interrupt related
112 architecture specific timer interrupt handlers and hands the control over the
113 clock event devices and the assignment of timer interrupt related functionality
129 to the clock event device and timer interrupt code. After the conversion the
138 high resolution timer functionality
141 During system boot it is not possible to use the high resolution timer
155 The high resolution timer code does not support SMP machines which have only
164 whether the event device has to be reprogrammed when a timer is added. The
[all …]
/linux-4.4.14/net/bridge/
Dbr_multicast.c244 if (!netif_running(br->dev) || timer_pending(&mp->timer)) in br_multicast_group_expired()
285 del_timer(&p->timer); in br_multicast_del_pg()
292 mod_timer(&mp->timer, jiffies); in br_multicast_del_pg()
306 if (!netif_running(br->dev) || timer_pending(&pg->timer) || in br_multicast_port_group_expired()
638 setup_timer(&mp->timer, br_multicast_group_expired, in br_multicast_new_group()
665 setup_timer(&p->timer, br_multicast_port_group_expired, in br_multicast_new_port_group()
692 mod_timer(&mp->timer, now + br->multicast_membership_interval); in br_multicast_add_group()
712 mod_timer(&p->timer, now + br->multicast_membership_interval); in br_multicast_add_group()
866 if (!other_query || timer_pending(&other_query->timer)) in br_multicast_send_query()
875 mod_timer(&own_query->timer, time); in br_multicast_send_query()
[all …]
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dpnic2.c91 mod_timer(&tp->timer, RUN_AT(next_tick)); in pnic2_timer()
326 del_timer_sync(&tp->timer); in pnic2_lnk_change()
328 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change()
329 add_timer(&tp->timer); in pnic2_lnk_change()
351 del_timer_sync(&tp->timer); in pnic2_lnk_change()
353 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change()
354 add_timer(&tp->timer); in pnic2_lnk_change()
375 del_timer_sync(&tp->timer); in pnic2_lnk_change()
377 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change()
378 add_timer(&tp->timer); in pnic2_lnk_change()
D21142.c107 mod_timer(&tp->timer, RUN_AT(next_tick)); in t21142_media_task()
219 del_timer_sync(&tp->timer); in t21142_lnk_change()
221 tp->timer.expires = RUN_AT(3*HZ); in t21142_lnk_change()
222 add_timer(&tp->timer); in t21142_lnk_change()
229 del_timer_sync(&tp->timer); in t21142_lnk_change()
231 tp->timer.expires = RUN_AT(3*HZ); in t21142_lnk_change()
232 add_timer(&tp->timer); in t21142_lnk_change()
/linux-4.4.14/Documentation/devicetree/bindings/interrupt-controller/
Dmips-gic.txt6 global timer, per-CPU count/compare timers, and a watchdog.
27 Required properties for timer sub-node:
28 - compatible : Should be "mti,gic-timer".
29 - interrupts : Interrupt for the GIC local timer.
31 Optional properties for timer sub-node:
32 - clocks : GIC timer operating clock.
48 timer {
49 compatible = "mti,gic-timer";
/linux-4.4.14/Documentation/devicetree/bindings/arm/vt8500/
Dvia,vt8500-timer.txt5 - compatible : "via,vt8500-timer"
7 - interrupts : interrupt for the timer
11 timer@d8130100 {
12 compatible = "via,vt8500-timer";
/linux-4.4.14/Documentation/devicetree/bindings/arm/mrvl/
Dtimer.txt4 - compatible : Should be "mrvl,mmp-timer".
5 - reg : Address and length of the register set of timer controller.
9 timer0: timer@d4014000 {
10 compatible = "mrvl,mmp-timer";
/linux-4.4.14/arch/mips/lasat/
Dpicvue_proc.c30 static struct timer_list timer; variable
116 del_timer(&timer); in pvc_scroll_proc_write()
129 add_timer(&timer); in pvc_scroll_proc_write()
166 timer.expires = jiffies + scroll_interval; in pvc_proc_timerfunc()
167 add_timer(&timer); in pvc_proc_timerfunc()
178 del_timer_sync(&timer); in pvc_proc_cleanup()
205 init_timer(&timer); in pvc_proc_init()
206 timer.function = pvc_proc_timerfunc; in pvc_proc_init()
/linux-4.4.14/drivers/usb/phy/
Dphy-fsl-usb.h360 struct fsl_otg_timer *timer; in otg_timer_initializer() local
362 timer = kmalloc(sizeof(struct fsl_otg_timer), GFP_KERNEL); in otg_timer_initializer()
363 if (!timer) in otg_timer_initializer()
365 timer->function = function; in otg_timer_initializer()
366 timer->expires = expires; in otg_timer_initializer()
367 timer->data = data; in otg_timer_initializer()
368 return timer; in otg_timer_initializer()
404 void fsl_otg_add_timer(struct otg_fsm *fsm, void *timer);
405 void fsl_otg_del_timer(struct otg_fsm *fsm, void *timer);
Dphy-fsl-usb.c366 struct fsl_otg_timer *timer; in fsl_otg_get_timer() local
371 timer = a_wait_vrise_tmr; in fsl_otg_get_timer()
374 timer = a_wait_vrise_tmr; in fsl_otg_get_timer()
377 timer = a_wait_vrise_tmr; in fsl_otg_get_timer()
380 timer = a_wait_vrise_tmr; in fsl_otg_get_timer()
383 timer = a_wait_vrise_tmr; in fsl_otg_get_timer()
386 timer = a_wait_vrise_tmr; in fsl_otg_get_timer()
389 timer = a_wait_vrise_tmr; in fsl_otg_get_timer()
392 timer = NULL; in fsl_otg_get_timer()
395 return timer; in fsl_otg_get_timer()
[all …]
/linux-4.4.14/arch/arm/lib/
Ddelay.c77 void __init register_current_timer_delay(const struct delay_timer *timer) in register_current_timer_delay() argument
82 clocks_calc_mult_shift(&new_mult, &new_shift, timer->freq, in register_current_timer_delay()
88 timer, res); in register_current_timer_delay()
94 delay_timer = timer; in register_current_timer_delay()
95 lpj_fine = timer->freq / HZ; in register_current_timer_delay()
/linux-4.4.14/Documentation/watchdog/
Dwatchdog-kernel-api.txt18 a watchdog timer driver then only needs to provide the different routines
19 (operations) that control the watchdog timer (WDT).
23 Each watchdog timer driver that wants to use the WatchDog Timer Driver Core
31 The watchdog_register_device routine registers a watchdog timer device.
35 The watchdog_unregister_device routine deregisters a registered watchdog timer
73 additional information about the watchdog timer itself. (Like it's unique name)
75 * timeout: the watchdog timer's timeout value (in seconds).
76 * min_timeout: the watchdog timer's minimum timeout value (in seconds).
77 * max_timeout: the watchdog timer's maximum timeout value (in seconds).
85 information about the status of the device (Like: is the watchdog timer
[all …]
/linux-4.4.14/arch/um/os-Linux/
Dtime.c43 int os_timer_create(void* timer) { in os_timer_create() argument
45 timer_t* t = timer; in os_timer_create()
60 int os_timer_set_interval(void* timer, void* i) in os_timer_set_interval() argument
64 timer_t* t = timer; in os_timer_set_interval()
100 long os_timer_remain(void* timer) in os_timer_remain() argument
103 timer_t* t = timer; in os_timer_remain()
/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_catas.c144 mod_timer(&dev->catas_err.timer, in poll_catas()
152 init_timer(&dev->catas_err.timer); in mthca_start_catas_poll()
167 dev->catas_err.timer.data = (unsigned long) dev; in mthca_start_catas_poll()
168 dev->catas_err.timer.function = poll_catas; in mthca_start_catas_poll()
169 dev->catas_err.timer.expires = jiffies + MTHCA_CATAS_POLL_INTERVAL; in mthca_start_catas_poll()
171 add_timer(&dev->catas_err.timer); in mthca_start_catas_poll()
176 del_timer_sync(&dev->catas_err.timer); in mthca_stop_catas_poll()
/linux-4.4.14/Documentation/devicetree/bindings/nios2/
Dtimer.txt5 - compatible : should be "altr,timer-1.0"
8 - interrupts : Should contain the timer interrupt number
13 timer {
14 compatible = "altr,timer-1.0";
/linux-4.4.14/arch/arm/mach-footbridge/
DMakefile15 obj-$(CONFIG_ARCH_CATS) += cats-hw.o isa-timer.o
16 obj-$(CONFIG_ARCH_EBSA285) += ebsa285.o dc21285-timer.o
17 obj-$(CONFIG_ARCH_NETWINDER) += netwinder-hw.o isa-timer.o
18 obj-$(CONFIG_ARCH_PERSONAL_SERVER) += personal.o dc21285-timer.o
Ddc21285.c189 struct timer_list *timer = dev_id; in dc21285_serr_irq() local
203 timer->expires = jiffies + HZ; in dc21285_serr_irq()
204 add_timer(timer); in dc21285_serr_irq()
233 struct timer_list *timer = dev_id; in dc21285_parity_irq() local
247 timer->expires = jiffies + HZ; in dc21285_parity_irq()
248 add_timer(timer); in dc21285_parity_irq()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dbtcoex.c88 struct timer_list timer; member
302 del_timer_sync(&btci->timer); in brcmf_btcoex_handler()
313 mod_timer(&btci->timer, btci->timer.expires); in brcmf_btcoex_handler()
316 mod_timer(&btci->timer, in brcmf_btcoex_handler()
335 mod_timer(&btci->timer, in brcmf_btcoex_handler()
385 init_timer(&btci->timer); in brcmf_btcoex_attach()
386 btci->timer.data = (ulong)btci; in brcmf_btcoex_attach()
387 btci->timer.function = brcmf_btcoex_timerfunc; in brcmf_btcoex_attach()
411 del_timer_sync(&cfg->btcoex->timer); in brcmf_btcoex_detach()
445 del_timer_sync(&btci->timer); in brcmf_btcoex_dhcp_end()
/linux-4.4.14/arch/mips/include/asm/netlogic/xlp-hal/
Dpic.h269 nlm_pic_read_timer(uint64_t base, int timer) in nlm_pic_read_timer() argument
271 return nlm_read_pic_reg(base, PIC_TIMER_COUNT(timer)); in nlm_pic_read_timer()
275 nlm_pic_read_timer32(uint64_t base, int timer) in nlm_pic_read_timer32() argument
277 return (uint32_t)nlm_read_pic_reg(base, PIC_TIMER_COUNT(timer)); in nlm_pic_read_timer32()
281 nlm_pic_write_timer(uint64_t base, int timer, uint64_t value) in nlm_pic_write_timer() argument
283 nlm_write_pic_reg(base, PIC_TIMER_COUNT(timer), value); in nlm_pic_write_timer()
287 nlm_pic_set_timer(uint64_t base, int timer, uint64_t value, int irq, int cpu) in nlm_pic_set_timer() argument
293 nlm_write_pic_reg(base, PIC_TIMER_MAXVAL(timer), value); in nlm_pic_set_timer()
294 nlm_pic_write_irt_direct(base, PIC_IRT_TIMER_INDEX(timer), in nlm_pic_set_timer()
298 pic_ctrl |= (1 << (PIC_CTRL_STE + timer)); in nlm_pic_set_timer()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dbase.c89 .timer = nv04_timer_new,
110 .timer = nv04_timer_new,
132 .timer = nv04_timer_new,
152 .timer = nv04_timer_new,
174 .timer = nv04_timer_new,
196 .timer = nv04_timer_new,
218 .timer = nv04_timer_new,
240 .timer = nv04_timer_new,
262 .timer = nv04_timer_new,
284 .timer = nv04_timer_new,
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/arm/bcm/
Dbrcm,bcm63138.txt56 Two nodes are required for software reboot: a timer node and a syscon-reboot node.
60 - compatible: Must be "brcm,bcm6328-timer", "syscon"
67 BCM6328-style timer:
75 timer: timer@80 {
76 compatible = "brcm,bcm6328-timer", "syscon";
82 regmap = <&timer>;
/linux-4.4.14/drivers/oprofile/
Doprof.c36 static int timer = 0; variable
252 if (!timer && !oprofilefs_register()) in oprofile_init()
260 if (timer || op_nmi_timer_init(&oprofile_ops)) { in oprofile_init()
281 module_param_named(timer, timer, int, 0644);
282 MODULE_PARM_DESC(timer, "force use of timer interrupt");
/linux-4.4.14/Documentation/virtual/kvm/arm/
Dvgic-mapped-irqs.txt11 architected timer, which itself supports virtualization, and therefore
70 handled on the host (see details on the timer as an example below). For other
138 The architected timer is a device that signals interrupts with level
139 triggered semantics. The timer hardware is directly accessed by VCPUs
140 which program the timer to fire at some point in time. Each VCPU on a
141 system programs the timer to fire at different times, and therefore the
143 context-switching the timer state along with each VCPU thread.
152 5. KVM stores the timer state to memory and disables the hardware timer
153 6. KVM schedules a soft timer to fire in T+(100 - time since step 2)
155 8. The soft timer fires, waking up the VCPU thread
[all …]
/linux-4.4.14/kernel/
DKconfig.hz9 Allows the configuration of the timer frequency. It is customary
10 to have the timer interrupt run at 1000 Hz but 100 Hz may be more
13 contention and cacheline bounces as a result of timer interrupts.
14 Note that the timer interrupt occurs on each processor in an SMP
15 environment leading to NR_CPUS * HZ number of timer interrupts
24 too many timer interrupts are occurring.
/linux-4.4.14/drivers/net/wan/
Dhdlc_cisco.c56 struct timer_list timer; member
278 st->timer.expires = jiffies + st->settings.interval * HZ; in cisco_timer()
279 st->timer.function = cisco_timer; in cisco_timer()
280 st->timer.data = arg; in cisco_timer()
281 add_timer(&st->timer); in cisco_timer()
296 init_timer(&st->timer); in cisco_start()
297 st->timer.expires = jiffies + HZ; /* First poll after 1 s */ in cisco_start()
298 st->timer.function = cisco_timer; in cisco_start()
299 st->timer.data = (unsigned long)dev; in cisco_start()
300 add_timer(&st->timer); in cisco_start()
[all …]
/linux-4.4.14/drivers/watchdog/
Dmpc8xxx_wdt.c56 struct timer_list timer; member
90 mod_timer(&ddata->timer, jiffies + HZ * ddata->wdd.timeout / 2); in mpc8xxx_wdt_timer_ping()
108 del_timer_sync(&ddata->timer); in mpc8xxx_wdt_start()
127 mod_timer(&ddata->timer, jiffies); in mpc8xxx_wdt_stop()
177 setup_timer(&ddata->timer, mpc8xxx_wdt_timer_ping, in mpc8xxx_wdt_probe()
205 mod_timer(&ddata->timer, jiffies); in mpc8xxx_wdt_probe()
217 del_timer_sync(&ddata->timer); in mpc8xxx_wdt_remove()
Dep93xx_wdt.c51 static struct timer_list timer; variable
66 mod_timer(&timer, jiffies + WDT_INTERVAL); in ep93xx_wdt_timer_ping()
74 mod_timer(&timer, jiffies + WDT_INTERVAL); in ep93xx_wdt_start()
81 del_timer_sync(&timer); in ep93xx_wdt_stop()
139 setup_timer(&timer, ep93xx_wdt_timer_ping, 1); in ep93xx_wdt_probe()
Dshwdt.c82 struct timer_list timer; member
97 mod_timer(&wdt->timer, next_ping_period(clock_division_ratio)); in sh_wdt_start()
136 del_timer(&wdt->timer); in sh_wdt_stop()
193 mod_timer(&wdt->timer, next_ping_period(clock_division_ratio)); in sh_wdt_ping()
278 init_timer(&wdt->timer); in sh_wdt_probe()
279 wdt->timer.function = sh_wdt_ping; in sh_wdt_probe()
280 wdt->timer.data = (unsigned long)wdt; in sh_wdt_probe()
281 wdt->timer.expires = next_ping_period(clock_division_ratio); in sh_wdt_probe()
DKconfig35 Say Y here if you want to use the new watchdog timer driver core.
36 This driver provides a framework for all watchdog timer drivers
44 to stop the timer if the process managing it closes the file
155 tristate "Xilinx Watchdog timer"
173 ARM Primecell SP805 Watchdog timer. This will reboot your system when
180 Watchdog timer embedded into AT91RM9200 chips. This will reboot your
188 Watchdog timer embedded into AT91SAM9X and AT91CAP9 chips. This will
196 Atmel SAMA5D4 watchdog timer is embedded into SAMA5D4 chips.
206 timer in the Xilinx Zynq.
236 Say Y here if to include support for the watchdog timer
[all …]
Dimx2_wdt.c65 struct timer_list timer; /* Pings the watchdog when closed */ member
161 mod_timer(&wdev->timer, jiffies + wdog->timeout * HZ / 2); in imx2_wdt_timer_ping()
182 del_timer_sync(&wdev->timer); in imx2_wdt_start()
280 setup_timer(&wdev->timer, imx2_wdt_timer_ping, (unsigned long)wdog); in imx2_wdt_probe()
323 del_timer_sync(&wdev->timer); in imx2_wdt_remove()
340 del_timer_sync(&wdev->timer); in imx2_wdt_shutdown()
361 del_timer_sync(&wdev->timer); in imx2_wdt_suspend()
398 mod_timer(&wdev->timer, in imx2_wdt_resume()
Dvia_wdt.c71 static DEFINE_TIMER(timer, wdt_timer_tick, 0, 0);
96 mod_timer(&timer, jiffies + WDT_HEARTBEAT); in wdt_timer_tick()
115 mod_timer(&timer, jiffies + WDT_HEARTBEAT); in wdt_start()
219 mod_timer(&timer, jiffies + WDT_HEARTBEAT); in wdt_probe()
236 del_timer_sync(&timer); in wdt_remove()
Dpika_wdt.c54 struct timer_list timer; /* The timer that pings the watchdog */ member
93 mod_timer(&pikawdt_private.timer, jiffies + WDT_TIMEOUT); in pikawdt_ping()
107 mod_timer(&pikawdt_private.timer, jiffies + WDT_TIMEOUT); in pikawdt_start()
131 del_timer(&pikawdt_private.timer); in pikawdt_release()
272 setup_timer(&pikawdt_private.timer, pikawdt_ping, 0); in pikawdt_init()
Dcpu5wdt.c64 struct timer_list timer; member
86 mod_timer(&cpu5wdt_device.timer, jiffies + CPU5WDT_INTERVAL); in cpu5wdt_trigger()
116 mod_timer(&cpu5wdt_device.timer, jiffies + CPU5WDT_INTERVAL); in cpu5wdt_start()
227 setup_timer(&cpu5wdt_device.timer, cpu5wdt_trigger, 0); in cpu5wdt_init()
268 del_timer(&cpu5wdt_device.timer); in cpu5wdt_exit()
Dgpio_wdt.c40 struct timer_list timer; member
65 mod_timer(&priv->timer, jiffies + priv->hw_margin); in gpio_wdt_hwping()
106 mod_timer(&priv->timer, 0); in gpio_wdt_stop()
135 mod_timer(&priv->timer, 0); in gpio_wdt_notify_sys()
225 setup_timer(&priv->timer, gpio_wdt_hwping, (unsigned long)&priv->wdd); in gpio_wdt_probe()
250 del_timer_sync(&priv->timer); in gpio_wdt_remove()
Ddw_wdt.c67 struct timer_list timer; member
165 mod_timer(&dw_wdt.timer, jiffies + WDT_TIMEOUT); in dw_wdt_ping()
219 mod_timer(&dw_wdt.timer, jiffies + WDT_TIMEOUT); in dw_wdt_write()
279 del_timer(&dw_wdt.timer); in dw_wdt_release()
358 setup_timer(&dw_wdt.timer, dw_wdt_ping, 0); in dw_wdt_drv_probe()
359 mod_timer(&dw_wdt.timer, jiffies + WDT_TIMEOUT); in dw_wdt_drv_probe()
/linux-4.4.14/arch/microblaze/kernel/
Dtimer.c246 static void __init xilinx_timer_init(struct device_node *timer) in xilinx_timer_init() argument
258 timer_baseaddr = of_iomap(timer, 0); in xilinx_timer_init()
273 irq = irq_of_parse_and_map(timer, 0); in xilinx_timer_init()
275 of_property_read_u32(timer, "xlnx,one-timer-only", &timer_num); in xilinx_timer_init()
281 pr_info("%s: irq=%d\n", timer->full_name, irq); in xilinx_timer_init()
283 clk = of_clk_get(timer, 0); in xilinx_timer_init()
287 of_property_read_u32(timer, "clock-frequency", in xilinx_timer_init()
/linux-4.4.14/Documentation/devicetree/bindings/watchdog/
Ddigicolor-wdt.txt1 Conexant Digicolor SoCs Watchdog timer
5 timer counters. The first timer (called "Timer A") is the only one that can be
12 - clocks : phandle; specifies the clock that drives the timer
/linux-4.4.14/net/ax25/
Dax25_timer.c44 setup_timer(&ax25->timer, ax25_heartbeat_expiry, (unsigned long)ax25); in ax25_setup_timers()
54 mod_timer(&ax25->timer, jiffies + 5 * HZ); in ax25_start_heartbeat()
85 del_timer(&ax25->timer); in ax25_stop_heartbeat()
113 unsigned long ax25_display_timer(struct timer_list *timer) in ax25_display_timer() argument
115 if (!timer_pending(timer)) in ax25_display_timer()
118 return timer->expires - jiffies; in ax25_display_timer()
/linux-4.4.14/drivers/md/bcache/
Dstats.c124 if (del_timer_sync(&acc->timer)) in bch_cache_accounting_destroy()
175 acc->timer.expires += accounting_delay; in scale_accounting()
178 add_timer(&acc->timer); in scale_accounting()
236 init_timer(&acc->timer); in bch_cache_accounting_init()
237 acc->timer.expires = jiffies + accounting_delay; in bch_cache_accounting_init()
238 acc->timer.data = (unsigned long) acc; in bch_cache_accounting_init()
239 acc->timer.function = scale_accounting; in bch_cache_accounting_init()
240 add_timer(&acc->timer); in bch_cache_accounting_init()
/linux-4.4.14/Documentation/networking/
Dproc_net_tcp.txt22 | | | |----------> number of jiffies until timer expires
43 0 no timer is pending
44 1 retransmit-timer is pending
45 2 another timer (e.g. delayed ack or keepalive) is pending
48 4 zero window probe timer is pending
/linux-4.4.14/include/linux/usb/
Dotg-fsm.h132 void (*add_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
133 void (*del_timer)(struct otg_fsm *fsm, enum otg_fsm_timer timer);
214 static inline int otg_add_timer(struct otg_fsm *fsm, enum otg_fsm_timer timer) in otg_add_timer() argument
218 fsm->ops->add_timer(fsm, timer); in otg_add_timer()
222 static inline int otg_del_timer(struct otg_fsm *fsm, enum otg_fsm_timer timer) in otg_del_timer() argument
226 fsm->ops->del_timer(fsm, timer); in otg_del_timer()
/linux-4.4.14/arch/mips/cavium-octeon/
Doct_ilm.c116 static void start_timer(int timer, u64 interval) in start_timer() argument
126 cvmx_write_csr(CVMX_CIU_TIMX(timer), timx.u64); in start_timer()
128 timx.u64 = cvmx_read_csr(CVMX_CIU_TIMX(timer)); in start_timer()
156 static void disable_timer(int timer) in disable_timer() argument
162 cvmx_write_csr(CVMX_CIU_TIMX(timer), timx.u64); in disable_timer()
164 timx.u64 = cvmx_read_csr(CVMX_CIU_TIMX(timer)); in disable_timer()
/linux-4.4.14/drivers/scsi/isci/
Disci.h496 struct timer_list timer; member
503 tmr->timer.function = fn; in sci_init_timer()
504 tmr->timer.data = (unsigned long) tmr; in sci_init_timer()
506 init_timer(&tmr->timer); in sci_init_timer()
512 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer()
518 del_timer(&tmr->timer); in sci_del_timer()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dhealth.c249 mod_timer(&health->timer, get_next_poll_jiffies()); in poll_health()
264 mod_timer(&health->timer, get_next_poll_jiffies()); in poll_health()
278 init_timer(&health->timer); in mlx5_start_health_poll()
282 health->timer.data = (unsigned long)dev; in mlx5_start_health_poll()
283 health->timer.function = poll_health; in mlx5_start_health_poll()
284 health->timer.expires = round_jiffies(jiffies + MLX5_HEALTH_POLL_INTERVAL); in mlx5_start_health_poll()
285 add_timer(&health->timer); in mlx5_start_health_poll()
292 del_timer_sync(&health->timer); in mlx5_stop_health_poll()
/linux-4.4.14/drivers/staging/iio/Documentation/
Dsysfs-bus-iio-adc-ad7280a17 allows the user to set the timer to a value from 0 minutes to
18 36.9 minutes. The resolution of the timer is 71.5 sec.
20 timer value is set 0, the timer is disabled. The cell balance
/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-ciu-defs.h760 uint64_t timer:6; member
764 uint64_t timer:6;
774 uint64_t timer:6; member
778 uint64_t timer:6;
794 uint64_t timer:6; member
798 uint64_t timer:6;
808 uint64_t timer:6; member
812 uint64_t timer:6;
828 uint64_t timer:6; member
832 uint64_t timer:6;
[all …]
/linux-4.4.14/drivers/power/reset/
Dltc2952-poweroff.c102 static enum hrtimer_restart ltc2952_poweroff_timer_wde(struct hrtimer *timer) in ltc2952_poweroff_timer_wde() argument
107 struct ltc2952_poweroff *data = to_ltc2952(timer, timer_wde); in ltc2952_poweroff_timer_wde()
115 now = hrtimer_cb_get_time(timer); in ltc2952_poweroff_timer_wde()
116 overruns = hrtimer_forward(timer, now, data->wde_interval); in ltc2952_poweroff_timer_wde()
127 ltc2952_poweroff_timer_trigger(struct hrtimer *timer) in ltc2952_poweroff_timer_trigger() argument
129 struct ltc2952_poweroff *data = to_ltc2952(timer, timer_trigger); in ltc2952_poweroff_timer_trigger()
/linux-4.4.14/drivers/isdn/hisax/
Dsaphir.c147 if (cs->hw.saphir.timer.function) in saphir_interrupt()
148 mod_timer(&cs->hw.saphir.timer, jiffies + 1 * HZ); in saphir_interrupt()
170 mod_timer(&cs->hw.saphir.timer, jiffies + 1 * HZ); in SaphirWatchDog()
177 del_timer(&cs->hw.saphir.timer); in release_io_saphir()
178 cs->hw.saphir.timer.function = NULL; in release_io_saphir()
271 cs->hw.saphir.timer.function = (void *) SaphirWatchDog; in setup_saphir()
272 cs->hw.saphir.timer.data = (long) cs; in setup_saphir()
273 init_timer(&cs->hw.saphir.timer); in setup_saphir()
274 cs->hw.saphir.timer.expires = jiffies + 4 * HZ; in setup_saphir()
275 add_timer(&cs->hw.saphir.timer); in setup_saphir()
Dl3_1tr6.c49 L3AddTimer(&pc->timer, T308, CC_T308_1); in l3_1tr6_release_req()
153 L3DelTimer(&pc->timer); in l3_1tr6_setup_req()
154 L3AddTimer(&pc->timer, T303, CC_T303); in l3_1tr6_setup_req()
232 L3DelTimer(&pc->timer); in l3_1tr6_setup_ack()
250 L3AddTimer(&pc->timer, T304, CC_T304); in l3_1tr6_setup_ack()
260 L3DelTimer(&pc->timer); in l3_1tr6_call_sent()
281 L3AddTimer(&pc->timer, T310, CC_T310); in l3_1tr6_call_sent()
292 L3DelTimer(&pc->timer); /* T304 */ in l3_1tr6_alert()
339 L3DelTimer(&pc->timer); /* T310 */ in l3_1tr6_connect()
461 L3DelTimer(&pc->timer); in l3_1tr6_connect_ack()
[all …]
/linux-4.4.14/arch/x86/kvm/
Di8254.c125 remaining = hrtimer_get_remaining(&ps->timer); in __kpit_elapsed()
260 struct hrtimer *timer; in __kvm_migrate_pit_timer() local
265 timer = &pit->pit_state.timer; in __kvm_migrate_pit_timer()
267 if (hrtimer_cancel(timer)) in __kvm_migrate_pit_timer()
268 hrtimer_start_expires(timer, HRTIMER_MODE_ABS); in __kvm_migrate_pit_timer()
274 hrtimer_cancel(&pit->pit_state.timer); in destroy_pit_timer()
319 struct kvm_kpit_state *ps = container_of(data, struct kvm_kpit_state, timer); in pit_timer_fn()
328 hrtimer_add_expires_ns(&ps->timer, ps->period); in pit_timer_fn()
348 hrtimer_cancel(&ps->timer); in create_pit_timer()
353 ps->timer.function = pit_timer_fn; in create_pit_timer()
[all …]
/linux-4.4.14/drivers/char/hw_random/
Dtimeriomem-rng.c42 struct timer_list timer; member
83 mod_timer(&priv->timer, priv->expires); in timeriomem_rng_data_read()
154 setup_timer(&priv->timer, timeriomem_rng_trigger, (unsigned long)priv); in timeriomem_rng_probe()
179 del_timer_sync(&priv->timer); in timeriomem_rng_probe()
189 del_timer_sync(&priv->timer); in timeriomem_rng_remove()
/linux-4.4.14/drivers/leds/trigger/
Dledtrig-heartbeat.c29 struct timer_list timer; member
85 mod_timer(&heartbeat_data->timer, jiffies + delay); in led_heartbeat_function()
132 setup_timer(&heartbeat_data->timer, in heartbeat_trig_activate()
135 led_heartbeat_function(heartbeat_data->timer.data); in heartbeat_trig_activate()
144 del_timer_sync(&heartbeat_data->timer); in heartbeat_trig_deactivate()
/linux-4.4.14/sound/isa/ad1816a/
Dad1816a_lib.c332 if ((status & AD1816A_TIMER_IRQ_PENDING) && chip->timer) in snd_ad1816a_interrupt()
333 snd_timer_interrupt(chip->timer, chip->timer->sticks); in snd_ad1816a_interrupt()
380 static int snd_ad1816a_timer_close(struct snd_timer *timer) in snd_ad1816a_timer_close() argument
382 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_close()
387 static int snd_ad1816a_timer_open(struct snd_timer *timer) in snd_ad1816a_timer_open() argument
389 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_open()
394 static unsigned long snd_ad1816a_timer_resolution(struct snd_timer *timer) in snd_ad1816a_timer_resolution() argument
396 if (snd_BUG_ON(!timer)) in snd_ad1816a_timer_resolution()
402 static int snd_ad1816a_timer_start(struct snd_timer *timer) in snd_ad1816a_timer_start() argument
406 struct snd_ad1816a *chip = snd_timer_chip(timer); in snd_ad1816a_timer_start()
[all …]
/linux-4.4.14/drivers/staging/media/lirc/
Dlirc_parallel.c74 static unsigned int timer; variable
260 if (timer == 0) { in lirc_lirc_irq_handler()
265 timer = init_lirc_timer(); in lirc_lirc_irq_handler()
272 timeout = timer/10; /* timeout after 1/10 sec. */ in lirc_lirc_irq_handler()
295 do_div(helper, timer); in lirc_lirc_irq_handler()
388 if (timer == 0) { in lirc_write()
390 timer = init_lirc_timer(); in lirc_write()
391 if (timer == 0) { in lirc_write()
401 helper = ((__u64) wbuf[i])*timer; in lirc_write()
678 timer = init_lirc_timer(); in lirc_parallel_init()
[all …]
/linux-4.4.14/Documentation/ABI/stable/
Dsysfs-transport-srp15 will disable the dev_loss timer.
24 disable the fast_io_fail timer.
54 the fast_io_fail_tmo timer has not yet fired; "fail-fast"
55 after the fast_io_fail_tmo timer has fired and before the
56 "dev_loss_tmo" timer has fired; "lost" after the
57 "dev_loss_tmo" timer has fired and before the port is finally
/linux-4.4.14/net/tipc/
Ddiscover.c70 struct timer_list timer; member
190 mod_timer(&req->timer, jiffies + req->timer_intv); in disc_update()
256 mod_timer(&req->timer, jiffies + req->timer_intv); in disc_timeout()
293 setup_timer(&req->timer, disc_timeout, (unsigned long)req); in tipc_disc_create()
294 mod_timer(&req->timer, jiffies + req->timer_intv); in tipc_disc_create()
308 del_timer_sync(&req->timer); in tipc_disc_delete()
331 mod_timer(&req->timer, jiffies + req->timer_intv); in tipc_disc_reset()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dcatas.c249 mod_timer(&priv->catas_err.timer, in poll_catas()
273 init_timer(&priv->catas_err.timer); in mlx4_start_catas_poll()
289 priv->catas_err.timer.data = (unsigned long) dev; in mlx4_start_catas_poll()
290 priv->catas_err.timer.function = poll_catas; in mlx4_start_catas_poll()
291 priv->catas_err.timer.expires = in mlx4_start_catas_poll()
293 add_timer(&priv->catas_err.timer); in mlx4_start_catas_poll()
300 del_timer_sync(&priv->catas_err.timer); in mlx4_stop_catas_poll()
/linux-4.4.14/drivers/tty/serial/
Dkgdb_nmi.c95 struct timer_list timer; member
199 priv->timer.expires = jiffies + (HZ/100); in kgdb_nmi_tty_receiver()
200 add_timer(&priv->timer); in kgdb_nmi_tty_receiver()
217 priv->timer.expires = jiffies + (HZ/100); in kgdb_nmi_tty_activate()
218 add_timer(&priv->timer); in kgdb_nmi_tty_activate()
228 del_timer(&priv->timer); in kgdb_nmi_tty_shutdown()
247 setup_timer(&priv->timer, kgdb_nmi_tty_receiver, (unsigned long)priv); in kgdb_nmi_tty_install()
/linux-4.4.14/arch/h8300/boot/dts/
Dh8300h_sim.dts64 timer8: timer@ffff80 {
65 compatible = "renesas,8bit-timer";
72 timer16: timer@ffff68 {
73 compatible = "renesas,16bit-timer";
/linux-4.4.14/sound/pci/ctxfi/
Dcttimer.c38 struct timer_list timer; member
90 mod_timer(&ti->timer, jiffies + interval); in ct_systimer_callback()
96 setup_timer(&ti->timer, ct_systimer_callback, in ct_systimer_init()
107 mod_timer(&ti->timer, in ct_systimer_start()
119 del_timer(&ti->timer); in ct_systimer_stop()
126 try_to_del_timer_sync(&ti->timer); in ct_systimer_prepare()
402 struct ct_timer *timer = data; in ct_timer_interrupt() local
405 if ((status & IT_INT) && timer->ops->interrupt) in ct_timer_interrupt()
406 timer->ops->interrupt(timer); in ct_timer_interrupt()
/linux-4.4.14/Documentation/devicetree/bindings/c6x/
Dtimer64.txt15 - ti,dscr-dev-enable: Device ID used to enable timer IP through DSCR interface.
17 - ti,core-mask: on multi-core SoCs, bitmask of cores allowed to use this timer.
20 timer0: timer@25e0000 {
/linux-4.4.14/drivers/s390/net/
Dctcm_fsms.c266 fsm_deltimer(&ch->timer); in chx_txdone()
307 fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch); in chx_txdone()
315 fsm_deltimer(&ch->timer); in chx_txdone()
342 fsm_deltimer(&ch->timer); in ctcm_chx_txidle()
366 fsm_deltimer(&ch->timer); in chx_rx()
447 fsm_deltimer(&ch->timer); in chx_firstio()
455 fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, in chx_firstio()
473 fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch); in chx_firstio()
483 fsm_deltimer(&ch->timer); in chx_firstio()
519 fsm_deltimer(&ch->timer); in chx_rxidle()
[all …]
/linux-4.4.14/arch/arm64/boot/dts/xilinx/
Dzynqmp.dtsi65 timer {
66 compatible = "arm,armv8-timer";
286 ttc0: timer@ff110000 {
293 timer-width = <32>;
296 ttc1: timer@ff120000 {
303 timer-width = <32>;
306 ttc2: timer@ff130000 {
313 timer-width = <32>;
316 ttc3: timer@ff140000 {
323 timer-width = <32>;
/linux-4.4.14/drivers/s390/cio/
Deadm_sch.c120 del_timer(&private->timer); in eadm_subchannel_set_timeout()
123 if (timer_pending(&private->timer)) { in eadm_subchannel_set_timeout()
124 if (mod_timer(&private->timer, jiffies + expires)) in eadm_subchannel_set_timeout()
127 private->timer.function = eadm_subchannel_timeout; in eadm_subchannel_set_timeout()
128 private->timer.data = (unsigned long) sch; in eadm_subchannel_set_timeout()
129 private->timer.expires = jiffies + expires; in eadm_subchannel_set_timeout()
130 add_timer(&private->timer); in eadm_subchannel_set_timeout()
233 init_timer(&private->timer); in eadm_subchannel_probe()
/linux-4.4.14/arch/powerpc/boot/dts/
Dlite5200.dts66 timer@600 { // General Purpose Timer
73 timer@610 { // General Purpose Timer
79 timer@620 { // General Purpose Timer
85 timer@630 { // General Purpose Timer
91 timer@640 { // General Purpose Timer
97 timer@650 { // General Purpose Timer
103 timer@660 { // General Purpose Timer
109 timer@670 { // General Purpose Timer
/linux-4.4.14/drivers/input/joystick/
Dturbografx.c78 struct timer_list timer; member
119 mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME); in tgfx_timer()
134 mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME); in tgfx_open()
147 del_timer_sync(&tgfx->timer); in tgfx_close()
203 init_timer(&tgfx->timer); in tgfx_attach()
204 tgfx->timer.data = (long) tgfx; in tgfx_attach()
205 tgfx->timer.function = tgfx_timer; in tgfx_attach()

1234567