/Linux-v5.10/include/linux/ |
D | hrtimer.h | 118 struct hrtimer { struct 121 enum hrtimer_restart (*function)(struct hrtimer *); argument 137 struct hrtimer timer; argument 164 struct hrtimer *running; 234 struct hrtimer *next_timer; 236 struct hrtimer *softirq_next_timer; 240 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires() 246 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range() 252 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, u64 delta) in hrtimer_set_expires_range_ns() 258 static inline void hrtimer_set_expires_tv64(struct hrtimer *timer, s64 tv64) in hrtimer_set_expires_tv64() [all …]
|
D | serial_8250.h | 80 struct hrtimer start_tx_timer; /* "rs485 start tx" timer */ 81 struct hrtimer stop_tx_timer; /* "rs485 stop tx" timer */ 82 struct hrtimer *active_timer; /* pointer to active timer */
|
/Linux-v5.10/include/trace/events/ |
D | timer.h | 169 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid, 172 TP_ARGS(hrtimer, clockid, mode), 175 __field( void *, hrtimer ) 181 __entry->hrtimer = hrtimer; 186 TP_printk("hrtimer=%p clockid=%s mode=%s", __entry->hrtimer, 197 TP_PROTO(struct hrtimer *hrtimer, enum hrtimer_mode mode), 199 TP_ARGS(hrtimer, mode), 202 __field( void *, hrtimer ) 210 __entry->hrtimer = hrtimer; 211 __entry->function = hrtimer->function; [all …]
|
/Linux-v5.10/drivers/oprofile/ |
D | timer_int.c | 23 static DEFINE_PER_CPU(struct hrtimer, oprofile_hrtimer); 26 static enum hrtimer_restart oprofile_hrtimer_notify(struct hrtimer *hrtimer) in oprofile_hrtimer_notify() argument 29 hrtimer_forward_now(hrtimer, ns_to_ktime(TICK_NSEC)); in oprofile_hrtimer_notify() 35 struct hrtimer *hrtimer = this_cpu_ptr(&oprofile_hrtimer); in __oprofile_hrtimer_start() local 40 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in __oprofile_hrtimer_start() 41 hrtimer->function = oprofile_hrtimer_notify; in __oprofile_hrtimer_start() 43 hrtimer_start(hrtimer, ns_to_ktime(TICK_NSEC), in __oprofile_hrtimer_start() 58 struct hrtimer *hrtimer = &per_cpu(oprofile_hrtimer, cpu); in __oprofile_hrtimer_stop() local 63 hrtimer_cancel(hrtimer); in __oprofile_hrtimer_stop()
|
/Linux-v5.10/drivers/hwtracing/stm/ |
D | heartbeat.c | 26 struct hrtimer hrtimer; member 32 static enum hrtimer_restart stm_heartbeat_hrtimer_handler(struct hrtimer *hr) in stm_heartbeat_hrtimer_handler() 35 hrtimer); in stm_heartbeat_hrtimer_handler() 50 hrtimer_start(&heartbeat->hrtimer, ms_to_ktime(interval_ms), in stm_heartbeat_link() 62 hrtimer_cancel(&heartbeat->hrtimer); in stm_heartbeat_unlink() 81 hrtimer_init(&stm_heartbeat[i].hrtimer, CLOCK_MONOTONIC, in stm_heartbeat_init() 83 stm_heartbeat[i].hrtimer.function = in stm_heartbeat_init()
|
/Linux-v5.10/kernel/time/ |
D | hrtimer.c | 165 struct hrtimer_clock_base *lock_hrtimer_base(const struct hrtimer *timer, in lock_hrtimer_base() 193 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() 225 switch_hrtimer_base(struct hrtimer *timer, struct hrtimer_clock_base *base, in switch_hrtimer_base() 282 lock_hrtimer_base(const struct hrtimer *timer, unsigned long *flags) in lock_hrtimer_base() 349 return ((struct hrtimer *) addr)->function; in hrtimer_debug_hint() 358 struct hrtimer *timer = addr; in hrtimer_fixup_init() 392 struct hrtimer *timer = addr; in hrtimer_fixup_free() 412 static inline void debug_hrtimer_init(struct hrtimer *timer) in debug_hrtimer_init() 417 static inline void debug_hrtimer_activate(struct hrtimer *timer, in debug_hrtimer_activate() 423 static inline void debug_hrtimer_deactivate(struct hrtimer *timer) in debug_hrtimer_deactivate() [all …]
|
D | tick-broadcast-hrtimer.c | 18 static struct hrtimer bctimer; 99 static enum hrtimer_restart bc_handler(struct hrtimer *t) in bc_handler()
|
D | Makefile | 2 obj-y += time.o timer.o hrtimer.o 15 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o
|
/Linux-v5.10/arch/powerpc/kernel/ |
D | watchdog.c | 80 static DEFINE_PER_CPU(struct hrtimer, wd_hrtimer); 296 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument 308 hrtimer_forward_now(hrtimer, ms_to_ktime(wd_timer_period_ms)); in watchdog_timer_fn() 328 struct hrtimer *hrtimer = this_cpu_ptr(&wd_hrtimer); in start_watchdog() local 353 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in start_watchdog() 354 hrtimer->function = watchdog_timer_fn; in start_watchdog() 355 hrtimer_start(hrtimer, ms_to_ktime(wd_timer_period_ms), in start_watchdog() 366 struct hrtimer *hrtimer = this_cpu_ptr(&wd_hrtimer); in stop_watchdog() local 373 hrtimer_cancel(hrtimer); in stop_watchdog()
|
/Linux-v5.10/Documentation/iio/ |
D | iio_configfs.rst | 82 * 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-v5.10/kernel/ |
D | watchdog.c | 173 static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer); 341 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument 363 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn() 445 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_enable() local 457 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); in watchdog_enable() 458 hrtimer->function = watchdog_timer_fn; in watchdog_enable() 459 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable() 471 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_disable() local 481 hrtimer_cancel(hrtimer); in watchdog_disable()
|
/Linux-v5.10/sound/sh/ |
D | sh_dac_audio.c | 42 struct hrtimer hrtimer; member 56 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer() 62 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer() 284 static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle) in sh_dac_audio_timer() 287 hrtimer); in sh_dac_audio_timer() 311 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in sh_dac_audio_timer() 337 hrtimer_init(&chip->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_sh_dac_create() 338 chip->hrtimer.function = sh_dac_audio_timer; in snd_sh_dac_create()
|
/Linux-v5.10/arch/arm/mach-imx/ |
D | mmdc.c | 100 struct hrtimer hrtimer; member 336 hrtimer_start(&pmu_mmdc->hrtimer, mmdc_pmu_timer_period(), in mmdc_pmu_event_start() 404 hrtimer_cancel(&pmu_mmdc->hrtimer); in mmdc_pmu_event_del() 421 static enum hrtimer_restart mmdc_pmu_timer_handler(struct hrtimer *hrtimer) in mmdc_pmu_timer_handler() argument 423 struct mmdc_pmu *pmu_mmdc = container_of(hrtimer, struct mmdc_pmu, in mmdc_pmu_timer_handler() 424 hrtimer); in mmdc_pmu_timer_handler() 427 hrtimer_forward_now(hrtimer, mmdc_pmu_timer_period()); in mmdc_pmu_timer_handler() 505 hrtimer_init(&pmu_mmdc->hrtimer, CLOCK_MONOTONIC, in imx_mmdc_perf_init() 507 pmu_mmdc->hrtimer.function = mmdc_pmu_timer_handler; in imx_mmdc_perf_init() 524 hrtimer_cancel(&pmu_mmdc->hrtimer); in imx_mmdc_perf_init()
|
/Linux-v5.10/drivers/watchdog/ |
D | softdog.c | 64 static struct hrtimer softdog_ticktock; 65 static struct hrtimer softdog_preticktock; 78 static enum hrtimer_restart softdog_fire(struct hrtimer *timer) in softdog_fire() 126 static enum hrtimer_restart softdog_pretimeout(struct hrtimer *timer) in softdog_pretimeout()
|
/Linux-v5.10/include/kvm/ |
D | arm_arch_timer.h | 33 struct hrtimer hrtimer; member 57 struct hrtimer bg_timer;
|
/Linux-v5.10/arch/x86/events/ |
D | rapl.c | 112 struct hrtimer hrtimer; member 212 hrtimer_start(&pmu->hrtimer, pmu->timer_interval, in rapl_start_hrtimer() 216 static enum hrtimer_restart rapl_hrtimer_handle(struct hrtimer *hrtimer) in rapl_hrtimer_handle() argument 218 struct rapl_pmu *pmu = container_of(hrtimer, struct rapl_pmu, hrtimer); in rapl_hrtimer_handle() 232 hrtimer_forward_now(hrtimer, pmu->timer_interval); in rapl_hrtimer_handle() 239 struct hrtimer *hr = &pmu->hrtimer; in rapl_hrtimer_init() 285 hrtimer_cancel(&pmu->hrtimer); in rapl_pmu_event_stop()
|
/Linux-v5.10/drivers/infiniband/sw/rdmavt/ |
D | trace_qp.h | 95 __field(void *, hrtimer) 102 __entry->hrtimer = &qp->s_rnr_timer; 110 __entry->hrtimer,
|
/Linux-v5.10/sound/core/ |
D | Makefile | 32 snd-hrtimer-objs := hrtimer.o 42 obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o
|
/Linux-v5.10/drivers/power/reset/ |
D | ltc2952-poweroff.c | 60 struct hrtimer timer_trigger; 61 struct hrtimer timer_wde; 93 static enum hrtimer_restart ltc2952_poweroff_timer_wde(struct hrtimer *timer) in ltc2952_poweroff_timer_wde() 117 ltc2952_poweroff_timer_trigger(struct hrtimer *timer) in ltc2952_poweroff_timer_trigger()
|
/Linux-v5.10/Documentation/admin-guide/ |
D | lockup-watchdogs.rst | 36 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-v5.10/arch/arm64/kvm/ |
D | arch_timer.c | 167 static void soft_timer_start(struct hrtimer *hrt, u64 ns) in soft_timer_start() 173 static void soft_timer_cancel(struct hrtimer *hrt) in soft_timer_cancel() 262 static enum hrtimer_restart kvm_bg_timer_expire(struct hrtimer *hrt) in kvm_bg_timer_expire() 286 static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt) in kvm_hrtimer_expire() 292 ctx = container_of(hrt, struct arch_timer_context, hrtimer); in kvm_hrtimer_expire() 417 soft_timer_cancel(&ctx->hrtimer); in timer_emulate() 421 soft_timer_start(&ctx->hrtimer, kvm_timer_compute_delta(ctx)); in timer_emulate() 672 soft_timer_cancel(&map.emul_ptimer->hrtimer); in kvm_timer_vcpu_put() 744 soft_timer_cancel(&map.emul_ptimer->hrtimer); in kvm_timer_vcpu_reset() 784 hrtimer_init(&vtimer->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); in kvm_timer_vcpu_init() [all …]
|
/Linux-v5.10/drivers/net/ethernet/ |
D | ec_bhf.c | 129 struct hrtimer hrtimer; member 237 static enum hrtimer_restart ec_bhf_timer_fun(struct hrtimer *timer) in ec_bhf_timer_fun() 240 hrtimer); in ec_bhf_timer_fun() 419 hrtimer_init(&priv->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ec_bhf_open() 420 priv->hrtimer.function = ec_bhf_timer_fun; in ec_bhf_open() 421 hrtimer_start(&priv->hrtimer, polling_frequency, HRTIMER_MODE_REL); in ec_bhf_open() 437 hrtimer_cancel(&priv->hrtimer); in ec_bhf_stop()
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | test_vmlinux.c | 73 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-v5.10/sound/drivers/pcsp/ |
D | pcsp.h | 57 struct hrtimer timer; 77 extern enum hrtimer_restart pcsp_do_timer(struct hrtimer *handle);
|
/Linux-v5.10/drivers/perf/ |
D | thunderx2_pmu.c | 107 struct hrtimer hrtimer; member 110 enum hrtimer_restart (*hrtimer_callback)(struct hrtimer *cb); 628 hrtimer_start(&tx2_pmu->hrtimer, in tx2_uncore_event_start() 695 hrtimer_cancel(&tx2_pmu->hrtimer); in tx2_uncore_event_del() 703 static enum hrtimer_restart tx2_hrtimer_callback(struct hrtimer *timer) in tx2_hrtimer_callback() 708 tx2_pmu = container_of(timer, struct tx2_uncore_pmu, hrtimer); in tx2_hrtimer_callback() 759 hrtimer_init(&tx2_pmu->hrtimer, in tx2_uncore_pmu_add_dev() 761 tx2_pmu->hrtimer.function = tx2_pmu->hrtimer_callback; in tx2_uncore_pmu_add_dev() 950 hrtimer_cancel(&tx2_pmu->hrtimer); in tx2_uncore_pmu_offline_cpu()
|