| /linux/sound/core/seq/ |
| H A D | seq_timer.h | 28 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 D | seq_prioq.c | 91 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() 202 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready() 308 if (cell->event.time.tick) in prioq_match() 357 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match() 365 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
|
| H A D | seq_timer.c | 27 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() 106 tmr->tick.cur_tick = 0; in seq_timer_reset() 107 tmr->tick.fraction = 0; in seq_timer_reset() 146 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt() 208 tmr->tick.cur_tick = position; in snd_seq_timer_set_position_tick() [all …]
|
| H A D | seq_queue.c | 302 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 D | adjtick.c | 124 tx1.tick = tickval; in check_tick_adj() 140 if (tx1.offset || tx1.freq || tx1.tick != tickval) { 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() 199 tx1.tick = systick; in main()
|
| H A D | raw_skew.c | 136 tx1.freq != tx2.freq || tx1.tick != tx2.tick) { in main()
|
| /linux/kernel/time/ |
| H A D | Makefile | 18 obj-$(CONFIG_GENERIC_CLOCKEVENTS) += clockevents.o tick-common.o 20 obj-y += tick-broadcast.o 21 obj-$(CONFIG_TICK_ONESHOT) += tick-broadcast-hrtimer.o 24 obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o tick-sched.o 25 obj-$(CONFIG_LEGACY_TIMER_TICK) += tick-legacy.o
|
| H A D | Kconfig | 63 The legacy timer tick helper is used by platforms that 89 # only related to the tick functionality. Oneshot clockevent devices 99 prompt "Timer tick handling" 105 This option keeps the tick running periodically at a constant 132 Adaptively try to shutdown the tick whenever possible, even when
|
| H A D | time.c | 305 txc->tick = tx32.tick; in get_old_timex32() 334 tx32.tick = txc->tick; in put_old_timex32()
|
| /linux/arch/sparc/include/asm/ |
| H A D | timer_64.h | 47 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 D | hibernate.h | 16 unsigned long tick; member
|
| /linux/drivers/net/wireless/ath/carl9170/ |
| H A D | cmd.c | 173 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 D | amdtp-motu.c | 314 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 D | highres.rst | 100 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 D | no_hz.rst | 128 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 D | board-sead3.c | 184 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/include/uapi/linux/ |
| H A D | timex.h | 78 __kernel_long_t tick; /* (modified) usecs between clock ticks */ member 117 long long tick; /* (modified) usecs between clock ticks */ member
|
| /linux/arch/loongarch/kvm/ |
| H A D | timer.c | 22 static inline u64 tick_to_ns(struct kvm_vcpu *vcpu, u64 tick) in tick_to_ns() argument 24 return div_u64(tick * MNSEC_PER_SEC, vcpu->arch.timer_mhz); in tick_to_ns()
|
| /linux/drivers/md/ |
| H A D | dm-cache-policy-internal.h | 84 if (p->tick) in policy_tick() 85 return p->tick(p, can_block); in policy_tick()
|
| /linux/arch/sparc/power/ |
| H A D | hibernate_asm.S | 29 rdpr %tick, %g2 113 wrpr %g2, %tick
|
| /linux/arch/sparc/kernel/ |
| H A D | time_64.c | 810 instr = (tlb_type == spitfire) ? p->tick : p->stick; in get_tick_patch() 823 unsigned long freq, quotient, tick; in init_tick_ops() local 827 tick = ops->get_tick(); in init_tick_ops() 829 ops->offset = (tick * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT; in init_tick_ops()
|
| H A D | asm-offsets.c | 38 OFFSET(SC_REG_TICK, saved_context, tick); in sparc64_foo()
|
| /linux/drivers/sbus/char/ |
| H A D | bbc_envctrl.c | 169 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/drivers/memory/tegra/ |
| H A D | mc.c | 391 unsigned long long tick; in tegra_mc_setup_latency_allowance() local 396 tick = (unsigned long long)mc->tick * clk_get_rate(mc->clk); in tegra_mc_setup_latency_allowance() 397 do_div(tick, NSEC_PER_SEC); in tegra_mc_setup_latency_allowance() 401 value |= MC_EMEM_ARB_CFG_CYCLES_PER_UPDATE(tick); in tegra_mc_setup_latency_allowance() 922 mc->tick = 30; in tegra_mc_probe()
|
| /linux/Documentation/features/time/arch-tick-broadcast/ |
| H A D | arch-support.txt | 2 # Feature name: arch-tick-broadcast
|