Home
last modified time | relevance | path

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

/linux-4.1.27/sound/core/seq/
Dseq_timer.c36 static void snd_seq_timer_set_tick_resolution(struct snd_seq_timer *tmr) in snd_seq_timer_set_tick_resolution() argument
38 if (tmr->tempo < 1000000) in snd_seq_timer_set_tick_resolution()
39 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
43 s = tmr->tempo % tmr->ppq; in snd_seq_timer_set_tick_resolution()
44 s = (s * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
45 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution()
46 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution()
48 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution()
49 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution()
50 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution()
[all …]
Dseq_timer.h65 void snd_seq_timer_delete(struct snd_seq_timer **tmr);
128 void snd_seq_timer_defaults(struct snd_seq_timer *tmr);
129 void snd_seq_timer_reset(struct snd_seq_timer *tmr);
130 int snd_seq_timer_stop(struct snd_seq_timer *tmr);
131 int snd_seq_timer_start(struct snd_seq_timer *tmr);
132 int snd_seq_timer_continue(struct snd_seq_timer *tmr);
133 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo);
134 int snd_seq_timer_set_ppq(struct snd_seq_timer *tmr, int ppq);
135 int snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position);
136 int snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position);
[all …]
Dseq_queue.c450 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local
455 tmr = queue->timer; in snd_seq_queue_timer_open()
457 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open()
765 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local
771 tmr = q->timer; in snd_seq_info_queues_read()
772 if (tmr->tempo) in snd_seq_info_queues_read()
773 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read()
782 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read()
783 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read()
784 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read()
[all …]
Dseq_clientmgr.c1667 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local
1678 tmr = queue->timer; in snd_seq_ioctl_get_queue_status()
1681 status.time = snd_seq_timer_get_cur_time(tmr); in snd_seq_ioctl_get_queue_status()
1682 status.tick = snd_seq_timer_get_cur_tick(tmr); in snd_seq_ioctl_get_queue_status()
1684 status.running = tmr->running; in snd_seq_ioctl_get_queue_status()
1701 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local
1712 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo()
1714 tempo.tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo()
1715 tempo.ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo()
1716 tempo.skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo()
[all …]
/linux-4.1.27/arch/powerpc/sysdev/
Dfsl_gtm.c155 void gtm_put_timer16(struct gtm_timer *tmr) in gtm_put_timer16() argument
157 gtm_stop_timer16(tmr); in gtm_put_timer16()
159 spin_lock_irq(&tmr->gtm->lock); in gtm_put_timer16()
160 tmr->requested = false; in gtm_put_timer16()
161 spin_unlock_irq(&tmr->gtm->lock); in gtm_put_timer16()
169 static int gtm_set_ref_timer16(struct gtm_timer *tmr, int frequency, in gtm_set_ref_timer16() argument
172 struct gtm *gtm = tmr->gtm; in gtm_set_ref_timer16()
173 int num = tmr - &gtm->timers[0]; in gtm_set_ref_timer16()
182 if (!tmr->gtpsr) in gtm_set_ref_timer16()
213 clrsetbits_8(tmr->gtcfr, ~(GTCFR_STP(num) | GTCFR_RST(num)), in gtm_set_ref_timer16()
[all …]
/linux-4.1.27/drivers/target/
Dtarget_core_tmr.c48 struct se_tmr_req *tmr; in core_tmr_alloc_req() local
50 tmr = kzalloc(sizeof(struct se_tmr_req), gfp_flags); in core_tmr_alloc_req()
51 if (!tmr) { in core_tmr_alloc_req()
57 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req()
58 tmr->task_cmd = se_cmd; in core_tmr_alloc_req()
59 tmr->fabric_tmr_ptr = fabric_tmr_ptr; in core_tmr_alloc_req()
60 tmr->function = function; in core_tmr_alloc_req()
61 INIT_LIST_HEAD(&tmr->tmr_list); in core_tmr_alloc_req()
67 void core_tmr_release_req(struct se_tmr_req *tmr) in core_tmr_release_req() argument
69 struct se_device *dev = tmr->tmr_dev; in core_tmr_release_req()
[all …]
Dtarget_core_transport.c3124 struct se_tmr_req *tmr = cmd->se_tmr_req; in target_tmr_work() local
3130 tmr->response = TMR_FUNCTION_REJECTED; in target_tmr_work()
3136 switch (tmr->function) { in target_tmr_work()
3138 core_tmr_abort_task(dev, tmr, cmd->se_sess); in target_tmr_work()
3143 tmr->response = TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED; in target_tmr_work()
3146 ret = core_tmr_lun_reset(dev, tmr, NULL, NULL); in target_tmr_work()
3147 tmr->response = (!ret) ? TMR_FUNCTION_COMPLETE : in target_tmr_work()
3151 tmr->response = TMR_FUNCTION_REJECTED; in target_tmr_work()
3154 tmr->response = TMR_FUNCTION_REJECTED; in target_tmr_work()
3158 tmr->function); in target_tmr_work()
[all …]
/linux-4.1.27/arch/arm/plat-iop/
Dtime.c68 u32 tmr = IOP_TMR_PRIVILEGED | IOP_TMR_RATIO_1_1; in iop_set_next_event() local
71 write_tmr0(tmr & ~(IOP_TMR_EN | IOP_TMR_RELOAD)); in iop_set_next_event()
73 write_tmr0((tmr & ~IOP_TMR_RELOAD) | IOP_TMR_EN); in iop_set_next_event()
83 u32 tmr = read_tmr0(); in iop_set_mode() local
87 write_tmr0(tmr & ~IOP_TMR_EN); in iop_set_mode()
90 tmr |= (IOP_TMR_RELOAD | IOP_TMR_EN); in iop_set_mode()
94 tmr &= ~(IOP_TMR_RELOAD | IOP_TMR_EN); in iop_set_mode()
97 tmr |= IOP_TMR_EN; in iop_set_mode()
102 tmr &= ~IOP_TMR_EN; in iop_set_mode()
106 write_tmr0(tmr); in iop_set_mode()
/linux-4.1.27/drivers/scsi/isci/
Disci.h501 void sci_init_timer(struct sci_timer *tmr, void (*fn)(unsigned long)) in sci_init_timer() argument
503 tmr->timer.function = fn; in sci_init_timer()
504 tmr->timer.data = (unsigned long) tmr; in sci_init_timer()
505 tmr->cancel = 0; in sci_init_timer()
506 init_timer(&tmr->timer); in sci_init_timer()
509 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) in sci_mod_timer() argument
511 tmr->cancel = 0; in sci_mod_timer()
512 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer()
515 static inline void sci_del_timer(struct sci_timer *tmr) in sci_del_timer() argument
517 tmr->cancel = 1; in sci_del_timer()
[all …]
Dport_config.c325 struct sci_timer *tmr = (struct sci_timer *)data; in mpc_agent_timeout() local
331 port_agent = container_of(tmr, typeof(*port_agent), timer); in mpc_agent_timeout()
336 if (tmr->cancel) in mpc_agent_timeout()
660 struct sci_timer *tmr = (struct sci_timer *)data; in apc_agent_timeout() local
666 port_agent = container_of(tmr, typeof(*port_agent), timer); in apc_agent_timeout()
671 if (tmr->cancel) in apc_agent_timeout()
Dhost.c963 struct sci_timer *tmr = (struct sci_timer *)data; in phy_startup_timeout() local
964 struct isci_host *ihost = container_of(tmr, typeof(*ihost), phy_timer); in phy_startup_timeout()
970 if (tmr->cancel) in phy_startup_timeout()
1597 struct sci_timer *tmr = (struct sci_timer *)data; in controller_timeout() local
1598 struct isci_host *ihost = container_of(tmr, typeof(*ihost), timer); in controller_timeout()
1604 if (tmr->cancel) in controller_timeout()
1742 struct sci_timer *tmr = (struct sci_timer *)data; in power_control_timeout() local
1743 struct isci_host *ihost = container_of(tmr, typeof(*ihost), power_control.timer); in power_control_timeout()
1750 if (tmr->cancel) in power_control_timeout()
1807 sci_mod_timer(tmr, SCIC_SDS_CONTROLLER_POWER_CONTROL_INTERVAL); in power_control_timeout()
Dphy.c320 struct sci_timer *tmr = (struct sci_timer *)data; in phy_sata_timeout() local
321 struct isci_phy *iphy = container_of(tmr, typeof(*iphy), sata_timer); in phy_sata_timeout()
327 if (tmr->cancel) in phy_sata_timeout()
Dport.c774 struct sci_timer *tmr = (struct sci_timer *)data; in port_timeout() local
775 struct isci_port *iport = container_of(tmr, typeof(*iport), timer); in port_timeout()
782 if (tmr->cancel) in port_timeout()
/linux-4.1.27/sound/oss/
Dsound_timer.c28 static struct sound_lowlev_timer *tmr; variable
54 if(!tmr) in reprogram_timer()
65 usecs_per_tmr = tmr->tmr_start(tmr->dev, usecs_per_tick); in reprogram_timer()
110 tmr->tmr_disable(tmr->dev); in timer_close()
288 tmr->tmr_restart(tmr->dev); in sound_timer_interrupt()
312 if (t->priority <= tmr->priority) in sound_timer_init()
314 tmr = t; in sound_timer_init()
318 tmr = t; in sound_timer_init()
Dsequencer.c25 static struct sound_timer_operations *tmr; variable
190 this_time = tmr->get_time(tmr_no); in seq_input_event()
636 if ((ret = tmr->event(tmr_no, event_rec)) == TIMER_ARMED) in seq_timing_event()
1006 tmr = sound_timer_devs[tmr_no]; in sequencer_open()
1010 if (tmr == NULL) in sequencer_open()
1080 if (try_module_get(tmr->owner)) in sequencer_open()
1081 tmr->open(tmr_no, seq_mode); in sequencer_open()
1176 tmr->close(tmr_no); in sequencer_release()
1177 module_put(tmr->owner); in sequencer_release()
1337 return tmr->ioctl(tmr_no, cmd, arg); in sequencer_ioctl()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dfsl_gtm.h39 extern void gtm_put_timer16(struct gtm_timer *tmr);
40 extern int gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec,
42 extern int gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec,
44 extern void gtm_stop_timer16(struct gtm_timer *tmr);
45 extern void gtm_ack_timer16(struct gtm_timer *tmr, u16 events);
Dppc-opcode.h401 #define MTTMR(tmr, r) stringify_in_c(.long PPC_INST_MTTMR | \ argument
402 TMRN(tmr) | ___PPC_RS(r))
403 #define MFTMR(tmr, r) stringify_in_c(.long PPC_INST_MFTMR | \ argument
404 TMRN(tmr) | ___PPC_RT(r))
/linux-4.1.27/fs/
Dtimerfd.c31 struct hrtimer tmr; member
74 t.tmr); in timerfd_tmrproc()
156 remaining = hrtimer_expires_remaining(&ctx->t.tmr); in timerfd_get_remaining()
182 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup()
183 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup()
184 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup()
194 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup()
214 hrtimer_cancel(&ctx->t.tmr); in timerfd_release()
276 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read()
278 hrtimer_restart(&ctx->t.tmr); in timerfd_read()
[all …]
/linux-4.1.27/kernel/time/
Dposix-timers.c542 struct k_itimer *tmr; in alloc_posix_timer() local
543 tmr = kmem_cache_zalloc(posix_timers_cache, GFP_KERNEL); in alloc_posix_timer()
544 if (!tmr) in alloc_posix_timer()
545 return tmr; in alloc_posix_timer()
546 if (unlikely(!(tmr->sigq = sigqueue_alloc()))) { in alloc_posix_timer()
547 kmem_cache_free(posix_timers_cache, tmr); in alloc_posix_timer()
550 memset(&tmr->sigq->info, 0, sizeof(siginfo_t)); in alloc_posix_timer()
551 return tmr; in alloc_posix_timer()
556 struct k_itimer *tmr = container_of(head, struct k_itimer, it.rcu); in k_itimer_rcu_free() local
558 kmem_cache_free(posix_timers_cache, tmr); in k_itimer_rcu_free()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dfsl-tsec-phy.txt92 - fsl,tmr-prsc Prescaler, divides the output clock.
93 - fsl,tmr-add Frequency compensation value.
94 - fsl,tmr-fiper1 Fixed interval period pulse generator.
95 - fsl,tmr-fiper2 Fixed interval period pulse generator.
142 fsl,tmr-prsc = <100>;
143 fsl,tmr-add = <0x999999A4>;
144 fsl,tmr-fiper1 = <0x3B9AC9F6>;
145 fsl,tmr-fiper2 = <0x00018696>;
/linux-4.1.27/arch/cris/include/arch-v32/mach-fs/mach/hwregs/
Dtimer_defs.h125 unsigned int tmr : 24; member
132 unsigned int tmr : 24; member
152 unsigned int tmr : 2; member
164 unsigned int tmr : 2; member
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/hwregs/
Dtimer_defs.h122 unsigned int tmr : 24; member
129 unsigned int tmr : 24; member
149 unsigned int tmr : 2; member
161 unsigned int tmr : 2; member
/linux-4.1.27/drivers/tty/
Dn_r3964.c398 mod_timer(&pInfo->tmr, jiffies + R3964_TO_QVZ); in trigger_transmit()
422 mod_timer(&pInfo->tmr, jiffies + R3964_TO_QVZ); in retry_transmit()
472 mod_timer(&pInfo->tmr, jiffies + R3964_TO_QVZ); in transmit_block()
504 mod_timer(&pInfo->tmr, jiffies + R3964_TO_RX_PANIC); in on_receive_block()
515 del_timer_sync(&pInfo->tmr); in on_receive_block()
588 mod_timer(&pInfo->tmr, jiffies + R3964_TO_ZVZ); in receive_char()
612 mod_timer(&pInfo->tmr, in receive_char()
623 mod_timer(&pInfo->tmr, jiffies + R3964_TO_ZVZ); in receive_char()
644 mod_timer(&pInfo->tmr, in receive_char()
653 mod_timer(&pInfo->tmr, jiffies + R3964_TO_ZVZ); in receive_char()
[all …]
/linux-4.1.27/arch/powerpc/boot/dts/
Dp2020rdb.dts231 fsl,tmr-prsc = <200>;
232 fsl,tmr-add = <0xCCCCCCCD>;
233 fsl,tmr-fiper1 = <0x3B9AC9FB>;
234 fsl,tmr-fiper2 = <0x0001869B>;
Dp2020rdb-pc.dtsi219 fsl,tmr-prsc = <200>;
220 fsl,tmr-add = <0xCCCCCCCD>;
221 fsl,tmr-fiper1 = <0x3B9AC9FB>;
222 fsl,tmr-fiper2 = <0x0001869B>;
Dp2020ds.dtsi187 fsl,tmr-prsc = <200>;
188 fsl,tmr-add = <0xCCCCCCCD>;
189 fsl,tmr-fiper1 = <0x3B9AC9FB>;
190 fsl,tmr-fiper2 = <0x0001869B>;
Dmpc8313erdb.dts185 fsl,tmr-prsc = <100>;
186 fsl,tmr-add = <0x999999A4>;
187 fsl,tmr-fiper1 = <0x3B9AC9F6>;
188 fsl,tmr-fiper2 = <0x00018696>;
Dmpc8572ds.dtsi197 fsl,tmr-prsc = <200>;
198 fsl,tmr-add = <0xAAAAAAAB>;
199 fsl,tmr-fiper1 = <0x3B9AC9FB>;
200 fsl,tmr-fiper2 = <0x3B9AC9FB>;
/linux-4.1.27/drivers/tty/serial/
Daltera_uart.c83 struct timer_list tmr; member
297 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_timer()
317 setup_timer(&pp->tmr, altera_uart_timer, (unsigned long)port); in altera_uart_startup()
318 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_startup()
357 del_timer_sync(&pp->tmr); in altera_uart_shutdown()
/linux-4.1.27/drivers/target/tcm_fc/
Dtfc_cmd.c416 struct se_tmr_req *tmr = se_cmd->se_tmr_req; in ft_queue_tm_resp() local
421 switch (tmr->response) { in ft_queue_tm_resp()
438 tmr->function, tmr->response, code); in ft_queue_tm_resp()
/linux-4.1.27/drivers/xen/
Dxen-scsiback.c598 struct scsiback_tmr *tmr; in scsiback_device_action() local
600 tmr = kzalloc(sizeof(struct scsiback_tmr), GFP_KERNEL); in scsiback_device_action()
601 if (!tmr) in scsiback_device_action()
604 init_waitqueue_head(&tmr->tmr_wait); in scsiback_device_action()
610 rc = core_tmr_alloc_req(se_cmd, tmr, act, GFP_KERNEL); in scsiback_device_action()
620 wait_event(tmr->tmr_wait, atomic_read(&tmr->tmr_complete)); in scsiback_device_action()
626 if (tmr) { in scsiback_device_action()
628 kfree(tmr); in scsiback_device_action()
1571 struct scsiback_tmr *tmr = se_tmr->fabric_tmr_ptr; in scsiback_queue_tm_rsp() local
1573 atomic_set(&tmr->tmr_complete, 1); in scsiback_queue_tm_rsp()
[all …]
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_keys.c62 struct qib_mregion *tmr; in qib_alloc_lkey() local
64 tmr = rcu_access_pointer(dev->dma_mr); in qib_alloc_lkey()
65 if (!tmr) { in qib_alloc_lkey()
/linux-4.1.27/include/linux/
Dn_r3964.h173 struct timer_list tmr; member
/linux-4.1.27/arch/x86/kvm/
Dioapic.h124 u32 *tmr);
Dlapic.h59 void kvm_apic_update_tmr(struct kvm_vcpu *vcpu, u32 *tmr);
Dioapic.c250 u32 *tmr) in kvm_ioapic_scan_entry() argument
268 (unsigned long *)tmr); in kvm_ioapic_scan_entry()
Dlapic.c547 void kvm_apic_update_tmr(struct kvm_vcpu *vcpu, u32 *tmr) in kvm_apic_update_tmr() argument
553 apic_set_reg(apic, APIC_TMR + 0x10 * i, tmr[i]); in kvm_apic_update_tmr()
Dx86.c6168 u32 tmr[8]; in vcpu_scan_ioapic() local
6174 memset(tmr, 0, 32); in vcpu_scan_ioapic()
6176 kvm_ioapic_scan_entry(vcpu, eoi_exit_bitmap, tmr); in vcpu_scan_ioapic()
6178 kvm_apic_update_tmr(vcpu, tmr); in vcpu_scan_ioapic()
/linux-4.1.27/arch/cris/arch-v32/kernel/
Dfasttimer.c161 trig_cfg.tmr = regk_timer_time; in start_timer_trig()
177 trig_cfg.tmr = regk_timer_off; in start_timer_trig()
343 trig_cfg.tmr = regk_timer_off; in timer_trig_handler()
/linux-4.1.27/arch/x86/include/asm/
Dapicdef.h263 } tmr [8]; member
/linux-4.1.27/drivers/target/loopback/
Dtcm_loop.c220 int lun, int task, enum tcm_tmreq_table tmr) in tcm_loop_issue_tmr() argument
263 rc = core_tmr_alloc_req(se_cmd, tl_tmr, tmr, GFP_KERNEL); in tcm_loop_issue_tmr()
267 if (tmr == TMR_ABORT_TASK) in tcm_loop_issue_tmr()
/linux-4.1.27/kernel/
Dsignal.c635 struct hrtimer *tmr = &tsk->signal->real_timer; in dequeue_signal() local
637 if (!hrtimer_is_queued(tmr) && in dequeue_signal()
639 hrtimer_forward(tmr, tmr->base->get_time(), in dequeue_signal()
641 hrtimer_restart(tmr); in dequeue_signal()
/linux-4.1.27/drivers/video/fbdev/
Dcg14.c108 u32 tmr; /* Test Mode Read Back */ member