/kernel/linux/linux-5.10/include/linux/ |
H A D | hrtimer.h | 90 * and reacquiring the base lock of the hrtimer, another CPU can deliver the 101 * struct hrtimer - the basic hrtimer structure 108 * @_softexpires: the absolute earliest expiry time of the hrtimer. 115 * @is_soft: Set if hrtimer will be expired in soft interrupt context. 116 * @is_hard: Set if hrtimer will be expired in hard interrupt context 119 * The hrtimer structure must be initialized by hrtimer_init() 121 struct hrtimer { struct 124 enum hrtimer_restart (*function)(struct hrtimer *); 140 struct hrtimer time [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | hrtimer.h | 89 * and reacquiring the base lock of the hrtimer, another CPU can deliver the 98 * struct hrtimer - the basic hrtimer structure 105 * @_softexpires: the absolute earliest expiry time of the hrtimer. 112 * @is_soft: Set if hrtimer will be expired in soft interrupt context. 113 * @is_hard: Set if hrtimer will be expired in hard interrupt context 116 * The hrtimer structure must be initialized by hrtimer_init() 118 struct hrtimer { struct 121 enum hrtimer_restart (*function)(struct hrtimer *); 137 struct hrtimer time [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | timer.h | 9 #include <linux/hrtimer.h> 166 * hrtimer_init - called when the hrtimer is initialized 167 * @hrtimer: pointer to struct hrtimer 173 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid, 176 TP_ARGS(hrtimer, clockid, mode), 179 __field( void *, hrtimer ) 185 __entry->hrtimer = hrtimer; [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | timer.h | 9 #include <linux/hrtimer.h> 168 * hrtimer_init - called when the hrtimer is initialized 169 * @hrtimer: pointer to struct hrtimer 175 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid, 178 TP_ARGS(hrtimer, clockid, mode), 181 __field( void *, hrtimer ) 187 __entry->hrtimer = hrtimer; [all...] |
/kernel/linux/linux-5.10/drivers/oprofile/ |
H A D | timer_int.c | 17 #include <linux/hrtimer.h> 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_ktim in __oprofile_hrtimer_start() 58 struct hrtimer *hrtimer = &per_cpu(oprofile_hrtimer, cpu); __oprofile_hrtimer_stop() local [all...] |
/kernel/linux/linux-6.6/kernel/time/ |
H A D | hrtimer.c | 28 #include <linux/hrtimer.h> 63 * There are more clockids than hrtimer bases. Thus, we index 165 struct hrtimer_clock_base *lock_hrtimer_base(const struct hrtimer *timer, 194 hrtimer_check_target(struct hrtimer *timer, struct hrtimer_clock_base *new_base) in hrtimer_check_target() 226 switch_hrtimer_base(struct hrtimer *timer, struct hrtimer_clock_base *base, in switch_hrtimer_base() 283 lock_hrtimer_base(const struct hrtimer *timer, unsigned long *flags) 351 return ((struct hrtimer *) addr)->function; in hrtimer_debug_hint() 360 struct hrtimer *timer = addr; in hrtimer_fixup_init() 394 struct hrtimer *timer = addr; in hrtimer_fixup_free() 407 .name = "hrtimer", [all...] |
/kernel/linux/linux-5.10/drivers/hwtracing/stm/ |
H A D | heartbeat.c | 12 #include <linux/hrtimer.h> 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() 83 hrtimer_init(&stm_heartbeat[i].hrtimer, CLOCK_MONOTONIC, in stm_heartbeat_init() 85 stm_heartbeat[i].hrtimer.function = in stm_heartbeat_init()
|
/kernel/linux/linux-6.6/drivers/hwtracing/stm/ |
H A D | heartbeat.c | 12 #include <linux/hrtimer.h> 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() 83 hrtimer_init(&stm_heartbeat[i].hrtimer, CLOCK_MONOTONIC, in stm_heartbeat_init() 85 stm_heartbeat[i].hrtimer.function = in stm_heartbeat_init()
|
/kernel/liteos_a/kernel/extended/perf/pmu/ |
H A D | perf_timed_pmu.c | 60 if (hrtimer_start(&g_perfTimed.hrtimer, g_perfTimed.time, HRTIMER_MODE_REL) != 0) { in OsPerfTimedStart() 65 if (hrtimer_forward(&g_perfTimed.hrtimer, g_perfTimed.cfgTime) == 0) { in OsPerfTimedStart() 93 PRINT_INFO("hrtimer config period - sec:%d, usec:%d\n", g_perfTimed.cfgTime.tv.sec, in OsPerfTimedConfig() 109 ret = hrtimer_cancel(&g_perfTimed.hrtimer); in OsPerfTimedStop() 135 STATIC enum hrtimer_restart OsPerfHrtimer(struct hrtimer *hrtimer) in OsPerfHrtimer() argument 159 hrtimer_init(&g_perfTimed.hrtimer, 1, HRTIMER_MODE_REL); in OsTimedPmuInit() 161 ret = hrtimer_create(&g_perfTimed.hrtimer, g_perfTimed.time, OsPerfHrtimer); in OsTimedPmuInit()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | watchdog.c | 80 static DEFINE_PER_CPU(struct hrtimer, wd_hrtimer); 331 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument 343 hrtimer_forward_now(hrtimer, ms_to_ktime(wd_timer_period_ms)); in watchdog_timer_fn() 367 struct hrtimer *hrtimer = this_cpu_ptr(&wd_hrtimer); in start_watchdog() local 392 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in start_watchdog() 393 hrtimer->function = watchdog_timer_fn; in start_watchdog() 394 hrtimer_start(hrtimer, ms_to_ktime(wd_timer_period_ms), in start_watchdog() 405 struct hrtimer *hrtime in stop_watchdog() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | watchdog.c | 83 static DEFINE_PER_CPU(struct hrtimer, wd_hrtimer); 437 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument 449 hrtimer_forward_now(hrtimer, ms_to_ktime(wd_timer_period_ms)); in watchdog_timer_fn() 473 struct hrtimer *hrtimer = this_cpu_ptr(&wd_hrtimer); in start_watchdog() local 498 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in start_watchdog() 499 hrtimer->function = watchdog_timer_fn; in start_watchdog() 500 hrtimer_start(hrtimer, ms_to_ktime(wd_timer_period_ms), in start_watchdog() 511 struct hrtimer *hrtime in stop_watchdog() local [all...] |
/kernel/linux/linux-5.10/kernel/time/ |
H A D | hrtimer.c | 28 #include <linux/hrtimer.h> 63 * There are more clockids than hrtimer bases. Thus, we index 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() 405 .name = "hrtimer", [all...] |
/kernel/linux/linux-5.10/sound/sh/ |
H A D | sh_dac_audio.c | 10 #include <linux/hrtimer.h> 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 in snd_sh_dac_create() [all...] |
/kernel/linux/linux-6.6/sound/sh/ |
H A D | sh_dac_audio.c | 10 #include <linux/hrtimer.h> 41 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() 263 static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle) in sh_dac_audio_timer() 266 hrtimer); in sh_dac_audio_timer() 290 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in sh_dac_audio_timer() 316 hrtimer_init(&chip->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_sh_dac_create() 317 chip->hrtimer in snd_sh_dac_create() [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-imx/ |
H A D | mmdc.c | 9 #include <linux/hrtimer.h> 100 struct hrtimer hrtimer; member 335 * hrtimer is required because mmdc does not provide an interrupt so in mmdc_pmu_event_start() 338 hrtimer_start(&pmu_mmdc->hrtimer, mmdc_pmu_timer_period(), in mmdc_pmu_event_start() 406 hrtimer_cancel(&pmu_mmdc->hrtimer); in mmdc_pmu_event_del() 423 static enum hrtimer_restart mmdc_pmu_timer_handler(struct hrtimer *hrtimer) in mmdc_pmu_timer_handler() argument 425 struct mmdc_pmu *pmu_mmdc = container_of(hrtimer, struct mmdc_pmu, in mmdc_pmu_timer_handler() 426 hrtimer); in mmdc_pmu_timer_handler() [all...] |
/kernel/linux/linux-6.6/arch/arm/mach-imx/ |
H A D | mmdc.c | 9 #include <linux/hrtimer.h> 100 struct hrtimer hrtimer; member 335 * hrtimer is required because mmdc does not provide an interrupt so in mmdc_pmu_event_start() 338 hrtimer_start(&pmu_mmdc->hrtimer, mmdc_pmu_timer_period(), in mmdc_pmu_event_start() 406 hrtimer_cancel(&pmu_mmdc->hrtimer); in mmdc_pmu_event_del() 423 static enum hrtimer_restart mmdc_pmu_timer_handler(struct hrtimer *hrtimer) in mmdc_pmu_timer_handler() argument 425 struct mmdc_pmu *pmu_mmdc = container_of(hrtimer, struct mmdc_pmu, in mmdc_pmu_timer_handler() 426 hrtimer); in mmdc_pmu_timer_handler() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | ptp.c | 12 #include <linux/hrtimer.h> 115 static enum hrtimer_restart ptp_reset_thresh(struct hrtimer *hrtimer) in ptp_reset_thresh() argument 117 struct ptp *ptp = container_of(hrtimer, struct ptp, hrtimer); in ptp_reset_thresh() 137 hrtimer_forward_now(hrtimer, period_ns); in ptp_reset_thresh() 148 hrtimer_start(&ptp->hrtimer, period_ns, HRTIMER_MODE_REL); in ptp_hrtimer_start() 429 * one second boundary, the hrtimer handler will be invoked and in ptp_start() 477 if (hrtimer_active(&ptp->hrtimer)) in ptp_extts_on() 478 hrtimer_cancel(&ptp->hrtimer); in ptp_extts_on() [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | softdog.c | 20 #include <linux/hrtimer.h> 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()
|
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | softdog.c | 20 #include <linux/hrtimer.h> 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()
|
H A D | watchdog_core.h | 27 #include <linux/hrtimer.h> 48 struct hrtimer timer; 51 struct hrtimer pretimeout_timer;
|
/kernel/linux/linux-5.10/include/kvm/ |
H A D | arm_arch_timer.h | 11 #include <linux/hrtimer.h> 33 struct hrtimer hrtimer; member 57 struct hrtimer bg_timer;
|
/kernel/linux/linux-5.10/kernel/ |
H A D | watchdog.c | 174 static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer); 237 * the divide by 5 is to give hrtimer several chances (two in set_sample_period() 349 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument 371 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn() 442 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_enable() local 458 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); in watchdog_enable() 459 hrtimer->function = watchdog_timer_fn; in watchdog_enable() 460 hrtimer_start(hrtimer, ns_to_ktim in watchdog_enable() 481 struct hrtimer *hrtimer = per_cpu_ptr(&watchdog_hrtimer, cpu); watchdog_disable() local [all...] |
/kernel/linux/linux-6.6/kernel/ |
H A D | watchdog.c | 283 static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer); 343 * the divide by 5 is to give hrtimer several chances (two in set_sample_period() 446 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument 467 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn() 543 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_enable() local 559 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD); in watchdog_enable() 560 hrtimer->function = watchdog_timer_fn; in watchdog_enable() 561 hrtimer_start(hrtimer, ns_to_ktim in watchdog_enable() 582 struct hrtimer *hrtimer = per_cpu_ptr(&watchdog_hrtimer, cpu); watchdog_disable() local [all...] |
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | vcpu_stall_detector.c | 42 struct hrtimer vcpu_hrtimer; 58 vcpu_stall_detect_timer_fn(struct hrtimer *hrtimer) in vcpu_stall_detect_timer_fn() argument 74 hrtimer_forward_now(hrtimer, in vcpu_stall_detect_timer_fn() 85 struct hrtimer *vcpu_hrtimer = &vcpu_stall_detector->vcpu_hrtimer; in start_stall_detector_cpu()
|
/kernel/linux/linux-6.6/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_imem.h | 351 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; 513 * ipc_imem_hrtimer_stop - Stop the hrtimer 514 * @hr_timer: Pointer to hrtimer instance 516 void ipc_imem_hrtimer_stop(struct hrtimer *hr_timer);
|