| /linux/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 24 tmr->tempo_base == 1000 ? 1000000 : 10000; in snd_seq_timer_set_tick_resolution() 26 if (tmr->tempo < threshold) in snd_seq_timer_set_tick_resolution() 27 tmr->tick.resolution = (tmr->tempo * tmr->tempo_base) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 31 s = tmr->tempo % tmr->ppq; in snd_seq_timer_set_tick_resolution() 32 s = (s * tmr in snd_seq_timer_set_tick_resolution() 44 struct snd_seq_timer *tmr; snd_seq_timer_new() local 61 snd_seq_timer_delete(struct snd_seq_timer ** tmr) snd_seq_timer_delete() argument 79 snd_seq_timer_defaults(struct snd_seq_timer * tmr) snd_seq_timer_defaults() argument 100 seq_timer_reset(struct snd_seq_timer * tmr) seq_timer_reset() argument 110 snd_seq_timer_reset(struct snd_seq_timer * tmr) snd_seq_timer_reset() argument 123 struct snd_seq_timer *tmr; snd_seq_timer_interrupt() local 157 snd_seq_timer_set_tempo(struct snd_seq_timer * tmr,int tempo) snd_seq_timer_set_tempo() argument 172 snd_seq_timer_set_tempo_ppq(struct snd_seq_timer * tmr,int tempo,int ppq,unsigned int tempo_base) snd_seq_timer_set_tempo_ppq() argument 201 snd_seq_timer_set_position_tick(struct snd_seq_timer * tmr,snd_seq_tick_time_t position) snd_seq_timer_set_position_tick() argument 214 snd_seq_timer_set_position_time(struct snd_seq_timer * tmr,snd_seq_real_time_t position) snd_seq_timer_set_position_time() argument 227 snd_seq_timer_set_skew(struct snd_seq_timer * tmr,unsigned int skew,unsigned int base) snd_seq_timer_set_skew() argument 246 struct snd_seq_timer *tmr; snd_seq_timer_open() local 300 struct snd_seq_timer *tmr; snd_seq_timer_close() local 317 seq_timer_stop(struct snd_seq_timer * tmr) seq_timer_stop() argument 328 snd_seq_timer_stop(struct snd_seq_timer * tmr) snd_seq_timer_stop() argument 334 initialize_timer(struct snd_seq_timer * tmr) initialize_timer() argument 364 seq_timer_start(struct snd_seq_timer * tmr) seq_timer_start() argument 379 snd_seq_timer_start(struct snd_seq_timer * tmr) snd_seq_timer_start() argument 385 seq_timer_continue(struct snd_seq_timer * tmr) seq_timer_continue() argument 402 snd_seq_timer_continue(struct snd_seq_timer * tmr) snd_seq_timer_continue() argument 409 snd_seq_timer_get_cur_time(struct snd_seq_timer * tmr,bool adjust_ktime) snd_seq_timer_get_cur_time() argument 430 snd_seq_timer_get_cur_tick(struct snd_seq_timer * tmr) snd_seq_timer_get_cur_tick() argument 444 struct snd_seq_timer *tmr; snd_seq_info_timer_read() local [all...] |
| H A D | seq_timer.h | 51 void snd_seq_timer_delete(struct snd_seq_timer **tmr); 112 void snd_seq_timer_defaults(struct snd_seq_timer *tmr); 113 void snd_seq_timer_reset(struct snd_seq_timer *tmr); 114 int snd_seq_timer_stop(struct snd_seq_timer *tmr); 115 int snd_seq_timer_start(struct snd_seq_timer *tmr); 116 int snd_seq_timer_continue(struct snd_seq_timer *tmr); 117 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo); 118 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 | 407 struct snd_seq_timer *tmr; 412 tmr = queue->timer; 415 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open() 672 struct snd_seq_timer *tmr; in snd_seq_control_queue() 681 tmr = q->timer; in snd_seq_control_queue() 682 if (tmr->tempo) in snd_seq_control_queue() 683 bpm = (60000 * tmr->tempo_base) / tmr->tempo; in snd_seq_control_queue() 697 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read() 698 snd_iprintf(buffer, "timer PPQ : %d\n", tmr in snd_seq_info_queues_read() 418 struct snd_seq_timer *tmr; snd_seq_queue_timer_open() local 701 struct snd_seq_timer *tmr; snd_seq_info_queues_read() local [all...] |
| /linux/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 …]
|
| /linux/drivers/clocksource/ |
| H A D | timer-ixp4xx.c | 84 struct ixp4xx_timer *tmr = dev_id; in ixp4xx_timer_interrupt() local 85 struct clock_event_device *evt = &tmr->clkevt; in ixp4xx_timer_interrupt() 89 tmr->base + IXP4XX_OSST_OFFSET); in ixp4xx_timer_interrupt() 99 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_next_event() local 102 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_set_next_event() 106 tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_set_next_event() 113 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_shutdown() local 116 val = __raw_readl(tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_shutdown() 118 __raw_writel(val, tmr->base + IXP4XX_OSRT1_OFFSET); in ixp4xx_shutdown() 125 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); in ixp4xx_set_oneshot() local [all …]
|
| H A D | timer-tegra186.c | 79 struct tegra186_tmr *tmr; member 98 static void tmr_writel(struct tegra186_tmr *tmr, u32 value, unsigned int offset) in tmr_writel() argument 100 writel_relaxed(value, tmr->regs + offset); in tmr_writel() 117 struct tegra186_tmr *tmr; in tegra186_tmr_create() local 119 tmr = devm_kzalloc(tegra->dev, sizeof(*tmr), GFP_KERNEL); in tegra186_tmr_create() 120 if (!tmr) in tegra186_tmr_create() 123 tmr->parent = tegra; in tegra186_tmr_create() 124 tmr->regs = tegra->regs + offset; in tegra186_tmr_create() 125 tmr->index = index; in tegra186_tmr_create() 126 tmr->hwirq = 0; in tegra186_tmr_create() [all …]
|
| /linux/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 kfree(tmr); in core_tmr_release_req() [all …]
|
| H A D | target_core_user.c | 1149 * queue_tmr_ring - queue tmr info to ring or internally 1151 * @tmr: tcmu_tmr containing tmr info to queue 1158 queue_tmr_ring(struct tcmu_dev *udev, struct tcmu_tmr *tmr) in queue_tmr_ring() argument 1169 id_list_sz = sizeof(tmr->tmr_cmd_ids[0]) * tmr->tmr_cmd_cnt; in queue_tmr_ring() 1174 list_add_tail(&tmr->queue_entry, &udev->tmr_queue); in queue_tmr_ring() 1175 pr_debug("adding tmr %p on dev %s to TMR ring space wait queue\n", in queue_tmr_ring() 1176 tmr, udev->name); in queue_tmr_ring() 1186 entry->tmr_type = tmr->tmr_type; in queue_tmr_ring() 1187 entry->cmd_cnt = tmr->tmr_cmd_cnt; in queue_tmr_ring() 1188 memcpy(&entry->cmd_ids[0], &tmr->tmr_cmd_ids[0], id_list_sz); in queue_tmr_ring() [all …]
|
| /linux/arch/powerpc/sysdev/ |
| H A D | fsl_gtm.c | 146 * @tmr: pointer to the gtm_timer structure obtained from gtm_get_timer 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() [all …]
|
| /linux/Documentation/devicetree/bindings/misc/ |
| H A D | xlnx,tmr-manager.yaml | 4 $id: http://devicetree.org/schemas/misc/xlnx,tmr-manager.yaml# 7 title: Xilinx Triple Modular Redundancy(TMR) Manager IP 13 The Triple Modular Redundancy(TMR) Manager is responsible for handling the 14 TMR subsystem state, including fault detection and error recovery. The core 15 is triplicated in each of the sub-blocks in the TMR subsystem, and provides 21 - xlnx,tmr-manager-1.0 43 tmr-manager@44a10000 { 44 compatible = "xlnx,tmr-manager-1.0";
|
| H A D | xlnx,tmr-inject.yaml | 4 $id: http://devicetree.org/schemas/misc/xlnx,tmr-inject.yaml# 7 title: Xilinx Triple Modular Redundancy(TMR) Inject IP 13 The Triple Modular Redundancy(TMR) Inject core provides functional fault 15 possibility to verify that the TMR subsystem error detection and fault 21 - xlnx,tmr-inject-1.0 44 compatible = "xlnx,tmr-inject-1.0";
|
| /linux/drivers/misc/ |
| H A D | xilinx_tmr_manager.c | 3 * Driver for Xilinx TMR Manager IP. 8 * This driver is developed for TMR Manager,The Triple Modular Redundancy(TMR) 9 * Manager is responsible for handling the TMR subsystem state, including 11 * the sub-blocks in the TMR subsystem, and provides majority voting of 21 /* TMR Manager Register offsets */ 44 * struct xtmr_manager_dev - Driver data for TMR Manager 137 * in the tmr manager, update the xtmr_manager cr_val for the same in xtmr_manager_init() 144 * break handler, Below api updates the TMR manager address and in xtmr_manager_init() 192 /* Initialize TMR Manager */ in xtmr_manager_probe() 202 .compatible = "xlnx,tmr-manager-1.0", [all …]
|
| H A D | xilinx_tmr_inject.c | 3 * Driver for Xilinx TMR Inject IP. 8 * This driver is developed for TMR Inject IP,The Triple Modular Redundancy(TMR) 19 /* TMR Inject Register offsets */ 34 * struct xtmr_inject_dev - Driver data for TMR Inject 137 /* Initialize TMR Inject */ in xtmr_inject_probe() 155 .compatible = "xlnx,tmr-inject-1.0", 171 MODULE_DESCRIPTION("Xilinx TMR Inject Driver");
|
| /linux/Documentation/devicetree/bindings/ptp/ |
| H A D | fsl,ptp.yaml | 59 fsl,tmr-prsc: 63 fsl,tmr-add: 67 fsl,tmr-fiper1: 71 fsl,tmr-fiper2: 75 fsl,tmr-fiper3: 151 fsl,tmr-prsc = <100>; 152 fsl,tmr-add = <0x999999a4>; 153 fsl,tmr-fiper1 = <0x3b9ac9f6>; 154 fsl,tmr-fiper2 = <0x00018696>;
|
| /linux/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);
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | xen_shinfo_test.c | 577 struct kvm_xen_vcpu_attr tmr = { in main() local 607 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main() 792 memset(&tmr, 0, sizeof(tmr)); in main() 793 tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER; in main() 794 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr); in main() 795 TEST_ASSERT(tmr.u.timer.port == EVTCHN_TIMER, in main() 797 TEST_ASSERT(tmr.u.timer.priority == KVM_IRQ_ROUTING_XEN_EVTCHN_PRIO_2LEVEL, in main() 799 TEST_ASSERT(tmr.u.timer.expires_ns > rs->state_entry_time, in main() 813 tmr.u.timer.expires_ns = rs->state_entry_time + 100000000; in main() 814 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main() [all …]
|
| /linux/include/linux/ |
| H A D | posix-timers.h | 119 void posixtimer_send_sigqueue(struct k_itimer *tmr); 234 static inline void posixtimer_putref(struct k_itimer *tmr) in posixtimer_putref() argument 236 if (rcuref_put(&tmr->rcuref)) in posixtimer_putref() 237 posixtimer_free_timer(tmr); in posixtimer_putref() 242 struct k_itimer *tmr = container_of(q, struct k_itimer, sigq); in posixtimer_sigqueue_getref() local 244 WARN_ON_ONCE(!rcuref_get(&tmr->rcuref)); in posixtimer_sigqueue_getref() 249 struct k_itimer *tmr = container_of(q, struct k_itimer, sigq); in posixtimer_sigqueue_putref() local 251 posixtimer_putref(tmr); in posixtimer_sigqueue_putref()
|
| /linux/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()
|
| /linux/kernel/time/ |
| H A D | posix-timers.c | 424 struct k_itimer *tmr; in alloc_posix_timer() local 429 tmr = kmem_cache_zalloc(posix_timers_cache, GFP_KERNEL); in alloc_posix_timer() 430 if (!tmr) in alloc_posix_timer() 431 return tmr; in alloc_posix_timer() 433 if (unlikely(!posixtimer_init_sigqueue(&tmr->sigq))) { in alloc_posix_timer() 434 kmem_cache_free(posix_timers_cache, tmr); in alloc_posix_timer() 437 rcuref_init(&tmr->rcuref, 1); in alloc_posix_timer() 438 return tmr; in alloc_posix_timer() 441 void posixtimer_free_timer(struct k_itimer *tmr) in posixtimer_free_timer() argument 443 put_pid(tmr->it_pid); in posixtimer_free_timer() [all …]
|
| /linux/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>;
|
| H A D | bsc9132qds.dtsi | 95 fsl,tmr-prsc = <2>; 96 fsl,tmr-add = <0xcccccccd>; 97 fsl,tmr-fiper1 = <999999995>; 98 fsl,tmr-fiper2 = <99990>;
|
| H A D | p1022ds.dtsi | 223 fsl,tmr-prsc = <2>; 224 fsl,tmr-add = <0xc01ebd3d>; 225 fsl,tmr-fiper1 = <999999995>; 226 fsl,tmr-fiper2 = <99990>;
|
| H A D | p1010rdb.dtsi | 194 fsl,tmr-prsc = <2>; 195 fsl,tmr-add = <0x80000016>; 196 fsl,tmr-fiper1 = <999999990>; 197 fsl,tmr-fiper2 = <99990>;
|
| /linux/drivers/scsi/isci/ |
| H A D | isci.h | 494 void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t)) in sci_init_timer() argument 496 tmr->cancel = false; in sci_init_timer() 497 timer_setup(&tmr->timer, fn, 0); in sci_init_timer() 500 static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) in sci_mod_timer() argument 502 tmr->cancel = false; in sci_mod_timer() 503 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); in sci_mod_timer() 506 static inline void sci_del_timer(struct sci_timer *tmr) in sci_del_timer() argument 508 tmr->cancel = true; in sci_del_timer() 509 timer_delete(&tmr->timer); in sci_del_timer()
|