Home
last modified time | relevance | path

Searched refs:get_ticks (Results 1 – 25 of 69) sorted by relevance

123

/OK3568_Linux_fs/u-boot/lib/
H A Dtime.c78 uint64_t notrace get_ticks(void) in get_ticks() function
104 uint64_t __weak notrace get_ticks(void) in get_ticks() function
135 return tick_to_time(get_ticks()) - base; in get_timer()
140 return tick_to_time(get_ticks() * 1000); in timer_get_us()
155 tmp = get_ticks() + usec_to_tick(usec); /* get current timestamp */ in __udelay()
157 while (get_ticks() < tmp+1) /* loop till event */ in __udelay()
H A Dinitcall.c18 static inline void call_get_ticks(ulong *ticks) { *ticks = get_ticks(); } in call_get_ticks()
29 gd->sys_start_tick = get_ticks(); in initcall_run_list()
H A Dtime.su
/OK3568_Linux_fs/u-boot/arch/powerpc/lib/
H A Dticks.S20 .globl get_ticks symbol
21 get_ticks: label
40 bl get_ticks /* Get start time */
47 1: bl get_ticks /* Get current time */
/OK3568_Linux_fs/u-boot/test/rockchip/
H A Dtest-misc.c73 start = get_ticks(); in timer_delay_test()
75 delta = (get_ticks() - start) / 24UL; in timer_delay_test()
78 start = get_ticks(); in timer_delay_test()
80 delta = (get_ticks() - start) / 24000UL; in timer_delay_test()
83 start = get_ticks(); in timer_delay_test()
85 delta = (get_ticks() - start) / 24000UL; in timer_delay_test()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/vf610/
H A Dtimer.c49 unsigned long long get_ticks(void) in get_ticks() function
63 return tick_to_time(get_ticks()); in get_timer_masked()
77 start = get_ticks(); /* get current timestamp */ in __udelay()
79 while ((get_ticks() - start) < tmo) in __udelay()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dtimer.c82 unsigned long long get_ticks(void) in get_ticks() function
96 return tick_to_time(get_ticks()); in get_timer_masked()
110 start = get_ticks(); /* get current timestamp */ in __udelay()
113 while ((get_ticks() - start) < tmo) in __udelay()
/OK3568_Linux_fs/u-boot/arch/arm/mach-imx/
H A Dsyscounter.c81 unsigned long long get_ticks(void) in get_ticks() function
95 return tick_to_time(get_ticks()); in get_timer_masked()
109 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
111 while (get_ticks() < tmp) /* loop till event */ in __udelay()
/OK3568_Linux_fs/u-boot/arch/arm/mach-davinci/
H A Dtimer.c56 unsigned long long get_ticks(void) in get_ticks() function
72 timer_diff = get_ticks() - gd->arch.timer_reset_value; in get_timer()
84 endtime += get_ticks(); in __udelay()
86 while (get_ticks() < endtime) in __udelay()
/OK3568_Linux_fs/u-boot/arch/arm/mach-stm32/stm32f4/
H A Dtimer.c73 return (get_ticks() / (CONFIG_SYS_HZ_CLOCK / CONFIG_SYS_HZ)) - base; in get_timer()
76 unsigned long long get_ticks(void) in get_ticks() function
106 start = get_ticks(); /* get current timestamp */ in __udelay()
107 while ((get_ticks() - start) < usec) in __udelay()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mx27/
H A Dtimer.c111 unsigned long long get_ticks(void) in get_ticks() function
138 return tick_to_time(get_ticks()); in get_timer_masked()
153 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
155 while (get_ticks() < tmp) /* loop till event */ in __udelay()
/OK3568_Linux_fs/u-boot/drivers/i2c/
H A Dfsl_i2c.c225 timeval = get_ticks(); in fsl_i2c_fixup()
227 if ((get_ticks() - timeval) > timeout) in fsl_i2c_fixup()
241 timeval = get_ticks(); in fsl_i2c_fixup()
243 if ((get_ticks() - timeval) > timeout) in fsl_i2c_fixup()
276 timeval = get_ticks(); in __i2c_init()
278 if ((get_ticks() - timeval) < timeout) in __i2c_init()
292 unsigned long long timeval = get_ticks(); in i2c_wait4bus()
296 if ((get_ticks() - timeval) > timeout) in i2c_wait4bus()
307 unsigned long long timeval = get_ticks(); in i2c_wait()
335 } while ((get_ticks() - timeval) < timeout); in i2c_wait()
/OK3568_Linux_fs/u-boot/drivers/timer/
H A Dtsc_timer.c285 return (get_ticks() * 1000) / get_tbclk(); in get_ms_timer()
295 return get_ticks() / get_tbclk_mhz(); in timer_get_us()
305 u64 now = get_ticks(); in __udelay()
310 while ((int64_t)(stop - get_ticks()) > 0) in __udelay()
/OK3568_Linux_fs/u-boot/drivers/spi/
H A Dath79_spi.c100 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/u-boot/drivers/net/
H A Denc28j60.c312 etime = get_ticks() + get_tbclk(); in enc_phy_read()
317 } while (get_ticks() <= etime && (status & ENC_MISTAT_BUSY)); in enc_phy_read()
337 etime = get_ticks() + get_tbclk(); in enc_phy_write()
342 } while (get_ticks() <= etime && (status & ENC_MISTAT_BUSY)); in enc_phy_write()
370 etime = get_ticks() + get_tbclk(); in enc_phy_link_wait()
371 while (get_ticks() <= etime) { in enc_phy_link_wait()
612 etime = get_ticks() + get_tbclk(); in enc_clock_wait()
622 } while (get_ticks() <= etime); in enc_clock_wait()
H A Dpic32_eth.c200 expire = get_ticks() + get_tbclk() * 2; in pic32_mac_init()
201 for (; get_ticks() < expire;) { in pic32_mac_init()
419 deadline = get_ticks() + get_tbclk(); in pic32_eth_send()
422 if (get_ticks() > deadline) in pic32_eth_send()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7/
H A Darch_timer.c24 unsigned long long get_ticks(void) in get_ticks() function
39 return lldiv(get_ticks(), CONFIG_SYS_HZ_CLOCK / 1000000); in timer_get_boot_us()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm920t/ep93xx/
H A Dtimer.c58 unsigned long long get_ticks(void) in get_ticks() function
72 return get_ticks(); in get_timer_masked()
/OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dsrio.c102 end_tick = usec2ticks(2000) + get_ticks(); in srio_erratum_a004034()
115 } while (end_tick > get_ticks()); in srio_erratum_a004034()
212 end_tick = usec2ticks(1000000) + get_ticks(); in srio_erratum_a004034()
223 } while (end_tick > get_ticks()); in srio_erratum_a004034()
/OK3568_Linux_fs/u-boot/arch/arm/cpu/armv7m/
H A Dsystick-timer.c94 unsigned long long t = get_ticks() * 1000; in get_timer()
99 unsigned long long get_ticks(void) in get_ticks() function
/OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dtimer.c81 unsigned long long get_ticks(void) in get_ticks() function
116 return tick_to_time(get_ticks()); in get_timer_masked()
/OK3568_Linux_fs/u-boot/spl/lib/
H A Dtime.su
/OK3568_Linux_fs/u-boot/common/
H A Dbootretry.c48 if (retry_time >= 0 && get_ticks() > endtime) in bootretry_tstc_timeout()
H A Dautoboot.c98 } while (!abort && get_ticks() <= etime); in passwd_abort()
175 } while (!abort && get_ticks() <= etime); in passwd_abort()
/OK3568_Linux_fs/u-boot/include/
H A Dcli.h155 #define endtick(seconds) (get_ticks() + (uint64_t)(seconds) * get_tbclk())

123