/kernel/linux/linux-5.10/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 in snd_seq_timer_set_tick_resolution() 41 struct snd_seq_timer *tmr; snd_seq_timer_new() local 58 snd_seq_timer_delete(struct snd_seq_timer **tmr) snd_seq_timer_delete() argument 76 snd_seq_timer_defaults(struct snd_seq_timer * tmr) snd_seq_timer_defaults() argument 99 seq_timer_reset(struct snd_seq_timer *tmr) seq_timer_reset() argument 109 snd_seq_timer_reset(struct snd_seq_timer *tmr) snd_seq_timer_reset() argument 126 struct snd_seq_timer *tmr; snd_seq_timer_interrupt() local 162 snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) snd_seq_timer_set_tempo() argument 180 snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq) snd_seq_timer_set_tempo_ppq() argument 207 snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position) snd_seq_timer_set_position_tick() argument 223 snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position) snd_seq_timer_set_position_time() argument 239 snd_seq_timer_set_skew(struct snd_seq_timer *tmr, unsigned int skew, unsigned int base) snd_seq_timer_set_skew() argument 261 struct snd_seq_timer *tmr; snd_seq_timer_open() local 315 struct snd_seq_timer *tmr; snd_seq_timer_close() local 332 seq_timer_stop(struct snd_seq_timer *tmr) seq_timer_stop() argument 343 snd_seq_timer_stop(struct snd_seq_timer *tmr) snd_seq_timer_stop() argument 354 initialize_timer(struct snd_seq_timer *tmr) initialize_timer() argument 384 seq_timer_start(struct snd_seq_timer *tmr) seq_timer_start() argument 399 snd_seq_timer_start(struct snd_seq_timer *tmr) snd_seq_timer_start() argument 410 seq_timer_continue(struct snd_seq_timer *tmr) seq_timer_continue() argument 427 snd_seq_timer_continue(struct snd_seq_timer *tmr) snd_seq_timer_continue() argument 439 snd_seq_timer_get_cur_time(struct snd_seq_timer *tmr, bool adjust_ktime) snd_seq_timer_get_cur_time() argument 462 snd_seq_timer_get_cur_tick(struct snd_seq_timer *tmr) snd_seq_timer_get_cur_tick() argument 481 struct snd_seq_timer *tmr; snd_seq_info_timer_read() local [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_ [all...] |
/kernel/linux/linux-6.6/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 in snd_seq_timer_set_tick_resolution() 41 struct snd_seq_timer *tmr; snd_seq_timer_new() local 58 snd_seq_timer_delete(struct snd_seq_timer **tmr) snd_seq_timer_delete() argument 76 snd_seq_timer_defaults(struct snd_seq_timer * tmr) snd_seq_timer_defaults() argument 99 seq_timer_reset(struct snd_seq_timer *tmr) seq_timer_reset() argument 109 snd_seq_timer_reset(struct snd_seq_timer *tmr) snd_seq_timer_reset() argument 126 struct snd_seq_timer *tmr; snd_seq_timer_interrupt() local 162 snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) snd_seq_timer_set_tempo() argument 180 snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq) snd_seq_timer_set_tempo_ppq() argument 207 snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position) snd_seq_timer_set_position_tick() argument 223 snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position) snd_seq_timer_set_position_time() argument 239 snd_seq_timer_set_skew(struct snd_seq_timer *tmr, unsigned int skew, unsigned int base) snd_seq_timer_set_skew() argument 261 struct snd_seq_timer *tmr; snd_seq_timer_open() local 315 struct snd_seq_timer *tmr; snd_seq_timer_close() local 332 seq_timer_stop(struct snd_seq_timer *tmr) seq_timer_stop() argument 343 snd_seq_timer_stop(struct snd_seq_timer *tmr) snd_seq_timer_stop() argument 354 initialize_timer(struct snd_seq_timer *tmr) initialize_timer() argument 384 seq_timer_start(struct snd_seq_timer *tmr) seq_timer_start() argument 399 snd_seq_timer_start(struct snd_seq_timer *tmr) snd_seq_timer_start() argument 410 seq_timer_continue(struct snd_seq_timer *tmr) seq_timer_continue() argument 427 snd_seq_timer_continue(struct snd_seq_timer *tmr) snd_seq_timer_continue() argument 439 snd_seq_timer_get_cur_time(struct snd_seq_timer *tmr, bool adjust_ktime) snd_seq_timer_get_cur_time() argument 462 snd_seq_timer_get_cur_tick(struct snd_seq_timer *tmr) snd_seq_timer_get_cur_tick() argument 481 struct snd_seq_timer *tmr; snd_seq_info_timer_read() local [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_ [all...] |
/kernel/linux/linux-5.10/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() 106 nvkm_timer_alarm(struct nvkm_timer *tmr, u32 nsec, struct nvkm_alarm *alarm) nvkm_timer_alarm() argument 147 struct nvkm_timer *tmr = nvkm_timer(subdev); nvkm_timer_intr() local 154 struct nvkm_timer *tmr = nvkm_timer(subdev); nvkm_timer_fini() local 162 struct nvkm_timer *tmr = nvkm_timer(subdev); nvkm_timer_init() local 188 struct nvkm_timer *tmr; nvkm_timer_new_() local [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 in nv04_timer_intr() 91 nv04_timer_init(struct nvkm_timer *tmr) nv04_timer_init() argument [all...] |
/kernel/linux/linux-6.6/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() 106 nvkm_timer_alarm(struct nvkm_timer *tmr, u32 nsec, struct nvkm_alarm *alarm) nvkm_timer_alarm() argument 147 struct nvkm_timer *tmr = nvkm_timer(subdev); nvkm_timer_intr() local 154 struct nvkm_timer *tmr = nvkm_timer(subdev); nvkm_timer_fini() local 162 struct nvkm_timer *tmr = nvkm_timer(subdev); nvkm_timer_init() local 188 struct nvkm_timer *tmr; nvkm_timer_new_() local [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 in nv04_timer_intr() 91 nv04_timer_init(struct nvkm_timer *tmr) nv04_timer_init() argument [all...] |
/kernel/linux/linux-5.10/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 in ixp4xx_set_oneshot() local 146 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); ixp4xx_set_periodic() local 158 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); ixp4xx_resume() local 177 struct ixp4xx_timer *tmr; ixp4xx_timer_register() local [all...] |
/kernel/linux/linux-6.6/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 in ixp4xx_set_oneshot() local 135 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); ixp4xx_set_periodic() local 147 struct ixp4xx_timer *tmr = to_ixp4xx_timer(evt); ixp4xx_resume() local 166 struct ixp4xx_timer *tmr; ixp4xx_timer_register() local [all...] |
H A D | timer-tegra186.c | 74 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 in tegra186_tmr_create() [all...] |
/kernel/linux/linux-5.10/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 in gtm_set_ref_timer16() 243 gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec, bool reload) gtm_set_timer16() argument 279 gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec, bool reload) gtm_set_exact_timer16() argument 302 gtm_stop_timer16(struct gtm_timer *tmr) gtm_stop_timer16() argument 326 gtm_ack_timer16(struct gtm_timer *tmr, u16 events) gtm_ack_timer16() argument [all...] |
/kernel/linux/linux-6.6/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 in gtm_set_ref_timer16() 243 gtm_set_timer16(struct gtm_timer *tmr, unsigned long usec, bool reload) gtm_set_timer16() argument 279 gtm_set_exact_timer16(struct gtm_timer *tmr, u16 usec, bool reload) gtm_set_exact_timer16() argument 302 gtm_stop_timer16(struct gtm_timer *tmr) gtm_stop_timer16() argument 326 gtm_ack_timer16(struct gtm_timer *tmr, u16 events) gtm_ack_timer16() argument [all...] |
/kernel/linux/linux-5.10/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() 102 u32 tmr = read_tmr0(); iop_shutdown() local 111 u32 tmr = read_tmr0(); iop_resume() local [all...] |
/kernel/linux/linux-5.10/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 in core_tmr_release_req() 114 core_tmr_abort_task( struct se_device *dev, struct se_tmr_req *tmr, struct se_session *se_sess) core_tmr_abort_task() argument 189 core_tmr_drain_tmr_list( struct se_device *dev, struct se_tmr_req *tmr, struct list_head *preempt_and_abort_list) core_tmr_drain_tmr_list() argument 365 core_tmr_lun_reset( struct se_device *dev, struct se_tmr_req *tmr, struct list_head *preempt_and_abort_list, struct se_cmd *prout_cmd) core_tmr_lun_reset() argument [all...] |
/kernel/linux/linux-6.6/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() 105 core_tmr_abort_task( struct se_device *dev, struct se_tmr_req *tmr, struct se_session *se_sess) core_tmr_abort_task() argument 175 core_tmr_drain_tmr_list( struct se_device *dev, struct se_tmr_req *tmr, struct list_head *preempt_and_abort_list) core_tmr_drain_tmr_list() argument 354 core_tmr_lun_reset( struct se_device *dev, struct se_tmr_req *tmr, struct list_head *preempt_and_abort_list, struct se_cmd *prout_cmd) core_tmr_lun_reset() argument [all...] |
/kernel/linux/linux-5.10/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);
|
/kernel/linux/linux-6.6/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);
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/x86_64/ |
H A D | xen_shinfo_test.c | 580 struct kvm_xen_vcpu_attr tmr = { in main() local 610 vcpu_ioctl(vcpu, KVM_XEN_VCPU_SET_ATTR, &tmr); in main() 795 memset(&tmr, 0, sizeof(tmr)); in main() 796 tmr.type = KVM_XEN_VCPU_ATTR_TYPE_TIMER; in main() 797 vcpu_ioctl(vcpu, KVM_XEN_VCPU_GET_ATTR, &tmr); in main() 798 TEST_ASSERT(tmr.u.timer.port == EVTCHN_TIMER, in main() 800 TEST_ASSERT(tmr.u.timer.priority == KVM_IRQ_ROUTING_XEN_EVTCHN_PRIO_2LEVEL, in main() 802 TEST_ASSERT(tmr.u.timer.expires_ns > rs->state_entry_time, in main() 816 tmr in main() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | timerfd.c | 33 struct hrtimer tmr; member 77 t.tmr); in timerfd_tmrproc() 168 remaining = hrtimer_expires_remaining_adjusted(&ctx->t.tmr); in timerfd_get_remaining() 194 hrtimer_init(&ctx->t.tmr, clockid, htmode); in timerfd_setup() 195 hrtimer_set_expires(&ctx->t.tmr, texp); in timerfd_setup() 196 ctx->t.tmr.function = timerfd_tmrproc; in timerfd_setup() 208 hrtimer_start(&ctx->t.tmr, texp, htmode); in timerfd_setup() 228 hrtimer_cancel(&ctx->t.tmr); in timerfd_release() 290 ticks += hrtimer_forward_now(&ctx->t.tmr, in timerfd_read() 292 hrtimer_restart(&ctx->t.tmr); in timerfd_read() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | timerfd.c | 33 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...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|