| /openbmc/u-boot/test/ |
| H A D | time_ut.c | 16 base = get_timer(0); in test_get_timer() 17 start = get_timer(0); in test_get_timer() 20 next = get_timer(0); in test_get_timer() 35 diff = get_timer(base); in test_get_timer() 85 start = get_timer(0); in test_time_comparison() 87 while (get_timer(start) < 1000) in test_time_comparison() 106 start = get_timer(0); in test_udelay() 109 delta = get_timer(start); in test_udelay()
|
| /openbmc/u-boot/drivers/fpga/ |
| H A D | spartan2.c | 154 ts = get_timer (0); /* get current time */ in spartan2_sp_load() 158 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load() 181 ts = get_timer (0); /* get current time */ in spartan2_sp_load() 191 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load() 214 ts = get_timer (0); /* get current time */ in spartan2_sp_load() 223 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load() 340 ts = get_timer (0); /* get current time */ in spartan2_ss_load() 343 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_ss_load() 353 ts = get_timer (0); /* get current time */ in spartan2_ss_load() 357 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_ss_load() [all …]
|
| H A D | spartan3.c | 158 ts = get_timer (0); /* get current time */ in spartan3_sp_load() 162 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load() 185 ts = get_timer (0); /* get current time */ in spartan3_sp_load() 195 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load() 218 ts = get_timer (0); /* get current time */ in spartan3_sp_load() 229 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load() 346 ts = get_timer (0); /* get current time */ in spartan3_ss_load() 349 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_ss_load() 361 ts = get_timer (0); /* get current time */ in spartan3_ss_load() 365 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_ss_load() [all …]
|
| H A D | virtex2.c | 210 ts = get_timer (0); in virtex2_ssm_load() 212 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_INIT) { in virtex2_ssm_load() 228 ts = get_timer (0); in virtex2_ssm_load() 231 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_INIT) { in virtex2_ssm_load() 284 ts = get_timer (0); in virtex2_ssm_load() 286 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_BUSY) { in virtex2_ssm_load() 317 ts = get_timer (0); in virtex2_ssm_load() 320 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_CONFIG) { in virtex2_ssm_load()
|
| H A D | zynqpl.c | 167 ts = get_timer(0); in zynq_dma_transfer() 179 if (get_timer(ts) > CONFIG_SYS_FPGA_PROG_TIME) { in zynq_dma_transfer() 228 ts = get_timer(0); in zynq_dma_xfer_init() 230 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_dma_xfer_init() 241 ts = get_timer(0); in zynq_dma_xfer_init() 244 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_dma_xfer_init() 396 ts = get_timer(0); in zynq_load() 398 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_load() 476 ts = get_timer(0); in zynq_loadfs() 478 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_loadfs()
|
| /openbmc/u-boot/arch/m68k/lib/ |
| H A D | time.c | 104 ulong get_timer(ulong base) in get_timer() function 154 ulong get_timer(ulong base) in get_timer() function 169 u32 start = get_timer(0); in wait_ticks() 170 while (get_timer(start) < ticks) ; in wait_ticks() 180 return get_timer(0); in get_ticks() 185 return get_timer(usec); in usec2ticks()
|
| /openbmc/u-boot/cmd/ |
| H A D | misc.c | 16 ulong start = get_timer(0); in do_sleep() 42 while (get_timer(start) < delay) { in do_sleep() 69 start = get_timer(0); in do_timer() 72 ulong msecs = get_timer(start) * 1000 / CONFIG_SYS_HZ; in do_timer()
|
| H A D | sf.c | 75 return len / (max(get_timer(start_ms) / 1024, 1UL)); in bytes_per_second() 77 return 1024 * len / max(get_timer(start_ms), 1UL); in bytes_per_second() 219 const ulong start_time = get_timer(0); in spi_flash_update() 228 ulong last_update = get_timer(0); in spi_flash_update() 232 if (get_timer(last_update) > 100) { in spi_flash_update() 237 last_update = get_timer(0); in spi_flash_update() 252 delta = get_timer(start_time); in spi_flash_update() 423 test->time_ms[test->stage] = get_timer(test->base_ms); in spi_test_next_stage() 425 test->base_ms = get_timer(0); in spi_test_next_stage() 447 test.base_ms = get_timer(0); in spi_flash_test()
|
| /openbmc/u-boot/arch/arm/mach-bcm283x/ |
| H A D | mbox.c | 17 ulong endtime = get_timer(0) + TIMEOUT; in bcm2835_mbox_call_raw() 20 debug("time: %lu timeout: %lu\n", get_timer(0), endtime); in bcm2835_mbox_call_raw() 33 if (get_timer(0) >= endtime) { in bcm2835_mbox_call_raw() 46 if (get_timer(0) >= endtime) { in bcm2835_mbox_call_raw() 64 if (get_timer(0) >= endtime) { in bcm2835_mbox_call_raw()
|
| /openbmc/u-boot/arch/microblaze/cpu/ |
| H A D | timer.c | 18 ulong get_timer (ulong base) in get_timer() function 30 i = get_timer(0); in __udelay() 31 while ((get_timer(0) - i) < (usec / 1000)) in __udelay() 108 return get_timer(0); in get_ticks()
|
| /openbmc/u-boot/drivers/i2c/muxes/ |
| H A D | i2c-arb-gpio-challenge.c | 45 start = get_timer(0); in i2c_arbitrator_select() 57 start_retry = get_timer(0); in i2c_arbitrator_select() 58 while (get_timer(start_retry) < priv->wait_retry_ms) { in i2c_arbitrator_select() 77 } while (get_timer(start) < priv->wait_free_ms); in i2c_arbitrator_select() 80 printf("I2C: Could not claim bus, timeout %lu\n", get_timer(start)); in i2c_arbitrator_select()
|
| /openbmc/u-boot/drivers/power/regulator/ |
| H A D | tps65090_regulator.c | 95 start = get_timer(0); in tps65090_fet_set_enable() 101 if (get_timer(start) > 100) in tps65090_fet_set_enable() 110 __func__, fet_id, get_timer(start), loops); in tps65090_fet_set_enable() 113 __func__, fet_id, get_timer(start), loops); in tps65090_fet_set_enable()
|
| /openbmc/u-boot/arch/arm/mach-at91/ |
| H A D | clock.c | 77 start_time = get_timer(0); in at91_upll_clk_enable() 80 tmp_time = get_timer(0); in at91_upll_clk_enable() 95 start_time = get_timer(0); in at91_upll_clk_disable() 98 tmp_time = get_timer(0); in at91_upll_clk_disable()
|
| H A D | phy.c | 24 unsigned long start = get_timer(0); in at91_phy_reset() 48 if (get_timer(start) >= timeout) { in at91_phy_reset()
|
| /openbmc/u-boot/arch/arm/mach-tegra/tegra210/ |
| H A D | xusb-padctl.c | 278 start = get_timer(0); in pcie_phy_enable() 280 while (get_timer(start) < 250) { in pcie_phy_enable() 297 start = get_timer(0); in pcie_phy_enable() 299 while (get_timer(start) < 250) { in pcie_phy_enable() 315 start = get_timer(0); in pcie_phy_enable() 317 while (get_timer(start) < 250) { in pcie_phy_enable() 334 start = get_timer(0); in pcie_phy_enable() 336 while (get_timer(start) < 250) { in pcie_phy_enable() 352 start = get_timer(0); in pcie_phy_enable() 354 while (get_timer(start) < 250) { in pcie_phy_enable()
|
| /openbmc/u-boot/drivers/i2c/ |
| H A D | designware_i2c.c | 190 unsigned long start_time_bb = get_timer(0); in i2c_wait_for_bb() 196 if (get_timer(start_time_bb) > (unsigned long)(I2C_BYTE_TO_BB)) in i2c_wait_for_bb() 221 ulong start_stop_det = get_timer(0); in i2c_xfer_finish() 227 } else if (get_timer(start_stop_det) > I2C_STOPDET_TO) { in i2c_xfer_finish() 280 start_time_rx = get_timer(0); in __dw_i2c_read() 300 start_time_rx = get_timer(0); in __dw_i2c_read() 302 } else if (get_timer(start_time_rx) > I2C_BYTE_TO) { in __dw_i2c_read() 348 start_time_tx = get_timer(0); in __dw_i2c_write() 358 start_time_tx = get_timer(0); in __dw_i2c_write() 360 } else if (get_timer(start_time_tx) > (nb * I2C_BYTE_TO)) { in __dw_i2c_write()
|
| /openbmc/u-boot/board/freescale/m5253demo/ |
| H A D | flash.c | 220 start = get_timer(0); in flash_erase() 234 start = get_timer(0); in flash_erase() 242 if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) { in flash_erase() 272 start = get_timer(0); in flash_erase() 294 if (get_timer(start) > in flash_erase() 425 start = get_timer(0); in write_word() 430 if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) { in write_word()
|
| /openbmc/u-boot/arch/arm/mach-at91/arm920t/ |
| H A D | clock.c | 165 start_time = get_timer(0); in at91_pllb_clk_enable() 168 tmp_time = get_timer(0); in at91_pllb_clk_enable() 183 start_time = get_timer(0); in at91_pllb_clk_disable() 186 tmp_time = get_timer(0); in at91_pllb_clk_disable()
|
| /openbmc/u-boot/lib/dhry/ |
| H A D | cmd_dhry.c | 20 start = get_timer(0); in do_dhry() 22 duration = get_timer(start); in do_dhry()
|
| /openbmc/u-boot/arch/arm/cpu/sa1100/ |
| H A D | timer.c | 20 ulong get_timer (ulong base) in get_timer() function 54 return get_timer(0); in get_ticks()
|
| /openbmc/u-boot/drivers/net/ |
| H A D | cs8900.c | 94 tmo = get_timer(0) + 1 * CONFIG_SYS_HZ; in cs8900_reset() 96 PP_SelfSTAT_InitD) == 0) && tmo < get_timer(0)) in cs8900_reset() 217 for (tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in cs8900_send() 218 get_timer(0) < tmo;) in cs8900_send() 231 tmo = get_timer(0) + 5 * CONFIG_SYS_HZ; in cs8900_send() 233 if (get_timer(0) >= tmo) in cs8900_send()
|
| /openbmc/u-boot/arch/arm/mach-omap2/omap3/ |
| H A D | am35x_musb.c | 26 unsigned long start = get_timer(0); in am35x_musb_phy_power() 40 if (get_timer(start) > CONFIG_SYS_HZ / 10) { in am35x_musb_phy_power()
|
| /openbmc/u-boot/arch/arm/cpu/arm920t/imx/ |
| H A D | timer.c | 44 ulong get_timer (ulong base) in get_timer() function 66 return get_timer(0); in get_ticks()
|
| /openbmc/u-boot/drivers/usb/eth/ |
| H A D | lan7x.h | 132 unsigned long start = get_timer(0); in lan7x_wait_for_bit() 143 if (get_timer(start) > timeout_ms) in lan7x_wait_for_bit() 174 unsigned long start = get_timer(0); in lan7x_mdio_wait_for_bit() 185 if (get_timer(start) > timeout_ms) in lan7x_mdio_wait_for_bit()
|
| /openbmc/u-boot/include/ |
| H A D | wait_bit.h | 44 unsigned long start = get_timer(0); \ 55 if (get_timer(start) > timeout_ms) \
|