Home
last modified time | relevance | path

Searched refs:tick (Results 1 – 25 of 70) sorted by relevance

123

/linux/sound/core/seq/
H A Dseq_timer.h28 struct snd_seq_timer_tick tick; /* current tick */ member
54 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument
57 if (tick->resolution > 0) { in snd_seq_timer_update_tick()
58 tick->fraction += resolution; in snd_seq_timer_update_tick()
59 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick()
60 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
H A Dseq_prioq.c91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
108 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
204 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready()
310 if (cell->event.time.tick) in prioq_match()
359 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
[all...]
H A Dseq_timer.c27 tmr->tick.resolution = (tmr->tempo * tmr->tempo_base) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
33 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * tmr->tempo_base; in snd_seq_timer_set_tick_resolution()
34 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution()
36 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution()
37 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution()
38 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution()
117 tmr->tick.cur_tick = 0; in seq_timer_reset()
118 tmr->tick.fraction = 0; in seq_timer_reset()
157 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt()
219 tmr->tick.cur_tick = position; in snd_seq_timer_set_position_tick()
[all …]
H A Dseq_queue.c302 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
577 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event()
620 if (snd_seq_timer_set_position_tick(q->timer, ev->data.queue.param.time.tick) == 0) { in snd_seq_queue_process_event()
705 snd_iprintf(buffer, "current tick : %d\n", tmr->tick.cur_tick); in snd_seq_info_queues_read()
/linux/tools/testing/selftests/timers/
H A Dadjtick.c1 /* adjtimex() tick adjustment test
124 tx1.tick = tickval; in check_tick_adj()
131 printf("Estimating tick (act: %ld usec, %lld ppm): ", tickval, ppm); in check_tick_adj()
140 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj()
149 * cannot match the HZ tick size accurately, so we have a in check_tick_adj()
167 long tick, max, interval, err; in main() local
185 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
186 if (check_tick_adj(tick)) { in main()
[all...]
H A Draw_skew.c136 tx1.freq != tx2.freq || tx1.tick != tx2.tick) { in main()
/linux/arch/sparc/include/asm/
H A Dtimer_64.h47 unsigned int tick[GET_TICK_NINSTR]; member
56 unsigned long tick, tmp1, tmp2; in get_tick() local
92 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick()
95 return tick; in get_tick()
H A Dhibernate.h16 unsigned long tick; member
/linux/drivers/net/wireless/ath/carl9170/
H A Dcmd.c173 unsigned int tick; in carl9170_collect_tally() local
181 tick = le32_to_cpu(tally.tick); in carl9170_collect_tally()
182 if (tick) { in carl9170_collect_tally()
183 ar->tally.active += le32_to_cpu(tally.active) / tick; in carl9170_collect_tally()
184 ar->tally.cca += le32_to_cpu(tally.cca) / tick; in carl9170_collect_tally()
185 ar->tally.tx_time += le32_to_cpu(tally.tx_time) / tick; in carl9170_collect_tally()
/linux/sound/firewire/motu/
H A Damdtp-motu.c314 unsigned int tick; in cache_event_offsets() local
316 tick = ((sph & CIP_SPH_CYCLE_MASK) >> CIP_SPH_CYCLE_SHIFT) * TICKS_PER_CYCLE + in cache_event_offsets()
319 if (tick < base_tick) in cache_event_offsets()
320 tick += TICKS_PER_SECOND; in cache_event_offsets()
321 event_offsets[cache_tail] = tick - base_tick; in cache_event_offsets()
383 unsigned int tick = (base_tick + event_offsets[cache_head]) % TICKS_PER_SECOND; in write_sph() local
384 u32 sph = ((tick / TICKS_PER_CYCLE) << CIP_SPH_CYCLE_SHIFT) | (tick % TICKS_PER_CYCLE); in write_sph()
/linux/Documentation/timers/
H A Dhighres.rst100 System-level global event devices are used for the Linux periodic tick. Per-CPU
107 - system global periodic tick (jiffies update)
132 utilize the high resolution and dynamic tick functionalities without any change
136 adding the dynamic tick specific calls to the idle routine (a total of 3 lines
186 Once a system has switched to high resolution mode, the periodic tick is
190 The periodic tick functionality is provided by an per-cpu hrtimer. The callback
193 based periodic tick is designed to be extended with dynamic tick functionality.
195 timer and periodic events (jiffies tick, profiling, process accounting) on UP
200 separated from the tick bound timer softirq to allow accurate delivery of high
211 Dynamic ticks are the logical consequence of the hrtimer based periodic tick
[all …]
H A Dno_hz.rst128 adaptive-tick CPUs: At least one non-adaptive-tick CPU must remain
130 calls like gettimeofday() returns accurate values on adaptive-tick CPUs.
144 Just as with dyntick-idle mode, the benefits of adaptive-tick mode do
156 3. POSIX CPU timers prevent CPUs from entering adaptive-tick mode.
162 all of them over time. Adaptive-tick mode may prevent this
165 entering adaptive-tick mode.
167 5. Scheduler statistics for adaptive-tick CPUs may be computed
168 slightly differently than those for non-adaptive-tick CPUs.
181 enter either dyntick-idle mode or adaptive-tick mode, the most
193 or adaptive-tick mode. That said, note that it is up to userspace to
[all …]
/linux/arch/mips/generic/
H A Dboard-sead3.c184 unsigned int freq, orig, tick = 0; in sead3_measure_hpt_freq() local
198 while (tick < 100) { in sead3_measure_hpt_freq()
203 tick++; in sead3_measure_hpt_freq()
/linux/drivers/watchdog/
H A Datcwdt200_wdt.c162 static long long atcwdt_get_clock_period(long long tick, in atcwdt_get_clock_period() argument
179 result = tick - (1LL << atcwdt_get_index(i, timer_type)); in atcwdt_get_clock_period()
221 long long tick; in atcwdt_get_timeout_params() local
227 tick = (long long)timeout * drv_data->clk_freq; in atcwdt_get_timeout_params()
228 result = atcwdt_get_clock_period(tick, in atcwdt_get_timeout_params()
/linux/include/uapi/linux/
H A Dtimex.h78 __kernel_long_t tick; /* (modified) usecs between clock ticks */ member
117 long long tick; /* (modified) usecs between clock ticks */ member
/linux/drivers/md/
H A Ddm-cache-policy-internal.h84 if (p->tick) in policy_tick()
85 return p->tick(p, can_block); in policy_tick()
H A Ddm-cache-policy.h126 void (*tick)(struct dm_cache_policy *p, bool can_block); member
/linux/arch/sparc/power/
H A Dhibernate_asm.S29 rdpr %tick, %g2
113 wrpr %g2, %tick
/linux/drivers/sbus/char/
H A Dbbc_envctrl.c169 static void analyze_ambient_temp(struct bbc_cpu_temperature *tp, unsigned long *last_warn, int tick) in analyze_ambient_temp() argument
202 } else if ((tick & (8 - 1)) == 0) { in analyze_ambient_temp()
224 static void analyze_cpu_temp(struct bbc_cpu_temperature *tp, unsigned long *last_warn, int tick) in analyze_cpu_temp() argument
257 } else if ((tick & (8 - 1)) == 0) { in analyze_cpu_temp()
/linux/Documentation/features/time/arch-tick-broadcast/
H A Darch-support.txt2 # Feature name: arch-tick-broadcast
/linux/arch/sparc/kernel/
H A Dasm-offsets.c38 OFFSET(SC_REG_TICK, saved_context, tick); in sparc64_foo()
/linux/tools/testing/selftests/sched_ext/
H A Dnohz_tick.bpf.c61 .tick = (void *)nohz_tick_tick,
/linux/include/linux/
H A Dtime32.h38 s32 tick; member
/linux/sound/drivers/
H A Daloop.c221 unsigned long tick; in loopback_jiffies_timer_start() local
232 tick = dpcm->period_size_frac - dpcm->irq_pos; in loopback_jiffies_timer_start()
233 tick = DIV_ROUND_UP(tick, dpcm->pcm_bps); in loopback_jiffies_timer_start()
234 mod_timer(&dpcm->timer, jiffies + tick); in loopback_jiffies_timer_start()
243 unsigned long tick; in loopback_hrtimer_start() local
254 tick = dpcm->period_size_frac - dpcm->irq_pos; in loopback_hrtimer_start()
255 tick = DIV_ROUND_UP(tick, dpcm->pcm_bps); in loopback_hrtimer_start()
257 ns_to_ktime(div_u64((u64)tick * NSEC_PER_SEC, HZ)), in loopback_hrtimer_start()
/linux/arch/arm/boot/dts/microchip/
H A Dat91-dvk_som60.dts20 tick-timer = &pit;

123