Home
last modified time | relevance | path

Searched refs:tmr (Results 1 – 25 of 71) sorted by relevance

123

/linux-6.15/sound/core/seq/
H A Dseq_timer.c27 tmr->tick.resolution = (tmr->tempo * tmr->tempo_base) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
31 s = tmr->tempo % tmr->ppq; in snd_seq_timer_set_tick_resolution()
32 s = (s * tmr->tempo_base) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
33 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * tmr->tempo_base; in snd_seq_timer_set_tick_resolution()
46 tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); in snd_seq_timer_new()
47 if (!tmr) in snd_seq_timer_new()
97 tmr->skew = tmr->skew_base = SKEW_BASE; in snd_seq_timer_defaults()
136 if (tmr->skew != tmr->skew_base) { in snd_seq_timer_interrupt()
185 if (tmr->running && (ppq != tmr->ppq)) { in snd_seq_timer_set_tempo_ppq()
373 snd_timer_start(tmr->timeri, tmr->ticks); in seq_timer_start()
[all …]
H A Dseq_timer.h51 void snd_seq_timer_delete(struct snd_seq_timer **tmr);
112 void snd_seq_timer_defaults(struct snd_seq_timer *tmr);
113 void snd_seq_timer_reset(struct snd_seq_timer *tmr);
114 int snd_seq_timer_stop(struct snd_seq_timer *tmr);
115 int snd_seq_timer_start(struct snd_seq_timer *tmr);
116 int snd_seq_timer_continue(struct snd_seq_timer *tmr);
117 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo);
118 int snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq,
122 int snd_seq_timer_set_skew(struct snd_seq_timer *tmr, unsigned int skew, unsigned int base);
123 snd_seq_real_time_t snd_seq_timer_get_cur_time(struct snd_seq_timer *tmr,
[all …]
H A Dseq_queue.c418 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local
423 tmr = queue->timer; in snd_seq_queue_timer_open()
426 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open()
717 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local
726 tmr = q->timer; in snd_seq_info_queues_read()
727 if (tmr->tempo) in snd_seq_info_queues_read()
728 bpm = (60000 * tmr->tempo_base) / tmr->tempo; in snd_seq_info_queues_read()
743 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read()
744 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read()
745 snd_iprintf(buffer, "tempo base : %d ns\n", tmr->tempo_base); in snd_seq_info_queues_read()
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dbase.c65 return tmr->func->read(tmr); in nvkm_timer_read()
81 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm_trigger()
95 tmr->func->alarm_fini(tmr); in nvkm_timer_alarm_trigger()
132 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm()
148 tmr->func->intr(tmr); in nvkm_timer_intr()
155 tmr->func->alarm_fini(tmr); in nvkm_timer_fini()
163 if (tmr->func->init) in nvkm_timer_init()
164 tmr->func->init(tmr); in nvkm_timer_init()
165 tmr->func->time(tmr, ktime_to_ns(ktime_get())); in nvkm_timer_init()
190 if (!(tmr = *ptmr = kzalloc(sizeof(*tmr), GFP_KERNEL))) in nvkm_timer_new_()
[all …]
H A Dnv04.c28 nv04_timer_time(struct nvkm_timer *tmr, u64 time) in nv04_timer_time() argument
30 struct nvkm_subdev *subdev = &tmr->subdev; in nv04_timer_time()
43 nv04_timer_read(struct nvkm_timer *tmr) in nv04_timer_read() argument
45 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_read()
57 nv04_timer_alarm_fini(struct nvkm_timer *tmr) in nv04_timer_alarm_fini() argument
59 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_alarm_fini()
72 nv04_timer_intr(struct nvkm_timer *tmr) in nv04_timer_intr() argument
74 struct nvkm_subdev *subdev = &tmr->subdev; in nv04_timer_intr()
80 nvkm_timer_alarm_trigger(tmr); in nv04_timer_intr()
91 nv04_timer_init(struct nvkm_timer *tmr) in nv04_timer_init() argument
[all …]
H A Dnv41.c28 nv41_timer_init(struct nvkm_timer *tmr) in nv41_timer_init() argument
30 struct nvkm_subdev *subdev = &tmr->subdev; in nv41_timer_init()
/linux-6.15/drivers/clocksource/
H A Dtimer-ixp4xx.c84 struct ixp4xx_timer *tmr = dev_id; in ixp4xx_timer_interrupt() local
166 struct ixp4xx_timer *tmr; in ixp4xx_timer_register() local
169 tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); in ixp4xx_timer_register()
170 if (!tmr) in ixp4xx_timer_register()
172 tmr->base = base; in ixp4xx_timer_register()
184 local_ixp4xx_timer = tmr; in ixp4xx_timer_register()
199 tmr->clkevt.name = "ixp4xx timer1"; in ixp4xx_timer_register()
201 tmr->clkevt.rating = 200; in ixp4xx_timer_register()
207 tmr->clkevt.cpumask = cpumask_of(0); in ixp4xx_timer_register()
208 tmr->clkevt.irq = timer_irq; in ixp4xx_timer_register()
[all …]
H A Dtimer-tegra186.c74 struct tegra186_tmr *tmr; member
112 struct tegra186_tmr *tmr; in tegra186_tmr_create() local
114 tmr = devm_kzalloc(tegra->dev, sizeof(*tmr), GFP_KERNEL); in tegra186_tmr_create()
115 if (!tmr) in tegra186_tmr_create()
118 tmr->parent = tegra; in tegra186_tmr_create()
120 tmr->index = index; in tegra186_tmr_create()
121 tmr->hwirq = 0; in tegra186_tmr_create()
123 return tmr; in tegra186_tmr_create()
138 tmr_writel(wdt->tmr, 0, TMRCR); in tegra186_wdt_disable()
271 if (IS_ERR(wdt->tmr)) in tegra186_wdt_create()
[all …]
/linux-6.15/arch/powerpc/sysdev/
H A Dfsl_gtm.c153 gtm_stop_timer16(tmr); in gtm_put_timer16()
156 tmr->requested = false; in gtm_put_timer16()
168 struct gtm *gtm = tmr->gtm; in gtm_set_ref_timer16()
178 if (!tmr->gtpsr) in gtm_set_ref_timer16()
214 if (tmr->gtpsr) in gtm_set_ref_timer16()
215 out_be16(tmr->gtpsr, psr); in gtm_set_ref_timer16()
218 out_be16(tmr->gtcnr, 0); in gtm_set_ref_timer16()
220 out_be16(tmr->gtevr, 0xFFFF); in gtm_set_ref_timer16()
304 struct gtm *gtm = tmr->gtm; in gtm_stop_timer16()
311 out_be16(tmr->gtevr, 0xFFFF); in gtm_stop_timer16()
[all …]
/linux-6.15/drivers/target/
H A Dtarget_core_tmr.c32 struct se_tmr_req *tmr; in core_tmr_alloc_req() local
35 if (!tmr) { in core_tmr_alloc_req()
41 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req()
42 tmr->task_cmd = se_cmd; in core_tmr_alloc_req()
44 tmr->function = function; in core_tmr_alloc_req()
53 kfree(tmr); in core_tmr_release_req()
107 struct se_tmr_req *tmr, in core_tmr_abort_task() argument
170 tmr->ref_task_tag); in core_tmr_abort_task()
177 struct se_tmr_req *tmr, in core_tmr_drain_tmr_list() argument
192 if (tmr_p == tmr) in core_tmr_drain_tmr_list()
[all …]
/linux-6.15/drivers/scsi/isci/
H A Disci.h494 void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t)) in sci_init_timer() argument
496 tmr->cancel = false; in sci_init_timer()
497 timer_setup(&tmr->timer, fn, 0); in sci_init_timer()
500 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) in sci_mod_timer() argument
502 tmr->cancel = false; in sci_mod_timer()
503 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer()
506 static inline void sci_del_timer(struct sci_timer *tmr) in sci_del_timer() argument
508 tmr->cancel = true; in sci_del_timer()
509 timer_delete(&tmr->timer); in sci_del_timer()
H A Dport_config.c324 struct sci_timer *tmr = from_timer(tmr, t, timer); in mpc_agent_timeout() local
330 port_agent = container_of(tmr, typeof(*port_agent), timer); in mpc_agent_timeout()
335 if (tmr->cancel) in mpc_agent_timeout()
662 struct sci_timer *tmr = from_timer(tmr, t, timer); in apc_agent_timeout() local
668 port_agent = container_of(tmr, typeof(*port_agent), timer); in apc_agent_timeout()
673 if (tmr->cancel) in apc_agent_timeout()
/linux-6.15/arch/powerpc/include/asm/
H A Dfsl_gtm.h35 extern void gtm_put_timer16(struct gtm_timer *tmr);
36 extern int gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec,
38 extern int gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec,
40 extern void gtm_stop_timer16(struct gtm_timer *tmr);
41 extern void gtm_ack_timer16(struct gtm_timer *tmr, u16 events);
/linux-6.15/include/linux/
H A Dposix-timers.h114 void posixtimer_send_sigqueue(struct k_itimer *tmr);
229 static inline void posixtimer_putref(struct k_itimer *tmr) in posixtimer_putref() argument
231 if (rcuref_put(&tmr->rcuref)) in posixtimer_putref()
232 posixtimer_free_timer(tmr); in posixtimer_putref()
237 struct k_itimer *tmr = container_of(q, struct k_itimer, sigq); in posixtimer_sigqueue_getref() local
239 WARN_ON_ONCE(!rcuref_get(&tmr->rcuref)); in posixtimer_sigqueue_getref()
244 struct k_itimer *tmr = container_of(q, struct k_itimer, sigq); in posixtimer_sigqueue_putref() local
246 posixtimer_putref(tmr); in posixtimer_sigqueue_putref()
/linux-6.15/tools/testing/selftests/kvm/x86/
H A Dxen_shinfo_test.c590 struct kvm_xen_vcpu_attr tmr = { in main() local
620 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
805 memset(&tmr, 0, sizeof(tmr)); in main()
806 tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER; in main()
807 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr); in main()
808 TEST_ASSERT(tmr.u.timer.port == EVTCHN_TIMER, in main()
827 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
854 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
865 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main()
868 tmr.u.timer.expires_ns = 0; in main()
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dfan.c36 struct nvkm_timer *tmr = subdev->device->timer; in nvkm_fan_update() local
98 nvkm_timer_alarm(tmr, delay * 1000 * 1000, &fan->alarm); in nvkm_fan_update()
127 struct nvkm_timer *tmr = device->timer; in nvkm_therm_fan_sense() local
142 start = nvkm_timer_read(tmr); in nvkm_therm_fan_sense()
153 start = nvkm_timer_read(tmr); in nvkm_therm_fan_sense()
157 } while (cycles < 5 && nvkm_timer_read(tmr) - start < 250000000); in nvkm_therm_fan_sense()
158 end = nvkm_timer_read(tmr); in nvkm_therm_fan_sense()
216 struct nvkm_timer *tmr = therm->subdev.device->timer; in nvkm_therm_fan_fini() local
218 nvkm_timer_alarm(tmr, 0, &therm->fan->alarm); in nvkm_therm_fan_fini()
H A Dtemp.c167 struct nvkm_timer *tmr = therm->subdev.device->timer; in alarm_timer_callback() local
189 nvkm_timer_alarm(tmr, 1000000000ULL, alarm); in alarm_timer_callback()
221 struct nvkm_timer *tmr = therm->subdev.device->timer; in nvkm_therm_sensor_fini() local
223 nvkm_timer_alarm(tmr, 0, &therm->sensor.therm_poll_alarm); in nvkm_therm_sensor_fini()
/linux-6.15/fs/
H A Dtimerfd.c33 struct hrtimer tmr; member
77 t.tmr); in timerfd_tmrproc()
209 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup()
221 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup()
241 hrtimer_cancel(&ctx->t.tmr); in timerfd_release()
304 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read_iter()
306 hrtimer_restart(&ctx->t.tmr); in timerfd_read_iter()
490 if (hrtimer_try_to_cancel(&ctx->t.tmr) >= 0) in do_timerfd_settime()
498 hrtimer_cancel_wait_running(&ctx->t.tmr); in do_timerfd_settime()
511 hrtimer_forward_now(&ctx->t.tmr, ctx->tintv); in do_timerfd_settime()
[all …]
/linux-6.15/Documentation/devicetree/bindings/ptp/
H A Dfsl,ptp.yaml59 fsl,tmr-prsc:
63 fsl,tmr-add:
67 fsl,tmr-fiper1:
71 fsl,tmr-fiper2:
75 fsl,tmr-fiper3:
151 fsl,tmr-prsc = <100>;
152 fsl,tmr-add = <0x999999a4>;
153 fsl,tmr-fiper1 = <0x3b9ac9f6>;
154 fsl,tmr-fiper2 = <0x00018696>;
/linux-6.15/Documentation/devicetree/bindings/misc/
H A Dxlnx,tmr-manager.yaml4 $id: http://devicetree.org/schemas/misc/xlnx,tmr-manager.yaml#
21 - xlnx,tmr-manager-1.0
43 tmr-manager@44a10000 {
44 compatible = "xlnx,tmr-manager-1.0";
H A Dxlnx,tmr-inject.yaml4 $id: http://devicetree.org/schemas/misc/xlnx,tmr-inject.yaml#
21 - xlnx,tmr-inject-1.0
44 compatible = "xlnx,tmr-inject-1.0";
/linux-6.15/kernel/time/
H A Dposix-timers.c433 struct k_itimer *tmr; in alloc_posix_timer() local
439 if (!tmr) in alloc_posix_timer()
440 return tmr; in alloc_posix_timer()
446 rcuref_init(&tmr->rcuref, 1); in alloc_posix_timer()
447 return tmr; in alloc_posix_timer()
452 put_pid(tmr->it_pid); in posixtimer_free_timer()
453 if (tmr->sigq.ucounts) in posixtimer_free_timer()
455 kfree_rcu(tmr, rcu); in posixtimer_free_timer()
460 struct timer_hash_bucket *bucket = hash_bucket(posix_sig_owner(tmr), tmr->it_id); in posix_timer_unhash_and_free()
464 posixtimer_putref(tmr); in posix_timer_unhash_and_free()
[all …]
/linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dg84.c120 struct nvkm_timer *tmr = device->timer; in g84_gr_tlb_flush() local
130 start = nvkm_timer_read(tmr); in g84_gr_tlb_flush()
149 !(timeout = nvkm_timer_read(tmr) - start > 2000000000)); in g84_gr_tlb_flush()
/linux-6.15/arch/powerpc/boot/dts/fsl/
H A Dbsc9131rdb.dtsi88 fsl,tmr-prsc = <2>;
89 fsl,tmr-add = <0xcccccccd>;
90 fsl,tmr-fiper1 = <999999995>;
91 fsl,tmr-fiper2 = <99990>;
H A Dbsc9132qds.dtsi95 fsl,tmr-prsc = <2>;
96 fsl,tmr-add = <0xcccccccd>;
97 fsl,tmr-fiper1 = <999999995>;
98 fsl,tmr-fiper2 = <99990>;

123