Searched refs:usec (Results 1 - 25 of 37) sorted by relevance

12

/u-boot/arch/powerpc/lib/
H A Dtime.c20 unsigned long usec2ticks(unsigned long usec) argument
24 if (usec < 1000) {
25 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000;
27 ticks = ((usec / 10) * (get_tbclk() / 100000));
40 void __udelay(unsigned long usec) argument
42 ulong ticks = usec2ticks (usec);
52 /* usec = ticks * 1000000 / tbclk
55 * usec = ( ( ticks * 1000) / tbclk ) * 1000;
/u-boot/include/linux/
H A Ddelay.h8 void __udelay(unsigned long usec);
9 void udelay(unsigned long usec);
/u-boot/arch/arm/cpu/armv7/ls102xa/
H A Dtimer.c23 unsigned long usec2ticks(unsigned long usec) argument
27 if (usec < 1000)
28 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000;
30 ticks = ((usec / 10) * (get_tbclk() / 100000));
47 static inline unsigned long long us_to_tick(unsigned long long usec) argument
53 usec = usec * freq + 999999;
54 do_div(usec, 1000000);
56 return usec;
103 void __udelay(unsigned long usec) argument
[all...]
/u-boot/arch/arm/mach-socfpga/
H A Dtimer_s10.c41 __always_inline uint64_t __usec_to_tick(unsigned long usec) argument
43 u64 tick = usec;
53 __always_inline void __udelay(unsigned long usec) argument
56 u64 tmp = __get_time_stamp() + __usec_to_tick(usec);
/u-boot/arch/arm/mach-imx/
H A Dsyscounter.c26 unsigned long usec2ticks(unsigned long usec) argument
30 if (usec < 1000)
31 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000;
33 ticks = ((usec / 10) * (get_tbclk() / 100000));
50 static inline unsigned long long us_to_tick(unsigned long long usec) argument
56 usec = usec * freq + 999999;
57 do_div(usec, 1000000);
59 return usec;
112 void __udelay(unsigned long usec) argument
[all...]
H A Dtimer.c133 unsigned long long usec = _usec; local
135 usec *= get_tbclk();
136 usec += 999999;
137 do_div(usec, 1000000);
139 return usec;
/u-boot/arch/arm/cpu/armv7/vf610/
H A Dtimer.c30 static inline unsigned long long us_to_tick(unsigned long long usec) argument
32 usec = usec * mxc_get_clock(MXC_IPG_CLK) + 999999;
33 do_div(usec, 1000000);
35 return usec;
70 void __udelay(unsigned long usec) argument
76 tmo = us_to_tick(usec); /* convert usecs to ticks */
/u-boot/arch/arm/cpu/armv8/
H A Dgeneric_timer.c101 unsigned long usec2ticks(unsigned long usec) argument
104 if (usec < 1000)
105 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000;
107 ticks = ((usec / 10) * (get_tbclk() / 100000));
/u-boot/examples/api/
H A Dlibgenwrap.c31 void __udelay(unsigned long usec) argument
33 ub_udelay(usec);
/u-boot/lib/
H A Dtime.c173 uint64_t usec_to_tick(unsigned long usec) argument
175 uint64_t tick = usec;
181 void __weak __udelay(unsigned long usec) argument
185 tmp = get_ticks() + usec_to_tick(usec); /* get current timestamp */
193 void udelay(unsigned long usec) argument
199 kv = usec > CFG_WD_PERIOD ? CFG_WD_PERIOD : usec;
201 usec -= kv;
202 } while(usec);
/u-boot/arch/m68k/lib/
H A Dtime.c37 void __udelay(unsigned long usec) argument
42 while (usec > 0) {
43 if (usec > 65000)
46 tmp = usec;
47 usec = usec - tmp;
156 unsigned long usec2ticks(unsigned long usec) argument
158 return get_timer(usec);
/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dspl_minimal.c34 void udelay(unsigned long usec) argument
37 u32 ticks = ticks_per_usec * usec;
/u-boot/arch/xtensa/lib/
H A Dtime.c52 void __udelay(unsigned long usec) argument
57 /* Scale to support full 32-bit usec range */
59 lo = usec & ((1<<22)-1);
60 hi = usec >> 22UL;
/u-boot/arch/arm/mach-nexell/
H A Dtimer.c218 void __udelay(unsigned long usec) argument
222 debug("+udelay=%ld\n", usec);
228 if (usec >= 1000) {
229 /* start to normalize for usec to ticks per sec */
230 tmo = usec / 1000;
237 tmo = usec * TIMER_FREQ;
258 debug("-udelay=%ld\n", usec);
261 void udelay_masked(unsigned long usec) argument
267 if (usec >= 1000) {
268 /* start to normalize for usec t
[all...]
/u-boot/arch/arm/mach-lpc32xx/
H A Dtimer.c66 void __udelay(unsigned long usec) argument
72 while (readl(&timer1->tc) < usec)
/u-boot/arch/arm/mach-omap2/
H A Dtimer.c61 void __udelay(unsigned long usec) argument
63 long tmo = usec * (TIMER_CLOCK / 1000) / 1000;
/u-boot/board/sysam/amcore/
H A Damcore.c49 void fudelay(int usec) argument
51 while (usec--)
/u-boot/arch/sh/lib/
H A Dtime_sh2.c79 void __udelay(unsigned long usec) argument
81 unsigned long end = get_usec() + usec;
/u-boot/arch/arm/cpu/armv7/s5p-common/
H A Dtimer.c101 void __udelay(unsigned long usec) argument
106 while ((int)(count_value - timer_get_us_down()) < (int)usec)
/u-boot/board/armltd/integrator/
H A Dtimer.c127 /* delay usec useconds */
128 void __udelay(unsigned long usec) argument
133 tmo = usec * CONFIG_SYS_HZ;
/u-boot/arch/arm/include/asm/arch-omap5/
H A Dsys_proto.h84 static inline u32 usec_to_32k(u32 usec) argument
86 return div_round_up(32768 * usec, 1000000);
/u-boot/include/
H A Dtime.h42 * @usec: duration in microseconds
45 uint64_t usec_to_tick(unsigned long usec);
108 * @usec: Value of microseconds to convert
111 ulong usec2ticks(unsigned long usec);
/u-boot/arch/arm/mach-sunxi/
H A Dtimer.c86 void __udelay(unsigned long usec) argument
88 long tmo = USEC_TO_COUNT(usec);
/u-boot/arch/arm/cpu/arm926ejs/mxs/
H A Dtimer.c125 void __udelay(unsigned long usec) argument
132 while (counter < usec) {
/u-boot/arch/arm/cpu/armv7/iproc-common/
H A Dtimer.c70 void __udelay(unsigned long usec) argument
76 /* default arm clk is 1GHz, periph_clk=arm_clk/2, tick per usec */
87 end_tick *= usec;

Completed in 266 milliseconds

12