/Linux-v4.19/sound/core/seq/ |
D | seq_timer.c | 36 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 …]
|
D | seq_timer.h | 65 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_tempo_ppq(struct snd_seq_timer *tmr, int tempo, 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 …]
|
D | seq_queue.c | 436 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local 441 tmr = queue->timer; in snd_seq_queue_timer_open() 443 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open() 754 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local 760 tmr = q->timer; in snd_seq_info_queues_read() 761 if (tmr->tempo) in snd_seq_info_queues_read() 762 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read() 771 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read() 772 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read() 773 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read() [all …]
|
D | seq_clientmgr.c | 1625 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local 1633 tmr = queue->timer; in snd_seq_ioctl_get_queue_status() 1636 status->time = snd_seq_timer_get_cur_time(tmr); in snd_seq_ioctl_get_queue_status() 1637 status->tick = snd_seq_timer_get_cur_tick(tmr); in snd_seq_ioctl_get_queue_status() 1639 status->running = tmr->running; in snd_seq_ioctl_get_queue_status() 1654 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local 1662 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo() 1664 tempo->tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo() 1665 tempo->ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo() 1666 tempo->skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
D | base.c | 27 nvkm_timer_read(struct nvkm_timer *tmr) in nvkm_timer_read() argument 29 return tmr->func->read(tmr); in nvkm_timer_read() 33 nvkm_timer_alarm_trigger(struct nvkm_timer *tmr) in nvkm_timer_alarm_trigger() argument 40 spin_lock_irqsave(&tmr->lock, flags); in nvkm_timer_alarm_trigger() 41 list_for_each_entry_safe(alarm, atemp, &tmr->alarms, head) { in nvkm_timer_alarm_trigger() 43 if (alarm->timestamp > nvkm_timer_read(tmr)) { in nvkm_timer_alarm_trigger() 45 tmr->func->alarm_init(tmr, alarm->timestamp); in nvkm_timer_alarm_trigger() 46 if (alarm->timestamp > nvkm_timer_read(tmr)) in nvkm_timer_alarm_trigger() 58 if (list_empty(&tmr->alarms)) in nvkm_timer_alarm_trigger() 59 tmr->func->alarm_fini(tmr); in nvkm_timer_alarm_trigger() [all …]
|
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() 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 …]
|
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()
|
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-v4.19/arch/arm/plat-iop/ |
D | time.c | 68 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() 82 u32 tmr = read_tmr0(); in iop_set_periodic() local 84 write_tmr0(tmr & ~IOP_TMR_EN); in iop_set_periodic() 87 tmr |= (IOP_TMR_RELOAD | IOP_TMR_EN); in iop_set_periodic() 89 write_tmr0(tmr); in iop_set_periodic() 95 u32 tmr = read_tmr0(); in iop_set_oneshot() local 98 tmr &= ~(IOP_TMR_RELOAD | IOP_TMR_EN); in iop_set_oneshot() 99 write_tmr0(tmr); in iop_set_oneshot() [all …]
|
/Linux-v4.19/arch/powerpc/sysdev/ |
D | fsl_gtm.c | 155 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 - >m->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-v4.19/drivers/target/ |
D | target_core_tmr.c | 45 struct se_tmr_req *tmr; in core_tmr_alloc_req() local 47 tmr = kzalloc(sizeof(struct se_tmr_req), gfp_flags); in core_tmr_alloc_req() 48 if (!tmr) { in core_tmr_alloc_req() 54 se_cmd->se_tmr_req = tmr; in core_tmr_alloc_req() 55 tmr->task_cmd = se_cmd; in core_tmr_alloc_req() 56 tmr->fabric_tmr_ptr = fabric_tmr_ptr; in core_tmr_alloc_req() 57 tmr->function = function; in core_tmr_alloc_req() 58 INIT_LIST_HEAD(&tmr->tmr_list); in core_tmr_alloc_req() 64 void core_tmr_release_req(struct se_tmr_req *tmr) in core_tmr_release_req() argument 66 struct se_device *dev = tmr->tmr_dev; in core_tmr_release_req() [all …]
|
/Linux-v4.19/drivers/thermal/ |
D | qoriq_thermal.c | 27 u32 tmr; /* Mode Register */ member 178 tmu_write(data, TMR_DISABLE, &data->regs->tmr); in qoriq_tmu_init_device() 238 tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr); in qoriq_tmu_probe() 256 tmu_write(data, TMR_DISABLE, &data->regs->tmr); in qoriq_tmu_remove() 267 u32 tmr; in qoriq_tmu_suspend() local 271 tmr = tmu_read(data, &data->regs->tmr); in qoriq_tmu_suspend() 272 tmr &= ~TMR_ME; in qoriq_tmu_suspend() 273 tmu_write(data, tmr, &data->regs->tmr); in qoriq_tmu_suspend() 280 u32 tmr; in qoriq_tmu_resume() local 284 tmr = tmu_read(data, &data->regs->tmr); in qoriq_tmu_resume() [all …]
|
/Linux-v4.19/drivers/scsi/isci/ |
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 = 0; 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 = 0; 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 = 1; in sci_del_timer() 516 del_timer(&tmr->timer); in sci_del_timer()
|
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() 659 struct sci_timer *tmr = from_timer(tmr, t, timer); in apc_agent_timeout() local 665 port_agent = container_of(tmr, typeof(*port_agent), timer); in apc_agent_timeout() 670 if (tmr->cancel) in apc_agent_timeout()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | fsl_gtm.h | 39 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);
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
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()
|
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()
|
D | fantog.c | 43 struct nvkm_timer *tmr = device->timer; in nvkm_fantog_update() local 60 nvkm_timer_alarm(tmr, next_change * 1000, &fan->alarm); in nvkm_fantog_update()
|
/Linux-v4.19/Documentation/devicetree/bindings/ptp/ |
D | ptp-qoriq.txt | 15 - fsl,tmr-prsc Prescaler, divides the output clock. 16 - fsl,tmr-add Frequency compensation value. 17 - fsl,tmr-fiper1 Fixed interval period pulse generator. 18 - fsl,tmr-fiper2 Fixed interval period pulse generator. 73 fsl,tmr-prsc = <100>; 74 fsl,tmr-add = <0x999999A4>; 75 fsl,tmr-fiper1 = <0x3B9AC9F6>; 76 fsl,tmr-fiper2 = <0x00018696>;
|
/Linux-v4.19/fs/ |
D | timerfd.c | 32 struct hrtimer tmr; member 76 t.tmr); in timerfd_tmrproc() 167 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining() 193 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup() 194 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup() 195 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup() 205 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup() 225 hrtimer_cancel(&ctx->t.tmr); in timerfd_release() 287 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read() 289 hrtimer_restart(&ctx->t.tmr); in timerfd_read() [all …]
|
/Linux-v4.19/kernel/time/ |
D | posix-timers.c | 455 struct k_itimer *tmr; in alloc_posix_timer() local 456 tmr = kmem_cache_zalloc(posix_timers_cache, GFP_KERNEL); in alloc_posix_timer() 457 if (!tmr) in alloc_posix_timer() 458 return tmr; in alloc_posix_timer() 459 if (unlikely(!(tmr->sigq = sigqueue_alloc()))) { in alloc_posix_timer() 460 kmem_cache_free(posix_timers_cache, tmr); in alloc_posix_timer() 463 clear_siginfo(&tmr->sigq->info); in alloc_posix_timer() 464 return tmr; in alloc_posix_timer() 469 struct k_itimer *tmr = container_of(head, struct k_itimer, it.rcu); in k_itimer_rcu_free() local 471 kmem_cache_free(posix_timers_cache, tmr); in k_itimer_rcu_free() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
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-v4.19/arch/powerpc/boot/dts/fsl/ |
D | bsc9131rdb.dtsi | 88 fsl,tmr-prsc = <2>; 89 fsl,tmr-add = <0xcccccccd>; 90 fsl,tmr-fiper1 = <999999995>; 91 fsl,tmr-fiper2 = <99990>;
|
D | bsc9132qds.dtsi | 95 fsl,tmr-prsc = <2>; 96 fsl,tmr-add = <0xcccccccd>; 97 fsl,tmr-fiper1 = <999999995>; 98 fsl,tmr-fiper2 = <99990>;
|
/Linux-v4.19/drivers/tty/ |
D | n_r3964.c | 396 mod_timer(&pInfo->tmr, jiffies + R3964_TO_QVZ); in trigger_transmit() 420 mod_timer(&pInfo->tmr, jiffies + R3964_TO_QVZ); in retry_transmit() 470 mod_timer(&pInfo->tmr, jiffies + R3964_TO_QVZ); in transmit_block() 502 mod_timer(&pInfo->tmr, jiffies + R3964_TO_RX_PANIC); in on_receive_block() 513 del_timer_sync(&pInfo->tmr); in on_receive_block() 586 mod_timer(&pInfo->tmr, jiffies + R3964_TO_ZVZ); in receive_char() 610 mod_timer(&pInfo->tmr, in receive_char() 621 mod_timer(&pInfo->tmr, jiffies + R3964_TO_ZVZ); in receive_char() 642 mod_timer(&pInfo->tmr, in receive_char() 651 mod_timer(&pInfo->tmr, jiffies + R3964_TO_ZVZ); in receive_char() [all …]
|