| /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 = CFG_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 | 63 long tmo = usec * (TIMER_CLOCK / 1000) / 1000; in __udelay() local 66 while (tmo > 0) { in __udelay() 69 tmo -= TIMER_OVERFLOW_VAL - last + now + 1; in __udelay() 71 tmo -= now - last; in __udelay()
|
| /u-boot/arch/arm/mach-sunxi/ |
| A D | timer.c | 88 long tmo = USEC_TO_COUNT(usec); in __udelay() local 91 while (tmo > 0) { in __udelay() 94 tmo -= now - last; in __udelay() 96 tmo -= TIMER_LOAD_VAL - last + now; in __udelay()
|
| 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()
|
| /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/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/mach-imx/ |
| A D | syscounter.c | 115 ulong tmo; in __udelay() local 117 tmo = us_to_tick(usec); in __udelay() 118 tmp = get_ticks() + tmo; /* get current timestamp */ in __udelay()
|
| /u-boot/drivers/i2c/ |
| A D | sun6i_p2wi.c | 33 unsigned long tmo = timer_get_us() + 1000000; in sun6i_p2wi_await_trans() local 47 if (timer_get_us() > tmo) { in sun6i_p2wi_await_trans() 89 unsigned long tmo = timer_get_us() + 1000000; in sun6i_p2wi_change_to_p2wi_mode() local 98 if (timer_get_us() > tmo) in sun6i_p2wi_change_to_p2wi_mode()
|
| A D | sun8i_rsb.c | 26 unsigned long tmo = timer_get_us() + 1000000; in sun8i_rsb_await_trans() local 44 if (timer_get_us() > tmo) { in sun8i_rsb_await_trans() 116 unsigned long tmo = timer_get_us() + 1000000; in sun8i_rsb_set_device_mode() local 122 if (timer_get_us() > tmo) in sun8i_rsb_set_device_mode()
|
| A D | mtk_i2c.c | 453 bool tmo = false; in mtk_i2c_do_transfer() local 571 tmo = false; in mtk_i2c_do_transfer() 579 tmo = true; in mtk_i2c_do_transfer() 588 if (!tmo && trans_error != 0) { in mtk_i2c_do_transfer() 589 if (tmo) { in mtk_i2c_do_transfer()
|
| /u-boot/drivers/net/bnxt/ |
| A D | bnxt_dbg.h | 139 void print_fw_ver(struct hwrm_ver_get_output *resp, u32 tmo) in print_fw_ver() argument 150 printf(" cmd timeout : %d\n", tmo); in print_fw_ver() 256 #define print_fw_ver(resp, tmo) argument 267 void dump_hwrm_req(struct bnxt *bp, const char *func, u32 len, u32 tmo) in dump_hwrm_req() argument 271 len, tmo); in dump_hwrm_req() 519 void dbg_link_state(struct bnxt *bp, u32 tmo) in dbg_link_state() argument 522 printf(" Link wait time : %d ms\n", tmo); in dbg_link_state() 532 #define dbg_link_state(bp, tmo) argument
|
| A D | bnxt.c | 216 static int wait_resp(struct bnxt *bp, u32 tmo, u16 len, const char *func) in wait_resp() argument 222 u32 wait_cnt = HWRM_CMD_DEFAULT_MULTIPLAYER((u32)tmo); in wait_resp() 243 dbg_hw_cmd(bp, func, len, resp_len, tmo, ret); in wait_resp() 1318 static int set_phy_link(struct bnxt *bp, u32 tmo) in set_phy_link() argument 1326 dbg_link_state(bp, tmo); in set_phy_link()
|
| /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 | 69 unsigned long tmo; in sunxi_dw_hdmi_phy_init() local 92 tmo = timer_get_us() + 2000; in sunxi_dw_hdmi_phy_init() 94 if (timer_get_us() > tmo) { in sunxi_dw_hdmi_phy_init()
|
| A D | sunxi_display.c | 88 unsigned long tmo = timer_get_us() + 200000; in await_completion() local 91 if (timer_get_us() > tmo) { in await_completion() 105 unsigned long tmo = timer_get_us() + hpd_delay * 1000; in sunxi_hdmi_hpd_detect() local 133 while (timer_get_us() < tmo) { in sunxi_hdmi_hpd_detect()
|
| /u-boot/drivers/net/ |
| A D | dm9000x.c | 434 int tmo; in dm9000_send_common() local 454 tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in dm9000_send_common() 457 if (get_timer(0) >= tmo) { in dm9000_send_common()
|
| 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()
|