Home
last modified time | relevance | path

Searched refs:hrtimer (Results 1 – 25 of 161) sorted by relevance

1234567

/linux/include/linux/
H A Dhrtimer.h93 struct hrtimer timer;
97 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t 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()
109 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, u64 delta) in hrtimer_set_expires_range_ns()
115 static inline void hrtimer_set_expires_tv64(struct hrtimer *timer, s64 tv64) in hrtimer_set_expires_tv64()
121 static inline void hrtimer_add_expires(struct hrtimer *timer, ktime_t time) in hrtimer_add_expires()
127 static inline void hrtimer_add_expires_ns(struct hrtimer *timer, u64 ns) in hrtimer_add_expires_ns()
133 static inline ktime_t hrtimer_get_expires(const struct hrtimer *timer) in hrtimer_get_expires()
138 static inline ktime_t hrtimer_get_softexpires(const struct hrtimer *timer) in hrtimer_get_softexpires()
143 static inline s64 hrtimer_get_expires_tv64(const struct hrtimer *timer) in hrtimer_get_expires_tv64()
[all …]
H A Dhrtimer_defs.h51 struct hrtimer *running;
122 struct hrtimer *next_timer;
124 struct hrtimer *softirq_next_timer;
H A Dhrtimer_types.h39 struct hrtimer { struct
42 enum hrtimer_restart (*__private function)(struct hrtimer *); argument
H A Dserial_8250.h101 struct hrtimer start_tx_timer; /* "rs485 start tx" timer */
102 struct hrtimer stop_tx_timer; /* "rs485 stop tx" timer */
103 struct hrtimer *active_timer; /* pointer to active timer */
/linux/include/trace/events/
H A Dtimer.h195 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
198 TP_ARGS(hrtimer, clockid, mode),
201 __field( void *, hrtimer )
207 __entry->hrtimer = hrtimer;
212 TP_printk("hrtimer=%p clockid=%s mode=%s", __entry->hrtimer,
224 TP_PROTO(struct hrtimer *hrtimer, enum hrtimer_mode mode),
226 TP_ARGS(hrtimer, mode),
229 __field( void *, hrtimer )
237 __entry->hrtimer = hrtimer;
238 __entry->function = ACCESS_PRIVATE(hrtimer, function);
[all …]
/linux/Documentation/translations/zh_CN/iio/
H A Diio_configfs.rst86 * hrtimer,使用高分辨率定时器作为中断源
91 加载iio-trig-hrtimer模块将注册hrtimer触发器类型,从而允许用户在
92 /config/iio/triggers/hrtimer下创建hrtimer触发器。
96 $ mkdir /config/iio/triggers/hrtimer/instance1
97 $ rmdir /config/iio/triggers/hrtimer/instance1
101 3.2 "hrtimer" 触发器类型属性
104 "hrtimer”触发器类型没有来自/config dir的任何可配置属性。
/linux/Documentation/iio/
H A Diio_configfs.rst82 * hrtimer, uses high resolution timers as interrupt source
87 Loading iio-trig-hrtimer module will register hrtimer trigger types allowing
88 users to create hrtimer triggers under /config/iio/triggers/hrtimer.
92 $ mkdir /config/iio/triggers/hrtimer/instance1
93 $ rmdir /config/iio/triggers/hrtimer/instance1
97 3.2 "hrtimer" trigger types attributes
100 "hrtimer" trigger type doesn't have any configurable attribute from /config dir.
/linux/Documentation/translations/zh_CN/admin-guide/
H A Dlockup-watchdogs.rst34 Softlockup和hardlockup分别建立在hrtimer(高精度定时器)和perf两个子系统上而实现。
39 为间隔周期产生以检测 hardlockups。如果一个CPU在这个时间段内没有检测到hrtimer
45 "softlocup 检测器"(内部hrtimer定时器回调函数)会将相关的调试信息打印到系统日志中,
48 Hrtimer定时器的周期是2*watchdog_thresh/5,也就是说在hardlockup被触发前hrtimer
51 如上所述,内核相当于为系统管理员提供了一个可调节hrtimer定时器和perf事件周期长度
/linux/Documentation/translations/zh_TW/admin-guide/
H A Dlockup-watchdogs.rst34 Softlockup和hardlockup分別建立在hrtimer(高精度定時器)和perf兩個子系統上而實現。
39 爲間隔週期產生以檢測 hardlockups。如果一個CPU在這個時間段內沒有檢測到hrtimer
45 "softlocup 檢測器"(內部hrtimer定時器回調函數)會將相關的調試信息打印到系統日誌中,
48 Hrtimer定時器的週期是2*watchdog_thresh/5,也就是說在hardlockup被觸發前hrtimer
51 如上所述,內核相當於爲系統管理員提供了一個可調節hrtimer定時器和perf事件週期長度
/linux/lib/
H A Dtest_objpool.c56 unsigned long hrtimer; /* ms */ member
70 struct hrtimer hrtimer; member
156 static enum hrtimer_restart ot_hrtimer_handler(struct hrtimer *hrt) in ot_hrtimer_handler()
158 struct ot_item *item = container_of(hrt, struct ot_item, hrtimer); in ot_hrtimer_handler()
173 if (!item->test->hrtimer) in ot_start_hrtimer()
175 hrtimer_start(&item->hrtimer, item->hrtcycle, HRTIMER_MODE_REL); in ot_start_hrtimer()
180 if (!item->test->hrtimer) in ot_stop_hrtimer()
182 hrtimer_cancel(&item->hrtimer); in ot_stop_hrtimer()
185 static int ot_init_hrtimer(struct ot_item *item, unsigned long hrtimer) in ot_init_hrtimer() argument
187 struct hrtimer *hrt = &item->hrtimer; in ot_init_hrtimer()
[all …]
/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_imem.h351 struct hrtimer startup_timer;
353 struct hrtimer tdupdate_timer;
354 struct hrtimer fast_update_timer;
355 struct hrtimer td_alloc_timer;
356 struct hrtimer adb_timer;
516 void ipc_imem_hrtimer_stop(struct hrtimer *hr_timer);
/linux/sound/sh/
H A Dsh_dac_audio.c41 struct hrtimer hrtimer; member
55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
61 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer()
262 static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle) in sh_dac_audio_timer()
265 hrtimer); in sh_dac_audio_timer()
289 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in sh_dac_audio_timer()
315 hrtimer_setup(&chip->hrtimer, sh_dac_audio_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_sh_dac_create()
/linux/arch/powerpc/perf/
H A Dvpa-dtl.c288 static enum hrtimer_restart vpa_dtl_hrtimer_handle(struct hrtimer *hrtimer) in vpa_dtl_hrtimer_handle() argument
293 event = container_of(hrtimer, struct perf_event, hw.hrtimer); in vpa_dtl_hrtimer_handle()
300 hrtimer_forward_now(hrtimer, ns_to_ktime(period)); in vpa_dtl_hrtimer_handle()
311 hrtimer_start(&hwc->hrtimer, ns_to_ktime(period), HRTIMER_MODE_REL_PINNED); in vpa_dtl_start_hrtimer()
318 hrtimer_cancel(&hwc->hrtimer); in vpa_dtl_stop_hrtimer()
412 hrtimer_setup(&hwc->hrtimer, vpa_dtl_hrtimer_handle, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in vpa_dtl_event_init()
/linux/drivers/leds/trigger/
H A Dledtrig-pattern.c44 struct hrtimer hrtimer; member
85 hrtimer_start(&data->hrtimer, ns_to_ktime(0), HRTIMER_MODE_REL); in pattern_trig_timer_start()
95 hrtimer_cancel(&data->hrtimer); in pattern_trig_timer_cancel()
104 hrtimer_forward_now(&data->hrtimer, ms_to_ktime(interval)); in pattern_trig_timer_restart()
158 static enum hrtimer_restart pattern_trig_hrtimer_function(struct hrtimer *t) in pattern_trig_hrtimer_function()
161 container_of(t, struct pattern_trig_data, hrtimer); in pattern_trig_hrtimer_function()
486 hrtimer_setup(&data->hrtimer, pattern_trig_hrtimer_function, CLOCK_MONOTONIC, in pattern_trig_activate()
513 hrtimer_cancel(&data->hrtimer); in pattern_trig_deactivate()
/linux/kernel/
H A Dwatchdog.c397 static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer);
773 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument
804 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn()
891 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_enable() local
903 hrtimer_setup(hrtimer, watchdog_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); in watchdog_enable()
904 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable()
916 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_disable() local
926 hrtimer_cancel(hrtimer); in watchdog_disable()
/linux/drivers/infiniband/sw/rdmavt/
H A Dtrace_qp.h53 __field(void *, hrtimer)
60 __entry->hrtimer = &qp->s_rnr_timer;
68 __entry->hrtimer,
/linux/Documentation/admin-guide/
H A Dlockup-watchdogs.rst36 The soft and hard lockup detectors are built on top of the hrtimer and
41 A periodic hrtimer runs to generate interrupts and kick the watchdog
45 does not receive any hrtimer interrupt during that time the
53 'softlockup detector' (coded inside the hrtimer callback function)
58 The period of the hrtimer is 2*watchdog_thresh/5, which means it has
63 administrators to configure the period of the hrtimer and the perf
/linux/sound/core/
H A DMakefile34 snd-hrtimer-y := hrtimer.o
44 obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dptp.h20 struct hrtimer hrtimer; member
/linux/drivers/watchdog/
H A Dwatchdog_core.h54 struct hrtimer timer;
57 struct hrtimer pretimeout_timer;
/linux/arch/arm64/kvm/
H A Darch_timer.c188 static void soft_timer_start(struct hrtimer *hrt, u64 ns) in soft_timer_start()
194 static void soft_timer_cancel(struct hrtimer *hrt) in soft_timer_cancel()
305 static enum hrtimer_restart kvm_bg_timer_expire(struct hrtimer *hrt) in kvm_bg_timer_expire()
329 static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt) in kvm_hrtimer_expire()
335 ctx = container_of(hrt, struct arch_timer_context, hrtimer); in kvm_hrtimer_expire()
476 soft_timer_start(&ctx->hrtimer, kvm_timer_compute_delta(ctx)); in timer_emulate()
931 soft_timer_cancel(&map.emul_vtimer->hrtimer); in kvm_timer_vcpu_put()
933 soft_timer_cancel(&map.emul_ptimer->hrtimer); in kvm_timer_vcpu_put()
970 soft_timer_cancel(&map.emul_vtimer->hrtimer); in kvm_timer_sync_nested()
971 soft_timer_cancel(&map.emul_ptimer->hrtimer); in kvm_timer_sync_nested()
[all …]
/linux/kernel/time/
H A Dtick-sched.h73 struct hrtimer sched_timer;
107 extern void tick_setup_sched_timer(bool hrtimer);
/linux/include/kvm/
H A Darm_arch_timer.h55 struct hrtimer hrtimer; member
92 struct hrtimer bg_timer;
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_vmlinux.c73 int BPF_KPROBE(handle__kprobe, struct hrtimer *timer, ktime_t tim, u64 delta_ns, in BPF_KPROBE()
82 int BPF_PROG(handle__fentry, struct hrtimer *timer, ktime_t tim, u64 delta_ns, in BPF_PROG()
/linux/sound/drivers/pcsp/
H A Dpcsp.h57 struct hrtimer timer;
77 extern enum hrtimer_restart pcsp_do_timer(struct hrtimer *handle);

1234567