Searched refs:tmr (Results 1 - 25 of 45) sorted by relevance

12

/linux-master/sound/core/seq/
H A Dseq_timer.c21 static void snd_seq_timer_set_tick_resolution(struct snd_seq_timer *tmr) argument
23 if (tmr->tempo < 1000000)
24 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq;
28 s = tmr->tempo % tmr->ppq;
29 s = (s * 1000) / tmr->ppq;
30 tmr->tick.resolution = (tmr
41 struct snd_seq_timer *tmr; local
58 snd_seq_timer_delete(struct snd_seq_timer **tmr) argument
76 snd_seq_timer_defaults(struct snd_seq_timer * tmr) argument
96 seq_timer_reset(struct snd_seq_timer *tmr) argument
106 snd_seq_timer_reset(struct snd_seq_timer *tmr) argument
119 struct snd_seq_timer *tmr; local
153 snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) argument
168 snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq) argument
192 snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position) argument
205 snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position) argument
218 snd_seq_timer_set_skew(struct snd_seq_timer *tmr, unsigned int skew, unsigned int base) argument
237 struct snd_seq_timer *tmr; local
291 struct snd_seq_timer *tmr; local
308 seq_timer_stop(struct snd_seq_timer *tmr) argument
319 snd_seq_timer_stop(struct snd_seq_timer *tmr) argument
325 initialize_timer(struct snd_seq_timer *tmr) argument
355 seq_timer_start(struct snd_seq_timer *tmr) argument
370 snd_seq_timer_start(struct snd_seq_timer *tmr) argument
376 seq_timer_continue(struct snd_seq_timer *tmr) argument
393 snd_seq_timer_continue(struct snd_seq_timer *tmr) argument
400 snd_seq_timer_get_cur_time(struct snd_seq_timer *tmr, bool adjust_ktime) argument
421 snd_seq_timer_get_cur_tick(struct snd_seq_timer *tmr) argument
435 struct snd_seq_timer *tmr; local
[all...]
H A Dseq_timer.h50 void snd_seq_timer_delete(struct snd_seq_timer **tmr);
113 void snd_seq_timer_defaults(struct snd_seq_timer *tmr);
114 void snd_seq_timer_reset(struct snd_seq_timer *tmr);
115 int snd_seq_timer_stop(struct snd_seq_timer *tmr);
116 int snd_seq_timer_start(struct snd_seq_timer *tmr);
117 int snd_seq_timer_continue(struct snd_seq_timer *tmr);
118 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo);
119 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_
[all...]
H A Dseq_queue.c418 struct snd_seq_timer *tmr; local
423 tmr = queue->timer;
426 snd_seq_timer_defaults(tmr);
716 struct snd_seq_timer *tmr; local
725 tmr = q->timer;
726 if (tmr->tempo)
727 bpm = 60000000 / tmr->tempo;
741 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped");
742 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq);
743 snd_iprintf(buffer, "current tempo : %d\n", tmr
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
H A Dbase.c29 struct nvkm_subdev *subdev = &wait->tmr->subdev;
30 u64 time = nvkm_timer_read(wait->tmr);
57 wait->tmr = device->timer;
63 nvkm_timer_read(struct nvkm_timer *tmr) argument
65 return tmr->func->read(tmr);
69 nvkm_timer_alarm_trigger(struct nvkm_timer *tmr) argument
76 spin_lock_irqsave(&tmr->lock, flags);
77 list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) {
79 if (alarm->timestamp > nvkm_timer_read(tmr)) {
106 nvkm_timer_alarm(struct nvkm_timer *tmr, u32 nsec, struct nvkm_alarm *alarm) argument
147 struct nvkm_timer *tmr = nvkm_timer(subdev); local
154 struct nvkm_timer *tmr = nvkm_timer(subdev); local
162 struct nvkm_timer *tmr = nvkm_timer(subdev); local
188 struct nvkm_timer *tmr; local
[all...]
H A Dnv04.c28 nv04_timer_time(struct nvkm_timer *tmr, u64 time) argument
30 struct nvkm_subdev *subdev = &tmr->subdev;
43 nv04_timer_read(struct nvkm_timer *tmr) argument
45 struct nvkm_device *device = tmr->subdev.device;
57 nv04_timer_alarm_fini(struct nvkm_timer *tmr) argument
59 struct nvkm_device *device = tmr->subdev.device;
64 nv04_timer_alarm_init(struct nvkm_timer *tmr, u32 time) argument
66 struct nvkm_device *device = tmr->subdev.device;
72 nv04_timer_intr(struct nvkm_timer *tmr) argument
74 struct nvkm_subdev *subdev = &tmr
91 nv04_timer_init(struct nvkm_timer *tmr) argument
[all...]
H A Dnv40.c28 nv40_timer_init(struct nvkm_timer *tmr) argument
30 struct nvkm_subdev *subdev = &tmr->subdev;
H A Dnv41.c28 nv41_timer_init(struct nvkm_timer *tmr) argument
30 struct nvkm_subdev *subdev = &tmr->subdev;
/linux-master/drivers/clocksource/
H A Dtimer-ixp4xx.c84 struct ixp4xx_timer *tmr = dev_id; local
85 struct clock_event_device *evt = &tmr->clkevt;
89 tmr->base + IXP4XX_OSST_OFFSET);
99 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); local
102 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET);
106 tmr->base + IXP4XX_OSRT1_OFFSET);
113 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); local
116 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET);
118 __raw_writel(val, tmr->base + IXP4XX_OSRT1_OFFSET);
125 struct ixp4xx_timer *tmr local
135 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); local
147 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); local
166 struct ixp4xx_timer *tmr; local
[all...]
H A Dtimer-tegra186.c74 struct tegra186_tmr *tmr; member in struct:tegra186_wdt
93 static void tmr_writel(struct tegra186_tmr *tmr, u32 value, unsigned int offset) argument
95 writel_relaxed(value, tmr->regs + offset);
112 struct tegra186_tmr *tmr; local
114 tmr = devm_kzalloc(tegra->dev, sizeof(*tmr), GFP_KERNEL);
115 if (!tmr)
118 tmr->parent = tegra;
119 tmr->regs = tegra->regs + offset;
120 tmr
[all...]
/linux-master/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-master/arch/powerpc/sysdev/
H A Dfsl_gtm.c146 * @tmr: pointer to the gtm_timer structure obtained from gtm_get_timer
151 void gtm_put_timer16(struct gtm_timer *tmr) argument
153 gtm_stop_timer16(tmr);
155 spin_lock_irq(&tmr->gtm->lock);
156 tmr->requested = false;
157 spin_unlock_irq(&tmr->gtm->lock);
165 static int gtm_set_ref_timer16(struct gtm_timer *tmr, int frequency, argument
168 struct gtm *gtm = tmr->gtm;
169 int num = tmr - &gtm->timers[0];
178 if (!tmr
243 gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec, bool reload) argument
279 gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec, bool reload) argument
302 gtm_stop_timer16(struct gtm_timer *tmr) argument
326 gtm_ack_timer16(struct gtm_timer *tmr, u16 events) argument
[all...]
/linux-master/drivers/target/
H A Dtarget_core_tmr.c32 struct se_tmr_req *tmr; local
34 tmr = kzalloc(sizeof(struct se_tmr_req), gfp_flags);
35 if (!tmr) {
41 se_cmd->se_tmr_req = tmr;
42 tmr->task_cmd = se_cmd;
43 tmr->fabric_tmr_ptr = fabric_tmr_ptr;
44 tmr->function = function;
45 INIT_LIST_HEAD(&tmr->tmr_list);
51 void core_tmr_release_req(struct se_tmr_req *tmr) argument
53 kfree(tmr);
105 core_tmr_abort_task( struct se_device *dev, struct se_tmr_req *tmr, struct se_session *se_sess) argument
175 core_tmr_drain_tmr_list( struct se_device *dev, struct se_tmr_req *tmr, struct list_head *preempt_and_abort_list) argument
354 core_tmr_lun_reset( struct se_device *dev, struct se_tmr_req *tmr, struct list_head *preempt_and_abort_list, struct se_cmd *prout_cmd) argument
[all...]
/linux-master/drivers/scsi/isci/
H A Disci.h501 void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t)) argument
503 tmr->cancel = false;
504 timer_setup(&tmr->timer, fn, 0);
507 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) argument
509 tmr->cancel = false;
510 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec));
513 static inline void sci_del_timer(struct sci_timer *tmr) argument
515 tmr->cancel = true;
516 del_timer(&tmr->timer);
H A Dport_config.c324 struct sci_timer *tmr = from_timer(tmr, t, timer); local
330 port_agent = container_of(tmr, typeof(*port_agent), timer);
335 if (tmr->cancel)
662 struct sci_timer *tmr = from_timer(tmr, t, timer); local
668 port_agent = container_of(tmr, typeof(*port_agent), timer);
673 if (tmr->cancel)
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dfan.c36 struct nvkm_timer *tmr = subdev->device->timer; local
98 nvkm_timer_alarm(tmr, delay * 1000 * 1000, &fan->alarm);
127 struct nvkm_timer *tmr = device->timer; local
142 start = nvkm_timer_read(tmr);
153 start = nvkm_timer_read(tmr);
157 } while (cycles < 5 && nvkm_timer_read(tmr) - start < 250000000);
158 end = nvkm_timer_read(tmr);
216 struct nvkm_timer *tmr = therm->subdev.device->timer; local
218 nvkm_timer_alarm(tmr, 0, &therm->fan->alarm);
H A Dfantog.c43 struct nvkm_timer *tmr = device->timer; local
60 nvkm_timer_alarm(tmr, next_change * 1000, &fan->alarm);
H A Dtemp.c167 struct nvkm_timer *tmr = therm->subdev.device->timer; local
189 nvkm_timer_alarm(tmr, 1000000000ULL, alarm);
221 struct nvkm_timer *tmr = therm->subdev.device->timer; local
223 nvkm_timer_alarm(tmr, 0, &therm->sensor.therm_poll_alarm);
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dxen_shinfo_test.c611 struct kvm_xen_vcpu_attr tmr = { local
641 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr);
826 memset(&tmr, 0, sizeof(tmr));
827 tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER;
828 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr);
829 TEST_ASSERT(tmr.u.timer.port == EVTCHN_TIMER,
831 TEST_ASSERT(tmr.u.timer.priority == KVM_IRQ_ROUTING_XEN_EVTCHN_PRIO_2LEVEL,
833 TEST_ASSERT(tmr.u.timer.expires_ns > rs->state_entry_time,
847 tmr
[all...]
/linux-master/fs/
H A Dtimerfd.c33 struct hrtimer tmr; member in union:timerfd_ctx::__anon369
77 t.tmr);
184 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr);
210 hrtimer_init(&ctx->t.tmr, clockid, htmode);
211 hrtimer_set_expires(&ctx->t.tmr, texp);
212 ctx->t.tmr.function = timerfd_tmrproc;
224 hrtimer_start(&ctx->t.tmr, texp, htmode);
244 hrtimer_cancel(&ctx->t.tmr);
306 ticks += hrtimer_forward_now(&ctx->t.tmr,
308 hrtimer_restart(&ctx->t.tmr);
[all...]
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/
H A Dtimer.h32 struct nvkm_timer *tmr; member in struct:nvkm_timer_wait
63 dev_WARN(_wait.tmr->subdev.device->dev, "timeout\n"); \
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dg84.c120 struct nvkm_timer *tmr = device->timer; local
130 start = nvkm_timer_read(tmr);
149 !(timeout = nvkm_timer_read(tmr) - start > 2000000000));
/linux-master/drivers/usb/cdns3/
H A Ddrd.h28 __le32 tmr; member in struct:cdns3_otg_regs
49 __le32 tmr; member in struct:cdns3_otg_legacy_regs
70 __le32 tmr; member in struct:cdnsp_otg_regs
/linux-master/include/kvm/
H A Darm_arch_timer.h135 enum kvm_arch_timers tmr,
138 enum kvm_arch_timers tmr,
/linux-master/kernel/time/
H A Dposix-timers.c403 struct k_itimer *tmr = kmem_cache_zalloc(posix_timers_cache, GFP_KERNEL); local
405 if (!tmr)
406 return tmr;
407 if (unlikely(!(tmr->sigq = sigqueue_alloc()))) {
408 kmem_cache_free(posix_timers_cache, tmr);
411 clear_siginfo(&tmr->sigq->info);
412 return tmr;
417 struct k_itimer *tmr = container_of(head, struct k_itimer, rcu); local
419 kmem_cache_free(posix_timers_cache, tmr);
422 static void posix_timer_free(struct k_itimer *tmr) argument
429 posix_timer_unhash_and_free(struct k_itimer *tmr) argument
1096 struct k_itimer *tmr; local
[all...]
/linux-master/drivers/tty/serial/
H A Daltera_uart.c79 struct timer_list tmr; member in struct:altera_uart
279 struct altera_uart *pp = from_timer(pp, t, tmr);
283 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port));
302 timer_setup(&pp->tmr, altera_uart_timer, 0);
303 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port));
343 del_timer_sync(&pp->tmr);

Completed in 220 milliseconds

12