Home
last modified time | relevance | path

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

1234567

/linux-4.1.27/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.1.27/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()
82 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_set_mode() local
89 writel(TIMER_INTR_MSK, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_set_mode()
90 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_set_mode()
95 writel(0, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_set_mode()
96 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_set_mode()
98 writel(CNTL_STOP_TIMER, timer->timer1 + IO_CONTROL); in zevio_timer_set_mode()
109 struct zevio_timer *timer = dev_id; in zevio_timer_interrupt() local
[all …]
Dbcm2835_timer.c75 struct bcm2835_timer *timer = container_of(evt_dev, in bcm2835_time_set_next_event() local
78 timer->compare); in bcm2835_time_set_next_event()
84 struct bcm2835_timer *timer = dev_id; in bcm2835_time_interrupt() local
86 if (readl_relaxed(timer->control) & timer->match_mask) { in bcm2835_time_interrupt()
87 writel_relaxed(timer->match_mask, timer->control); in bcm2835_time_interrupt()
89 event_handler = ACCESS_ONCE(timer->evt.event_handler); in bcm2835_time_interrupt()
91 event_handler(&timer->evt); in bcm2835_time_interrupt()
103 struct bcm2835_timer *timer; in bcm2835_timer_init() local
122 timer = kzalloc(sizeof(*timer), GFP_KERNEL); in bcm2835_timer_init()
123 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
43 obj-$(CONFIG_CLKSRC_QCOM) += qcom-timer.o
[all …]
Dcs5535-clockevt.c63 static void disable_timer(struct cs5535_mfgpt_timer *timer) in disable_timer() argument
66 cs5535_mfgpt_write(timer, MFGPT_REG_SETUP, in disable_timer()
71 static void start_timer(struct cs5535_mfgpt_timer *timer, uint16_t delta) in start_timer() argument
73 cs5535_mfgpt_write(timer, MFGPT_REG_CMP2, delta); in start_timer()
74 cs5535_mfgpt_write(timer, MFGPT_REG_COUNTER, 0); in start_timer()
76 cs5535_mfgpt_write(timer, MFGPT_REG_SETUP, in start_timer()
140 struct cs5535_mfgpt_timer *timer; in cs5535_mfgpt_init() local
144 timer = cs5535_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING); in cs5535_mfgpt_init()
145 if (!timer) { in cs5535_mfgpt_init()
149 cs5535_event_clock = timer; in cs5535_mfgpt_init()
[all …]
Dmtk_timer.c68 static void mtk_clkevt_time_stop(struct mtk_clock_event_device *evt, u8 timer) in mtk_clkevt_time_stop() argument
72 val = readl(evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_stop()
74 TIMER_CTRL_REG(timer)); in mtk_clkevt_time_stop()
78 unsigned long delay, u8 timer) in mtk_clkevt_time_setup() argument
80 writel(delay, evt->gpt_base + TIMER_CMP_REG(timer)); in mtk_clkevt_time_setup()
84 bool periodic, u8 timer) in mtk_clkevt_time_start() argument
89 writel(GPT_IRQ_ACK(timer), evt->gpt_base + GPT_IRQ_ACK_REG); in mtk_clkevt_time_start()
91 val = readl(evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_start()
102 evt->gpt_base + TIMER_CTRL_REG(timer)); in mtk_clkevt_time_start()
160 mtk_timer_setup(struct mtk_clock_event_device *evt, u8 timer, u8 option) in mtk_timer_setup() argument
[all …]
Dcadence_ttc_timer.c115 static void ttc_set_interval(struct ttc_timer *timer, in ttc_set_interval() argument
121 ctrl_reg = readl_relaxed(timer->base_addr + TTC_CNT_CNTRL_OFFSET); in ttc_set_interval()
123 writel_relaxed(ctrl_reg, timer->base_addr + TTC_CNT_CNTRL_OFFSET); in ttc_set_interval()
125 writel_relaxed(cycles, timer->base_addr + TTC_INTR_VAL_OFFSET); in ttc_set_interval()
133 writel_relaxed(ctrl_reg, timer->base_addr + TTC_CNT_CNTRL_OFFSET); in ttc_set_interval()
147 struct ttc_timer *timer = &ttce->ttc; in ttc_clock_event_interrupt() local
150 readl_relaxed(timer->base_addr + TTC_ISR_OFFSET); in ttc_clock_event_interrupt()
164 struct ttc_timer *timer = &to_ttc_timer_clksrc(cs)->ttc; in __ttc_clocksource_read() local
166 return (cycle_t)readl_relaxed(timer->base_addr + in __ttc_clocksource_read()
187 struct ttc_timer *timer = &ttce->ttc; in ttc_set_next_event() local
[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()
149 keystone_timer_config(timer.hz_period, CLOCK_EVT_MODE_PERIODIC); in keystone_set_mode()
163 struct clock_event_device *event_dev = &timer.event_dev; in keystone_timer_init()
174 timer.base = of_iomap(np, 0); in keystone_timer_init()
175 if (!timer.base) { in keystone_timer_init()
183 iounmap(timer.base); in keystone_timer_init()
210 timer.hz_period = DIV_ROUND_UP(rate, HZ); in keystone_timer_init()
237 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()
DKconfig114 bool "Support for ARM architected timer event stream generation"
119 the ARM architected timer. It is used for waking up CPUs executing
133 This options enables support for the ARM global timer unit
140 Use ARM global timer clock source as sched_clock
165 This is a new clocksource driver for the PWM timer found in
173 Support for Freescale FlexTimer Module (FTM) timer.
198 bool "Renesas CMT timer driver" if COMPILE_TEST
208 bool "Renesas MTU2 timer driver" if COMPILE_TEST
215 This hardware comes with 16 bit-timer registers.
218 bool "Renesas TMU timer driver" if COMPILE_TEST
[all …]
Darm_arch_timer.c83 struct arch_timer *timer = to_arch_timer(clk); in arch_timer_reg_write() local
86 writel_relaxed(val, timer->base + CNTP_CTL); in arch_timer_reg_write()
89 writel_relaxed(val, timer->base + CNTP_TVAL); in arch_timer_reg_write()
93 struct arch_timer *timer = to_arch_timer(clk); in arch_timer_reg_write() local
96 writel_relaxed(val, timer->base + CNTV_CTL); in arch_timer_reg_write()
99 writel_relaxed(val, timer->base + CNTV_TVAL); in arch_timer_reg_write()
114 struct arch_timer *timer = to_arch_timer(clk); in arch_timer_reg_read() local
117 val = readl_relaxed(timer->base + CNTP_CTL); in arch_timer_reg_read()
120 val = readl_relaxed(timer->base + CNTP_TVAL); in arch_timer_reg_read()
124 struct arch_timer *timer = to_arch_timer(clk); in arch_timer_reg_read() local
[all …]
/linux-4.1.27/include/linux/
Dhrtimer.h129 struct hrtimer timer; member
200 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires() argument
202 timer->node.expires = time; in hrtimer_set_expires()
203 timer->_softexpires = time; in hrtimer_set_expires()
206 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range() argument
208 timer->_softexpires = time; in hrtimer_set_expires_range()
209 timer->node.expires = ktime_add_safe(time, delta); in hrtimer_set_expires_range()
212 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, unsigned long … in hrtimer_set_expires_range_ns() argument
214 timer->_softexpires = time; in hrtimer_set_expires_range_ns()
215 timer->node.expires = ktime_add_safe(time, ns_to_ktime(delta)); in hrtimer_set_expires_range_ns()
[all …]
Dtimer.h94 void init_timer_key(struct timer_list *timer, unsigned int flags,
98 extern void init_timer_on_stack_key(struct timer_list *timer,
101 extern void destroy_timer_on_stack(struct timer_list *timer);
103 static inline void destroy_timer_on_stack(struct timer_list *timer) { } in destroy_timer_on_stack() argument
104 static inline void init_timer_on_stack_key(struct timer_list *timer, in init_timer_on_stack_key() argument
108 init_timer_key(timer, flags, name, key); in init_timer_on_stack_key()
131 #define init_timer(timer) \ argument
132 __init_timer((timer), 0)
133 #define init_timer_deferrable(timer) \ argument
134 __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.1.27/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.1.27/kernel/time/
Dtimer.c124 timer_set_base(struct timer_list *timer, struct tvec_base *new_base) in timer_set_base() argument
126 unsigned long flags = (unsigned long)timer->base & TIMER_FLAG_MASK; in timer_set_base()
128 timer->base = (struct tvec_base *)((unsigned long)(new_base) | flags); in timer_set_base()
346 void set_timer_slack(struct timer_list *timer, int slack_hz) in set_timer_slack() argument
348 timer->slack = slack_hz; in set_timer_slack()
367 __internal_add_timer(struct tvec_base *base, struct timer_list *timer) in __internal_add_timer() argument
369 unsigned long expires = timer->expires; in __internal_add_timer()
407 list_add_tail(&timer->entry, vec); in __internal_add_timer()
410 static void internal_add_timer(struct tvec_base *base, struct timer_list *timer) in internal_add_timer() argument
413 __internal_add_timer(base, timer); in internal_add_timer()
[all …]
Dhrtimer.c152 struct hrtimer_clock_base *lock_hrtimer_base(const struct hrtimer *timer, in lock_hrtimer_base() argument
158 base = timer->base; in lock_hrtimer_base()
161 if (likely(base == timer->base)) in lock_hrtimer_base()
178 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() argument
186 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_check_target()
197 switch_hrtimer_base(struct hrtimer *timer, struct hrtimer_clock_base *base, in switch_hrtimer_base() argument
220 if (unlikely(hrtimer_callback_running(timer))) in switch_hrtimer_base()
224 timer->base = NULL; in switch_hrtimer_base()
228 if (cpu != this_cpu && hrtimer_check_target(timer, new_base)) { in switch_hrtimer_base()
232 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()
365 static int posix_cpu_timer_del(struct k_itimer *timer) in posix_cpu_timer_del() argument
370 struct task_struct *p = timer->it.cpu.task; in posix_cpu_timer_del()
384 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()
353 struct hrtimer *timer = &timr->it.real.timer; in schedule_next_timer() local
358 timr->it_overrun += (unsigned int) hrtimer_forward(timer, in schedule_next_timer()
359 timer->base->get_time(), in schedule_next_timer()
[all …]
Dtimer_list.c57 print_timer(struct seq_file *m, struct hrtimer *taddr, struct hrtimer *timer, in print_timer() argument
66 print_name_offset(m, timer->function); in print_timer()
67 SEQ_printf(m, ", S:%02lx", timer->state); in print_timer()
70 print_name_offset(m, timer->start_site); in print_timer()
71 memcpy(tmp, timer->start_comm, TASK_COMM_LEN); in print_timer()
73 SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); in print_timer()
77 (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)), in print_timer()
78 (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)), in print_timer()
79 (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now), in print_timer()
80 (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); 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()
234 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.1.27/arch/s390/kernel/
Dvtime.c34 u64 timer; in get_vtimer() local
36 asm volatile("stpt %0" : "=m" (timer)); in get_vtimer()
37 return timer; in get_vtimer()
42 u64 timer; in set_vtimer() local
47 : "=m" (timer) : "m" (expires)); in set_vtimer()
48 S390_lowcore.system_timer += S390_lowcore.last_update_timer - timer; in set_vtimer()
69 u64 timer, clock, user, system, steal; in do_account_vtime() local
73 timer = S390_lowcore.last_update_timer; in do_account_vtime()
84 S390_lowcore.system_timer += timer - S390_lowcore.last_update_timer; in do_account_vtime()
171 u64 timer, system, system_scaled; in vtime_account_irq_enter() local
[all …]
/linux-4.1.27/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
138 &timer); in snd_hrtimer_init()
142 timer->module = THIS_MODULE; in snd_hrtimer_init()
143 strcpy(timer->name, "HR timer"); in snd_hrtimer_init()
144 timer->hw = hrtimer_hw; in snd_hrtimer_init()
145 timer->hw.resolution = resolution; in snd_hrtimer_init()
[all …]
DKconfig105 tristate "HR-timer backend support"
109 Say Y here to enable HR-timer backend for ALSA timer. ALSA uses
117 bool "Use HR-timer as default sequencer timer"
121 Say Y here to use the HR-timer backend as the default sequencer
122 timer.
129 Say Y here to enable RTC timer support for ALSA. ALSA uses
130 the RTC timer as a precise timing source and maps the RTC
131 timer to ALSA's timer interface. The ALSA sequencer code also
141 bool "Use RTC as default sequencer timer"
146 Say Y here to use the RTC timer as the default sequencer
[all …]
/linux-4.1.27/virt/kvm/arm/
Darch_timer.c40 static bool timer_is_armed(struct arch_timer_cpu *timer) in timer_is_armed() argument
42 return timer->armed; in timer_is_armed()
46 static void timer_arm(struct arch_timer_cpu *timer, u64 ns) in timer_arm() argument
48 timer->armed = true; in timer_arm()
49 hrtimer_start(&timer->timer, ktime_add_ns(ktime_get(), ns), in timer_arm()
53 static void timer_disarm(struct arch_timer_cpu *timer) in timer_disarm() argument
55 if (timer_is_armed(timer)) { in timer_disarm()
56 hrtimer_cancel(&timer->timer); in timer_disarm()
57 cancel_work_sync(&timer->expired); in timer_disarm()
58 timer->armed = false; in timer_disarm()
[all …]
/linux-4.1.27/arch/nios2/kernel/
Dtime.c39 struct nios2_timer timer; member
44 struct nios2_timer timer; member
60 static u16 timer_readw(struct nios2_timer *timer, u32 offs) in timer_readw() argument
62 return readw(timer->base + offs); in timer_readw()
65 static void timer_writew(struct nios2_timer *timer, u16 val, u32 offs) in timer_writew() argument
67 writew(val, timer->base + offs); in timer_writew()
70 static inline unsigned long read_timersnapshot(struct nios2_timer *timer) in read_timersnapshot() argument
74 timer_writew(timer, 0, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot()
75 count = timer_readw(timer, ALTERA_TIMER_SNAPH_REG) << 16 | in read_timersnapshot()
76 timer_readw(timer, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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, unsigned long expires),
48 TP_ARGS(timer, expires),
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.dtsi76 local-timer@ad0600 {
77 compatible = "arm,cortex-a9-twd-timer";
215 timer0: timer@2c00 {
216 compatible = "snps,dw-apb-timer";
220 clock-names = "timer";
224 timer1: timer@2c14 {
225 compatible = "snps,dw-apb-timer";
229 clock-names = "timer";
233 timer2: timer@2c28 {
234 compatible = "snps,dw-apb-timer";
[all …]
Dberlin2.dtsi104 local-timer@ad0600 {
105 compatible = "arm,cortex-a9-twd-timer";
232 timer0: timer@2c00 {
233 compatible = "snps,dw-apb-timer";
237 clock-names = "timer";
241 timer1: timer@2c14 {
242 compatible = "snps,dw-apb-timer";
246 clock-names = "timer";
250 timer2: timer@2c28 {
251 compatible = "snps,dw-apb-timer";
[all …]
Dberlin2q.dtsi112 local-timer@ad0600 {
113 compatible = "arm,cortex-a9-twd-timer";
289 timer0: timer@2c00 {
290 compatible = "snps,dw-apb-timer";
293 clock-names = "timer";
297 timer1: timer@2c14 {
298 compatible = "snps,dw-apb-timer";
301 clock-names = "timer";
304 timer2: timer@2c28 {
305 compatible = "snps,dw-apb-timer";
[all …]
Domap3.dtsi589 timer1: timer@48318000 {
590 compatible = "ti,omap3430-timer";
594 ti,timer-alwon;
597 timer2: timer@49032000 {
598 compatible = "ti,omap3430-timer";
604 timer3: timer@49034000 {
605 compatible = "ti,omap3430-timer";
611 timer4: timer@49036000 {
612 compatible = "ti,omap3430-timer";
618 timer5: timer@49038000 {
[all …]
Dam4372.dtsi207 timer1: timer@44e31000 {
208 compatible = "ti,am4372-timer-1ms","ti,am335x-timer-1ms";
211 ti,timer-alwon;
215 timer2: timer@48040000 {
216 compatible = "ti,am4372-timer","ti,am335x-timer";
222 timer3: timer@48042000 {
223 compatible = "ti,am4372-timer","ti,am335x-timer";
230 timer4: timer@48044000 {
231 compatible = "ti,am4372-timer","ti,am335x-timer";
234 ti,timer-pwm;
[all …]
Defm32gg.dtsi137 timer0: timer@40010000 {
138 compatible = "efm32,timer";
144 timer1: timer@40010400 {
145 compatible = "efm32,timer";
151 timer2: timer@40010800 {
152 compatible = "efm32,timer";
158 timer3: timer@40010c00 {
159 compatible = "efm32,timer";
Domap4.dtsi69 local-timer@48240600 {
70 compatible = "arm,cortex-a9-twd-timer";
730 timer1: timer@4a318000 {
731 compatible = "ti,omap3430-timer";
735 ti,timer-alwon;
738 timer2: timer@48032000 {
739 compatible = "ti,omap3430-timer";
745 timer3: timer@48034000 {
746 compatible = "ti,omap4430-timer";
752 timer4: timer@48036000 {
[all …]
Domap5.dtsi75 timer {
76 compatible = "arm,armv7-timer";
720 timer1: timer@4ae18000 {
721 compatible = "ti,omap5430-timer";
725 ti,timer-alwon;
728 timer2: timer@48032000 {
729 compatible = "ti,omap5430-timer";
735 timer3: timer@48034000 {
736 compatible = "ti,omap5430-timer";
742 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.dtsi295 timer1: timer@4802e000 {
296 compatible = "ti,dm816-timer";
300 ti,timer-alwon;
303 timer2: timer@48040000 {
304 compatible = "ti,dm816-timer";
310 timer3: timer@48042000 {
311 compatible = "ti,dm816-timer";
317 timer4: timer@48044000 {
318 compatible = "ti,dm816-timer";
324 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";
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";
Dam33xx.dtsi390 timer1: timer@44e31000 {
391 compatible = "ti,am335x-timer-1ms";
395 ti,timer-alwon;
398 timer2: timer@48040000 {
399 compatible = "ti,am335x-timer";
405 timer3: timer@48042000 {
406 compatible = "ti,am335x-timer";
412 timer4: timer@48044000 {
413 compatible = "ti,am335x-timer";
417 ti,timer-pwm;
[all …]
Ddra7.dtsi46 timer {
47 compatible = "arm,armv7-timer";
677 timer1: timer@4ae18000 {
678 compatible = "ti,omap5430-timer";
682 ti,timer-alwon;
685 timer2: timer@48032000 {
686 compatible = "ti,omap5430-timer";
692 timer3: timer@48034000 {
693 compatible = "ti,omap5430-timer";
699 timer4: timer@48036000 {
[all …]
/linux-4.1.27/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";
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";
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";
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";
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 {
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";
Dmediatek,mtk-timer.txt5 - compatible: Should be "mediatek,mt6577-timer"
7 - clocks: Clocks driving the timer hardware. This list should include two
12 timer@10008000 {
13 compatible = "mediatek,mt6577-timer";
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.1.27/drivers/staging/lustre/lnet/selftest/
Dtimer.c71 stt_add_timer(stt_timer_t *timer) in stt_add_timer() argument
79 LASSERT(timer->stt_func != NULL); in stt_add_timer()
80 LASSERT(list_empty(&timer->stt_list)); in stt_add_timer()
81 LASSERT(cfs_time_after(timer->stt_expires, get_seconds())); in stt_add_timer()
84 list_for_each_prev(pos, STTIMER_SLOT(timer->stt_expires)) { in stt_add_timer()
87 if (cfs_time_aftereq(timer->stt_expires, old->stt_expires)) in stt_add_timer()
90 list_add(&timer->stt_list, pos); in stt_add_timer()
105 stt_del_timer(stt_timer_t *timer) in stt_del_timer() argument
114 if (!list_empty(&timer->stt_list)) { in stt_del_timer()
116 list_del_init(&timer->stt_list); in stt_del_timer()
[all …]
Dtimer.h48 void stt_add_timer (stt_timer_t *timer);
49 int stt_del_timer (stt_timer_t *timer);
/linux-4.1.27/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.1.27/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 …]
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";
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 twd-timer@2c000600 {
25 compatible = "arm,arm11mp-twd-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";
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.1.27/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";
Dgtm.txt11 - clock-frequency : specifies the frequency driving the timer.
15 timer@500 {
24 timer@440 {
/linux-4.1.27/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.1.27/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.1.27/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()
183 REG_WR(timer, timer_base, rw_tmr0_ctrl, ctrl); in crisv32_clkevt_mode()
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.1.27/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.1.27/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);
587 enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer) in rtc_pie_update_irq() argument
592 rtc = container_of(timer, struct rtc_device, pie_timer); in rtc_pie_update_irq()
595 count = hrtimer_forward_now(timer, period); in rtc_pie_update_irq()
794 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer) in rtc_timer_enqueue() argument
796 timer->enabled = 1; in rtc_timer_enqueue()
797 timerqueue_add(&rtc->timerqueue, &timer->node); in rtc_timer_enqueue()
798 if (&timer->node == timerqueue_getnext(&rtc->timerqueue)) { in rtc_timer_enqueue()
801 alarm.time = rtc_ktime_to_tm(timer->node.expires); in rtc_timer_enqueue()
[all …]
/linux-4.1.27/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.1.27/arch/xtensa/kernel/
Dtime.c83 struct ccount_timer *timer = in ccount_timer_set_mode() local
95 if (timer->irq_enabled) { in ccount_timer_set_mode()
97 timer->irq_enabled = 0; in ccount_timer_set_mode()
102 if (!timer->irq_enabled) { in ccount_timer_set_mode()
104 timer->irq_enabled = 1; in ccount_timer_set_mode()
120 struct ccount_timer *timer = &per_cpu(ccount_timer, cpu); in local_timer_setup() local
121 struct clock_event_device *clockevent = &timer->evt; in local_timer_setup()
123 timer->irq_enabled = 1; in local_timer_setup()
124 clockevent->name = timer->name; in local_timer_setup()
125 snprintf(timer->name, sizeof(timer->name), "ccount_clockevent_%u", cpu); in local_timer_setup()
/linux-4.1.27/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.1.27/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci1564.c31 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
34 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
38 outl(0x02, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
52 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
56 outl(data[2], devpriv->timer + ADDI_TCW_TIMEBASE_REG); in apci1564_timer_insn_config()
59 outl(data[3], devpriv->timer + ADDI_TCW_RELOAD_REG); in apci1564_timer_insn_config()
61 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
65 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_config()
78 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_write()
88 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_timer_insn_write()
[all …]
/linux-4.1.27/drivers/char/
Dhpet.c205 struct hpet_timer __iomem *timer; in hpet_timer_set_irq() local
213 timer = devp->hd_timer; in hpet_timer_set_irq()
216 v = readl(&timer->hpet_config); in hpet_timer_set_irq()
219 writel(v, &timer->hpet_config); in hpet_timer_set_irq()
223 v = (readq(&timer->hpet_config) & Tn_INT_ROUTE_CAP_MASK) >> in hpet_timer_set_irq()
251 v = readl(&timer->hpet_config); in hpet_timer_set_irq()
253 writel(v, &timer->hpet_config); in hpet_timer_set_irq()
421 struct hpet_timer __iomem *timer; in hpet_release() local
425 timer = devp->hd_timer; in hpet_release()
429 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.1.27/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.1.27/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 {
Devmc6474.dts39 timer3: timer@2940000 {
44 timer4: timer@2950000 {
49 timer5: timer@2960000 {
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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()
194 if (!adev->timer) { in apbt_setup_secondary_clock()
195 adev->timer = dw_apb_clockevent_init(cpu, adev->name, in apbt_setup_secondary_clock()
198 adev->timer->eoi = NULL; in apbt_setup_secondary_clock()
200 dw_apb_clockevent_resume(adev->timer); in apbt_setup_secondary_clock()
207 dw_apb_clockevent_register(adev->timer); in apbt_setup_secondary_clock()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/net/bridge/
Dbr_multicast.c232 if (!netif_running(br->dev) || timer_pending(&mp->timer)) in br_multicast_group_expired()
273 del_timer(&p->timer); in br_multicast_del_pg()
278 mod_timer(&mp->timer, jiffies); in br_multicast_del_pg()
292 if (!netif_running(br->dev) || timer_pending(&pg->timer) || in br_multicast_port_group_expired()
624 setup_timer(&mp->timer, br_multicast_group_expired, in br_multicast_new_group()
651 setup_timer(&p->timer, br_multicast_port_group_expired, in br_multicast_new_port_group()
678 mod_timer(&mp->timer, now + br->multicast_membership_interval); in br_multicast_add_group()
698 mod_timer(&p->timer, now + br->multicast_membership_interval); in br_multicast_add_group()
851 if (!other_query || timer_pending(&other_query->timer)) in br_multicast_send_query()
860 mod_timer(&own_query->timer, time); in br_multicast_send_query()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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
68 additional information about the watchdog timer itself. (Like it's unique name)
70 * timeout: the watchdog timer's timeout value (in seconds).
71 * min_timeout: the watchdog timer's minimum timeout value (in seconds).
72 * max_timeout: the watchdog timer's maximum timeout value (in seconds).
80 information about the status of the device (Like: is the watchdog timer
[all …]
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dhealth.c162 mod_timer(&health->timer, next); in poll_health()
171 init_timer(&health->timer); in mlx5_start_health_poll()
175 health->timer.data = (unsigned long)dev; in mlx5_start_health_poll()
176 health->timer.function = poll_health; in mlx5_start_health_poll()
177 health->timer.expires = round_jiffies(jiffies + MLX5_HEALTH_POLL_INTERVAL); in mlx5_start_health_poll()
178 add_timer(&health->timer); in mlx5_start_health_poll()
185 del_timer_sync(&health->timer); in mlx5_stop_health_poll()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/watchdog/
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()
138 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()
277 init_timer(&wdt->timer); in sh_wdt_probe()
278 wdt->timer.function = sh_wdt_ping; in sh_wdt_probe()
279 wdt->timer.data = (unsigned long)wdt; in sh_wdt_probe()
280 wdt->timer.expires = next_ping_period(clock_division_ratio); in sh_wdt_probe()
Dgpio_wdt.c40 struct timer_list timer; member
58 mod_timer(&priv->timer, priv->last_jiffies + priv->hw_margin); in gpio_wdt_start_impl()
77 mod_timer(&priv->timer, 0); in gpio_wdt_stop()
112 mod_timer(&priv->timer, jiffies + priv->hw_margin); in gpio_wdt_hwping()
135 mod_timer(&priv->timer, 0); in gpio_wdt_notify_sys()
224 setup_timer(&priv->timer, gpio_wdt_hwping, (unsigned long)&priv->wdd); in gpio_wdt_probe()
249 del_timer_sync(&priv->timer); in gpio_wdt_remove()
DKconfig34 Say Y here if you want to use the new watchdog timer driver core.
35 This driver provides a framework for all watchdog timer drivers
43 to stop the timer if the process managing it closes the file
134 tristate "Xilinx Watchdog timer"
152 ARM Primecell SP805 Watchdog timer. This will reboot your system when
159 Watchdog timer embedded into AT91RM9200 chips. This will reboot your
167 Watchdog timer embedded into AT91SAM9X and AT91CAP9 chips. This will
175 timer in the Xilinx Zynq.
205 Say Y here if to include support for the watchdog timer
221 Watchdog timer embedded into KS8695 processor. This will reboot your
[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()
180 del_timer_sync(&wdev->timer); in imx2_wdt_start()
275 setup_timer(&wdev->timer, imx2_wdt_timer_ping, (unsigned long)wdog); in imx2_wdt_probe()
314 del_timer_sync(&wdev->timer); in imx2_wdt_remove()
331 del_timer_sync(&wdev->timer); in imx2_wdt_shutdown()
352 del_timer_sync(&wdev->timer); in imx2_wdt_suspend()
386 mod_timer(&wdev->timer, in imx2_wdt_resume()
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()
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()
218 mod_timer(&timer, jiffies + WDT_HEARTBEAT); in wdt_probe()
235 del_timer_sync(&timer); in wdt_remove()
Dw83877f_wdt.c101 static DEFINE_TIMER(timer, wdt_timer_ping, 0, 0);
124 mod_timer(&timer, jiffies + WDT_INTERVAL); in wdt_timer_ping()
163 mod_timer(&timer, jiffies + WDT_INTERVAL); in wdt_startup()
173 del_timer(&timer); in wdt_turnoff()
235 del_timer(&timer); in fop_close()
Dsbc60xxwdt.c116 static DEFINE_TIMER(timer, wdt_timer_ping, 0, 0);
134 mod_timer(&timer, jiffies + WDT_INTERVAL); in wdt_timer_ping()
148 mod_timer(&timer, jiffies + WDT_INTERVAL); in wdt_startup()
155 del_timer(&timer); in wdt_turnoff()
219 del_timer(&timer); in fop_close()
Ddw_wdt.c69 struct timer_list timer; member
167 mod_timer(&dw_wdt.timer, jiffies + WDT_TIMEOUT); in dw_wdt_ping()
223 mod_timer(&dw_wdt.timer, jiffies + WDT_TIMEOUT); in dw_wdt_write()
283 del_timer(&dw_wdt.timer); in dw_wdt_release()
364 setup_timer(&dw_wdt.timer, dw_wdt_ping, 0); in dw_wdt_drv_probe()
365 mod_timer(&dw_wdt.timer, jiffies + WDT_TIMEOUT); in dw_wdt_drv_probe()
/linux-4.1.27/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.1.27/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.1.27/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/gk20a.o
/linux-4.1.27/drivers/leds/trigger/
Dledtrig-heartbeat.c29 struct timer_list timer; member
78 mod_timer(&heartbeat_data->timer, jiffies + delay); in led_heartbeat_function()
90 setup_timer(&heartbeat_data->timer, in heartbeat_trig_activate()
93 led_heartbeat_function(heartbeat_data->timer.data); in heartbeat_trig_activate()
102 del_timer_sync(&heartbeat_data->timer); in heartbeat_trig_deactivate()
/linux-4.1.27/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.1.27/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.1.27/arch/microblaze/kernel/
Dtimer.c254 static void __init xilinx_timer_init(struct device_node *timer) in xilinx_timer_init() argument
266 timer_baseaddr = of_iomap(timer, 0); in xilinx_timer_init()
281 irq = irq_of_parse_and_map(timer, 0); in xilinx_timer_init()
283 of_property_read_u32(timer, "xlnx,one-timer-only", &timer_num); in xilinx_timer_init()
289 pr_info("%s: irq=%d\n", timer->full_name, irq); in xilinx_timer_init()
291 clk = of_clk_get(timer, 0); in xilinx_timer_init()
295 of_property_read_u32(timer, "clock-frequency", in xilinx_timer_init()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/arm64/boot/dts/xilinx/
Dzynqmp.dtsi65 timer {
66 compatible = "arm,armv8-timer";
105 ttc0: timer@ff110000 {
112 timer-width = <32>;
115 ttc1: timer@ff120000 {
122 timer-width = <32>;
125 ttc2: timer@ff130000 {
132 timer-width = <32>;
135 ttc3: timer@ff140000 {
142 timer-width = <32>;
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/x86/kvm/
Di8254.c124 remaining = hrtimer_get_remaining(&ps->timer); in __kpit_elapsed()
259 struct hrtimer *timer; in __kvm_migrate_pit_timer() local
264 timer = &pit->pit_state.timer; in __kvm_migrate_pit_timer()
266 if (hrtimer_cancel(timer)) in __kvm_migrate_pit_timer()
267 hrtimer_start_expires(timer, HRTIMER_MODE_ABS); in __kvm_migrate_pit_timer()
273 hrtimer_cancel(&pit->pit_state.timer); in destroy_pit_timer()
318 struct kvm_kpit_state *ps = container_of(data, struct kvm_kpit_state, timer); in pit_timer_fn()
327 hrtimer_add_expires_ns(&ps->timer, ps->period); in pit_timer_fn()
346 hrtimer_cancel(&ps->timer); in create_pit_timer()
351 ps->timer.function = pit_timer_fn; in create_pit_timer()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/acpi/acpica/
Dexdebug.c78 u32 timer; in acpi_ex_do_debug_object() local
94 timer = ((u32)acpi_os_get_timer() / 10); /* (100 nanoseconds to microseconds) */ in acpi_ex_do_debug_object()
95 timer &= 0x03FFFFFF; in acpi_ex_do_debug_object()
102 acpi_os_printf("[ACPI Debug %.8u] %*s", timer, level, " "); in acpi_ex_do_debug_object()
/linux-4.1.27/drivers/uwb/
Dneh.c114 struct timer_list timer; member
226 init_timer(&neh->timer); in uwb_rc_neh_add()
227 neh->timer.function = uwb_rc_neh_timer; in uwb_rc_neh_add()
228 neh->timer.data = (unsigned long)neh; in uwb_rc_neh_add()
278 del_timer_sync(&neh->timer); in uwb_rc_neh_rm()
296 mod_timer(&neh->timer, in uwb_rc_neh_arm()
430 del_timer(&neh->timer); in uwb_rc_neh_grok_event()
563 del_timer_sync(&neh->timer); in uwb_rc_neh_error()
619 del_timer_sync(&neh->timer); in uwb_rc_neh_destroy()
/linux-4.1.27/drivers/i2c/busses/
Di2c-pnx.c103 struct timer_list *timer = &alg_data->mif.timer; in i2c_pnx_arm_timer() local
109 del_timer_sync(timer); in i2c_pnx_arm_timer()
114 timer->expires = jiffies + expires; in i2c_pnx_arm_timer()
115 timer->data = (unsigned long)alg_data; in i2c_pnx_arm_timer()
117 add_timer(timer); in i2c_pnx_arm_timer()
244 del_timer_sync(&alg_data->mif.timer); in i2c_pnx_master_xmit()
262 del_timer_sync(&alg_data->mif.timer); in i2c_pnx_master_xmit()
350 del_timer_sync(&alg_data->mif.timer); in i2c_pnx_master_rcv()
386 del_timer_sync(&alg_data->mif.timer); in i2c_pnx_interrupt()
405 del_timer_sync(&alg_data->mif.timer); in i2c_pnx_interrupt()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/leds/
Dleds-netxbig.c136 struct netxbig_led_timer *timer; member
146 struct netxbig_led_timer *timer, in netxbig_led_get_timer_mode() argument
152 if (timer[i].delay_on == delay_on && in netxbig_led_get_timer_mode()
153 timer[i].delay_off == delay_off) { in netxbig_led_get_timer_mode()
154 *mode = timer[i].mode; in netxbig_led_get_timer_mode()
173 led_dat->timer, led_dat->num_timer); in netxbig_led_blink_set()
337 led_dat->timer = pdata->timer; in create_netxbig_led()
/linux-4.1.27/drivers/input/joystick/
Dturbografx.c78 struct timer_list timer; member
118 mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME); in tgfx_timer()
133 mod_timer(&tgfx->timer, jiffies + TGFX_REFRESH_TIME); in tgfx_open()
146 del_timer_sync(&tgfx->timer); in tgfx_close()
191 init_timer(&tgfx->timer); in tgfx_probe()
192 tgfx->timer.data = (long) tgfx; in tgfx_probe()
193 tgfx->timer.function = tgfx_timer; in tgfx_probe()
Dwalkera0701.c58 struct hrtimer timer; member
137 if (unlikely(0 != hrtimer_try_to_cancel(&w->timer))) { in walkera0701_irq_handler()
168 hrtimer_start(&w->timer, ktime_set(0, BIN_SAMPLE), HRTIMER_MODE_REL); in walkera0701_irq_handler()
176 w = container_of(handle, struct walkera_dev, timer); in timer_handler()
198 hrtimer_cancel(&w->timer); in walkera0701_close()
235 hrtimer_init(&w->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in walkera0701_connect()
236 w->timer.function = timer_handler; in walkera0701_connect()
/linux-4.1.27/Documentation/devicetree/bindings/pwm/
Dpwm-samsung.txt3 Samsung SoCs contain PWM timer blocks which can be used for system clock source
5 PWM timer block provides 5 PWM channels (not all of them can drive physical
20 - interrupts: list of timer interrupts (one interrupt per timer, starting at
21 timer 0)
/linux-4.1.27/drivers/staging/comedi/drivers/
Daddi_apci_1564.c109 unsigned long timer; /* base address of 12-bit timer */ member
137 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_reset()
138 outl(0x0, devpriv->timer + ADDI_TCW_RELOAD_REG); in apci1564_reset()
176 status = inl(devpriv->timer + ADDI_TCW_IRQ_REG); in apci1564_interrupt()
179 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt()
180 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt()
186 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt()
455 devpriv->timer = devpriv->eeprom + APCI1564_REV1_TIMER_IOBASE; in apci1564_auto_attach()
459 devpriv->timer = devpriv->eeprom + APCI1564_REV2_TIMER_IOBASE; in apci1564_auto_attach()
/linux-4.1.27/net/tipc/
Ddiscover.c70 struct timer_list timer; member
279 mod_timer(&req->timer, jiffies + req->timer_intv); in disc_update()
344 mod_timer(&req->timer, jiffies + req->timer_intv); in disc_timeout()
380 setup_timer(&req->timer, disc_timeout, (unsigned long)req); in tipc_disc_create()
381 mod_timer(&req->timer, jiffies + req->timer_intv); in tipc_disc_create()
393 del_timer_sync(&req->timer); in tipc_disc_delete()
415 mod_timer(&req->timer, jiffies + req->timer_intv); in tipc_disc_reset()
/linux-4.1.27/arch/mips/boot/dts/brcm/
Dbcm6328.dtsi73 timer: timer@10000040 { label
81 regmap = <&timer>;
/linux-4.1.27/arch/cris/arch-v32/lib/
Ddelay.c24 u32 t0 = REG_RD(timer, regi_timer0, r_time); in cris_delay10ns()
25 while (REG_RD(timer, regi_timer0, r_time) - t0 < n10ns) in cris_delay10ns()
/linux-4.1.27/arch/sh/drivers/
Dheartbeat.c73 mod_timer(&hd->timer, jiffies + (110 - ((300 << FSHIFT) / in heartbeat_timer()
136 setup_timer(&hd->timer, heartbeat_timer, (unsigned long)hd); in heartbeat_drv_probe()
139 return mod_timer(&hd->timer, jiffies + 1); in heartbeat_drv_probe()
146 del_timer_sync(&hd->timer); in heartbeat_drv_remove()

1234567