Home
last modified time | relevance | path

Searched refs:hrt (Results 1 – 16 of 16) sorted by relevance

/linux/sound/core/
H A Dhrtimer.c26 struct hrtimer hrt; member
30 static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt) in snd_hrtimer_callback() argument
32 struct snd_hrtimer *stime = container_of(hrt, struct snd_hrtimer, hrt); in snd_hrtimer_callback()
46 delta = ktime_sub(hrt->base->get_time(), hrtimer_get_expires(hrt)); in snd_hrtimer_callback()
54 hrtimer_add_expires_ns(hrt, t->sticks * resolution); in snd_hrtimer_callback()
69 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
71 stime->hrt.function = snd_hrtimer_callback; in snd_hrtimer_open()
86 hrtimer_cancel(&stime->hrt); in snd_hrtimer_close()
99 hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), in snd_hrtimer_start()
110 hrtimer_try_to_cancel(&stime->hrt); in snd_hrtimer_stop()
/linux/sound/soc/fsl/
H A Dimx-pcm-fiq.c37 struct hrtimer hrt; member
44 static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt) in snd_hrtimer_callback() argument
47 container_of(hrt, struct imx_pcm_runtime_data, hrt); in snd_hrtimer_callback()
63 hrtimer_forward_now(hrt, ns_to_ktime(iprtd->poll_time_ns)); in snd_hrtimer_callback()
122 hrtimer_start(&iprtd->hrt, ns_to_ktime(iprtd->poll_time_ns), in snd_imx_pcm_trigger()
188 hrtimer_init(&iprtd->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_imx_open()
189 iprtd->hrt.function = snd_hrtimer_callback; in snd_imx_open()
208 hrtimer_cancel(&iprtd->hrt); in snd_imx_close()
/linux/arch/riscv/kvm/
H A Dvcpu_timer.c45 struct kvm_vcpu_timer *t = container_of(h, struct kvm_vcpu_timer, hrt); in kvm_riscv_vcpu_hrtimer_expired()
51 hrtimer_forward_now(&t->hrt, ktime_set(0, delta_ns)); in kvm_riscv_vcpu_hrtimer_expired()
66 hrtimer_cancel(&t->hrt); in kvm_riscv_vcpu_timer_cancel()
96 hrtimer_start(&t->hrt, ktime_set(0, delta_ns), HRTIMER_MODE_REL); in kvm_riscv_vcpu_update_hrtimer()
112 struct kvm_vcpu_timer *t = container_of(h, struct kvm_vcpu_timer, hrt); in kvm_riscv_vcpu_vstimer_expired()
118 hrtimer_forward_now(&t->hrt, ktime_set(0, delta_ns)); in kvm_riscv_vcpu_vstimer_expired()
150 hrtimer_start(&t->hrt, ktime_set(0, delta_ns), HRTIMER_MODE_REL); in kvm_riscv_vcpu_timer_blocking()
251 hrtimer_init(&t->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in kvm_riscv_vcpu_timer_init()
258 t->hrt.function = kvm_riscv_vcpu_vstimer_expired; in kvm_riscv_vcpu_timer_init()
262 t->hrt.function = kvm_riscv_vcpu_hrtimer_expired; in kvm_riscv_vcpu_timer_init()
/linux/drivers/pci/hotplug/
H A Dcpqphp.h167 struct hrt { struct
184 SIG0 = offsetof(struct hrt, sig0), argument
185 SIG1 = offsetof(struct hrt, sig1),
186 SIG2 = offsetof(struct hrt, sig2),
187 SIG3 = offsetof(struct hrt, sig3),
188 UNUSED_IRQ = offsetof(struct hrt, unused_IRQ),
189 PCIIRQ = offsetof(struct hrt, PCIIRQ),
190 NUMBER_OF_ENTRIES = offsetof(struct hrt, number_of_entries),
191 REVISION = offsetof(struct hrt, revision),
192 HRT_RESERVED1 = offsetof(struct hrt, reserved1),
[all …]
H A Dcpqphp_pci.c46 endp = (end - sizeof(struct hrt) + 1); in detect_HRT_floating_pointer()
1235 one_slot = rom_resource_table + sizeof(struct hrt); in cpqhp_find_available_resources()
/linux/lib/
H A Dtest_objpool.c156 static enum hrtimer_restart ot_hrtimer_handler(struct hrtimer *hrt) in ot_hrtimer_handler() argument
158 struct ot_item *item = container_of(hrt, struct ot_item, hrtimer); in ot_hrtimer_handler()
167 hrtimer_forward(hrt, hrt->base->get_time(), item->hrtcycle); in ot_hrtimer_handler()
187 struct hrtimer *hrt = &item->hrtimer; in ot_init_hrtimer() local
193 hrtimer_init(hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ot_init_hrtimer()
194 hrt->function = ot_hrtimer_handler; in ot_init_hrtimer()
/linux/arch/arm64/kvm/
H A Darch_timer.c213 static void soft_timer_start(struct hrtimer *hrt, u64 ns) in soft_timer_start() argument
215 hrtimer_start(hrt, ktime_add_ns(ktime_get(), ns), in soft_timer_start()
219 static void soft_timer_cancel(struct hrtimer *hrt) in soft_timer_cancel() argument
221 hrtimer_cancel(hrt); in soft_timer_cancel()
330 static enum hrtimer_restart kvm_bg_timer_expire(struct hrtimer *hrt) in kvm_bg_timer_expire() argument
336 timer = container_of(hrt, struct arch_timer_cpu, bg_timer); in kvm_bg_timer_expire()
346 hrtimer_forward_now(hrt, ns_to_ktime(ns)); in kvm_bg_timer_expire()
354 static enum hrtimer_restart kvm_hrtimer_expire(struct hrtimer *hrt) in kvm_hrtimer_expire() argument
360 ctx = container_of(hrt, struct arch_timer_context, hrtimer); in kvm_hrtimer_expire()
372 hrtimer_forward_now(hrt, ns_to_ktime(ns)); in kvm_hrtimer_expire()
/linux/kernel/time/
H A Dsched_clock.c155 static enum hrtimer_restart sched_clock_poll(struct hrtimer *hrt) in sched_clock_poll() argument
158 hrtimer_forward_now(hrt, cd.wrap_kt); in sched_clock_poll()
/linux/arch/riscv/include/asm/
H A Dkvm_vcpu_timer.h30 struct hrtimer hrt; member
/linux/drivers/tty/serial/8250/
H A D8250_bcm7271.c214 struct hrtimer hrt; member
824 hrtimer_start(&priv->hrt, priv->char_wait, in brcmuart_handle_irq()
841 struct brcmuart_priv *priv = container_of(t, struct brcmuart_priv, hrt); in brcmuart_hrtimer_func()
1059 hrtimer_init(&priv->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in brcmuart_probe()
1060 priv->hrt.function = brcmuart_hrtimer_func; in brcmuart_probe()
1127 hrtimer_cancel(&priv->hrt); in brcmuart_remove()
H A D8250_port.c1432 static void start_hrtimer_ms(struct hrtimer *hrt, unsigned long msec) in start_hrtimer_ms() argument
1434 hrtimer_start(hrt, ms_to_ktime(msec), HRTIMER_MODE_REL); in start_hrtimer_ms()
/linux/net/can/
H A Dbcm.c405 static bool bcm_tx_set_expiry(struct bcm_op *op, struct hrtimer *hrt) in bcm_tx_set_expiry() argument
416 hrtimer_set_expires(hrt, ktime_add(ktime_get(), ival)); in bcm_tx_set_expiry()
/linux/drivers/staging/media/atomisp/
H A DMakefile293 -I$(atomisp)/pci/css_2401_system/hrt/
/linux/drivers/tty/serial/
H A Dimx.c333 static void start_hrtimer_ms(struct hrtimer *hrt, unsigned long msec) in start_hrtimer_ms() argument
335 hrtimer_start(hrt, ms_to_ktime(msec), HRTIMER_MODE_REL); in start_hrtimer_ms()
H A Dsh-sci.c1319 static void start_hrtimer_us(struct hrtimer *hrt, unsigned long usec) in start_hrtimer_us() argument
1325 hrtimer_start(hrt, t, HRTIMER_MODE_REL); in start_hrtimer_us()
/linux/drivers/scsi/
H A Dscsi_debug.c404 struct hrtimer hrt; member
5685 hrt); in sdebug_q_cmd_hrt_complete()
5965 int res = hrtimer_try_to_cancel(&sd_dp->hrt); in stop_qc_helper()
6389 hrtimer_init(&sd_dp->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED); in sdebug_alloc_queued_cmd()
6390 sd_dp->hrt.function = sdebug_q_cmd_hrt_complete; in sdebug_alloc_queued_cmd()
6520 hrtimer_start(&sd_dp->hrt, kt, HRTIMER_MODE_REL_PINNED); in schedule_resp()