Home
last modified time | relevance | path

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

12345

/Linux-v4.19/sound/core/seq/
Dseq_timer.h43 struct snd_seq_timer_tick tick; /* current tick */ member
68 static inline void snd_seq_timer_update_tick(struct snd_seq_timer_tick *tick, in snd_seq_timer_update_tick() argument
71 if (tick->resolution > 0) { in snd_seq_timer_update_tick()
72 tick->fraction += resolution; in snd_seq_timer_update_tick()
73 tick->cur_tick += (unsigned int)(tick->fraction / tick->resolution); in snd_seq_timer_update_tick()
74 tick->fraction %= tick->resolution; in snd_seq_timer_update_tick()
Dseq_prioq.c106 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
123 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
125 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
221 return snd_seq_compare_tick_time(current_time, &ev->time.tick); in event_is_ready()
277 if (cell->event.time.tick) in prioq_match()
362 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
370 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
Dseq_timer.c39 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
45 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution()
46 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution()
48 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution()
49 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution()
50 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution()
120 tmr->tick.cur_tick = 0; in seq_timer_reset()
121 tmr->tick.fraction = 0; in seq_timer_reset()
165 snd_seq_timer_update_tick(&tmr->tick, resolution); in snd_seq_timer_interrupt()
231 tmr->tick.cur_tick = position; in snd_seq_timer_set_position_tick()
[all …]
Dseq_queue.c272 &q->timer->tick.cur_tick); in snd_seq_check_queue()
314 cell->event.time.tick += q->timer->tick.cur_tick; in snd_seq_enqueue_event()
653 sev.time.tick = q->timer->tick.cur_tick; in queue_broadcast_event()
696 if (snd_seq_timer_set_position_tick(q->timer, ev->data.queue.param.time.tick) == 0) { in snd_seq_queue_process_event()
776 snd_iprintf(buffer, "current tick : %d\n", tmr->tick.cur_tick); in snd_seq_info_queues_read()
/Linux-v4.19/tools/testing/selftests/timers/
Dadjtick.c128 tx1.tick = tickval; in check_tick_adj()
143 if (tx1.offset || tx1.freq || tx1.tick != tickval) { in check_tick_adj()
170 long tick, max, interval, err; in main() local
188 for (tick = (systick - max); tick < (systick + max); tick += interval) { in main()
189 if (check_tick_adj(tick)) { in main()
202 tx1.tick = systick; in main()
Draw_skew.c138 tx1.freq != tx2.freq || tx1.tick != tx2.tick) { in main()
/Linux-v4.19/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
DKconfig54 # only related to the tick functionality. Oneshot clockevent devices
65 prompt "Timer tick handling"
71 This option keeps the tick running periodically at a constant
100 Adaptively try to shutdown the tick whenever possible, even when
Dtick-sched.c737 ktime_t tick = expires; in tick_nohz_stop_tick() local
760 if (tick == KTIME_MAX || ts->next_tick == hrtimer_get_expires(&ts->sched_timer)) in tick_nohz_stop_tick()
786 ts->next_tick = tick; in tick_nohz_stop_tick()
799 hrtimer_start(&ts->sched_timer, tick, HRTIMER_MODE_ABS_PINNED); in tick_nohz_stop_tick()
801 hrtimer_set_expires(&ts->sched_timer, tick); in tick_nohz_stop_tick()
802 tick_program_event(tick, 1); in tick_nohz_stop_tick()
/Linux-v4.19/arch/sparc/include/asm/
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()
Dhibernate.h16 unsigned long tick; member
/Linux-v4.19/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-v4.19/Documentation/devicetree/bindings/watchdog/
Dsirfsoc_wdt.txt4 - compatible: "sirf,prima2-tick"
5 - reg: Address range of tick timer/WDT register set
14 compatible = "sirf,prima2-tick";
/Linux-v4.19/Documentation/timers/
Dhighres.txt97 System-level global event devices are used for the Linux periodic tick. Per-CPU
103 - system global periodic tick (jiffies update)
128 utilize the high resolution and dynamic tick functionalities without any change
132 adding the dynamic tick specific calls to the idle routine (a total of 3 lines
182 Once a system has switched to high resolution mode, the periodic tick is
186 The periodic tick functionality is provided by an per-cpu hrtimer. The callback
189 based periodic tick is designed to be extended with dynamic tick functionality.
191 timer and periodic events (jiffies tick, profiling, process accounting) on UP
196 separated from the tick bound timer softirq to allow accurate delivery of high
207 Dynamic ticks are the logical consequence of the hrtimer based periodic tick
[all …]
DNO_HZ.txt123 adaptive-tick CPUs: At least one non-adaptive-tick CPU must remain
125 calls like gettimeofday() returns accurate values on adaptive-tick CPUs.
142 Just as with dyntick-idle mode, the benefits of adaptive-tick mode do
154 3. POSIX CPU timers prevent CPUs from entering adaptive-tick mode.
160 all of them over time. Adaptive-tick mode may prevent this
163 entering adaptive-tick mode.
165 5. Scheduler statistics for adaptive-tick CPUs may be computed
166 slightly differently than those for non-adaptive-tick CPUs.
180 enter either dyntick-idle mode or adaptive-tick mode, the most
184 to enter dyntick-idle mode or adaptive-tick mode anyway. In this case,
[all …]
/Linux-v4.19/arch/mips/generic/
Dboard-sead3.c188 unsigned int freq, orig, tick = 0; in sead3_measure_hpt_freq() local
202 while (tick < 100) { in sead3_measure_hpt_freq()
207 tick++; in sead3_measure_hpt_freq()
/Linux-v4.19/Documentation/devicetree/bindings/timer/
Dfaraday,fttmr010.txt21 - clocks : a clock to provide the tick rate for "faraday,fttmr010"
22 - clock-names : should be "EXTCLK" and "PCLK" for the external tick timer
/Linux-v4.19/drivers/memory/tegra/
Dmc.c278 unsigned long long tick; in tegra_mc_setup_latency_allowance() local
283 tick = mc->tick * clk_get_rate(mc->clk); in tegra_mc_setup_latency_allowance()
284 do_div(tick, NSEC_PER_SEC); in tegra_mc_setup_latency_allowance()
288 value |= MC_EMEM_ARB_CFG_CYCLES_PER_UPDATE(tick); in tegra_mc_setup_latency_allowance()
634 mc->tick = 30; in tegra_mc_probe()
/Linux-v4.19/arch/sparc/power/
Dhibernate_asm.S29 rdpr %tick, %g2
113 wrpr %g2, %tick
/Linux-v4.19/drivers/md/
Ddm-cache-policy-internal.h83 if (p->tick) in policy_tick()
84 return p->tick(p, can_block); in policy_tick()
/Linux-v4.19/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-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.c54 u32 tick; in hclge_shaper_para_calc() local
60 tick = tick_array[shaper_level]; in hclge_shaper_para_calc()
69 ir_calc = (1008000 + (tick >> 1) - 1) / tick; in hclge_shaper_para_calc()
81 ir_calc = 1008000 / (tick * (1 << ir_s_calc)); in hclge_shaper_para_calc()
87 *ir_b = (ir * tick * (1 << ir_s_calc) + 4000) / 8000; in hclge_shaper_para_calc()
95 ir_calc = (numerator + (tick >> 1)) / tick; in hclge_shaper_para_calc()
102 *ir_b = (ir * tick + (denominator >> 1)) / denominator; in hclge_shaper_para_calc()
/Linux-v4.19/arch/sparc/kernel/
Dtime_64.c806 instr = (tlb_type == spitfire) ? p->tick : p->stick; in get_tick_patch()
819 unsigned long freq, quotient, tick; in init_tick_ops() local
823 tick = ops->get_tick(); in init_tick_ops()
825 ops->offset = (tick * quotient) >> SPARC64_NSEC_PER_CYC_SHIFT; in init_tick_ops()
/Linux-v4.19/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-v4.19/kernel/
Dcompat.c52 txc->tick = tx32.tick; in compat_get_timex()
81 tx32.tick = txc->tick; in compat_put_timex()

12345