Searched refs:timer (Results 1 - 25 of 1548) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dhrtimer.h21 #include <linux/timer.h>
29 * when starting the timer)
59 * Values to track state of the timer
66 * The callback state is not part of the timer->state because clearing it would
67 * mean touching the timer after the callback, this makes it impossible to free
68 * the timer from the callback function.
72 * timer->base->cpu_base->running == timer
75 * status. It happens for example when a posix timer expired and the callback
76 * queued a signal. Between dropping the lock which protects the posix timer
93 struct hrtimer timer; member in struct:hrtimer_sleeper
97 hrtimer_set_expires(struct hrtimer *timer, ktime_t time) argument
103 hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) argument
109 hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, u64 delta) argument
115 hrtimer_set_expires_tv64(struct hrtimer *timer, s64 tv64) argument
121 hrtimer_add_expires(struct hrtimer *timer, ktime_t time) argument
127 hrtimer_add_expires_ns(struct hrtimer *timer, u64 ns) argument
133 hrtimer_get_expires(const struct hrtimer *timer) argument
138 hrtimer_get_softexpires(const struct hrtimer *timer) argument
143 hrtimer_get_expires_tv64(const struct hrtimer *timer) argument
147 hrtimer_get_softexpires_tv64(const struct hrtimer *timer) argument
152 hrtimer_get_expires_ns(const struct hrtimer *timer) argument
157 hrtimer_expires_remaining(const struct hrtimer *timer) argument
162 hrtimer_cb_get_time(struct hrtimer *timer) argument
167 hrtimer_is_hres_active(struct hrtimer *timer) argument
187 __hrtimer_expires_remaining_adjusted(const struct hrtimer *timer, ktime_t now) argument
201 hrtimer_expires_remaining_adjusted(const struct hrtimer *timer) argument
220 hrtimer_cancel_wait_running(struct hrtimer *timer) argument
243 hrtimer_init_on_stack(struct hrtimer *timer, clockid_t which_clock, enum hrtimer_mode mode) argument
257 destroy_hrtimer_on_stack(struct hrtimer *timer) argument
272 hrtimer_start(struct hrtimer *timer, ktime_t tim, const enum hrtimer_mode mode) argument
281 hrtimer_start_expires(struct hrtimer *timer, enum hrtimer_mode mode) argument
295 hrtimer_restart(struct hrtimer *timer) argument
307 hrtimer_get_remaining(const struct hrtimer *timer) argument
325 hrtimer_is_queued(struct hrtimer *timer) argument
335 hrtimer_callback_running(struct hrtimer *timer) argument
352 hrtimer_forward_now(struct hrtimer *timer, ktime_t interval) argument
[all...]
H A Dtimer.h26 * @TIMER_DEFERRABLE: A deferrable timer will work normally when the
28 * to service it; instead, the timer will be serviced when the CPU
29 * eventually wakes up with a subsequent non-deferrable timer.
31 * @TIMER_IRQSAFE: An irqsafe timer is executed with IRQ disabled and
39 * @TIMER_PINNED: A pinned timer will always expire on the CPU on which the
40 * timer was enqueued. When a particular CPU is required, add_timer_on()
68 * LOCKDEP and DEBUG timer interfaces.
70 void init_timer_key(struct timer_list *timer,
75 extern void init_timer_on_stack_key(struct timer_list *timer,
80 static inline void init_timer_on_stack_key(struct timer_list *timer, argument
129 destroy_timer_on_stack(struct timer_list *timer) argument
145 timer_pending(const struct timer_list * timer) argument
183 del_timer_sync(struct timer_list *timer) argument
200 del_timer(struct timer_list *timer) argument
[all...]
/linux-master/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, in
[all...]
/linux-master/drivers/clocksource/
H A Dtimer-ti-dm.c33 #include <clocksource/timer-ti-dm.h>
36 * timer errata flags
40 * timer counter register is never read. For more details please refer to
159 * dmtimer_read - read timer registers in posted and non-posted mode
160 * @timer: timer pointer over which read operation to perform
167 static inline u32 dmtimer_read(struct dmtimer *timer, u32 reg) argument
175 if (wp && timer->posted)
176 while (readl_relaxed(timer->pend) & wp)
179 return readl_relaxed(timer
192 dmtimer_write(struct dmtimer *timer, u32 reg, u32 val) argument
207 __omap_dm_timer_init_regs(struct dmtimer *timer) argument
242 __omap_dm_timer_enable_posted(struct dmtimer *timer) argument
258 __omap_dm_timer_stop(struct dmtimer *timer) argument
281 __omap_dm_timer_int_enable(struct dmtimer *timer, unsigned int value) argument
289 __omap_dm_timer_read_counter(struct dmtimer *timer) argument
294 __omap_dm_timer_write_status(struct dmtimer *timer, unsigned int value) argument
300 omap_timer_restore_context(struct dmtimer *timer) argument
313 omap_timer_save_context(struct dmtimer *timer) argument
328 struct dmtimer *timer; local
356 struct dmtimer *timer = container_of(nb, struct dmtimer, fclk_nb); local
367 omap_dm_timer_reset(struct dmtimer *timer) argument
415 struct dmtimer *timer; local
469 struct dmtimer *timer = to_dmtimer(cookie); local
480 struct dmtimer *timer = to_dmtimer(cookie); local
486 omap_dm_timer_prepare(struct dmtimer *timer) argument
516 struct dmtimer *timer = NULL, *t; local
600 struct dmtimer *timer; local
611 struct dmtimer *timer; local
636 struct dmtimer *timer; local
650 struct dmtimer *timer; local
676 struct dmtimer *timer = to_dmtimer(cookie); local
697 struct dmtimer *timer = NULL; local
727 struct dmtimer *timer = to_dmtimer(cookie); local
745 struct dmtimer *timer; local
771 struct dmtimer *timer; local
790 struct dmtimer *timer; local
813 struct dmtimer *timer; local
843 struct dmtimer *timer; local
876 struct dmtimer *timer; local
900 struct dmtimer *timer; local
930 struct dmtimer *timer; local
959 struct dmtimer *timer; local
987 struct dmtimer *timer; local
1003 struct dmtimer *timer; local
1016 struct dmtimer *timer; local
1029 struct dmtimer *timer; local
1046 struct dmtimer *timer = dev_get_drvdata(dev); local
1060 struct dmtimer *timer = dev_get_drvdata(dev); local
1087 struct dmtimer *timer; local
1201 struct dmtimer *timer; local
[all...]
H A DMakefile2 obj-$(CONFIG_TIMER_OF) += timer-of.o
3 obj-$(CONFIG_TIMER_PROBE) += timer-probe.o
4 obj-$(CONFIG_ATMEL_PIT) += timer-atmel-pit.o
5 obj-$(CONFIG_ATMEL_ST) += timer-atmel-st.o
6 obj-$(CONFIG_ATMEL_TCB_CLKSRC) += timer-atmel-tcb.o
9 obj-$(CONFIG_CS5535_CLOCK_EVENT_SRC) += timer-cs5535.o
18 obj-$(CONFIG_DAVINCI_TIMER) += timer-davinci.o
19 obj-$(CONFIG_DIGICOLOR_TIMER) += timer-digicolor.o
20 obj-$(CONFIG_OMAP_DM_TIMER) += timer-ti-dm.o
21 obj-$(CONFIG_OMAP_DM_SYSTIMER) += timer
[all...]
H A Dtimer-zevio.c3 * linux/drivers/clocksource/zevio-timer.c
64 struct zevio_timer *timer = container_of(dev, struct zevio_timer, local
67 writel(delta, timer->timer1 + IO_CURRENT_VAL);
69 timer->timer1 + IO_CONTROL);
76 struct zevio_timer *timer = container_of(dev, struct zevio_timer, local
79 /* Disable timer interrupts */
80 writel(0, timer->interrupt_regs + IO_INTR_MSK);
81 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK);
82 /* Stop timer */
83 writel(CNTL_STOP_TIMER, timer
89 struct zevio_timer *timer = container_of(dev, struct zevio_timer, local
100 struct zevio_timer *timer = dev_id; local
118 struct zevio_timer *timer; 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 in struct:mchp_pit64b_clkevt
80 * @timer: PIT64B timer
84 struct mchp_pit64b_timer timer; member in struct:mchp_pit64b_clksrc
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) argument
135 mchp_pit64b_suspend(struct mchp_pit64b_timer *timer) argument
143 mchp_pit64b_resume(struct mchp_pit64b_timer *timer) argument
152 struct mchp_pit64b_timer *timer = clksrc_to_mchp_pit64b_timer(cs); local
159 struct mchp_pit64b_timer *timer = clksrc_to_mchp_pit64b_timer(cs); local
182 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); local
192 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); local
205 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); local
219 struct mchp_pit64b_timer *timer = clkevt_to_mchp_pit64b_timer(cedev); local
291 mchp_pit64b_init_mode(struct mchp_pit64b_timer *timer, unsigned long max_rate) argument
347 mchp_pit64b_init_clksrc(struct mchp_pit64b_timer *timer, u32 clk_rate) argument
394 mchp_pit64b_init_clkevt(struct mchp_pit64b_timer *timer, u32 clk_rate, u32 irq) argument
436 struct mchp_pit64b_timer timer; local
[all...]
H A Dtimer-rockchip.c3 * Rockchip timer support
44 struct rk_timer timer; member in struct:rk_clkevt
52 return &container_of(ce, struct rk_clkevt, ce)->timer;
55 static inline void rk_timer_disable(struct rk_timer *timer) argument
57 writel_relaxed(TIMER_DISABLE, timer->ctrl);
60 static inline void rk_timer_enable(struct rk_timer *timer, u32 flags) argument
62 writel_relaxed(TIMER_ENABLE | flags, timer->ctrl);
66 struct rk_timer *timer)
68 writel_relaxed(cycles, timer->base + TIMER_LOAD_COUNT0);
69 writel_relaxed(0, timer
65 rk_timer_update_counter(unsigned long cycles, struct rk_timer *timer) argument
72 rk_timer_interrupt_clear(struct rk_timer *timer) argument
80 struct rk_timer *timer = rk_timer(ce); local
91 struct rk_timer *timer = rk_timer(ce); local
99 struct rk_timer *timer = rk_timer(ce); local
110 struct rk_timer *timer = rk_timer(ce); local
128 rk_timer_probe(struct rk_timer *timer, struct device_node *np) argument
198 rk_timer_cleanup(struct rk_timer *timer) argument
[all...]
/linux-master/arch/s390/include/asm/
H A Dvtimer.h4 * Virtual CPU timer
22 extern void init_virt_timer(struct vtimer_list *timer);
23 extern void add_virt_timer(struct vtimer_list *timer);
24 extern void add_virt_timer_periodic(struct vtimer_list *timer);
25 extern int mod_virt_timer(struct vtimer_list *timer, u64 expires);
26 extern int mod_virt_timer_periodic(struct vtimer_list *timer, u64 expires);
27 extern int del_virt_timer(struct vtimer_list *timer);
/linux-master/arch/powerpc/boot/dts/fsl/
H A Dpq3-mpic-timer-B.dtsi35 timer@42100 {
36 compatible = "fsl,mpic-global-timer";
/linux-master/include/linux/sunrpc/
H A Dtimer.h3 * linux/include/linux/sunrpc/timer.h
5 * Declarations for the RPC transport timer.
24 extern void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m);
25 extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer);
27 static inline void rpc_set_timeo(struct rpc_rtt *rt, int timer, int ntimeo) argument
30 if (!timer)
32 t = &rt->ntimeouts[timer-1];
43 static inline int rpc_ntimeo(struct rpc_rtt *rt, int timer) argument
45 if (!timer)
47 return rt->ntimeouts[timer
[all...]
/linux-master/tools/testing/selftests/kvm/include/aarch64/
H A Darch_timer.h34 static inline uint64_t timer_get_cntct(enum arch_timer timer) argument
38 switch (timer) {
44 GUEST_FAIL("Unexpected timer type = %u", timer);
51 static inline void timer_set_cval(enum arch_timer timer, uint64_t cval) argument
53 switch (timer) {
61 GUEST_FAIL("Unexpected timer type = %u", timer);
67 static inline uint64_t timer_get_cval(enum arch_timer timer) argument
69 switch (timer) {
82 timer_set_tval(enum arch_timer timer, uint32_t tval) argument
98 timer_set_ctl(enum arch_timer timer, uint32_t ctl) argument
114 timer_get_ctl(enum arch_timer timer) argument
129 timer_set_next_cval_ms(enum arch_timer timer, uint32_t msec) argument
137 timer_set_next_tval_ms(enum arch_timer timer, uint32_t msec) argument
[all...]
H A Ddelay.h13 enum arch_timer timer = VIRTUAL; local
14 uint64_t start = timer_get_cntct(timer);
16 while ((timer_get_cntct(timer) - start) < cycles)
/linux-master/drivers/rtc/
H A Drtc-brcmstb-waketimer.c49 static inline bool brcmstb_waketmr_is_pending(struct brcmstb_waketmr *timer) argument
53 reg = readl_relaxed(timer->base + BRCMSTB_WKTMR_EVENT);
57 static inline void brcmstb_waketmr_clear_alarm(struct brcmstb_waketmr *timer) argument
61 if (timer->alarm_en && timer->alarm_irq)
62 disable_irq(timer->alarm_irq);
63 timer->alarm_en = false;
64 reg = readl_relaxed(timer->base + BRCMSTB_WKTMR_COUNTER);
65 writel_relaxed(reg - 1, timer->base + BRCMSTB_WKTMR_ALARM);
66 writel_relaxed(WKTMR_ALARM_EVENT, timer
75 brcmstb_waketmr_set_alarm(struct brcmstb_waketmr *timer, unsigned int secs) argument
98 struct brcmstb_waketmr *timer = data; local
107 struct brcmstb_waketmr *timer = data; local
135 wktmr_read(struct brcmstb_waketmr *timer, struct wktmr_time *t) argument
148 brcmstb_waketmr_prepare_suspend(struct brcmstb_waketmr *timer) argument
176 struct brcmstb_waketmr *timer; local
190 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
203 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
216 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
229 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
257 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
277 struct brcmstb_waketmr *timer; local
360 struct brcmstb_waketmr *timer = dev_get_drvdata(&pdev->dev); local
369 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
376 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
387 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); local
[all...]
/linux-master/sound/core/seq/oss/
H A Dseq_oss_timer.h4 * timer handling routines
15 * timer information definition
30 int snd_seq_oss_timer_start(struct seq_oss_timer *timer);
31 int snd_seq_oss_timer_stop(struct seq_oss_timer *timer);
32 int snd_seq_oss_timer_continue(struct seq_oss_timer *timer);
33 int snd_seq_oss_timer_tempo(struct seq_oss_timer *timer, int value);
36 int snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __user *arg);
42 snd_seq_oss_timer_cur_tick(struct seq_oss_timer *timer) argument
44 return timer->cur_tick;
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) argument
118 timer->tempo = (60 * 1000000) / timer->oss_tempo;
119 timer->ppq = timer
147 snd_seq_oss_timer_start(struct seq_oss_timer *timer) argument
172 snd_seq_oss_timer_stop(struct seq_oss_timer *timer) argument
186 snd_seq_oss_timer_continue(struct seq_oss_timer *timer) argument
200 snd_seq_oss_timer_tempo(struct seq_oss_timer *timer, int value) argument
218 snd_seq_oss_timer_ioctl(struct seq_oss_timer *timer, unsigned int cmd, int __user *arg) argument
[all...]
/linux-master/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 in struct:idletimer_tg
66 struct idletimer_tg *timer; local
73 timer = __idletimer_tg_find_by_label(attr->attr.name);
74 if (timer) {
75 if (timer->timer_type & XT_IDLETIMER_ALARM) {
76 ktime_t expires_alarm = alarm_expires_remaining(&timer->alarm);
80 expires = timer
95 struct idletimer_tg *timer = container_of(work, struct idletimer_tg, local
103 struct idletimer_tg *timer = from_timer(timer, t, timer); local
113 struct idletimer_tg *timer = alarm->data; local
[all...]
/linux-master/sound/core/
H A Dpcm_timer.c11 #include <sound/timer.h>
44 "pcm timer resolution out of range (rate = %u, period_size = %lu)\n",
52 static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) argument
56 substream = timer->private_data;
60 static int snd_pcm_timer_start(struct snd_timer * timer) argument
64 substream = snd_timer_chip(timer);
69 static int snd_pcm_timer_stop(struct snd_timer * timer) argument
73 substream = snd_timer_chip(timer);
92 static void snd_pcm_timer_free(struct snd_timer *timer) argument
94 struct snd_pcm_substream *substream = timer
101 struct snd_timer *timer; local
[all...]
/linux-master/sound/isa/gus/
H A Dgus_timer.c17 static int snd_gf1_timer1_start(struct snd_timer * timer) argument
24 gus = snd_timer_chip(timer);
26 ticks = timer->sticks;
28 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */
29 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 1 IRQ */
30 snd_gf1_adlib_write(gus, 0x04, tmp >> 2); /* timer 2 start */
35 static int snd_gf1_timer1_stop(struct snd_timer * timer) argument
41 gus = snd_timer_chip(timer);
44 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* disable timer #1 */
53 static int snd_gf1_timer2_start(struct snd_timer * timer) argument
71 snd_gf1_timer2_stop(struct snd_timer * timer) argument
91 struct snd_timer *timer = gus->gf1.timer1; local
100 struct snd_timer *timer = gus->gf1.timer2; local
129 snd_gf1_timer1_free(struct snd_timer *timer) argument
135 snd_gf1_timer2_free(struct snd_timer *timer) argument
143 struct snd_timer *timer; local
[all...]
/linux-master/arch/nios2/kernel/
H A Dtime.c22 #define ALTR_TIMER_COMPATIBLE "altr,timer-1.0"
42 struct nios2_timer timer; member in struct:nios2_clockevent_dev
47 struct nios2_timer timer; member in struct:nios2_clocksource
63 static u16 timer_readw(struct nios2_timer *timer, u32 offs) argument
65 return readw(timer->base + offs);
68 static void timer_writew(struct nios2_timer *timer, u16 val, u32 offs) argument
70 writew(val, timer->base + offs);
73 static inline unsigned long read_timersnapshot(struct nios2_timer *timer) argument
77 timer_writew(timer, 0, ALTERA_TIMER_SNAPL_REG);
78 count = timer_readw(timer, ALTERA_TIMER_SNAPH_RE
117 nios2_timer_start(struct nios2_timer *timer) argument
126 nios2_timer_stop(struct nios2_timer *timer) argument
135 nios2_timer_config(struct nios2_timer *timer, unsigned long period, bool periodic) argument
174 struct nios2_timer *timer = &nios2_ced->timer; local
184 struct nios2_timer *timer = &nios2_ced->timer; local
194 struct nios2_timer *timer = &nios2_ced->timer; local
243 nios2_clockevent_init(struct device_node *timer) argument
281 nios2_clocksource_init(struct device_node *timer) argument
317 nios2_time_init(struct device_node *timer) argument
[all...]
/linux-master/arch/sh/include/asm/
H A Dheartbeat.h5 #include <linux/timer.h>
13 struct timer_list timer; member in struct:heartbeat_data
/linux-master/drivers/staging/media/atomisp/pci/
H A Dgp_timer_defs.h23 #define HIVE_GP_TIMER_ENABLE_REG_IDX(timer) (HIVE_GP_TIMER_OVERALL_ENABLE_REG_IDX + 1 + timer)
24 #define HIVE_GP_TIMER_VALUE_REG_IDX(timer, timers) (HIVE_GP_TIMER_ENABLE_REG_IDX(timers) + timer)
25 #define HIVE_GP_TIMER_COUNT_TYPE_REG_IDX(timer, timers) (HIVE_GP_TIMER_VALUE_REG_IDX(timers, timers) + timer)
26 #define HIVE_GP_TIMER_SIGNAL_SELECT_REG_IDX(timer, timers) (HIVE_GP_TIMER_COUNT_TYPE_REG_IDX(timers, timers) + timer)
/linux-master/arch/sparc/include/asm/
H A Dtimex_64.h10 #include <asm/timer.h>
/linux-master/sound/pci/emu10k1/
H A Dtimer.c14 static int snd_emu10k1_timer_start(struct snd_timer *timer) argument
19 emu = snd_timer_chip(timer);
20 delay = timer->sticks - 1;
28 static int snd_emu10k1_timer_stop(struct snd_timer *timer) argument
32 emu = snd_timer_chip(timer);
37 static unsigned long snd_emu10k1_timer_c_resolution(struct snd_timer *timer) argument
39 struct snd_emu10k1 *emu = snd_timer_chip(timer);
48 static int snd_emu10k1_timer_precise_resolution(struct snd_timer *timer, argument
51 struct snd_emu10k1 *emu = snd_timer_chip(timer);
72 struct snd_timer *timer local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
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) argument
35 struct timer *timer; local
38 timer = bpf_map_lookup_elem(&timers, &key);
39 if (timer) {
40 bpf_timer_init(&timer->t, &timers, CLOCK_MONOTONIC);
41 bpf_timer_set_callback(&timer
[all...]

Completed in 349 milliseconds

1234567891011>>