Home
last modified time | relevance | path

Searched refs:tmo (Results 1 – 20 of 20) sorted by relevance

/u-boot/arch/arm/mach-nexell/
A Dtimer.c220 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 Dtimer.c130 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 Dtimer.c91 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 Dtimer.c63 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 Dtimer.c88 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 Ddram_helpers.c19 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 Dtimer.c106 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 Dtimer.c73 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 Dtimer.c68 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 Dsyscounter.c115 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 Dsun6i_p2wi.c33 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 Dsun8i_rsb.c26 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 Dmtk_i2c.c453 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 Dbnxt_dbg.h139 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 Dbnxt.c216 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 Dmt7620_spi.c65 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 Dsunxi_dw_hdmi.c69 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 Dsunxi_display.c88 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 Ddm9000x.c434 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 Dethoc.c470 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()

Completed in 63 milliseconds