/linux/sound/core/seq/ |
A D | seq_timer.c | 24 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 28 s = tmr->tempo % tmr->ppq; in snd_seq_timer_set_tick_resolution() 30 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution() 43 tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); in snd_seq_timer_new() 44 if (!tmr) in snd_seq_timer_new() 54 return tmr; in snd_seq_timer_new() 95 tmr->skew = tmr->skew_base = SKEW_BASE; in snd_seq_timer_defaults() 140 if (tmr->skew != tmr->skew_base) { in snd_seq_timer_interrupt() 190 if (tmr->running && (ppq != tmr->ppq)) { in snd_seq_timer_set_tempo_ppq() 393 snd_timer_start(tmr->timeri, tmr->ticks); in seq_timer_start() [all …]
|
A D | seq_timer.h | 50 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); 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 …]
|
A D | seq_queue.c | 430 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local 435 tmr = queue->timer; in snd_seq_queue_timer_open() 438 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open() 728 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local 737 tmr = q->timer; in snd_seq_info_queues_read() 738 if (tmr->tempo) in snd_seq_info_queues_read() 739 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read() 754 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read() 755 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read() 757 …snd_iprintf(buffer, "current time : %d.%09d s\n", tmr->cur_time.tv_sec, tmr->cur_time.tv_nse… in snd_seq_info_queues_read() [all …]
|
A D | seq_clientmgr.c | 1663 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local 1671 tmr = queue->timer; in snd_seq_ioctl_get_queue_status() 1692 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local 1700 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo() 1702 tempo->tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo() 1703 tempo->ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo() 1738 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_timer() local 1745 tmr = queue->timer; in snd_seq_ioctl_get_queue_timer() 1749 timer->type = tmr->type; in snd_seq_ioctl_get_queue_timer() 1779 tmr = q->timer; in snd_seq_ioctl_set_queue_timer() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
A D | base.c | 65 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 …]
|
A D | nv04.c | 28 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 …]
|
A D | nv40.c | 28 nv40_timer_init(struct nvkm_timer *tmr) in nv40_timer_init() argument 30 struct nvkm_subdev *subdev = &tmr->subdev; in nv40_timer_init()
|
A D | nv41.c | 28 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/ |
A D | timer-ixp4xx.c | 86 struct ixp4xx_timer *tmr = dev_id; in ixp4xx_timer_interrupt() local 168 struct ixp4xx_timer *tmr; in ixp4xx_timer_register() local 171 tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); in ixp4xx_timer_register() 172 if (!tmr) in ixp4xx_timer_register() 174 tmr->base = base; in ixp4xx_timer_register() 186 local_ixp4xx_timer = tmr; in ixp4xx_timer_register() 201 tmr->clkevt.name = "ixp4xx timer1"; in ixp4xx_timer_register() 203 tmr->clkevt.rating = 200; in ixp4xx_timer_register() 209 tmr->clkevt.cpumask = cpumask_of(0); in ixp4xx_timer_register() 210 tmr->clkevt.irq = timer_irq; in ixp4xx_timer_register() [all …]
|
/linux/arch/powerpc/sysdev/ |
A D | fsl_gtm.c | 153 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/arch/arm/mach-iop32x/ |
A D | time.c | 79 u32 tmr = read_tmr0(); in iop_set_periodic() local 81 write_tmr0(tmr & ~IOP_TMR_EN); in iop_set_periodic() 86 write_tmr0(tmr); in iop_set_periodic() 92 u32 tmr = read_tmr0(); in iop_set_oneshot() local 96 write_tmr0(tmr); in iop_set_oneshot() 102 u32 tmr = read_tmr0(); in iop_shutdown() local 104 tmr &= ~IOP_TMR_EN; in iop_shutdown() 105 write_tmr0(tmr); in iop_shutdown() 111 u32 tmr = read_tmr0(); in iop_resume() local 113 tmr |= IOP_TMR_EN; in iop_resume() [all …]
|
/linux/drivers/target/ |
A D | target_core_tmr.c | 32 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 191 if (tmr) in core_tmr_drain_tmr_list() [all …]
|
/linux/drivers/scsi/isci/ |
A D | isci.h | 501 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()
|
A D | port_config.c | 324 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/ |
A D | fsl_gtm.h | 35 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/fs/ |
A D | timerfd.c | 33 struct hrtimer tmr; member 77 t.tmr); in timerfd_tmrproc() 210 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup() 211 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup() 212 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup() 224 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup() 244 hrtimer_cancel(&ctx->t.tmr); in timerfd_release() 306 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read() 308 hrtimer_restart(&ctx->t.tmr); in timerfd_read() 497 hrtimer_cancel_wait_running(&ctx->t.tmr); in do_timerfd_settime() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
A D | fan.c | 36 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()
|
A D | temp.c | 167 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/Documentation/devicetree/bindings/ptp/ |
A D | ptp-qoriq.txt | 17 - fsl,tmr-prsc Prescaler, divides the output clock. 18 - fsl,tmr-add Frequency compensation value. 19 - fsl,tmr-fiper1 Fixed interval period pulse generator. 20 - fsl,tmr-fiper2 Fixed interval period pulse generator. 21 - fsl,tmr-fiper3 Fixed interval period pulse generator. 82 fsl,tmr-prsc = <100>; 83 fsl,tmr-add = <0x999999A4>; 84 fsl,tmr-fiper1 = <0x3B9AC9F6>; 85 fsl,tmr-fiper2 = <0x00018696>;
|
/linux/kernel/time/ |
A D | posix-timers.c | 457 struct k_itimer *tmr; in alloc_posix_timer() local 459 if (!tmr) in alloc_posix_timer() 460 return tmr; in alloc_posix_timer() 465 clear_siginfo(&tmr->sigq->info); in alloc_posix_timer() 466 return tmr; in alloc_posix_timer() 483 hlist_del_rcu(&tmr->t_hash); in release_posix_timer() 486 put_pid(tmr->it_pid); in release_posix_timer() 487 sigqueue_free(tmr->sigq); in release_posix_timer() 488 call_rcu(&tmr->rcu, k_itimer_rcu_free); in release_posix_timer() 1059 struct k_itimer *tmr; in exit_itimers() local [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
A D | g84.c | 120 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/ |
A D | bsc9131rdb.dtsi | 88 fsl,tmr-prsc = <2>; 89 fsl,tmr-add = <0xcccccccd>; 90 fsl,tmr-fiper1 = <999999995>; 91 fsl,tmr-fiper2 = <99990>;
|
A D | bsc9132qds.dtsi | 95 fsl,tmr-prsc = <2>; 96 fsl,tmr-add = <0xcccccccd>; 97 fsl,tmr-fiper1 = <999999995>; 98 fsl,tmr-fiper2 = <99990>;
|
/linux/drivers/usb/cdns3/ |
A D | drd.h | 28 __le32 tmr; member 49 __le32 tmr; member 70 __le32 tmr; member
|
/linux/drivers/tty/serial/ |
A D | altera_uart.c | 79 struct timer_list tmr; member 301 struct altera_uart *pp = from_timer(pp, t, tmr); in altera_uart_timer() 305 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_timer() 324 timer_setup(&pp->tmr, altera_uart_timer, 0); in altera_uart_startup() 325 mod_timer(&pp->tmr, jiffies + uart_poll_timeout(port)); in altera_uart_startup() 365 del_timer_sync(&pp->tmr); in altera_uart_shutdown()
|