Home
last modified time | relevance | path

Searched full:timer (Results 1 – 25 of 2904) sorted by relevance

12345678910>>...117

/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 in brcmstb_waketmr_clear_alarm()
74 brcmstb_waketmr_set_alarm(struct brcmstb_waketmr * timer,unsigned int secs) brcmstb_waketmr_set_alarm() argument
97 struct brcmstb_waketmr *timer = data; brcmstb_waketmr_irq() local
106 struct brcmstb_waketmr *timer = data; brcmstb_alarm_irq() local
134 wktmr_read(struct brcmstb_waketmr * timer,struct wktmr_time * t) wktmr_read() argument
147 brcmstb_waketmr_prepare_suspend(struct brcmstb_waketmr * timer) brcmstb_waketmr_prepare_suspend() argument
175 struct brcmstb_waketmr *timer; brcmstb_waketmr_reboot() local
189 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_gettime() local
202 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_settime() local
215 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_getalarm() local
228 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_alarm_enable() local
256 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_setalarm() local
276 struct brcmstb_waketmr *timer; brcmstb_waketmr_probe() local
359 struct brcmstb_waketmr *timer = dev_get_drvdata(&pdev->dev); brcmstb_waketmr_remove() local
368 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_suspend() local
375 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_suspend_noirq() local
386 struct brcmstb_waketmr *timer = dev_get_drvdata(dev); brcmstb_waketmr_resume() local
[all...]
/linux/drivers/clocksource/
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->timer1 + IO_CONTROL); in zevio_timer_shutdown()
[all …]
H A Dtimer-microchip-pit64b.c3 * 64-bit Periodic Interval Timer driver
38 #define MCHP_PIT64B_TLSBR 0x20 /* Timer LSB Register */
40 #define MCHP_PIT64B_TMSBR 0x24 /* Timer MSB Register */
51 * 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. */
[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->base + TIMER_LOAD_COUNT1); in rk_timer_update_counter()
[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 …]
H A Dtimer-cadence-ttc.c3 * This file contains driver for the Cadence Triple Timer Counter Rev 06
7 * based on arch/mips/kernel/time.c timer driver
25 * T1: Timer 1, clocksource for generic timekeeping
26 * T2: Timer 2, clockevent source for hrtimers
27 * T3: Timer 3, <unused>
29 * The input frequency to the timer module for emulation is 2.5MHz which is
30 * common to all the timer channels (T1, T2, and T3). With a pre-scaler of 32,
33 * The input frequency to the timer module in silicon is configurable and
38 * Timer Register Offset Definitions of Timer 1, Increment base address by 4
39 * and use same offsets for Timer 2
[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/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
110 struct idletimer_tg *timer = alarm->data; idletimer_tg_alarmproc() local
115 idletimer_start_alarm_ktime(struct idletimer_tg * timer,ktime_t timeout) idletimer_start_alarm_ktime() argument
125 idletimer_start_alarm_sec(struct idletimer_tg * timer,unsigned int seconds) idletimer_start_alarm_sec() argument
[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
135 /* rwlock for timer instance (for trigger actions) */
143 static int snd_timer_free(struct snd_timer *timer);
148 static void snd_timer_reschedule(struct snd_timer * timer, unsigned long ticks_left);
151 * create a timer instance with the given owner string.
188 * find a timer instanc
192 struct snd_timer *timer; snd_timer_find() local
237 snd_timer_ref_get(struct snd_timer * timer) snd_timer_ref_get() argument
242 snd_timer_ref_put(struct snd_timer * timer) snd_timer_ref_put() argument
264 snd_timeri_timer_put(struct snd_timer * timer) snd_timeri_timer_put() argument
348 struct snd_timer *timer; snd_timer_open() local
445 remove_slave_links(struct snd_timer_instance * timeri,struct snd_timer * timer) remove_slave_links() argument
472 struct snd_timer *timer = timeri->timer; snd_timer_close_locked() local
548 snd_timer_hw_resolution(struct snd_timer * timer) snd_timer_hw_resolution() argument
575 struct snd_timer *timer = ti->timer; snd_timer_notify1() local
609 struct snd_timer *timer; snd_timer_start1() local
682 struct snd_timer *timer; snd_timer_stop1() local
805 snd_timer_reschedule(struct snd_timer * timer,unsigned long ticks_left) snd_timer_reschedule() argument
833 snd_timer_process_callbacks(struct snd_timer * timer,struct list_head * head) snd_timer_process_callbacks() argument
861 snd_timer_clear_callbacks(struct snd_timer * timer,struct list_head * head) snd_timer_clear_callbacks() argument
875 struct snd_timer *timer = container_of(work, struct snd_timer, task_work); snd_timer_work() local
892 snd_timer_interrupt(struct snd_timer * timer,unsigned long ticks_left) snd_timer_interrupt() argument
987 struct snd_timer *timer; snd_timer_new() local
1039 struct snd_timer *timer = container_of(kref, struct snd_timer, kref); snd_timer_kref_release() local
1046 snd_timer_free(struct snd_timer * timer) snd_timer_free() argument
1073 struct snd_timer *timer = device->device_data; snd_timer_dev_free() local
1079 struct snd_timer *timer = dev->device_data; snd_timer_dev_register() local
1126 struct snd_timer *timer = device->device_data; snd_timer_dev_disconnect() local
1139 snd_timer_notify(struct snd_timer * timer,int event,struct timespec64 * tstamp) snd_timer_notify() argument
1182 snd_timer_global_free(struct snd_timer * timer) snd_timer_global_free() argument
1188 snd_timer_global_register(struct snd_timer * timer) snd_timer_global_register() argument
1214 struct snd_timer *timer = priv->snd_timer; snd_timer_s_function() local
1221 snd_timer_s_start(struct snd_timer * timer) snd_timer_s_start() argument
1240 snd_timer_s_stop(struct snd_timer * timer) snd_timer_s_stop() argument
1256 snd_timer_s_close(struct snd_timer * timer) snd_timer_s_close() argument
1275 snd_timer_free_system(struct snd_timer * timer) snd_timer_free_system() argument
1282 struct snd_timer *timer; snd_timer_register_system() local
1311 struct snd_timer *timer; snd_timer_proc_read() local
1597 snd_timer_user_copy_id(struct snd_timer_id * id,struct snd_timer * timer) snd_timer_user_copy_id() argument
1608 struct snd_timer *timer; get_next_device() local
2213 struct snd_timer *timer; snd_utimer_create() local
2544 struct snd_timer *timer, *n; snd_timer_free_all() local
[all...]
H A Dpcm_timer.c11 #include <sound/timer.h>
16 * Timer functions
44 "pcm timer resolution out of range (rate = %u, period_size = %lu)\n", in snd_pcm_timer_resolution_change()
52 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
[all …]
/linux/kernel/time/
H A Dhrtimer.c9 * In contrast to the low-resolution timeout API, aka timer wheel,
16 * Based on the original timer wheel code
43 #include <linux/timer.h>
49 #include <trace/events/timer.h>
54 * Constants to set the queued state of the timer (INACTIVE, ENQUEUED)
57 * the timer would required touching the timer after the callback, which
58 * makes it impossible to free the timer from the callback function.
62 * timer->base->cpu_base->running == timer
184 lock_hrtimer_base(const struct hrtimer * timer,unsigned long * flags) lock_hrtimer_base() argument
216 hrtimer_suitable_target(struct hrtimer * timer,struct hrtimer_clock_base * new_base,struct hrtimer_cpu_base * new_cpu_base,struct hrtimer_cpu_base * this_cpu_base) hrtimer_suitable_target() argument
271 switch_hrtimer_base(struct hrtimer * timer,struct hrtimer_clock_base * base,bool pinned) switch_hrtimer_base() argument
318 lock_hrtimer_base(const struct hrtimer * timer,unsigned long * flags) lock_hrtimer_base() argument
395 struct hrtimer *timer = addr; hrtimer_fixup_init() local
429 struct hrtimer *timer = addr; hrtimer_fixup_free() local
454 struct hrtimer *timer = addr; hrtimer_fixup_assert_init() local
474 debug_hrtimer_init(struct hrtimer * timer) debug_hrtimer_init() argument
479 debug_hrtimer_init_on_stack(struct hrtimer * timer) debug_hrtimer_init_on_stack() argument
484 debug_hrtimer_activate(struct hrtimer * timer,enum hrtimer_mode mode) debug_hrtimer_activate() argument
489 debug_hrtimer_deactivate(struct hrtimer * timer) debug_hrtimer_deactivate() argument
494 debug_hrtimer_assert_init(struct hrtimer * timer) debug_hrtimer_assert_init() argument
499 destroy_hrtimer_on_stack(struct hrtimer * timer) destroy_hrtimer_on_stack() argument
507 debug_hrtimer_init(struct hrtimer * timer) debug_hrtimer_init() argument
508 debug_hrtimer_init_on_stack(struct hrtimer * timer) debug_hrtimer_init_on_stack() argument
509 debug_hrtimer_activate(struct hrtimer * timer,enum hrtimer_mode mode) debug_hrtimer_activate() argument
510 debug_hrtimer_deactivate(struct hrtimer * timer) debug_hrtimer_deactivate() argument
511 debug_hrtimer_assert_init(struct hrtimer * timer) debug_hrtimer_assert_init() argument
514 debug_setup(struct hrtimer * timer,clockid_t clockid,enum hrtimer_mode mode) debug_setup() argument
520 debug_setup_on_stack(struct hrtimer * timer,clockid_t clockid,enum hrtimer_mode mode) debug_setup_on_stack() argument
527 debug_activate(struct hrtimer * timer,enum hrtimer_mode mode,bool was_armed) debug_activate() argument
847 hrtimer_reprogram(struct hrtimer * timer,bool reprogram) hrtimer_reprogram() argument
1039 unlock_hrtimer_base(const struct hrtimer * timer,unsigned long * flags) unlock_hrtimer_base() argument
1053 hrtimer_update_function(struct hrtimer * timer,enum hrtimer_restart (* function)(struct hrtimer *)) hrtimer_update_function() argument
1088 hrtimer_forward(struct hrtimer * timer,ktime_t now,ktime_t interval) hrtimer_forward() argument
1131 enqueue_hrtimer(struct hrtimer * timer,struct hrtimer_clock_base * base,enum hrtimer_mode mode,bool was_armed) enqueue_hrtimer() argument
1166 __remove_hrtimer(struct hrtimer * timer,struct hrtimer_clock_base * base,bool newstate,bool reprogram) __remove_hrtimer() argument
1209 remove_hrtimer(struct hrtimer * timer,struct hrtimer_clock_base * base,bool newstate) remove_hrtimer() argument
1243 hrtimer_can_update_in_place(struct hrtimer * timer,struct hrtimer_clock_base * base,ktime_t expires) hrtimer_can_update_in_place() argument
1261 remove_and_enqueue_same_base(struct hrtimer * timer,struct hrtimer_clock_base * base,const enum hrtimer_mode mode,ktime_t expires,u64 delta_ns) remove_and_enqueue_same_base() argument
1311 hrtimer_update_lowres(struct hrtimer * timer,ktime_t tim,const enum hrtimer_mode mode) hrtimer_update_lowres() argument
1379 hrtimer_keep_base(struct hrtimer * timer,bool is_local,bool is_first,bool is_pinned) hrtimer_keep_base() argument
1395 __hrtimer_start_range_ns(struct hrtimer * timer,ktime_t tim,u64 delta_ns,const enum hrtimer_mode mode,struct hrtimer_clock_base * base) __hrtimer_start_range_ns() argument
1501 hrtimer_start_range_ns_common(struct hrtimer * timer,ktime_t tim,u64 delta_ns,const enum hrtimer_mode mode,struct hrtimer_clock_base * base) hrtimer_start_range_ns_common() argument
1527 hrtimer_start_range_ns(struct hrtimer * timer,ktime_t tim,u64 delta_ns,const enum hrtimer_mode mode) hrtimer_start_range_ns() argument
1552 hrtimer_check_user_timer(struct hrtimer * timer) hrtimer_check_user_timer() argument
1600 hrtimer_start_range_ns_user(struct hrtimer * timer,ktime_t tim,u64 delta_ns,const enum hrtimer_mode mode) hrtimer_start_range_ns_user() argument
1645 hrtimer_try_to_cancel(struct hrtimer * timer) hrtimer_try_to_cancel() argument
1738 hrtimer_cancel_wait_running(const struct hrtimer * timer) hrtimer_cancel_wait_running() argument
1779 hrtimer_cancel(struct hrtimer * timer) hrtimer_cancel() argument
1798 __hrtimer_get_remaining(const struct hrtimer * timer,bool adjust) __hrtimer_get_remaining() argument
1902 hrtimer_cb_get_time(const struct hrtimer * timer) hrtimer_cb_get_time() argument
1908 __hrtimer_setup(struct hrtimer * timer,enum hrtimer_restart (* fn)(struct hrtimer *),clockid_t clock_id,enum hrtimer_mode mode) __hrtimer_setup() argument
1963 hrtimer_setup(struct hrtimer * timer,enum hrtimer_restart (* function)(struct hrtimer *),clockid_t clock_id,enum hrtimer_mode mode) hrtimer_setup() argument
1981 hrtimer_setup_on_stack(struct hrtimer * timer,enum hrtimer_restart (* function)(struct hrtimer *),clockid_t clock_id,enum hrtimer_mode mode) hrtimer_setup_on_stack() argument
1997 hrtimer_active(const struct hrtimer * timer) hrtimer_active() argument
2033 __run_hrtimer(struct hrtimer_cpu_base * cpu_base,struct hrtimer_clock_base * base,struct hrtimer * timer,ktime_t now,unsigned long flags) __run_hrtimer() argument
2113 struct hrtimer *timer; __hrtimer_run_queues() local
2323 hrtimer_wakeup(struct hrtimer * timer) hrtimer_wakeup() argument
2585 struct hrtimer *timer; migrate_hrtimer_list() local
[all...]
H A Dposix-cpu-timers.c13 #include <trace/events/timer.h>
22 static bool posix_cpu_timer_rearm(struct k_itimer *timer);
34 * Called after updating RLIMIT_CPU to run cpu timer and update
67 * If the encoded PID is 0, then the timer is targeted at current in pid_for_clock()
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 in bump_cpu_timer()
417 timer_base(struct k_itimer * timer,struct task_struct * tsk) timer_base() argument
434 trigger_base_recalc_expires(struct k_itimer * timer,struct task_struct * tsk) trigger_base_recalc_expires() argument
452 disarm_timer(struct k_itimer * timer,struct task_struct * p) disarm_timer() argument
524 timer_lock_sighand(struct k_itimer * timer,unsigned long * flags) timer_lock_sighand() argument
574 posix_cpu_timer_on_expiry_list(struct k_itimer * timer) posix_cpu_timer_on_expiry_list() argument
593 posix_cpu_timer_del(struct k_itimer * timer) posix_cpu_timer_del() argument
660 arm_timer(struct k_itimer * timer,struct task_struct * p) arm_timer() argument
688 cpu_timer_fire(struct k_itimer * timer) cpu_timer_fire() argument
717 posix_cpu_timer_set(struct k_itimer * timer,int timer_flags,struct itimerspec64 * new,struct itimerspec64 * old) posix_cpu_timer_set() argument
809 __posix_cpu_timer_get(struct k_itimer * timer,struct itimerspec64 * itp,u64 now) __posix_cpu_timer_get() argument
845 posix_cpu_timer_get(struct k_itimer * timer,struct itimerspec64 * itp) posix_cpu_timer_get() argument
1086 posix_cpu_timer_rearm(struct k_itimer * timer) posix_cpu_timer_rearm() argument
1360 struct k_itimer *timer, *next; handle_posix_cpu_timers() local
1548 struct k_itimer timer; do_cpu_nanosleep() local
1687 process_cpu_timer_create(struct k_itimer * timer) process_cpu_timer_create() argument
1707 thread_cpu_timer_create(struct k_itimer * timer) thread_cpu_timer_create() argument
[all...]
/linux/Documentation/devicetree/bindings/timer/
H A Dti,timer-dm.yaml4 $id: http://devicetree.org/schemas/timer/ti,timer-dm.yaml#
7 title: TI dual-mode timer
13 The TI dual-mode timer is a general purpose timer with PWM capabilities.
20 - ti,am335x-timer
21 - ti,am335x-timer-1ms
22 - ti,am654-timer
23 - ti,dm814-timer
24 - ti,dm816-timer
25 - ti,omap2420-timer
26 - ti,omap3430-timer
[all …]
H A Drockchip,rk-timer.yaml4 $id: http://devicetree.org/schemas/timer/rockchip,rk-timer.yaml#
7 title: Rockchip Timer
15 - const: rockchip,rk3288-timer
16 - const: rockchip,rk3399-timer
19 - rockchip,rv1108-timer
20 - rockchip,rv1126-timer
21 - rockchip,rk3036-timer
22 - rockchip,rk3128-timer
23 - rockchip,rk3188-timer
24 - rockchip,rk3228-timer
[all …]
/linux/arch/nios2/kernel/
H A Dtime.c22 #define ALTR_TIMER_COMPATIBLE "altr,timer-1.0"
42 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()
[all …]
/linux/include/linux/mfd/
H A Drz-mtu3.h13 #define RZ_MTU3_TSTRA 0x080 /* Timer start register A */
14 #define RZ_MTU3_TSTRB 0x880 /* Timer start register B */
17 #define RZ_MTU3_TDDRA 0x016 /* Timer dead time data register A */
18 #define RZ_MTU3_TDDRB 0x816 /* Timer dead time data register B */
19 #define RZ_MTU3_TCDRA 0x014 /* Timer cycle data register A */
20 #define RZ_MTU3_TCDRB 0x814 /* Timer cycle data register B */
21 #define RZ_MTU3_TCBRA 0x022 /* Timer cycle buffer register A */
22 #define RZ_MTU3_TCBRB 0x822 /* Timer cycle buffer register B */
23 #define RZ_MTU3_TCNTSA 0x020 /* Timer subcounter A */
24 #define RZ_MTU3_TCNTSB 0x820 /* Timer subcounter B */
[all …]
/linux/sound/core/seq/oss/
H A Dseq_oss_timer.c5 * Timer control routines
24 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->oss_timebase; in calc_alsa_tempo()
124 * dispatch a timer event
[all …]
/linux/tools/testing/selftests/kvm/include/arm64/
H A Darch_timer.h3 * ARM Generic Timer specific interface
34 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()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtimer.c18 struct bpf_timer timer;
85 static int timer_cb1(void *map, int *key, struct bpf_timer *timer) in timer_cb1()
88 * Once via array timer callback and once via lru timer callback in timer_cb1()
92 /* *key == 0 - the callback was called for array timer. in timer_cb1()
93 * *key == 4 - the callback was called from lru timer. in timer_cb1()
99 /* rearm array timer to be called again in ~35 seconds */ in timer_cb1()
100 if (bpf_timer_start(timer, 1ull << 35, 0) != 0) in timer_cb1()
125 * element and force deletion of this timer in timer_cb1()
132 * 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/arch/powerpc/sysdev/
H A Dfsl_gtm.c38 u8 gtcfr1; /* Timer 1, Timer 2 global config register */
40 u8 gtcfr2; /* Timer 3, timer 4 global config register */
42 __be16 gtmdr1; /* Timer 1 mode register */
43 __be16 gtmdr2; /* Timer 2 mode register */
44 __be16 gtrfr1; /* Timer 1 reference register */
45 __be16 gtrfr2; /* Timer 2 reference register */
46 __be16 gtcpr1; /* Timer 1 capture register */
47 __be16 gtcpr2; /* Timer 2 capture register */
48 __be16 gtcnr1; /* Timer 1 counter */
49 __be16 gtcnr2; /* Timer 2 counter */
[all …]
/linux/include/trace/events/
H A Dtimer.h3 #define TRACE_SYSTEM timer
10 #include <linux/timer.h>
14 TP_PROTO(struct timer_list *timer),
16 TP_ARGS(timer),
19 __field( void *, timer )
23 __entry->timer = timer;
26 TP_printk("timer=%p", __entry->timer)
30 * timer_init - called when the timer is initialized
31 * @timer: pointer to struct timer_list
35 TP_PROTO(struct timer_list *timer),
[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, in
[all...]

12345678910>>...117