Home
last modified time | relevance | path

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

123

/openbmc/u-boot/lib/
H A Dtime.c77 uint64_t notrace get_ticks(void) in get_ticks() function
103 uint64_t __weak notrace get_ticks(void) in get_ticks() function
134 return tick_to_time(get_ticks()) - base; in get_timer()
139 return tick_to_time(get_ticks() * 1000); in timer_get_us()
154 tmp = get_ticks() + usec_to_tick(usec); /* get current timestamp */ in __udelay()
156 while (get_ticks() < tmp+1) /* loop till event */ in __udelay()
/openbmc/u-boot/arch/powerpc/lib/
H A Dticks.S19 .globl get_ticks
20 get_ticks: label
39 bl get_ticks /* Get start time */
46 1: bl get_ticks /* Get current time */
/openbmc/u-boot/arch/arm/cpu/armv7/vf610/
H A Dtimer.c48 unsigned long long get_ticks(void) in get_ticks() function
62 return tick_to_time(get_ticks()) - base; in get_timer()
71 start = get_ticks(); /* get current timestamp */ in __udelay()
73 while ((get_ticks() - start) < tmo) in __udelay()
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dtimer.c81 unsigned long long get_ticks(void) in get_ticks() function
95 return tick_to_time(get_ticks()) - base; in get_timer()
104 start = get_ticks(); /* get current timestamp */ in __udelay()
107 while ((get_ticks() - start) < tmo) in __udelay()
/openbmc/u-boot/arch/arm/mach-imx/
H A Dsyscounter.c82 unsigned long long get_ticks(void) in get_ticks() function
96 return tick_to_time(get_ticks()) - base; in get_timer()
105 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
107 while (get_ticks() < tmp) /* loop till event */ in __udelay()
/openbmc/u-boot/arch/arm/mach-davinci/
H A Dtimer.c55 unsigned long long get_ticks(void) in get_ticks() function
71 timer_diff = get_ticks() - gd->arch.timer_reset_value; in get_timer()
83 endtime += get_ticks(); in __udelay()
85 while (get_ticks() < endtime) in __udelay()
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mx27/
H A Dtimer.c110 unsigned long long get_ticks(void) in get_ticks() function
137 return tick_to_time(get_ticks()); in get_timer_masked()
152 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
154 while (get_ticks() < tmp) /* loop till event */ in __udelay()
/openbmc/u-boot/drivers/i2c/
H A Dfsl_i2c.c229 timeval = get_ticks(); in fsl_i2c_fixup()
231 if ((get_ticks() - timeval) > timeout) in fsl_i2c_fixup()
245 timeval = get_ticks(); in fsl_i2c_fixup()
247 if ((get_ticks() - timeval) > timeout) in fsl_i2c_fixup()
280 timeval = get_ticks(); in __i2c_init()
282 if ((get_ticks() - timeval) < timeout) in __i2c_init()
295 unsigned long long timeval = get_ticks(); in i2c_wait4bus()
299 if ((get_ticks() - timeval) > timeout) in i2c_wait4bus()
309 unsigned long long timeval = get_ticks(); in i2c_wait()
337 } while ((get_ticks() - timeval) < timeout); in i2c_wait()
/openbmc/u-boot/arch/arm/cpu/armv7/
H A Darch_timer.c37 unsigned long long get_ticks(void) in get_ticks() function
52 return lldiv(get_ticks(), gd->arch.timer_rate_hz / 1000000); in timer_get_boot_us()
/openbmc/u-boot/arch/arm/cpu/armv8/
H A Dgeneric_timer.c88 uint64_t get_ticks(void) in get_ticks() function
110 u64 val = get_ticks() * 1000000; in timer_get_boot_us()
/openbmc/u-boot/drivers/spi/
H A Dath79_spi.c99 tick = get_ticks() + priv->rrw_delay; in ath79_spi_xfer()
100 while (get_ticks() < tick) in ath79_spi_xfer()
109 tick = get_ticks() + priv->rrw_delay; in ath79_spi_xfer()
110 while (get_ticks() < tick) in ath79_spi_xfer()
/openbmc/u-boot/board/xilinx/versal/
H A Dboard.c62 debug("timer 0x%llx\n", get_ticks()); in board_early_init_r()
63 debug("timer 0x%llx\n", get_ticks()); in board_early_init_r()
/openbmc/u-boot/drivers/timer/
H A Dtsc_timer.c349 return (get_ticks() * 1000) / get_tbclk(); in get_ms_timer()
359 return get_ticks() / get_tbclk_mhz(); in timer_get_us()
369 u64 now = get_ticks(); in __udelay()
374 while ((int64_t)(stop - get_ticks()) > 0) in __udelay()
H A Dmpc83xx_timer.c182 ulong end = get_ticks() + ticks; in wait_ticks()
184 while (end > get_ticks()) in wait_ticks()
/openbmc/u-boot/arch/arm/cpu/arm920t/ep93xx/
H A Dtimer.c57 unsigned long long get_ticks(void) in get_ticks() function
71 return get_ticks() - base; in get_timer()
/openbmc/u-boot/arch/arm/cpu/armv7m/
H A Dsystick-timer.c93 unsigned long long t = get_ticks() * 1000; in get_timer()
98 unsigned long long get_ticks(void) in get_ticks() function
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dtimer.c80 unsigned long long get_ticks(void) in get_ticks() function
115 return tick_to_time(get_ticks()) - base; in get_timer()
/openbmc/u-boot/arch/powerpc/cpu/mpc8xxx/
H A Dsrio.c101 end_tick = usec2ticks(2000) + get_ticks(); in srio_erratum_a004034()
114 } while (end_tick > get_ticks()); in srio_erratum_a004034()
211 end_tick = usec2ticks(1000000) + get_ticks(); in srio_erratum_a004034()
222 } while (end_tick > get_ticks()); in srio_erratum_a004034()
/openbmc/u-boot/arch/arm/mach-bcmstb/include/mach/
H A Dtimer.h11 uint64_t get_ticks(void);
/openbmc/u-boot/common/
H A Dbootretry.c47 if (retry_time >= 0 && get_ticks() > endtime) in bootretry_tstc_timeout()
/openbmc/u-boot/include/
H A Dcli.h154 #define endtick(seconds) (get_ticks() + (uint64_t)(seconds) * get_tbclk())
/openbmc/u-boot/arch/arm/cpu/sa1100/
H A Dtimer.c52 unsigned long long get_ticks(void) in get_ticks() function
/openbmc/u-boot/arch/arm/cpu/arm920t/imx/
H A Dtimer.c64 unsigned long long get_ticks(void) in get_ticks() function
/openbmc/u-boot/arch/sh/lib/
H A Dtime_sh2.c46 unsigned long long get_ticks(void) in get_ticks() function
/openbmc/u-boot/arch/xtensa/lib/
H A Dtime.c95 unsigned long long get_ticks(void) in get_ticks() function

123