Home
last modified time | relevance | path

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

12345

/Linux-v5.15/sound/core/seq/
Dseq_timer.h28 struct snd_seq_timer_tick tick; /* current tick */ member
53 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument
56 if (tick->resolution > 0) { in snd_seq_timer_update_tick()
57 tick->fraction += resolution; in snd_seq_timer_update_tick()
58 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick()
59 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
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()
206 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready()
262 if (cell->event.time.tick) in prioq_match()
347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
355 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
Dseq_timer.c24 tmr->tick.resolution = (tmr->tempo * 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()
105 tmr->tick.cur_tick = 0; in seq_timer_reset()
106 tmr->tick.fraction = 0; in seq_timer_reset()
150 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt()
216 tmr->tick.cur_tick = position; in snd_seq_timer_set_position_tick()
[all …]
Dseq_queue.c305 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
627 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event()
670 if (snd_seq_timer_set_position_tick(q->timer, ev->data.queue.param.time.tick) == 0) { in snd_seq_queue_process_event()
758 snd_iprintf(buffer, "current tick : %d\n", tmr->tick.cur_tick); in snd_seq_info_queues_read()
/Linux-v5.15/kernel/time/
DMakefile12 obj-$(CONFIG_GENERIC_CLOCKEVENTS) += clockevents.o tick-common.o
14 obj-y += tick-broadcast.o
15 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o
18 obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o tick-sched.o
19 obj-$(CONFIG_LEGACY_TIMER_TICK) += tick-legacy.o
DKconfig63 The legacy timer tick helper is used by platforms that
80 # only related to the tick functionality. Oneshot clockevent devices
90 prompt "Timer tick handling"
96 This option keeps the tick running periodically at a constant
123 Adaptively try to shutdown the tick whenever possible, even when
/Linux-v5.15/tools/testing/selftests/timers/
Dadjtick.c128 tx1.tick = tickval; in check_tick_adj()
144 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj()
171 long tick, max, interval, err; in main() local
189 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
190 if (check_tick_adj(tick)) { in main()
203 tx1.tick = systick; in main()
Draw_skew.c139 tx1.freq != tx2.freq || tx1.tick != tx2.tick) { in main()
/Linux-v5.15/arch/sparc/include/asm/
Dtimer_64.h48 unsigned int tick[GET_TICK_NINSTR]; member
57 unsigned long tick, tmp1, tmp2; in get_tick() local
93 : "=&r" (tick), "=&r" (tmp1), "=&r" (tmp2) in get_tick()
96 return tick; in get_tick()
Dhibernate.h16 unsigned long tick; member
/Linux-v5.15/drivers/net/wireless/ath/carl9170/
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-v5.15/sound/firewire/motu/
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()
378 unsigned int tick = (base_tick + event_offsets[cache_head]) % TICKS_PER_SECOND; in write_sph() local
379 u32 sph = ((tick / TICKS_PER_CYCLE) << CIP_SPH_CYCLE_SHIFT) | (tick % TICKS_PER_CYCLE); in write_sph()
/Linux-v5.15/Documentation/timers/
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 …]
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.
147 Just as with dyntick-idle mode, the benefits of adaptive-tick mode do
159 3. POSIX CPU timers prevent CPUs from entering adaptive-tick mode.
165 all of them over time. Adaptive-tick mode may prevent this
168 entering adaptive-tick mode.
170 5. Scheduler statistics for adaptive-tick CPUs may be computed
171 slightly differently than those for non-adaptive-tick CPUs.
184 enter either dyntick-idle mode or adaptive-tick mode, the most
188 to enter dyntick-idle mode or adaptive-tick mode anyway. In this case,
[all …]
/Linux-v5.15/arch/mips/generic/
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-v5.15/include/uapi/linux/
Dtimex.h78 __kernel_long_t tick; /* (modified) usecs between clock ticks */ member
117 long long tick; /* (modified) usecs between clock ticks */ member
/Linux-v5.15/Documentation/admin-guide/pm/
Dcpuidle.rst165 tick can be `stopped by the idle loop <idle-cpus-and-tick_>`_. Available
186 .. _idle-cpus-and-tick:
191 The scheduler tick is a timer that triggers periodically in order to implement
199 may not want to give the CPU away voluntarily, however, and the scheduler tick
201 tick, but it is the primary reason for using it.
203 The scheduler tick is problematic from the CPU idle time management perspective,
205 configuration, the length of the tick period is between 1 ms and 10 ms).
206 Thus, if the tick is allowed to trigger on idle CPUs, it will not make sense
208 the tick period length. Moreover, in that case the idle duration of any CPU
209 will never exceed the tick period length and the energy used for entering and
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/timer/
Dfaraday,fttmr010.txt22 - clocks : a clock to provide the tick rate for "faraday,fttmr010"
23 - clock-names : should be "EXTCLK" and "PCLK" for the external tick timer
/Linux-v5.15/drivers/net/ethernet/pensando/ionic/
Dionic_phc.c308 ctx->cmd.lif_setphc.tick = cpu_to_le64(phc->tc.cycle_last); in ionic_setphc_cmd()
415 u64 tick, ns; in ionic_phc_gettimex64() local
423 tick = ionic_hwstamp_read(ionic, sts); in ionic_phc_gettimex64()
425 ns = timecounter_cyc2time(&phc->tc, tick); in ionic_phc_gettimex64()
467 ktime_t ionic_lif_phc_ktime(struct ionic_lif *lif, u64 tick) in ionic_lif_phc_ktime() argument
476 ns = timecounter_cyc2time(&lif->phc->tc, tick); in ionic_lif_phc_ktime()
/Linux-v5.15/drivers/md/
Ddm-cache-policy-internal.h83 if (p->tick) in policy_tick()
84 return p->tick(p, can_block); in policy_tick()
/Linux-v5.15/arch/sparc/power/
Dhibernate_asm.S29 rdpr %tick, %g2
113 wrpr %g2, %tick
/Linux-v5.15/drivers/memory/tegra/
Dmc.c361 unsigned long long tick; in tegra_mc_setup_latency_allowance() local
366 tick = (unsigned long long)mc->tick * clk_get_rate(mc->clk); in tegra_mc_setup_latency_allowance()
367 do_div(tick, NSEC_PER_SEC); in tegra_mc_setup_latency_allowance()
371 value |= MC_EMEM_ARB_CFG_CYCLES_PER_UPDATE(tick); in tegra_mc_setup_latency_allowance()
753 mc->tick = 30; in tegra_mc_probe()
/Linux-v5.15/arch/arm/plat-omap/
DKconfig72 timer provides more intra-tick resolution than the 32KHz timer,
82 support for no tick during idle. The 32KHz timer provides less
83 intra-tick resolution than OMAP_MPU_TIMER. The 32KHz timer is
/Linux-v5.15/drivers/sbus/char/
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-v5.15/arch/sparc/kernel/
Dtime_64.c808 instr = (tlb_type == spitfire) ? p->tick : p->stick; in get_tick_patch()
821 unsigned long freq, quotient, tick; in init_tick_ops() local
825 tick = ops->get_tick(); in init_tick_ops()
827 ops->offset = (tick * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT; in init_tick_ops()

12345