Home
last modified time | relevance | path

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

123456789

/OK3568_Linux_fs/u-boot/drivers/i2c/
H A Dmvtwsi.c91 uint tick; member
263 uint tick) in twsi_wait() argument
279 ndelay(tick); /* One clock cycle */ in twsi_wait()
300 uint tick) in twsi_start() argument
306 return twsi_wait(twsi, expected_status, tick); in twsi_start()
323 int expected_status, uint tick) in twsi_send() argument
331 return twsi_wait(twsi, expected_status, tick); in twsi_send()
348 uint tick) in twsi_recv() argument
360 status = twsi_wait(twsi, expected_status, tick); in twsi_recv()
378 static int twsi_stop(struct mvtwsi_registers *twsi, uint tick) in twsi_stop() argument
[all …]
/OK3568_Linux_fs/kernel/sound/core/seq/
H A 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()
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()
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()
H A 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 …]
/OK3568_Linux_fs/u-boot/lib/
H A Dtime.c118 static uint64_t notrace tick_to_time(uint64_t tick) in tick_to_time() argument
122 tick *= CONFIG_SYS_HZ; in tick_to_time()
123 do_div(tick, div); in tick_to_time()
124 return tick; in tick_to_time()
145 uint64_t tick = usec; in usec_to_tick() local
146 tick *= get_tbclk(); in usec_to_tick()
147 do_div(tick, 1000000); in usec_to_tick()
148 return tick; in usec_to_tick()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx27/
H A Dtimer.c41 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument
43 tick *= CONFIG_SYS_HZ; in tick_to_time()
44 do_div(tick, CONFIG_MX27_CLK32); in tick_to_time()
45 return tick; in tick_to_time()
67 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument
69 do_div(tick, TICK_PER_TIME); in tick_to_time()
70 return tick; in tick_to_time()
/OK3568_Linux_fs/kernel/tools/testing/selftests/timers/
H A 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()
/OK3568_Linux_fs/kernel/kernel/time/
H A 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
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/sparc/include/asm/
H A 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()
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-rk-timer.c73 static inline u64 tick_to_sec(struct rk_timer_rtc *rk_timer_rtc, u64 tick) in tick_to_sec() argument
75 do_div(tick, rk_timer_rtc->freq); in tick_to_sec()
76 return tick; in tick_to_sec()
84 static inline u64 tick_to_time64(struct rk_timer_rtc *rk_timer_rtc, u64 tick) in tick_to_time64() argument
86 return tick_to_sec(rk_timer_rtc, tick) + rk_timer_rtc->timebase; in tick_to_time64()
171 u64 tick; in rk_timer_rtc_read_time() local
173 ret = rk_timer_rtc_read64(rk_timer_rtc, TIMER_CURRENT_VALUE0, &tick); in rk_timer_rtc_read_time()
177 rtc_time64_to_tm(tick_to_time64(rk_timer_rtc, tick), tm); in rk_timer_rtc_read_time()
220 u64 tick; in rk_timer_rtc_read_alarm() local
222 ret = rk_timer_rtc_read64(rk_timer_rtc, TIMER_LOAD_COUNT0, &tick); in rk_timer_rtc_read_alarm()
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/vf610/
H A Dtimer.c19 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument
21 tick *= CONFIG_SYS_HZ; in tick_to_time()
22 do_div(tick, mxc_get_clock(MXC_IPG_CLK)); in tick_to_time()
24 return tick; in tick_to_time()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dtimer.c32 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument
38 tick *= CONFIG_SYS_HZ; in tick_to_time()
39 do_div(tick, freq); in tick_to_time()
41 return tick; in tick_to_time()
/OK3568_Linux_fs/u-boot/arch/arm/mach-imx/
H A Dsyscounter.c35 static inline unsigned long long tick_to_time(unsigned long long tick) in tick_to_time() argument
41 tick *= CONFIG_SYS_HZ; in tick_to_time()
42 do_div(tick, freq); in tick_to_time()
44 return tick; in tick_to_time()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/watchdog/
H A Dsirfsoc_wdt.txt4 - compatible: "sirf,prima2-tick"
5 - reg: Address range of tick timer/WDT register set
14 compatible = "sirf,prima2-tick";
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dath79_spi.c67 u64 tick; in ath79_spi_xfer() local
100 tick = get_ticks() + priv->rrw_delay; in ath79_spi_xfer()
101 while (get_ticks() < tick) in ath79_spi_xfer()
110 tick = get_ticks() + priv->rrw_delay; in ath79_spi_xfer()
111 while (get_ticks() < tick) in ath79_spi_xfer()
/OK3568_Linux_fs/kernel/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.
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 …]
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/
H A Dchosen.txt25 tick-timer property
28 as the tick-timer. Earlier it was hardcoded in the timer driver now
30 used as tick timer.
36 tick-timer = "/timer2@f00";
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/ltp/ltp/
H A D0001-clock_gettime04-set-threshold-based-on-the-clock-res.patch7 which are likely caused by different clock tick rates on platforms.
20 tick. Since arm64 has a HZ rate of 100. That means each tick is 10ms. So a
23 on the clock tick rate of the system. This is more a test failure than is
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/Documentation/admin-guide/pm/
H A 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 …]
/OK3568_Linux_fs/buildroot/package/lvgl/lv_drivers/
H A D0008-drm-use-ping-pong-buffer-for-vop-output.patch29 + uint32_t tick = 0, ts;
38 + if ((ts - tick) < MIN_TICK) {
42 + tick = ts;
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dtimer.c35 static inline unsigned long tick_to_time(unsigned long tick) in tick_to_time() argument
37 return tick / (MXS_INCREMENTER_HZ / CONFIG_SYS_HZ); in tick_to_time()

123456789