Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 1465) sorted by relevance

12345678910>>...59

/linux/drivers/clocksource/
H A Dtimer-ti-dm.c167 static inline u32 dmtimer_read(struct dmtimer *timer, u32 reg) in dmtimer_read() argument
175 if (wp && timer->posted) in dmtimer_read()
176 while (readl_relaxed(timer->pend) & wp) in dmtimer_read()
179 return readl_relaxed(timer->func_base + offset); in dmtimer_read()
192 static inline void dmtimer_write(struct dmtimer *timer, u32 reg, u32 val) in dmtimer_write() argument
200 if (wp && timer->posted) in dmtimer_write()
201 while (readl_relaxed(timer->pend) & wp) in dmtimer_write()
204 writel_relaxed(val, timer->func_base + offset); in dmtimer_write()
207 static inline void __omap_dm_timer_init_regs(struct dmtimer *timer) in __omap_dm_timer_init_regs() argument
212 tidr = readl_relaxed(timer->io_base); in __omap_dm_timer_init_regs()
[all …]
H A Dtimer-zevio.c3 * linux/drivers/clocksource/zevio-timer.c
64 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_set_event() local
67 writel(delta, timer->timer1 + IO_CURRENT_VAL); in zevio_timer_set_event()
69 timer->timer1 + IO_CONTROL); in zevio_timer_set_event()
76 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_shutdown() local
79 /* Disable timer interrupts */ in zevio_timer_shutdown()
80 writel(0, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_shutdown()
81 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_shutdown()
82 /* Stop timer */ in zevio_timer_shutdown()
83 writel(CNTL_STOP_TIMER, timer in zevio_timer_shutdown()
89 struct zevio_timer *timer = container_of(dev, struct zevio_timer, zevio_timer_set_oneshot() local
100 struct zevio_timer *timer = dev_id; zevio_timer_interrupt() local
118 struct zevio_timer *timer; zevio_timer_add() local
[all...]
H A Dtimer-microchip-pit64b.c51 * struct mchp_pit64b_timer - PIT64B timer data structure
66 * @timer: PIT64B timer
70 struct mchp_pit64b_timer timer; member
80 * @timer: PIT64B timer
84 struct mchp_pit64b_timer timer; member
92 /* Base address for clocksource timer. */
94 /* Default cycles for clockevent timer. */
96 /* Delay timer
119 mchp_pit64b_reset(struct mchp_pit64b_timer * timer,u64 cycles,u32 mode,u32 irqs) mchp_pit64b_reset() argument
135 mchp_pit64b_suspend(struct mchp_pit64b_timer * timer) mchp_pit64b_suspend() argument
143 mchp_pit64b_resume(struct mchp_pit64b_timer * timer) mchp_pit64b_resume() argument
152 struct mchp_pit64b_timer *timer = clksrc_to_mchp_pit64b_timer(cs); mchp_pit64b_clksrc_suspend() local
159 struct mchp_pit64b_timer *timer = clksrc_to_mchp_pit64b_timer(cs); mchp_pit64b_clksrc_resume() local
182 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); mchp_pit64b_clkevt_shutdown() local
192 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); mchp_pit64b_clkevt_set_periodic() local
205 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); mchp_pit64b_clkevt_set_oneshot() local
219 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); mchp_pit64b_clkevt_set_next_event() local
291 mchp_pit64b_init_mode(struct mchp_pit64b_timer * timer,unsigned long max_rate) mchp_pit64b_init_mode() argument
347 mchp_pit64b_init_clksrc(struct mchp_pit64b_timer * timer,u32 clk_rate) mchp_pit64b_init_clksrc() argument
394 mchp_pit64b_init_clkevt(struct mchp_pit64b_timer * timer,u32 clk_rate,u32 irq) mchp_pit64b_init_clkevt() argument
436 struct mchp_pit64b_timer timer; mchp_pit64b_dt_init_timer() local
[all...]
H A Dtimer-rockchip.c3 * Rockchip timer support
44 struct rk_timer timer; member
52 return &container_of(ce, struct rk_clkevt, ce)->timer; in rk_timer()
55 static inline void rk_timer_disable(struct rk_timer *timer) in rk_timer_disable() argument
57 writel_relaxed(TIMER_DISABLE, timer->ctrl); in rk_timer_disable()
60 static inline void rk_timer_enable(struct rk_timer *timer, u32 flags) in rk_timer_enable() argument
62 writel_relaxed(TIMER_ENABLE | flags, timer->ctrl); in rk_timer_enable()
66 struct rk_timer *timer) in rk_timer_update_counter() argument
68 writel_relaxed(cycles, timer->base + TIMER_LOAD_COUNT0); in rk_timer_update_counter()
69 writel_relaxed(0, timer in rk_timer_update_counter()
72 rk_timer_interrupt_clear(struct rk_timer * timer) rk_timer_interrupt_clear() argument
80 struct rk_timer *timer = rk_timer(ce); rk_timer_set_next_event() local
91 struct rk_timer *timer = rk_timer(ce); rk_timer_shutdown() local
99 struct rk_timer *timer = rk_timer(ce); rk_timer_set_periodic() local
110 struct rk_timer *timer = rk_timer(ce); rk_timer_interrupt() local
128 rk_timer_probe(struct rk_timer * timer,struct device_node * np) rk_timer_probe() argument
198 rk_timer_cleanup(struct rk_timer * timer) rk_timer_cleanup() argument
[all...]
H A Ddw_apb_timer.c49 static inline u32 apbt_readl(struct dw_apb_timer *timer, unsigned long offs) in apbt_readl() argument
51 return readl(timer->base + offs); in apbt_readl()
54 static inline void apbt_writel(struct dw_apb_timer *timer, u32 val, in apbt_writel() argument
57 writel(val, timer->base + offs); in apbt_writel()
60 static inline u32 apbt_readl_relaxed(struct dw_apb_timer *timer, unsigned long offs) in apbt_readl_relaxed() argument
62 return readl_relaxed(timer->base + offs); in apbt_readl_relaxed()
65 static inline void apbt_writel_relaxed(struct dw_apb_timer *timer, u32 val, in apbt_writel_relaxed() argument
68 writel_relaxed(val, timer->base + offs); in apbt_writel_relaxed()
71 static void apbt_eoi(struct dw_apb_timer *timer) in apbt_eoi() argument
73 apbt_readl_relaxed(timer, APBTMR_N_EO in apbt_eoi()
93 apbt_enable_int(struct dw_apb_timer * timer) apbt_enable_int() argument
[all...]
H A Dingenic-timer.c67 to_ingenic_tcu(struct ingenic_tcu_timer *timer) in to_ingenic_tcu() argument
69 return container_of(timer, struct ingenic_tcu, timers[timer->cpu]); in to_ingenic_tcu()
80 struct ingenic_tcu_timer *timer = to_ingenic_tcu_timer(evt); in ingenic_tcu_cevt_set_state_shutdown() local
81 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); in ingenic_tcu_cevt_set_state_shutdown()
83 regmap_write(tcu->map, TCU_REG_TECR, BIT(timer->channel)); in ingenic_tcu_cevt_set_state_shutdown()
91 struct ingenic_tcu_timer *timer = to_ingenic_tcu_timer(evt); in ingenic_tcu_cevt_set_next() local
92 struct ingenic_tcu *tcu = to_ingenic_tcu(timer); in ingenic_tcu_cevt_set_next()
97 regmap_write(tcu->map, TCU_REG_TDFRc(timer->channel), next); in ingenic_tcu_cevt_set_next()
98 regmap_write(tcu->map, TCU_REG_TCNTc(timer in ingenic_tcu_cevt_set_next()
113 struct ingenic_tcu_timer *timer = dev_id; ingenic_tcu_cevt_cb() local
143 struct ingenic_tcu_timer *timer = &tcu->timers[cpu]; ingenic_tcu_setup_cevt() local
276 struct ingenic_tcu_timer *timer; ingenic_tcu_init() local
[all...]
H A Dbcm2835_timer.c46 struct bcm2835_timer *timer = container_of(evt_dev, in bcm2835_time_set_next_event() local
49 timer->compare); in bcm2835_time_set_next_event()
55 struct bcm2835_timer *timer = dev_id; in bcm2835_time_interrupt() local
57 if (readl_relaxed(timer->control) & timer->match_mask) { in bcm2835_time_interrupt()
58 writel_relaxed(timer->match_mask, timer->control); in bcm2835_time_interrupt()
60 event_handler = READ_ONCE(timer->evt.event_handler); in bcm2835_time_interrupt()
62 event_handler(&timer->evt); in bcm2835_time_interrupt()
74 struct bcm2835_timer *timer; in bcm2835_timer_init() local
[all...]
/linux/drivers/rtc/
H A Drtc-brcmstb-waketimer.c48 static inline bool brcmstb_waketmr_is_pending(struct brcmstb_waketmr *timer) in brcmstb_waketmr_is_pending() argument
52 reg = readl_relaxed(timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_is_pending()
56 static inline void brcmstb_waketmr_clear_alarm(struct brcmstb_waketmr *timer) in brcmstb_waketmr_clear_alarm() argument
60 if (timer->alarm_en && timer->alarm_irq) in brcmstb_waketmr_clear_alarm()
61 disable_irq(timer->alarm_irq); in brcmstb_waketmr_clear_alarm()
62 timer->alarm_en = false; in brcmstb_waketmr_clear_alarm()
63 reg = readl_relaxed(timer->base + BRCMSTB_WKTMR_COUNTER); in brcmstb_waketmr_clear_alarm()
64 writel_relaxed(reg - 1, timer->base + BRCMSTB_WKTMR_ALARM); in brcmstb_waketmr_clear_alarm()
65 writel_relaxed(WKTMR_ALARM_EVENT, timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_clear_alarm()
66 (void)readl_relaxed(timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_clear_alarm()
[all …]
/linux/tools/testing/selftests/kvm/arm64/
H A Darch_timer_edge_cases.c54 enum arch_timer timer; member
85 typedef void (*sleep_method_t)(enum arch_timer timer, uint64_t usec);
87 static void sleep_poll(enum arch_timer timer, uint64_t usec);
88 static void sleep_sched_poll(enum arch_timer timer, uint64_t usec);
89 static void sleep_in_userspace(enum arch_timer timer, uint64_t usec);
90 static void sleep_migrate(enum arch_timer timer, uint64_t usec);
140 static void set_counter(enum arch_timer timer, uint64_t counter) in set_counter() argument
142 GUEST_SYNC_ARGS(SET_COUNTER_VALUE, counter, timer, 0, 0); in set_counter()
148 enum arch_timer timer; in guest_irq_handler() local
159 timer = PHYSICAL; in guest_irq_handler()
[all …]
/linux/include/linux/
H A Dhrtimer.h93 struct hrtimer timer; member
97 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires() argument
99 timer->node.expires = time; in hrtimer_set_expires()
100 timer->_softexpires = time; in hrtimer_set_expires()
103 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range() argument
105 timer->_softexpires = time; in hrtimer_set_expires_range()
106 timer->node.expires = ktime_add_safe(time, delta); in hrtimer_set_expires_range()
109 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, u64 delta) in hrtimer_set_expires_range_ns() argument
111 timer->_softexpires = time; in hrtimer_set_expires_range_ns()
112 timer->node.expires = ktime_add_safe(time, ns_to_ktime(delta)); in hrtimer_set_expires_range_ns()
[all …]
/linux/net/netfilter/
H A Dxt_IDLETIMER.c5 * Netfilter module to trigger a timer when packet matches.
6 * After timer expires a kevent will be sent.
20 #include <linux/timer.h>
35 struct timer_list timer; member
66 struct idletimer_tg *timer; in idletimer_tg_show() local
73 timer = __idletimer_tg_find_by_label(attr->attr.name); in idletimer_tg_show()
74 if (timer) { in idletimer_tg_show()
75 if (timer->timer_type & XT_IDLETIMER_ALARM) { in idletimer_tg_show()
76 ktime_t expires_alarm = alarm_expires_remaining(&timer->alarm); in idletimer_tg_show()
80 expires = timer in idletimer_tg_show()
95 struct idletimer_tg *timer = container_of(work, struct idletimer_tg, idletimer_tg_work() local
103 struct idletimer_tg *timer = timer_container_of(timer, t, timer); idletimer_tg_expired() local
112 struct idletimer_tg *timer = alarm->data; idletimer_tg_alarmproc() local
[all...]
/linux/sound/core/
H A Dtimer.c19 #include <sound/timer.h>
39 MODULE_DESCRIPTION("ALSA timer interface");
47 MODULE_ALIAS("devname:snd/timer");
116 /* Internal data structure for keeping the state of the userspace-driven timer */
119 struct snd_timer *timer; member
140 static int snd_timer_free(struct snd_timer *timer);
145 static void snd_timer_reschedule(struct snd_timer * timer, unsigned long ticks_left);
148 * create a timer instance with the given owner string.
184 * find a timer instance from the given timer i
188 struct snd_timer *timer; snd_timer_find() local
256 struct snd_timer *timer; snd_timer_check_slave() local
303 struct snd_timer *timer; snd_timer_open() local
397 remove_slave_links(struct snd_timer_instance * timeri,struct snd_timer * timer) remove_slave_links() argument
421 struct snd_timer *timer = timeri->timer; snd_timer_close_locked() local
483 snd_timer_hw_resolution(struct snd_timer * timer) snd_timer_hw_resolution() argument
493 struct snd_timer * timer; snd_timer_resolution() local
509 struct snd_timer *timer = ti->timer; snd_timer_notify1() local
543 struct snd_timer *timer; snd_timer_start1() local
617 struct snd_timer *timer; snd_timer_stop1() local
737 snd_timer_reschedule(struct snd_timer * timer,unsigned long ticks_left) snd_timer_reschedule() argument
765 snd_timer_process_callbacks(struct snd_timer * timer,struct list_head * head) snd_timer_process_callbacks() argument
793 snd_timer_clear_callbacks(struct snd_timer * timer,struct list_head * head) snd_timer_clear_callbacks() argument
807 struct snd_timer *timer = container_of(work, struct snd_timer, task_work); snd_timer_work() local
824 snd_timer_interrupt(struct snd_timer * timer,unsigned long ticks_left) snd_timer_interrupt() argument
916 struct snd_timer *timer; snd_timer_new() local
965 snd_timer_free(struct snd_timer * timer) snd_timer_free() argument
991 struct snd_timer *timer = device->device_data; snd_timer_dev_free() local
997 struct snd_timer *timer = dev->device_data; snd_timer_dev_register() local
1035 struct snd_timer *timer = device->device_data; snd_timer_dev_disconnect() local
1048 snd_timer_notify(struct snd_timer * timer,int event,struct timespec64 * tstamp) snd_timer_notify() argument
1091 snd_timer_global_free(struct snd_timer * timer) snd_timer_global_free() argument
1097 snd_timer_global_register(struct snd_timer * timer) snd_timer_global_register() argument
1123 struct snd_timer *timer = priv->snd_timer; snd_timer_s_function() local
1130 snd_timer_s_start(struct snd_timer * timer) snd_timer_s_start() argument
1149 snd_timer_s_stop(struct snd_timer * timer) snd_timer_s_stop() argument
1165 snd_timer_s_close(struct snd_timer * timer) snd_timer_s_close() argument
1184 snd_timer_free_system(struct snd_timer * timer) snd_timer_free_system() argument
1191 struct snd_timer *timer; snd_timer_register_system() local
1220 struct snd_timer *timer; snd_timer_proc_read() local
1509 snd_timer_user_copy_id(struct snd_timer_id * id,struct snd_timer * timer) snd_timer_user_copy_id() argument
1520 struct snd_timer *timer; get_next_device() local
2123 struct snd_timer *timer; snd_utimer_create() local
2455 struct snd_timer *timer, *n; snd_timer_free_all() local
[all...]
H A Dpcm_timer.c52 static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) in snd_pcm_timer_resolution() argument
56 substream = timer->private_data; in snd_pcm_timer_resolution()
60 static int snd_pcm_timer_start(struct snd_timer * timer) in snd_pcm_timer_start() argument
64 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
69 static int snd_pcm_timer_stop(struct snd_timer * timer) in snd_pcm_timer_stop() argument
73 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
92 static void snd_pcm_timer_free(struct snd_timer *timer) in snd_pcm_timer_free() argument
94 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free()
95 substream->timer = NULL; in snd_pcm_timer_free()
101 struct snd_timer *timer; in snd_pcm_timer_init() local
[all …]
/linux/arch/nios2/kernel/
H A Dtime.c42 struct nios2_timer timer; member
47 struct nios2_timer timer; member
63 static u16 timer_readw(struct nios2_timer *timer, u32 offs) in timer_readw() argument
65 return readw(timer->base + offs); in timer_readw()
68 static void timer_writew(struct nios2_timer *timer, u16 val, u32 offs) in timer_writew() argument
70 writew(val, timer->base + offs); in timer_writew()
73 static inline unsigned long read_timersnapshot(struct nios2_timer *timer) in read_timersnapshot() argument
77 timer_writew(timer, 0, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot()
78 count = timer_readw(timer, ALTERA_TIMER_SNAPH_REG) << 16 | in read_timersnapshot()
79 timer_readw(timer, ALTERA_TIMER_SNAPL_REG); in read_timersnapshot()
[all …]
/linux/arch/s390/kernel/
H A Dvtime.c39 u64 timer; in set_vtimer() local
44 : "=Q" (timer) : "Q" (expires)); in set_vtimer()
45 lc->system_timer += lc->last_update_timer - timer; in set_vtimer()
120 u64 timer, clock, user, guest, system, hardirq, softirq; in do_account_vtime() local
123 timer = lc->last_update_timer; in do_account_vtime()
132 timer -= lc->last_update_timer; in do_account_vtime()
135 lc->hardirq_timer += timer; in do_account_vtime()
137 lc->system_timer += timer; in do_account_vtime()
222 u64 timer = lc->last_update_timer; in vtime_delta() local
225 return timer - lc->last_update_timer; in vtime_delta()
[all …]
/linux/kernel/time/
H A Dhrtimer.c163 struct hrtimer_clock_base *lock_hrtimer_base(const struct hrtimer *timer, in lock_hrtimer_base() argument
165 __acquires(&timer->base->lock) in lock_hrtimer_base()
170 base = READ_ONCE(timer->base); in lock_hrtimer_base()
173 if (likely(base == timer->base)) in lock_hrtimer_base()
196 static bool hrtimer_suitable_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base, in hrtimer_suitable_target() argument
218 expires = ktime_sub(hrtimer_get_expires(timer), new_base->offset); in hrtimer_suitable_target()
251 switch_hrtimer_base(struct hrtimer *timer, struct hrtimer_clock_base *base, in switch_hrtimer_base() argument
273 if (unlikely(hrtimer_callback_running(timer))) in switch_hrtimer_base()
277 WRITE_ONCE(timer->base, &migration_base); in switch_hrtimer_base()
281 if (!hrtimer_suitable_target(timer, new_base, new_cpu_base, in switch_hrtimer_base()
[all …]
/linux/sound/core/seq/oss/
H A Dseq_oss_timer.c24 static void calc_alsa_tempo(struct seq_oss_timer *timer);
29 * create and register a new timer.
54 * delete timer.
55 * if no more timer exists, stop the queue.
70 * 0 : not a timer event -- enqueue this event
116 calc_alsa_tempo(struct seq_oss_timer *timer) in calc_alsa_tempo() argument
118 timer->tempo = (60 * 1000000) / timer->oss_tempo; in calc_alsa_tempo()
119 timer->ppq = timer in calc_alsa_tempo()
147 snd_seq_oss_timer_start(struct seq_oss_timer * timer) snd_seq_oss_timer_start() argument
172 snd_seq_oss_timer_stop(struct seq_oss_timer * timer) snd_seq_oss_timer_stop() argument
186 snd_seq_oss_timer_continue(struct seq_oss_timer * timer) snd_seq_oss_timer_continue() argument
200 snd_seq_oss_timer_tempo(struct seq_oss_timer * timer,int value) snd_seq_oss_timer_tempo() argument
218 snd_seq_oss_timer_ioctl(struct seq_oss_timer * timer,unsigned int cmd,int __user * arg) snd_seq_oss_timer_ioctl() argument
[all...]
/linux/include/linux/platform_data/
H A Ddmtimer-omap.h17 int (*free)(struct omap_dm_timer *timer);
19 void (*enable)(struct omap_dm_timer *timer);
20 void (*disable)(struct omap_dm_timer *timer);
22 int (*get_irq)(struct omap_dm_timer *timer);
23 int (*set_int_enable)(struct omap_dm_timer *timer,
25 int (*set_int_disable)(struct omap_dm_timer *timer, u32 mask);
27 struct clk *(*get_fclk)(struct omap_dm_timer *timer);
29 int (*start)(struct omap_dm_timer *timer);
30 int (*stop)(struct omap_dm_timer *timer);
31 int (*set_source)(struct omap_dm_timer *timer, int source);
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtimer.c17 struct bpf_timer timer;
81 static int timer_cb1(void *map, int *key, struct bpf_timer *timer) in timer_cb1()
84 * Once via array timer callback and once via lru timer callback in timer_cb1()
88 /* *key == 0 - the callback was called for array timer. in timer_cb1()
89 * *key == 4 - the callback was called from lru timer. in timer_cb1()
95 /* rearm array timer to be called again in ~35 seconds */ in timer_cb1()
96 if (bpf_timer_start(timer, 1ull << 35, 0) != 0) in timer_cb1()
121 * element and force deletion of this timer in timer_cb1()
128 * which means that key/timer memor in timer_cb1()
13 struct bpf_timer timer; global() member
73 timer_cb1(void * map,int * key,struct bpf_timer * timer) timer_cb1() argument
301 timer_cb3(void * map,int * key,struct bpf_timer * timer) timer_cb3() argument
321 struct bpf_timer *timer; BPF_PROG2() local
338 timer_cb_pinned(void * map,int * key,struct bpf_timer * timer) timer_cb_pinned() argument
353 struct bpf_timer *timer; test_pinned_timer() local
396 race_timer_callback(void * race_array,int * race_key,struct bpf_timer * timer) race_timer_callback() argument
405 struct bpf_timer *timer; race() local
[all...]
H A Dtimer_lockup.c35 struct bpf_timer *timer; in timer_cb1() local
38 timer = bpf_map_lookup_elem(&timer2_map, &key); in timer_cb1()
39 if (timer) in timer_cb1()
40 timer2_err = bpf_timer_cancel(timer); in timer_cb1()
47 struct bpf_timer *timer; in timer_cb2() local
50 timer = bpf_map_lookup_elem(&timer1_map, &key); in timer_cb2()
51 if (timer) in timer_cb2()
52 timer1_err = bpf_timer_cancel(timer); in timer_cb2()
60 struct bpf_timer *timer; in timer1_prog() local
63 timer = bpf_map_lookup_elem(&timer1_map, &key); in timer1_prog()
[all …]
/linux/drivers/isdn/mISDN/
H A Dtimerdev.c4 * general timer device for using in ISDN stacks
14 #include <linux/timer.h>
68 struct mISDNtimer *timer, *next; in mISDN_close() local
75 timer = list_first_entry(list, struct mISDNtimer, list); in mISDN_close()
77 timer_shutdown_sync(&timer->tl); in mISDN_close()
80 list_del(&timer->list); in mISDN_close()
81 kfree(timer); in mISDN_close()
85 list_for_each_entry_safe(timer, next, &dev->expired, list) { in mISDN_close()
86 kfree(timer); in mISDN_close()
97 struct mISDNtimer *timer; in mISDN_read() local
161 struct mISDNtimer *timer = timer_container_of(timer, t, tl); dev_expire_timer() local
175 struct mISDNtimer *timer; misdn_add_timer() local
202 struct mISDNtimer *timer; misdn_del_timer() local
[all...]
/linux/drivers/misc/
H A Dcs5535-mfgpt.c45 int cs5535_mfgpt_toggle_event(struct cs5535_mfgpt_timer *timer, int cmp, in cs5535_mfgpt_toggle_event() argument
51 if (!timer) { in cs5535_mfgpt_toggle_event()
68 mask = 1 << (timer->nr + 24); in cs5535_mfgpt_toggle_event()
73 mask = 1 << (timer->nr + shift); in cs5535_mfgpt_toggle_event()
78 mask = 1 << (timer->nr + shift); in cs5535_mfgpt_toggle_event()
97 int cs5535_mfgpt_set_irq(struct cs5535_mfgpt_timer *timer, int cmp, int *irq, in cs5535_mfgpt_set_irq() argument
103 if (!timer) { in cs5535_mfgpt_set_irq()
110 * is using the same CMP of the timer's Siamese twin, the IRQ is set to in cs5535_mfgpt_set_irq()
117 shift = ((cmp == MFGPT_CMP1 ? 0 : 4) + timer->nr % 4) * 4; in cs5535_mfgpt_set_irq()
135 if (cs5535_mfgpt_toggle_event(timer, cm in cs5535_mfgpt_set_irq()
149 struct cs5535_mfgpt_timer *timer = NULL; cs5535_mfgpt_alloc_timer() local
212 cs5535_mfgpt_free_timer(struct cs5535_mfgpt_timer * timer) cs5535_mfgpt_free_timer() argument
229 cs5535_mfgpt_read(struct cs5535_mfgpt_timer * timer,uint16_t reg) cs5535_mfgpt_read() argument
235 cs5535_mfgpt_write(struct cs5535_mfgpt_timer * timer,uint16_t reg,uint16_t value) cs5535_mfgpt_write() argument
290 struct cs5535_mfgpt_timer timer = { .chip = mfgpt }; scan_timers() local
[all...]
/linux/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c3 * MPIC timer wakeup driver
19 struct mpic_timer *timer; member
33 if (wakeup->timer) { in fsl_free_resource()
34 disable_irq_wake(wakeup->timer->irq); in fsl_free_resource()
35 mpic_free_timer(wakeup->timer); in fsl_free_resource()
38 wakeup->timer = NULL; in fsl_free_resource()
48 return wakeup->timer ? IRQ_HANDLED : IRQ_NONE; in fsl_mpic_timer_irq()
58 if (fsl_wakeup->timer) { in fsl_timer_wakeup_show()
59 mpic_get_remain_time(fsl_wakeup->timer, &interval); in fsl_timer_wakeup_show()
80 if (fsl_wakeup->timer) { in fsl_timer_wakeup_store()
[all...]
/linux/sound/pci/emu10k1/
H A Dtimer.c14 static int snd_emu10k1_timer_start(struct snd_timer *timer) in snd_emu10k1_timer_start() argument
19 emu = snd_timer_chip(timer); in snd_emu10k1_timer_start()
20 delay = timer->sticks - 1; in snd_emu10k1_timer_start()
28 static int snd_emu10k1_timer_stop(struct snd_timer *timer) in snd_emu10k1_timer_stop() argument
32 emu = snd_timer_chip(timer); in snd_emu10k1_timer_stop()
37 static unsigned long snd_emu10k1_timer_c_resolution(struct snd_timer *timer) in snd_emu10k1_timer_c_resolution() argument
39 struct snd_emu10k1 *emu = snd_timer_chip(timer); in snd_emu10k1_timer_c_resolution()
48 static int snd_emu10k1_timer_precise_resolution(struct snd_timer *timer, in snd_emu10k1_timer_precise_resolution() argument
51 struct snd_emu10k1 *emu = snd_timer_chip(timer); in snd_emu10k1_timer_precise_resolution()
72 struct snd_timer *timer = NULL; in snd_emu10k1_timer() local
[all …]
/linux/arch/arm/mach-omap1/
H A Dtime.c76 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_timer_read() local
77 return readl(&timer->read_tim); in omap_mpu_timer_read()
82 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_set_autoreset() local
84 writel(readl(&timer->cntl) | MPU_TIMER_AR, &timer->cntl); in omap_mpu_set_autoreset()
89 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_remove_autoreset() local
91 writel(readl(&timer->cntl) & ~MPU_TIMER_AR, &timer->cntl); in omap_mpu_remove_autoreset()
97 omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr); in omap_mpu_timer_start() local
103 writel(MPU_TIMER_CLOCK_ENABLE, &timer->cntl); in omap_mpu_timer_start()
105 writel(load_val, &timer->load_tim); in omap_mpu_timer_start()
107 writel(timerflags, &timer->cntl); in omap_mpu_timer_start()
[all …]

12345678910>>...59