Home
last modified time | relevance | path

Searched refs:usec (Results 1 – 25 of 58) sorted by relevance

123

/rk3399_rockchip-uboot/arch/arm/cpu/armv7/ls102xa/
H A Dtimer.c20 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
24 if (usec < 1000) in usec2ticks()
25 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
27 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
44 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument
50 usec = usec * freq + 999999; in us_to_tick()
51 do_div(usec, 1000000); in us_to_tick()
53 return usec; in us_to_tick()
105 void __udelay(unsigned long usec) in __udelay() argument
111 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay()
/rk3399_rockchip-uboot/arch/arm/mach-imx/
H A Dsyscounter.c23 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
27 if (usec < 1000) in usec2ticks()
28 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
30 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
47 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument
53 usec = usec * freq + 999999; in us_to_tick()
54 do_div(usec, 1000000); in us_to_tick()
56 return usec; in us_to_tick()
103 void __udelay(unsigned long usec) in __udelay() argument
108 tmo = us_to_tick(usec); in __udelay()
H A Dtimer.c131 unsigned long long usec = _usec; in usec2ticks() local
133 usec *= get_tbclk(); in usec2ticks()
134 usec += 999999; in usec2ticks()
135 do_div(usec, 1000000); in usec2ticks()
137 return usec; in usec2ticks()
/rk3399_rockchip-uboot/arch/m68k/lib/
H A Dtime.c34 void __udelay(unsigned long usec) in __udelay() argument
39 while (usec > 0) { in __udelay()
40 if (usec > 65000) in __udelay()
43 tmp = usec; in __udelay()
44 usec = usec - tmp; in __udelay()
119 void __udelay(unsigned long usec) in __udelay() argument
124 while (usec > 0) { in __udelay()
125 if (usec > 65000) in __udelay()
128 tmp = usec; in __udelay()
129 usec = usec - tmp; in __udelay()
[all …]
/rk3399_rockchip-uboot/arch/powerpc/lib/
H A Dtime.c18 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
22 if (usec < 1000) { in usec2ticks()
23 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
25 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
38 void __udelay(unsigned long usec) in __udelay() argument
40 ulong ticks = usec2ticks (usec); in __udelay()
/rk3399_rockchip-uboot/arch/arm/cpu/sa1100/
H A Dtimer.c21 void __udelay (unsigned long usec) in __udelay() argument
23 udelay_masked (usec); in __udelay()
31 void udelay_masked (unsigned long usec) in udelay_masked() argument
37 if (usec >= 1000) { in udelay_masked()
38 tmo = usec / 1000; in udelay_masked()
42 tmo = usec * CONFIG_SYS_HZ; in udelay_masked()
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/vf610/
H A Dtimer.c27 static inline unsigned long long us_to_tick(unsigned long long usec) in us_to_tick() argument
29 usec = usec * mxc_get_clock(MXC_IPG_CLK) + 999999; in us_to_tick()
30 do_div(usec, 1000000); in us_to_tick()
32 return usec; in us_to_tick()
72 void __udelay(unsigned long usec) in __udelay() argument
78 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay()
/rk3399_rockchip-uboot/lib/
H A Dtime.c143 static uint64_t usec_to_tick(unsigned long usec) in usec_to_tick() argument
145 uint64_t tick = usec; in usec_to_tick()
151 void __weak __udelay(unsigned long usec) in __udelay() argument
155 tmp = get_ticks() + usec_to_tick(usec); /* get current timestamp */ in __udelay()
163 void udelay(unsigned long usec) in udelay() argument
169 kv = usec > CONFIG_WD_PERIOD ? CONFIG_WD_PERIOD : usec; in udelay()
171 usec -= kv; in udelay()
172 } while(usec); in udelay()
/rk3399_rockchip-uboot/arch/arm/cpu/armv8/
H A Dgeneric_timer.c55 unsigned long usec2ticks(unsigned long usec) in usec2ticks() argument
58 if (usec < 1000) in usec2ticks()
59 ticks = ((usec * (get_tbclk()/1000)) + 500) / 1000; in usec2ticks()
61 ticks = ((usec / 10) * (get_tbclk() / 100000)); in usec2ticks()
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Dtpl.c44 void __weak __udelay(unsigned long usec) in __udelay() argument
51 j = usec * 24; in __udelay()
60 void __weak __udelay(unsigned long usec) in __udelay() argument
68 end_count = usec * 24 + cur_count; in __udelay()
79 void udelay(unsigned long usec) in udelay() argument
81 __udelay(usec); in udelay()
/rk3399_rockchip-uboot/arch/arm/cpu/arm920t/imx/
H A Dtimer.c50 void udelay_masked (unsigned long usec) in udelay_masked() argument
52 ulong endtime = get_timer_masked() + usec; in udelay_masked()
61 void __udelay (unsigned long usec) in __udelay() argument
63 udelay_masked(usec); in __udelay()
/rk3399_rockchip-uboot/arch/arm/mach-stm32/stm32f7/
H A Dtimer.c59 void __udelay(unsigned long usec) in __udelay() argument
66 rndoff = (usec % 10) ? 1 : 0; in __udelay()
69 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay()
91 void udelay_masked(unsigned long usec) in udelay_masked() argument
93 return udelay(usec); in udelay_masked()
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/stv0991/
H A Dtimer.c61 void __udelay(unsigned long usec) in __udelay() argument
68 rndoff = (usec % 10) ? 1 : 0; in __udelay()
71 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay()
93 void udelay_masked(unsigned long usec) in udelay_masked() argument
95 return udelay(usec); in udelay_masked()
/rk3399_rockchip-uboot/arch/arm/cpu/arm926ejs/spear/
H A Dtimer.c70 void __udelay(unsigned long usec) in __udelay() argument
77 rndoff = (usec % 10) ? 1 : 0; in __udelay()
80 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay()
102 void udelay_masked(unsigned long usec) in udelay_masked() argument
104 return udelay(usec); in udelay_masked()
/rk3399_rockchip-uboot/board/armltd/integrator/
H A Dtimer.c103 void __udelay (unsigned long usec) in __udelay() argument
108 tmo = usec * CONFIG_SYS_HZ; in __udelay()
143 void udelay_masked (unsigned long usec) in udelay_masked() argument
145 udelay(usec); in udelay_masked()
/rk3399_rockchip-uboot/arch/arm/mach-at91/arm920t/
H A Dtimer.c62 void __udelay(unsigned long usec) in __udelay() argument
64 udelay_masked(usec); in __udelay()
91 void udelay_masked(unsigned long usec) in udelay_masked() argument
98 tmo *= usec; in udelay_masked()
/rk3399_rockchip-uboot/arch/xtensa/lib/
H A Dtime.c50 void __udelay(unsigned long usec) in __udelay() argument
57 lo = usec & ((1<<22)-1); in __udelay()
58 hi = usec >> 22UL; in __udelay()
/rk3399_rockchip-uboot/include/linux/
H A Ddelay.h10 void __udelay(unsigned long usec);
11 void udelay(unsigned long usec);
/rk3399_rockchip-uboot/arch/nds32/cpu/n1213/ag101/
H A Dtimer.c147 void __udelay(unsigned long usec) in __udelay() argument
152 long tmo = usec * (TIMER_CLOCK / 1000) / 1000; in __udelay()
154 long tmo = usec * ((CONFIG_SYS_CLK_FREQ / 2) / 1000) / 1000; in __udelay()
158 debug("%s(%lu)\n", __func__, usec); in __udelay()
/rk3399_rockchip-uboot/examples/api/
H A Dlibgenwrap.c29 void __udelay(unsigned long usec) in __udelay() argument
31 ub_udelay(usec); in __udelay()
/rk3399_rockchip-uboot/arch/powerpc/cpu/mpc85xx/
H A Dspl_minimal.c38 void udelay(unsigned long usec) in udelay() argument
41 u32 ticks = ticks_per_usec * usec; in udelay()
/rk3399_rockchip-uboot/arch/sh/lib/
H A Dtime_sh2.c77 void __udelay(unsigned long usec) in __udelay() argument
79 unsigned long end = get_usec() + usec; in __udelay()
/rk3399_rockchip-uboot/board/sysam/amcore/
H A Damcore.c48 void fudelay(int usec) in fudelay() argument
50 while (usec--) in fudelay()
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/s5p-common/
H A Dtimer.c101 void __udelay(unsigned long usec) in __udelay() argument
106 while ((int)(count_value - timer_get_us_down()) < (int)usec) in __udelay()
/rk3399_rockchip-uboot/arch/arm/mach-rmobile/
H A Dtimer.c60 void __udelay(unsigned long usec) in __udelay() argument
66 wait = (u64)((usec * CLK2MHZ(CONFIG_SYS_CPU_CLK)) >> 2); in __udelay()

123