Home
last modified time | relevance | path

Searched full:tmr (Results 1 – 25 of 225) sorted by relevance

123456789

/kernel/linux/linux-6.6/sound/core/seq/
Dseq_timer.c21 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 …]
Dseq_timer.h50 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 …]
/kernel/linux/linux-5.10/sound/core/seq/
Dseq_timer.c21 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 …]
Dseq_timer.h50 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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dbase.c29 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 …]
Dnv04.c28 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dbase.c29 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 …]
Dnv04.c28 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 …]
/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-ixp4xx.c95 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 …]
/kernel/linux/linux-6.6/drivers/clocksource/
Dtimer-ixp4xx.c84 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 …]
Dtimer-tegra186.c74 struct tegra186_tmr *tmr; member
93 static void tmr_writel(struct tegra186_tmr *tmr, u32 value, unsigned int offset) in tmr_writel() argument
95 writel_relaxed(value, tmr->regs + offset); in tmr_writel()
112 struct tegra186_tmr *tmr; in tegra186_tmr_create() local
114 tmr = devm_kzalloc(tegra->dev, sizeof(*tmr), GFP_KERNEL); in tegra186_tmr_create()
115 if (!tmr) in tegra186_tmr_create()
118 tmr->parent = tegra; in tegra186_tmr_create()
119 tmr->regs = tegra->regs + offset; in tegra186_tmr_create()
120 tmr->index = index; in tegra186_tmr_create()
121 tmr->hwirq = 0; in tegra186_tmr_create()
[all …]
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_tmr.c32 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 …]
/kernel/linux/linux-5.10/arch/arm/mach-iop32x/
Dtime.c65 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 …]
/kernel/linux/linux-6.6/drivers/target/
Dtarget_core_tmr.c32 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 …]
/kernel/linux/linux-6.6/arch/powerpc/sysdev/
Dfsl_gtm.c146 * @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 - &gtm->timers[0]; in gtm_set_ref_timer16()
178 if (!tmr->gtpsr) in gtm_set_ref_timer16()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
Dfsl_gtm.c146 * @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 - &gtm->timers[0]; in gtm_set_ref_timer16()
178 if (!tmr->gtpsr) in gtm_set_ref_timer16()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/misc/
Dxlnx,tmr-manager.yaml4 $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";
Dxlnx,tmr-inject.yaml4 $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";
/kernel/linux/linux-6.6/drivers/misc/
Dxilinx_tmr_manager.c3 * 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 …]
Dxilinx_tmr_inject.c3 * Driver for Xilinx TMR Inject IP.
8 * This driver is developed for TMR Inject IP,The Triple Modular Redundancy(TMR)
18 /* TMR Inject Register offsets */
33 * struct xtmr_inject_dev - Driver data for TMR Inject
136 /* Initialize TMR Inject */ in xtmr_inject_probe()
155 .compatible = "xlnx,tmr-inject-1.0",
171 MODULE_DESCRIPTION("Xilinx TMR Inject Driver");
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/ptp/
Dptp-qoriq.txt17 - 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>;
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/ptp/
Dptp-qoriq.txt17 - 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>;
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dfsl_gtm.h35 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);
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
Dfsl_gtm.h35 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);
/kernel/linux/linux-6.6/fs/
Dtimerfd.c33 struct hrtimer tmr; member
77 t.tmr); in timerfd_tmrproc()
184 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining()
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()
[all …]

123456789