Home
last modified time | relevance | path

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

1234567

/Linux-v4.19/include/linux/
Dhrtimer.h110 struct hrtimer { struct
113 enum hrtimer_restart (*function)(struct hrtimer *); argument
128 struct hrtimer timer; argument
155 struct hrtimer *running;
217 struct hrtimer *next_timer;
219 struct hrtimer *softirq_next_timer;
223 static inline void hrtimer_set_expires(struct hrtimer *timer, ktime_t time) in hrtimer_set_expires()
229 static inline void hrtimer_set_expires_range(struct hrtimer *timer, ktime_t time, ktime_t delta) in hrtimer_set_expires_range()
235 static inline void hrtimer_set_expires_range_ns(struct hrtimer *timer, ktime_t time, u64 delta) in hrtimer_set_expires_range_ns()
241 static inline void hrtimer_set_expires_tv64(struct hrtimer *timer, s64 tv64) in hrtimer_set_expires_tv64()
[all …]
Dserial_8250.h83 struct hrtimer start_tx_timer; /* "rs485 start tx" timer */
84 struct hrtimer stop_tx_timer; /* "rs485 stop tx" timer */
85 struct hrtimer *active_timer; /* pointer to active timer */
/Linux-v4.19/include/trace/events/
Dtimer.h165 TP_PROTO(struct hrtimer *hrtimer, clockid_t clockid,
168 TP_ARGS(hrtimer, clockid, mode),
171 __field( void *, hrtimer )
177 __entry->hrtimer = hrtimer;
182 TP_printk("hrtimer=%p clockid=%s mode=%s", __entry->hrtimer,
193 TP_PROTO(struct hrtimer *hrtimer, enum hrtimer_mode mode),
195 TP_ARGS(hrtimer, mode),
198 __field( void *, hrtimer )
206 __entry->hrtimer = hrtimer;
207 __entry->function = hrtimer->function;
[all …]
/Linux-v4.19/drivers/oprofile/
Dtimer_int.c23 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-v4.19/drivers/hwtracing/stm/
Dheartbeat.c26 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-v4.19/kernel/time/
Dhrtimer.c166 struct hrtimer_clock_base *lock_hrtimer_base(const struct hrtimer *timer, in lock_hrtimer_base()
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()
278 lock_hrtimer_base(const struct hrtimer *timer, unsigned long *flags) in lock_hrtimer_base()
345 return ((struct hrtimer *) addr)->function; in hrtimer_debug_hint()
354 struct hrtimer *timer = addr; in hrtimer_fixup_init()
388 struct hrtimer *timer = addr; in hrtimer_fixup_free()
408 static inline void debug_hrtimer_init(struct hrtimer *timer) in debug_hrtimer_init()
413 static inline void debug_hrtimer_activate(struct hrtimer *timer, in debug_hrtimer_activate()
419 static inline void debug_hrtimer_deactivate(struct hrtimer *timer) in debug_hrtimer_deactivate()
[all …]
Dtick-broadcast-hrtimer.c20 static struct hrtimer bctimer;
96 static enum hrtimer_restart bc_handler(struct hrtimer *t) in bc_handler()
DMakefile2 obj-y += time.o timer.o hrtimer.o
15 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o
Dtimer_list.c61 print_timer(struct seq_file *m, struct hrtimer *taddr, struct hrtimer *timer, in print_timer()
81 struct hrtimer *timer, tmp; in print_active_timers()
105 timer = container_of(curr, struct hrtimer, node); in print_active_timers()
/Linux-v4.19/Documentation/iio/
Diio_configfs.txt76 * hrtimer, uses high resolution timers as interrupt source
80 Loading iio-trig-hrtimer module will register hrtimer trigger types allowing
81 users to create hrtimer triggers under /config/iio/triggers/hrtimer.
85 $ mkdir /config/iio/triggers/hrtimer/instance1
86 $ rmdir /config/iio/triggers/hrtimer/instance1
90 3.2 "hrtimer" trigger types attributes
92 "hrtimer" trigger type doesn't have any configurable attribute from /config dir.
/Linux-v4.19/kernel/
Dwatchdog.c172 static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer);
355 static enum hrtimer_restart watchdog_timer_fn(struct hrtimer *hrtimer) in watchdog_timer_fn() argument
377 hrtimer_forward_now(hrtimer, ns_to_ktime(sample_period)); in watchdog_timer_fn()
474 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_enable() local
486 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in watchdog_enable()
487 hrtimer->function = watchdog_timer_fn; in watchdog_enable()
488 hrtimer_start(hrtimer, ns_to_ktime(sample_period), in watchdog_enable()
500 struct hrtimer *hrtimer = this_cpu_ptr(&watchdog_hrtimer); in watchdog_disable() local
510 hrtimer_cancel(hrtimer); in watchdog_disable()
/Linux-v4.19/arch/arm/mach-imx/
Dmmdc.c105 struct hrtimer hrtimer; member
347 hrtimer_start(&pmu_mmdc->hrtimer, mmdc_pmu_timer_period(), in mmdc_pmu_event_start()
415 hrtimer_cancel(&pmu_mmdc->hrtimer); in mmdc_pmu_event_del()
432 static enum hrtimer_restart mmdc_pmu_timer_handler(struct hrtimer *hrtimer) in mmdc_pmu_timer_handler() argument
434 struct mmdc_pmu *pmu_mmdc = container_of(hrtimer, struct mmdc_pmu, in mmdc_pmu_timer_handler()
435 hrtimer); in mmdc_pmu_timer_handler()
438 hrtimer_forward_now(hrtimer, mmdc_pmu_timer_period()); in mmdc_pmu_timer_handler()
515 hrtimer_init(&pmu_mmdc->hrtimer, CLOCK_MONOTONIC, in imx_mmdc_perf_init()
517 pmu_mmdc->hrtimer.function = mmdc_pmu_timer_handler; in imx_mmdc_perf_init()
534 hrtimer_cancel(&pmu_mmdc->hrtimer); in imx_mmdc_perf_init()
/Linux-v4.19/sound/sh/
Dsh_dac_audio.c57 struct hrtimer hrtimer; member
71 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
77 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer()
319 static enum hrtimer_restart sh_dac_audio_timer(struct hrtimer *handle) in sh_dac_audio_timer()
322 hrtimer); in sh_dac_audio_timer()
346 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in sh_dac_audio_timer()
372 hrtimer_init(&chip->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_sh_dac_create()
373 chip->hrtimer.function = sh_dac_audio_timer; in snd_sh_dac_create()
/Linux-v4.19/drivers/watchdog/
Dsoftdog.c56 static struct hrtimer softdog_ticktock;
57 static struct hrtimer softdog_preticktock;
59 static enum hrtimer_restart softdog_fire(struct hrtimer *timer) in softdog_fire()
78 static enum hrtimer_restart softdog_pretimeout(struct hrtimer *timer) in softdog_pretimeout()
/Linux-v4.19/arch/x86/events/intel/
Drapl.c146 struct hrtimer hrtimer; member
232 hrtimer_start(&pmu->hrtimer, pmu->timer_interval, in rapl_start_hrtimer()
236 static enum hrtimer_restart rapl_hrtimer_handle(struct hrtimer *hrtimer) in rapl_hrtimer_handle() argument
238 struct rapl_pmu *pmu = container_of(hrtimer, struct rapl_pmu, hrtimer); in rapl_hrtimer_handle()
252 hrtimer_forward_now(hrtimer, pmu->timer_interval); in rapl_hrtimer_handle()
259 struct hrtimer *hr = &pmu->hrtimer; in rapl_hrtimer_init()
305 hrtimer_cancel(&pmu->hrtimer); in rapl_pmu_event_stop()
/Linux-v4.19/sound/core/
DMakefile32 snd-hrtimer-objs := hrtimer.o
42 obj-$(CONFIG_SND_HRTIMER) += snd-hrtimer.o
/Linux-v4.19/drivers/infiniband/sw/rdmavt/
Dtrace_qp.h95 __field(void *, hrtimer)
102 __entry->hrtimer = &qp->s_rnr_timer;
110 __entry->hrtimer,
/Linux-v4.19/drivers/power/reset/
Dltc2952-poweroff.c70 struct hrtimer timer_trigger;
71 struct hrtimer timer_wde;
103 static enum hrtimer_restart ltc2952_poweroff_timer_wde(struct hrtimer *timer) in ltc2952_poweroff_timer_wde()
128 ltc2952_poweroff_timer_trigger(struct hrtimer *timer) in ltc2952_poweroff_timer_trigger()
/Linux-v4.19/Documentation/
Dlockup-watchdogs.txt36 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-v4.19/drivers/net/ethernet/
Dec_bhf.c138 struct hrtimer hrtimer; member
246 static enum hrtimer_restart ec_bhf_timer_fun(struct hrtimer *timer) in ec_bhf_timer_fun()
249 hrtimer); in ec_bhf_timer_fun()
428 hrtimer_init(&priv->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ec_bhf_open()
429 priv->hrtimer.function = ec_bhf_timer_fun; in ec_bhf_open()
430 hrtimer_start(&priv->hrtimer, polling_frequency, HRTIMER_MODE_REL); in ec_bhf_open()
446 hrtimer_cancel(&priv->hrtimer); in ec_bhf_stop()
/Linux-v4.19/include/kvm/
Darm_arch_timer.h53 struct hrtimer bg_timer;
59 struct hrtimer phys_timer;
/Linux-v4.19/sound/drivers/pcsp/
Dpcsp.h57 struct hrtimer timer;
77 extern enum hrtimer_restart pcsp_do_timer(struct hrtimer *handle);
/Linux-v4.19/drivers/block/
Dnull_blk.h22 struct hrtimer timer;
78 struct hrtimer bw_timer;
/Linux-v4.19/arch/powerpc/oprofile/cell/
Dspu_profiler.c137 static enum hrtimer_restart profile_spus(struct hrtimer *timer) in profile_spus()
194 static struct hrtimer timer;
/Linux-v4.19/drivers/mailbox/
Dmailbox.c117 static enum hrtimer_restart txdone_hrtimer(struct hrtimer *hrtimer) in txdone_hrtimer() argument
120 container_of(hrtimer, struct mbox_controller, poll_hrt); in txdone_hrtimer()
137 hrtimer_forward_now(hrtimer, ms_to_ktime(mbox->txpoll_period)); in txdone_hrtimer()

1234567