Home
last modified time | relevance | path

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

12345678910>>...50

/linux/drivers/clocksource/
H A Dtimer-zevio.c64 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
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()
83 writel(CNTL_STOP_TIMER, timer->timer1 + IO_CONTROL); in zevio_timer_shutdown()
89 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_set_oneshot() local
93 writel(TIMER_INTR_MSK, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_set_oneshot()
94 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_set_oneshot()
[all …]
H A Dtimer-microchip-pit64b.c70 struct mchp_pit64b_timer timer; member
84 struct mchp_pit64b_timer timer; member
119 static inline void mchp_pit64b_reset(struct mchp_pit64b_timer *timer, in mchp_pit64b_reset() argument
127 writel_relaxed(MCHP_PIT64B_CR_SWRST, timer->base + MCHP_PIT64B_CR); in mchp_pit64b_reset()
128 writel_relaxed(mode | timer->mode, timer->base + MCHP_PIT64B_MR); in mchp_pit64b_reset()
129 writel_relaxed(high, timer->base + MCHP_PIT64B_MSB_PR); in mchp_pit64b_reset()
130 writel_relaxed(low, timer->base + MCHP_PIT64B_LSB_PR); in mchp_pit64b_reset()
131 writel_relaxed(irqs, timer->base + MCHP_PIT64B_IER); in mchp_pit64b_reset()
132 writel_relaxed(MCHP_PIT64B_CR_START, timer->base + MCHP_PIT64B_CR); in mchp_pit64b_reset()
135 static void mchp_pit64b_suspend(struct mchp_pit64b_timer *timer) in mchp_pit64b_suspend() argument
[all …]
H A Dtimer-rockchip.c44 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->base + TIMER_LOAD_COUNT1); in rk_timer_update_counter()
72 static void rk_timer_interrupt_clear(struct rk_timer *timer) in rk_timer_interrupt_clear() 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_EOI); in apbt_eoi()
[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
101 timer = kzalloc_obj(*timer); in bcm2835_timer_init()
102 if (!timer) { in bcm2835_timer_init()
[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->channel), 0); in ingenic_tcu_cevt_set_next()
99 regmap_write(tcu->map, TCU_REG_TESR, BIT(timer->channel)); in ingenic_tcu_cevt_set_next()
[all …]
/linux/tools/testing/selftests/kvm/arm64/
H A Darch_timer_edge_cases.c3 * arch_timer_edge_cases.c - Tests the aarch64 timer IRQ functionality.
5 * The test validates some edge cases related to the arch-timer:
11 * - masking/unmasking using the timer control mask.
53 /* Virtual or physical timer and counter tests. */
54 enum arch_timer timer; member
55 /* Delay used for most timer tests. */
61 /* Whether to test the physical timer. */
63 /* Whether to test the virtual timer. */
85 typedef void (*sleep_method_t)(enum arch_timer timer, u64 usec);
87 static void sleep_poll(enum arch_timer timer, u6
140 set_counter(enum arch_timer timer,u64 counter) set_counter() argument
148 enum arch_timer timer; guest_irq_handler() local
181 set_cval_irq(enum arch_timer timer,u64 cval_cycles,u32 ctl) set_cval_irq() argument
190 set_tval_irq(enum arch_timer timer,u64 tval_cycles,u32 ctl) set_tval_irq() argument
199 set_xval_irq(enum arch_timer timer,u64 xval,u32 ctl,enum timer_view tv) set_xval_irq() argument
294 sleep_poll(enum arch_timer timer,u64 usec) sleep_poll() argument
299 sleep_sched_poll(enum arch_timer timer,u64 usec) sleep_sched_poll() argument
304 sleep_migrate(enum arch_timer timer,u64 usec) sleep_migrate() argument
309 sleep_in_userspace(enum arch_timer timer,u64 usec) sleep_in_userspace() argument
318 reset_timer_state(enum arch_timer timer,u64 cnt) reset_timer_state() argument
324 test_timer_xval(enum arch_timer timer,u64 xval,enum timer_view tv,irq_wait_method_t wm,bool reset_state,u64 reset_cnt) test_timer_xval() argument
351 test_timer_cval(enum arch_timer timer,u64 cval,irq_wait_method_t wm,bool reset_state,u64 reset_cnt) test_timer_cval() argument
358 test_timer_tval(enum arch_timer timer,s32 tval,irq_wait_method_t wm,bool reset_state,u64 reset_cnt) test_timer_tval() argument
366 test_xval_check_no_irq(enum arch_timer timer,u64 xval,u64 usec,enum timer_view timer_view,sleep_method_t guest_sleep) test_xval_check_no_irq() argument
382 test_cval_no_irq(enum arch_timer timer,u64 cval,u64 usec,sleep_method_t wm) test_cval_no_irq() argument
388 test_tval_no_irq(enum arch_timer timer,s32 tval,u64 usec,sleep_method_t wm) test_tval_no_irq() argument
396 test_timer_control_mask_then_unmask(enum arch_timer timer) test_timer_control_mask_then_unmask() argument
412 test_timer_control_masks(enum arch_timer timer) test_timer_control_masks() argument
427 test_fire_a_timer_multiple_times(enum arch_timer timer,irq_wait_method_t wm,int num) test_fire_a_timer_multiple_times() argument
452 test_timers_fired_multiple_times(enum arch_timer timer) test_timers_fired_multiple_times() argument
465 test_reprogramming_timer(enum arch_timer timer,irq_wait_method_t wm,s32 delta_1_ms,s32 delta_2_ms) test_reprogramming_timer() argument
488 test_reprogram_timers(enum arch_timer timer) test_reprogram_timers() argument
505 test_basic_functionality(enum arch_timer timer) test_basic_functionality() argument
523 timers_sanity_checks(enum arch_timer timer,bool use_sched) timers_sanity_checks() argument
583 test_timers_sanity_checks(enum arch_timer timer) test_timers_sanity_checks() argument
590 test_set_cnt_after_tval_max(enum arch_timer timer,irq_wait_method_t wm) test_set_cnt_after_tval_max() argument
609 test_timers_above_tval_max(enum arch_timer timer) test_timers_above_tval_max() argument
641 test_set_cnt_after_xval(enum arch_timer timer,u64 cnt_1,u64 xval,u64 cnt_2,irq_wait_method_t wm,enum timer_view tv) test_set_cnt_after_xval() argument
664 test_set_cnt_after_xval_no_irq(enum arch_timer timer,u64 cnt_1,u64 xval,u64 cnt_2,sleep_method_t guest_sleep,enum timer_view tv) test_set_cnt_after_xval_no_irq() argument
687 test_set_cnt_after_tval(enum arch_timer timer,u64 cnt_1,s32 tval,u64 cnt_2,irq_wait_method_t wm) test_set_cnt_after_tval() argument
694 test_set_cnt_after_cval(enum arch_timer timer,u64 cnt_1,u64 cval,u64 cnt_2,irq_wait_method_t wm) test_set_cnt_after_cval() argument
701 test_set_cnt_after_tval_no_irq(enum arch_timer timer,u64 cnt_1,s32 tval,u64 cnt_2,sleep_method_t wm) test_set_cnt_after_tval_no_irq() argument
709 test_set_cnt_after_cval_no_irq(enum arch_timer timer,u64 cnt_1,u64 cval,u64 cnt_2,sleep_method_t wm) test_set_cnt_after_cval_no_irq() argument
718 test_move_counters_ahead_of_timers(enum arch_timer timer) test_move_counters_ahead_of_timers() argument
741 test_move_counters_behind_timers(enum arch_timer timer) test_move_counters_behind_timers() argument
754 test_timers_in_the_past(enum arch_timer timer) test_timers_in_the_past() argument
790 test_long_timer_delays(enum arch_timer timer) test_long_timer_delays() argument
804 guest_run_iteration(enum arch_timer timer) guest_run_iteration() argument
822 guest_code(enum arch_timer timer) guest_code() argument
865 kvm_set_cntxct(struct kvm_vcpu * vcpu,u64 cnt,enum arch_timer timer) kvm_set_cntxct() argument
877 enum arch_timer timer = uc->args[3]; handle_sync() local
936 test_vm_create(struct kvm_vm ** vm,struct kvm_vcpu ** vcpu,enum arch_timer timer) test_vm_create() argument
[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/sound/core/
H A Dtimer.c119 struct snd_timer *timer; member
143 static int snd_timer_free(struct snd_timer *timer);
148 static void snd_timer_reschedule(struct snd_timer * timer, unsigned long ticks_left);
192 struct snd_timer *timer; in snd_timer_find() local
194 list_for_each_entry(timer, &snd_timer_list, device_list) { in snd_timer_find()
195 if (timer->tmr_class != tid->dev_class) in snd_timer_find()
197 if ((timer->tmr_class == SNDRV_TIMER_CLASS_CARD || in snd_timer_find()
198 timer->tmr_class == SNDRV_TIMER_CLASS_PCM) && in snd_timer_find()
199 (timer->card == NULL || in snd_timer_find()
200 timer->card->number != tid->card)) in snd_timer_find()
[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 …]
H A Dhrtimer.c3 * ALSA timer back-end using hrtimer
14 #include <sound/timer.h>
20 MODULE_ALIAS("snd-timer-" __stringify(SNDRV_TIMER_GLOBAL_HRTIMER));
26 struct snd_timer *timer; member
34 struct snd_timer *t = stime->timer; in snd_hrtimer_callback()
51 snd_timer_interrupt(stime->timer, ticks); in snd_hrtimer_callback()
70 stime->timer = t; in snd_hrtimer_open()
130 struct snd_timer *timer; in snd_hrtimer_init() local
135 /* Create a new timer and set up the fields */ in snd_hrtimer_init()
137 &timer); in snd_hrtimer_init()
[all...]
/linux/sound/core/seq/oss/
H A Dseq_oss_timer.c24 static void calc_alsa_tempo(struct seq_oss_timer *timer);
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->oss_timebase; in calc_alsa_tempo()
147 snd_seq_oss_timer_start(struct seq_oss_timer *timer) in snd_seq_oss_timer_start() argument
149 struct seq_oss_devinfo *dp = timer->dp; in snd_seq_oss_timer_start()
152 if (timer->running) in snd_seq_oss_timer_start()
153 snd_seq_oss_timer_stop(timer); in snd_seq_oss_timer_start()
157 tmprec.ppq = timer->ppq; in snd_seq_oss_timer_start()
158 tmprec.tempo = timer->tempo; in snd_seq_oss_timer_start()
[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/kvm/include/arm64/
H A Darch_timer.h34 static inline u64 timer_get_cntct(enum arch_timer timer) in timer_get_cntct() argument
38 switch (timer) { in timer_get_cntct()
44 GUEST_FAIL("Unexpected timer type = %u", timer); in timer_get_cntct()
51 static inline void timer_set_cval(enum arch_timer timer, u64 cval) in timer_set_cval() argument
53 switch (timer) { in timer_set_cval()
61 GUEST_FAIL("Unexpected timer type = %u", timer); in timer_set_cval()
67 static inline u64 timer_get_cval(enum arch_timer timer) in timer_get_cval() argument
69 switch (timer) { in timer_get_cval()
75 GUEST_FAIL("Unexpected timer type = %u", timer); in timer_get_cval()
82 static inline void timer_set_tval(enum arch_timer timer, s32 tval) in timer_set_tval() argument
[all …]
/linux/tools/testing/selftests/bpf/progs/
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 …]
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 Dtest_helper_restricted.c6 struct timer { struct
18 __type(value, struct timer);
28 static int timer_cb(void *map, int *key, struct timer *timer) in timer_cb() argument
35 struct timer *timer; in timer_work() local
38 timer = bpf_map_lookup_elem(&timers, &key); in timer_work()
39 if (timer) { in timer_work()
40 bpf_timer_init(&timer->t, &timers, CLOCK_MONOTONIC); in timer_work()
41 bpf_timer_set_callback(&timer->t, timer_cb); in timer_work()
42 bpf_timer_start(&timer->t, 10E9, 0); in timer_work()
43 bpf_timer_cancel(&timer->t); in timer_work()
/linux/kernel/time/
H A Dposix-cpu-timers.c22 static bool posix_cpu_timer_rearm(struct k_itimer *timer);
113 static inline struct task_struct *cpu_timer_task_rcu(struct k_itimer *timer) in cpu_timer_task_rcu() argument
115 return pid_task(timer->it.cpu.pid, clock_pid_type(timer->it_clock)); in cpu_timer_task_rcu()
122 static u64 bump_cpu_timer(struct k_itimer *timer, u64 now) in bump_cpu_timer() argument
124 u64 delta, incr, expires = timer->it.cpu.node.expires; in bump_cpu_timer()
127 if (!timer->it_interval) in bump_cpu_timer()
133 incr = timer->it_interval; in bump_cpu_timer()
144 timer->it.cpu.node.expires += incr; in bump_cpu_timer()
145 timer->it_overrun += 1LL << i; in bump_cpu_timer()
148 return timer->it.cpu.node.expires; in bump_cpu_timer()
[all …]
H A Dsleep_timeout.c19 struct timer_list timer; member
25 struct process_timer *timeout = timer_container_of(timeout, t, timer); in process_timeout()
63 struct process_timer timer; in schedule_timeout() local
95 timer.task = current; in schedule_timeout()
96 timer_setup_on_stack(&timer.timer, process_timeout, 0); in schedule_timeout()
97 timer.timer.expires = expire; in schedule_timeout()
98 add_timer(&timer.timer); in schedule_timeout()
100 timer_delete_sync(&timer.timer); in schedule_timeout()
103 timer_destroy_on_stack(&timer.timer); in schedule_timeout()
212 hrtimer_set_expires_range_ns(&t.timer, *expires, delta); in schedule_hrtimeout_range_clock()
[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()
117 shift = ((cmp == MFGPT_CMP1 ? 0 : 4) + timer->nr % 4) * 4; in cs5535_mfgpt_set_irq()
135 if (cs5535_mfgpt_toggle_event(timer, cmp, MFGPT_EVENT_IRQ, enable)) in cs5535_mfgpt_set_irq()
149 struct cs5535_mfgpt_timer *timer = NULL; in cs5535_mfgpt_alloc_timer() local
[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 …]
/linux/drivers/net/fddi/skfp/
H A Dsmttimer.c31 void smt_timer_stop(struct s_smc *smc, struct smt_timer *timer) in smt_timer_stop() argument
39 timer->tm_active = FALSE ; in smt_timer_stop()
40 if (smc->t.st_queue == timer && !timer->tm_next) { in smt_timer_stop()
44 if (tm == timer) { in smt_timer_stop()
54 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, in smt_timer_start() argument
64 smt_timer_stop(smc,timer) ; in smt_timer_start()
65 timer->tm_smc = smc ; in smt_timer_start()
66 timer->tm_token = token ; in smt_timer_start()
67 timer->tm_active = TRUE ; in smt_timer_start()
69 smc->t.st_queue = timer ; in smt_timer_start()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-devices-platform-ACPI-TAD16 BIT(5): The AC timer wakes up from S4 if set
17 BIT(6): The AC timer wakes up from S5 if set
18 BIT(7): The DC timer wakes up from S4 if set
19 BIT(8): The DC timer wakes up from S5 if set
28 (RW) The AC alarm timer value.
30 Reads return the current AC alarm timer value in seconds or
33 Write a new AC alarm timer value in seconds or "disabled" to it
34 to set the AC alarm timer or to disable it, respectively.
36 If the AC alarm timer is set through this attribute and it
45 (RW) The AC alarm expired timer wake policy (see ACPI 6.2,
[all …]
/linux/Documentation/sound/
H A Dutimers.rst15 stream with timer sources which we don't have ALSA timers exported for
31 Userspace application can create a userspace-driven ALSA timer by
33 ``/dev/snd/timer`` device file descriptor. The ``snd_timer_uinfo``
46 the virtual timer. ``resolution`` field simply provides an information
47 about the virtual timer, but does not affect the timing itself. ``id``
49 field after the call can be used as a timer subdevice number when
50 passing the timer to ``snd-aloop`` kernel module or other userspace
55 a timer file descriptor, which can be used to trigger the timer, in the
57 descriptor for the timer guarantees that the timer can only be triggered
58 by the process which created it. The timer then can be triggered with
[all …]

12345678910>>...50