Home
last modified time | relevance | path

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

1234

/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.c135 * The tick value holds the coarse part of the adjustment, a in main()
136 * microsecond of the tick length per unit, and time sync daemons in main()
142 ppm += (long long)(tx1.tick + tx2.tick - 2 * tick_nom) * in main()
148 tx1.freq != tx2.freq || tx1.tick != tx2.tick) {
/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.c147 * given tick count
148 * @tick: The target tick count to match
153 * This function calculates the closest clock period to the given tick count
155 * minimizes the difference between the target tick count and the calculated
157 * and returns the difference between the target tick count and the selected
160 * Return: The difference between the target tick count and the selected
163 static long long atcwdt_get_clock_period(long long tick, in atcwdt_get_clock_period()
180 result = tick - (1LL << atcwdt_get_index(i, timer_type)); in atcwdt_get_clock_period()
222 long long tick; in atcwdt_get_timeout_params()
162 atcwdt_get_clock_period(long long tick,enum timer_type timer_type,unsigned char * index) atcwdt_get_clock_period() argument
221 long long tick; atcwdt_get_timeout_params() local
[all...]
/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/Documentation/admin-guide/
H A Dcpu-isolation.rst67 replacement. E.g.: the timer tick is shut down on nohz_full
70 and a residual 1Hz scheduler tick is offloaded to housekeeping
139 Full dynticks extends the dynticks idle mode, which stops the tick when
141 the timer tick is stopped if the environment allows it.
154 the tick to maintain preemption. This is usually fine since the
181 kernel boundaries instead of periodically from the tick.
183 - Housekeeping CPUs must run a 1Hz residual remote scheduler tick
226 Set the following kernel boot parameters to disable SMT and setup tick
347 interesting to enable the tick_stop event to diagnose why the tick is
/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()
/linux/arch/sparc/power/
H A Dhibernate_asm.S29 rdpr %tick, %g2
113 wrpr %g2, %tick
/linux/Documentation/core-api/
H A Dhousekeeping.rst19 scheduler tick, etc...).
34 2. HK_TYPE_KERNEL_NOISE matches the work moved away by tick isolation
36 parameters. This includes remote scheduler tick, vmstat and lockup
/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/arch/alpha/kernel/
H A Dosf_sys.c1160 long tick; /* (modified) usecs between clock ticks */ member
1183 copy_from_user(&txc.tick, &txc_p->tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1184 offsetof(struct timex32, tick))) in SYSCALL_DEFINE1()
1193 (copy_to_user(&txc_p->tick, &txc.tick, sizeof(struct timex32) - in SYSCALL_DEFINE1()
1194 offsetof(struct timex32, tick))) || in SYSCALL_DEFINE1()
/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.c5 * Exercise tick dependency transitions between infinite and finite slices.
104 .tick = (void *)nohz_tick_tick,
/linux/include/linux/
H A Dtime32.h38 s32 tick; member

1234