/u-boot/arch/arm/cpu/sa1100/ |
A D | timer.c | 29 ulong tmo; in __udelay() local 34 tmo = usec / 1000; in __udelay() 35 tmo *= CONFIG_SYS_HZ; in __udelay() 36 tmo /= 1000; in __udelay() 38 tmo = usec * CONFIG_SYS_HZ; in __udelay() 39 tmo /= (1000*1000); in __udelay() 42 endtime = get_timer_masked () + tmo; in __udelay()
|
/u-boot/arch/arm/mach-nexell/ |
A D | timer.c | 220 unsigned long tmo, tmp; in __udelay() local 230 tmo = usec / 1000; in __udelay() 232 tmo *= TIMER_FREQ; in __udelay() 234 tmo /= 1000; in __udelay() 238 tmo /= (1000 * 1000); in __udelay() 250 tmo += tmp; in __udelay() 257 } while (tmo > tmp); in __udelay() 269 tmo = usec / 1000; in udelay_masked() 271 tmo *= TIMER_FREQ; in udelay_masked() 273 tmo /= 1000; in udelay_masked() [all …]
|
/u-boot/board/armltd/integrator/ |
A D | timer.c | 130 ulong tmo, tmp; in __udelay() local 133 tmo = usec * CONFIG_SYS_HZ; in __udelay() 134 tmo /= (1000000L); in __udelay() 137 tmo += tmp; /* form target timestamp */ in __udelay() 139 while (get_timer_masked () < tmo) {/* loop till event */ in __udelay()
|
/u-boot/arch/arm/mach-at91/arm920t/ |
A D | timer.c | 91 u32 tmo; in __udelay() local 95 tmo = CONFIG_SYS_HZ_CLOCK / 1000; in __udelay() 96 tmo *= usec; in __udelay() 97 tmo /= 1000; in __udelay() 99 endtime = get_timer_raw() + tmo; in __udelay()
|
/u-boot/arch/arm/mach-omap2/ |
A D | timer.c | 62 long tmo = usec * (TIMER_CLOCK / 1000) / 1000; in __udelay() local 65 while (tmo > 0) { in __udelay() 68 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; in __udelay() 70 tmo -= now - last; in __udelay()
|
/u-boot/arch/nds32/cpu/n1213/ag101/ |
A D | timer.c | 156 long tmo = usec * (TIMER_CLOCK / 1000) / 1000; in __udelay() local 158 long tmo = usec * ((CONFIG_SYS_CLK_FREQ / 2) / 1000) / 1000; in __udelay() local 163 while (tmo > 0) { in __udelay() 166 tmo -= TIMER_LOAD_VAL + last - now; in __udelay() 168 tmo -= last - now; in __udelay()
|
/u-boot/arch/arm/cpu/armv7/sunxi/ |
A D | timer.c | 87 long tmo = USEC_TO_COUNT(usec); in __udelay() local 90 while (tmo > 0) { in __udelay() 93 tmo -= now - last; in __udelay() 95 tmo -= TIMER_LOAD_VAL - last + now; in __udelay()
|
/u-boot/arch/arm/cpu/armv7/ls102xa/ |
A D | timer.c | 106 unsigned long tmo; in __udelay() local 109 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay() 111 while ((get_ticks() - start) < tmo) in __udelay()
|
/u-boot/arch/arm/cpu/armv7/vf610/ |
A D | timer.c | 73 ulong tmo; in __udelay() local 76 tmo = us_to_tick(usec); /* convert usecs to ticks */ in __udelay() 77 while ((get_ticks() - start) < tmo) in __udelay()
|
/u-boot/arch/arm/mach-sunxi/ |
A D | p2wi.c | 47 unsigned long tmo = timer_get_us() + 1000000; in p2wi_change_to_p2wi_mode() local 56 if (timer_get_us() > tmo) in p2wi_change_to_p2wi_mode() 66 unsigned long tmo = timer_get_us() + 1000000; in p2wi_await_trans() local 80 if (timer_get_us() > tmo) { in p2wi_await_trans()
|
A D | dram_helpers.c | 19 unsigned long tmo = timer_get_us() + 1000000; in mctl_await_completion() local 22 if (timer_get_us() > tmo) in mctl_await_completion()
|
A D | rsb.c | 79 unsigned long tmo = timer_get_us() + 1000000; in rsb_await_trans() local 97 if (timer_get_us() > tmo) { in rsb_await_trans() 111 unsigned long tmo = timer_get_us() + 1000000; in rsb_set_device_mode() local 117 if (timer_get_us() > tmo) in rsb_set_device_mode()
|
/u-boot/drivers/net/ |
A D | cs8900.c | 86 int tmo; in cs8900_reset() local 96 tmo = get_timer(0) + 1 * CONFIG_SYS_HZ; in cs8900_reset() 98 PP_SelfSTAT_InitD) == 0) && tmo < get_timer(0)) in cs8900_reset() 206 int tmo; in cs8900_send() local 219 for (tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in cs8900_send() 220 get_timer(0) < tmo;) in cs8900_send() 233 tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in cs8900_send() 235 if (get_timer(0) >= tmo) in cs8900_send()
|
A D | dm9000x.c | 406 int tmo; in dm9000_send() local 427 tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in dm9000_send() 430 if (get_timer(0) >= tmo) { in dm9000_send()
|
A D | ne2000_base.c | 746 int tmo; in ne2k_send() local 753 tmo = get_timer (0) + TOUT * CONFIG_SYS_HZ; in ne2k_send() 760 if (get_timer (0) >= tmo) { in ne2k_send()
|
A D | lan91c96.c | 167 int tmo = get_timer (0) + timeout * CONFIG_SYS_HZ; in poll4int() local 174 if (get_timer (0) >= tmo) { in poll4int()
|
A D | ethoc.c | 470 int tmo; in ethoc_send_common() local 497 tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in ethoc_send_common() 508 if (get_timer(0) >= tmo) { in ethoc_send_common()
|
A D | smc91111.c | 241 int tmo = get_timer (0) + timeout * CONFIG_SYS_HZ; in poll4int() local 248 if (get_timer (0) >= tmo) { in poll4int()
|
/u-boot/arch/arm/mach-imx/ |
A D | syscounter.c | 106 ulong tmo; in __udelay() local 108 tmo = us_to_tick(usec); in __udelay() 109 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
|
/u-boot/arch/arm/cpu/armv7/stv0991/ |
A D | timer.c | 68 ulong tmo; in __udelay() local 76 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay() 78 while ((ulong) (get_timer_masked() - start) < tmo) in __udelay()
|
/u-boot/arch/arm/cpu/arm926ejs/spear/ |
A D | timer.c | 78 ulong tmo; in __udelay() local 86 tmo = ((usec / 10) + rndoff) * tenudelcnt; in __udelay() 88 while ((ulong) (get_timer_masked() - start) < tmo) in __udelay()
|
/u-boot/arch/arm/cpu/arm926ejs/mx27/ |
A D | timer.c | 154 ulong tmo; in __udelay() local 156 tmo = us_to_tick(usec); in __udelay() 157 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
|
/u-boot/drivers/spi/ |
A D | mt7620_spi.c | 65 u32 rate, prescale, freq, tmo, cfg; in mt7620_spi_master_setup() local 77 tmo = DIV_ROUND_UP(8 * 1000000, freq); in mt7620_spi_master_setup() 80 ms->wait_us = POLLING_SCALE * tmo + POLLING_FRAC_USEC; in mt7620_spi_master_setup()
|
/u-boot/drivers/video/sunxi/ |
A D | sunxi_dw_hdmi.c | 64 unsigned long tmo; in sunxi_dw_hdmi_phy_init() local 87 tmo = timer_get_us() + 2000; in sunxi_dw_hdmi_phy_init() 89 if (timer_get_us() > tmo) { in sunxi_dw_hdmi_phy_init()
|
A D | sunxi_display.c | 82 unsigned long tmo = timer_get_us() + 200000; in await_completion() local 85 if (timer_get_us() > tmo) { in await_completion() 99 unsigned long tmo = timer_get_us() + hpd_delay * 1000; in sunxi_hdmi_hpd_detect() local 127 while (timer_get_us() < tmo) { in sunxi_hdmi_hpd_detect()
|