| /OK3568_Linux_fs/kernel/sound/core/seq/ |
| H A D | seq_timer.c | 21 static void snd_seq_timer_set_tick_resolution(struct snd_seq_timer *tmr) in snd_seq_timer_set_tick_resolution() argument 23 if (tmr->tempo < 1000000) in snd_seq_timer_set_tick_resolution() 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() 29 s = (s * 1000) / 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() 31 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 33 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 34 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 35 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution() [all …]
|
| H 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); 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 D | seq_queue.c | 439 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local 444 tmr = queue->timer; in snd_seq_queue_timer_open() 446 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open() 759 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local 767 tmr = q->timer; in snd_seq_info_queues_read() 768 if (tmr->tempo) in snd_seq_info_queues_read() 769 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read() 783 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read() 784 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read() 785 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
| H A D | base.c | 29 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 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/clocksource/ |
| H A D | timer-ixp4xx.c | 95 struct ixp4xx_timer *tmr = dev_id; in ixp4xx_timer_interrupt() local 96 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt() 100 tmr->base + IXP4XX_OSST_OFFSET); in ixp4xx_timer_interrupt() 110 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_next_event() local 113 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_set_next_event() 117 tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_set_next_event() 124 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_shutdown() local 127 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_shutdown() 129 __raw_writel(val, tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_shutdown() 136 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_oneshot() local [all …]
|
| /OK3568_Linux_fs/u-boot/arch/nds32/cpu/n1213/ag101/ |
| H A D | timer.c | 21 struct fttmr010 *tmr = (struct fttmr010 *)CONFIG_FTTMR010_BASE; in timer_init() local 27 writel(0, &tmr->cr); in timer_init() 35 writel(TIMER_LOAD_VAL, &tmr->timer3_load); in timer_init() 36 writel(TIMER_LOAD_VAL, &tmr->timer3_counter); in timer_init() 37 writel(0, &tmr->timer3_match1); in timer_init() 38 writel(0, &tmr->timer3_match2); in timer_init() 44 &tmr->interrupt_mask); in timer_init() 46 cr = readl(&tmr->cr); in timer_init() 51 writel(cr, &tmr->cr); in timer_init() 68 struct fttmr010 *tmr = (struct fttmr010 *)CONFIG_FTTMR010_BASE; in reset_timer_masked() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/target/ |
| H A D | target_core_tmr.c | 32 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 struct se_device *dev = tmr->tmr_dev; in core_tmr_release_req() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/ |
| H A D | fsl_gtm.c | 151 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 - >m->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 …]
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-iop32x/ |
| H A D | time.c | 65 u32 tmr = IOP_TMR_PRIVILEGED | IOP_TMR_RATIO_1_1; in iop_set_next_event() local 68 write_tmr0(tmr & ~(IOP_TMR_EN | IOP_TMR_RELOAD)); in iop_set_next_event() 70 write_tmr0((tmr & ~IOP_TMR_RELOAD) | IOP_TMR_EN); in iop_set_next_event() 79 u32 tmr = read_tmr0(); in iop_set_periodic() local 81 write_tmr0(tmr & ~IOP_TMR_EN); in iop_set_periodic() 84 tmr |= (IOP_TMR_RELOAD | 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 95 tmr &= ~(IOP_TMR_RELOAD | IOP_TMR_EN); in iop_set_oneshot() 96 write_tmr0(tmr); in iop_set_oneshot() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/microblaze/cpu/ |
| H A D | timer.c | 17 microblaze_timer_t *tmr; variable 21 if (tmr) in get_timer() 30 if (tmr) { in __udelay() 41 tmr->control = tmr->control | TIMER_INTERRUPT; in timer_isr() 63 tmr = (microblaze_timer_t *)base; in timer_init() 79 if (tmr && preload && irq >= 0) { in timer_init() 80 tmr->loadreg = preload; in timer_init() 81 tmr->control = TIMER_INTERRUPT | TIMER_RESET; in timer_init() 82 tmr->control = TIMER_ENABLE | TIMER_ENABLE_INTR |\ in timer_init() 85 ret = install_interrupt_handler (irq, timer_isr, (void *)tmr); in timer_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/isci/ |
| H 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()
|
| H 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() 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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ |
| H 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);
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | timerfd.c | 35 struct hrtimer tmr; member 79 t.tmr); in timerfd_tmrproc() 170 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining() 196 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup() 197 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup() 198 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup() 210 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup() 230 hrtimer_cancel(&ctx->t.tmr); in timerfd_release() 292 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read() 294 hrtimer_restart(&ctx->t.tmr); in timerfd_read() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/ptp/ |
| H 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>;
|
| /OK3568_Linux_fs/u-boot/arch/m68k/lib/ |
| H A D | time.c | 47 timerp->tmr = DTIM_DTMR_RST_RST; in __udelay() 50 timerp->tmr = in __udelay() 88 timerp->tmr = DTIM_DTMR_RST_RST; in timer_init() 99 timerp->tmr = CONFIG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | in timer_init()
|
| /OK3568_Linux_fs/kernel/kernel/time/ |
| H A D | posix-timers.c | 457 struct k_itimer *tmr; in alloc_posix_timer() local 458 tmr = kmem_cache_zalloc(posix_timers_cache, GFP_KERNEL); in alloc_posix_timer() 459 if (!tmr) in alloc_posix_timer() 460 return tmr; in alloc_posix_timer() 461 if (unlikely(!(tmr->sigq = sigqueue_alloc()))) { in alloc_posix_timer() 462 kmem_cache_free(posix_timers_cache, tmr); in alloc_posix_timer() 465 clear_siginfo(&tmr->sigq->info); in alloc_posix_timer() 466 return tmr; in alloc_posix_timer() 471 struct k_itimer *tmr = container_of(head, struct k_itimer, rcu); in k_itimer_rcu_free() local 473 kmem_cache_free(posix_timers_cache, tmr); in k_itimer_rcu_free() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/ |
| H A D | phl_btc_fsm.c | 140 struct rtw_phl_btc_tmr_param *tmr = NULL; in btc_service_st_hdl() local 143 tmr = &pbtc->ntfy->u.tmr; in btc_service_st_hdl() 145 rtw_hal_btc_timer(phl_info->hal, tmr->timer); in btc_service_st_hdl() 434 struct rtw_phl_btc_tmr_param *tmr = &ntfy.u.tmr; in _btc_fsm_tmr() local 436 tmr->timer = timer; in _btc_fsm_tmr()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/ |
| H A D | phl_btc_fsm.c | 140 struct rtw_phl_btc_tmr_param *tmr = NULL; in btc_service_st_hdl() local 143 tmr = &pbtc->ntfy->u.tmr; in btc_service_st_hdl() 145 rtw_hal_btc_timer(phl_info->hal, tmr->timer); in btc_service_st_hdl() 434 struct rtw_phl_btc_tmr_param *tmr = &ntfy.u.tmr; in _btc_fsm_tmr() local 436 tmr->timer = timer; in _btc_fsm_tmr()
|
| /OK3568_Linux_fs/u-boot/drivers/ddr/marvell/a38x/ |
| H A D | ddr3_hws_hw_training_def.h | 383 #define CNTMR_RELOAD_REG(tmr) (REG_TIMERS_CTRL_ADDR + 0x10 + (tmr * 8)) argument 384 #define CNTMR_VAL_REG(tmr) (REG_TIMERS_CTRL_ADDR + 0x14 + (tmr * 8)) argument 385 #define CNTMR_CTRL_REG(tmr) (REG_TIMERS_CTRL_ADDR) argument
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-orion5x/ |
| H A D | timer.c | 26 struct orion5x_tmr_val tmr[2]; member 38 #define CNTMR_RELOAD_REG(tmrnum) (&orion5x_tmr_regs->tmr[tmrnum].reload) 39 #define CNTMR_VAL_REG(tmrnum) (&orion5x_tmr_regs->tmr[tmrnum].val)
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/dts/fsl/ |
| H A D | bsc9131rdb.dtsi | 88 fsl,tmr-prsc = <2>; 89 fsl,tmr-add = <0xcccccccd>; 90 fsl,tmr-fiper1 = <999999995>; 91 fsl,tmr-fiper2 = <99990>;
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
| H 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()
|