Home
last modified time | relevance | path

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

123

/linux/sound/core/seq/
H A Dseq_timer.c21 static void snd_seq_timer_set_tick_resolution(struct snd_seq_timer *tmr) in snd_seq_timer_set_tick_resolution() argument
24 tmr->tempo_base == 1000 ? 1000000 : 10000; in snd_seq_timer_set_tick_resolution()
26 if (tmr->tempo < threshold) in snd_seq_timer_set_tick_resolution()
27 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()
34 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution()
36 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution()
37 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution()
[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,
120 int snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position);
121 int snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position);
[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()
742 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); 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()
[all …]
H A Dseq_clientmgr.c1709 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local
1717 tmr = queue->timer; in snd_seq_ioctl_get_queue_status()
1720 status->time = snd_seq_timer_get_cur_time(tmr, true); in snd_seq_ioctl_get_queue_status()
1721 status->tick = snd_seq_timer_get_cur_tick(tmr); in snd_seq_ioctl_get_queue_status()
1723 status->running = tmr->running; in snd_seq_ioctl_get_queue_status()
1738 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local
1746 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo()
1748 tempo->tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo()
1749 tempo->ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo()
1750 tempo->skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dbase.c29 struct nvkm_subdev *subdev = &wait->tmr->subdev; in nvkm_timer_wait_test()
30 u64 time = nvkm_timer_read(wait->tmr); in nvkm_timer_wait_test()
57 wait->tmr = device->timer; in nvkm_timer_wait_init()
63 nvkm_timer_read(struct nvkm_timer *tmr) in nvkm_timer_read() argument
65 return tmr->func->read(tmr); in nvkm_timer_read()
69 nvkm_timer_alarm_trigger(struct nvkm_timer *tmr) in nvkm_timer_alarm_trigger() argument
76 spin_lock_irqsave(&tmr->lock, flags); in nvkm_timer_alarm_trigger()
77 list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) { in nvkm_timer_alarm_trigger()
79 if (alarm->timestamp > nvkm_timer_read(tmr)) { in nvkm_timer_alarm_trigger()
81 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm_trigger()
[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()
64 nv04_timer_alarm_init(struct nvkm_timer *tmr, u32 time) in nv04_timer_alarm_init() argument
66 struct nvkm_device *device = tmr->subdev.device; in nv04_timer_alarm_init()
72 nv04_timer_intr(struct nvkm_timer *tmr) in nv04_timer_intr() argument
74 struct nvkm_subdev *subdev = &tmr->subdev; in nv04_timer_intr()
[all …]
H A Dnv40.c28 nv40_timer_init(struct nvkm_timer *tmr) in nv40_timer_init() argument
30 struct nvkm_subdev *subdev = &tmr->subdev; in nv40_timer_init()
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/drivers/clocksource/
H A Dtimer-ixp4xx.c84 struct ixp4xx_timer *tmr = dev_id; in ixp4xx_timer_interrupt() local
85 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt()
89 tmr->base + IXP4XX_OSST_OFFSET); in ixp4xx_timer_interrupt()
99 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_next_event() local
102 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_set_next_event()
106 tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_set_next_event()
113 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_shutdown() local
116 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_shutdown()
118 __raw_writel(val, tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_shutdown()
125 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_oneshot() local
[all …]
H A Dtimer-tegra186.c74 struct tegra186_tmr *tmr; member
93 static void tmr_writel(struct tegra186_tmr *tmr, u32 value, unsigned int offset) in tmr_writel() argument
95 writel_relaxed(value, tmr->regs + offset); in tmr_writel()
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()
119 tmr->regs = tegra->regs + offset; in tegra186_tmr_create()
120 tmr->index = index; in tegra186_tmr_create()
121 tmr->hwirq = 0; in tegra186_tmr_create()
[all …]
/linux/arch/powerpc/sysdev/
H A Dfsl_gtm.c151 void gtm_put_timer16(struct gtm_timer *tmr) in gtm_put_timer16() argument
153 gtm_stop_timer16(tmr); in gtm_put_timer16()
155 spin_lock_irq(&tmr->gtm->lock); in gtm_put_timer16()
156 tmr->requested = false; in gtm_put_timer16()
157 spin_unlock_irq(&tmr->gtm->lock); in gtm_put_timer16()
165 static int gtm_set_ref_timer16(struct gtm_timer *tmr, int frequency, in gtm_set_ref_timer16() argument
168 struct gtm *gtm = tmr->gtm; in gtm_set_ref_timer16()
169 int num = tmr - &gtm->timers[0]; in gtm_set_ref_timer16()
178 if (!tmr->gtpsr) in gtm_set_ref_timer16()
209 clrsetbits_8(tmr->gtcfr, ~(GTCFR_STP(num) | GTCFR_RST(num)), in gtm_set_ref_timer16()
[all …]
/linux/drivers/target/
H A Dtarget_core_tmr.c32 struct se_tmr_req *tmr; in core_tmr_alloc_req() local
34 tmr = kzalloc(sizeof(struct se_tmr_req), gfp_flags); in core_tmr_alloc_req()
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()
43 tmr->fabric_tmr_ptr = fabric_tmr_ptr; in core_tmr_alloc_req()
44 tmr->function = function; in core_tmr_alloc_req()
45 INIT_LIST_HEAD(&tmr->tmr_list); in core_tmr_alloc_req()
51 void core_tmr_release_req(struct se_tmr_req *tmr) in core_tmr_release_req() argument
53 kfree(tmr); in core_tmr_release_req()
[all …]
/linux/drivers/scsi/isci/
H A Disci.h501 void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t)) in sci_init_timer() argument
503 tmr->cancel = false; in sci_init_timer()
504 timer_setup(&tmr->timer, fn, 0); in sci_init_timer()
507 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) in sci_mod_timer() argument
509 tmr->cancel = false; in sci_mod_timer()
510 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer()
513 static inline void sci_del_timer(struct sci_timer *tmr) in sci_del_timer() argument
515 tmr->cancel = true; in sci_del_timer()
516 del_timer(&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/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/include/linux/
H A Dposix-timers.h114 void posixtimer_send_sigqueue(struct k_itimer *tmr);
224 static inline void posixtimer_putref(struct k_itimer *tmr) in posixtimer_putref() argument
226 if (rcuref_put(&tmr->rcuref)) in posixtimer_putref()
227 posixtimer_free_timer(tmr); in posixtimer_putref()
232 struct k_itimer *tmr = container_of(q, struct k_itimer, sigq); in posixtimer_sigqueue_getref() local
234 WARN_ON_ONCE(!rcuref_get(&tmr->rcuref)); in posixtimer_sigqueue_getref()
239 struct k_itimer *tmr = container_of(q, struct k_itimer, sigq); in posixtimer_sigqueue_putref() local
241 posixtimer_putref(tmr); in posixtimer_sigqueue_putref()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dxen_shinfo_test.c
/linux/fs/
H A Dtimerfd.c33 struct hrtimer tmr; member
77 t.tmr); in timerfd_tmrproc()
182 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining()
208 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup()
209 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup()
210 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup()
222 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup()
242 hrtimer_cancel(&ctx->t.tmr); in timerfd_release()
305 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read_iter()
307 hrtimer_restart(&ctx->t.tmr); in timerfd_read_iter()
[all …]
/linux/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/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/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>;
/linux/drivers/usb/cdns3/
H A Ddrd.h28 __le32 tmr; member
49 __le32 tmr; member
70 __le32 tmr; member
/linux/kernel/
H A Dsignal.c1965 static inline struct task_struct *posixtimer_get_target(struct k_itimer *tmr) in posixtimer_get_target() argument
1967 struct task_struct *t = pid_task(tmr->it_pid, tmr->it_pid_type); in posixtimer_get_target()
1969 if (t && tmr->it_pid_type != PIDTYPE_PID && in posixtimer_get_target()
1975 void posixtimer_send_sigqueue(struct k_itimer *tmr) in posixtimer_send_sigqueue() argument
1977 struct sigqueue *q = &tmr->sigq; in posixtimer_send_sigqueue()
1985 t = posixtimer_get_target(tmr); in posixtimer_send_sigqueue()
1996 tmr->it_sigqueue_seq = tmr->it_signal_seq; in posixtimer_send_sigqueue()
2003 tmr->it_sig_periodic = tmr->it_status == POSIX_TIMER_REQUEUE_PENDING; in posixtimer_send_sigqueue()
2030 if (tmr->it_sig_periodic) { in posixtimer_send_sigqueue()
2036 if (hlist_unhashed(&tmr->ignored_list)) { in posixtimer_send_sigqueue()
[all …]

123