| /rk3399_rockchip-uboot/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()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | misc.c | 17 ulong start = get_timer(0); in do_sleep() 43 while (get_timer(start) < delay) { in do_sleep() 70 start = get_timer(0); in do_timer() 73 ulong msecs = get_timer(start) * 1000 / CONFIG_SYS_HZ; in do_timer()
|
| H A D | sf.c | 76 return len / (max(get_timer(start_ms) / 1024, 1UL)); in bytes_per_second() 78 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() 448 test.base_ms = get_timer(0); in spi_flash_test()
|
| /rk3399_rockchip-uboot/arch/m68k/lib/ |
| H A D | time.c | 105 ulong get_timer(ulong base) in get_timer() function 155 ulong get_timer(ulong base) in get_timer() function 170 u32 start = get_timer(0); in wait_ticks() 171 while (get_timer(start) < ticks) ; in wait_ticks() 181 return get_timer(0); in get_ticks() 186 return get_timer(usec); in usec2ticks()
|
| /rk3399_rockchip-uboot/drivers/fpga/ |
| H A D | spartan2.c | 155 ts = get_timer (0); /* get current time */ in spartan2_sp_load() 159 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load() 182 ts = get_timer (0); /* get current time */ in spartan2_sp_load() 192 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load() 215 ts = get_timer (0); /* get current time */ in spartan2_sp_load() 224 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_sp_load() 341 ts = get_timer (0); /* get current time */ in spartan2_ss_load() 344 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_ss_load() 354 ts = get_timer (0); /* get current time */ in spartan2_ss_load() 358 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan2_ss_load() [all …]
|
| H A D | spartan3.c | 159 ts = get_timer (0); /* get current time */ in spartan3_sp_load() 163 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load() 186 ts = get_timer (0); /* get current time */ in spartan3_sp_load() 196 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load() 219 ts = get_timer (0); /* get current time */ in spartan3_sp_load() 230 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_sp_load() 347 ts = get_timer (0); /* get current time */ in spartan3_ss_load() 350 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_ss_load() 362 ts = get_timer (0); /* get current time */ in spartan3_ss_load() 366 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT) { /* check the time */ in spartan3_ss_load() [all …]
|
| H A D | virtex2.c | 211 ts = get_timer (0); in virtex2_ssm_load() 213 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_INIT) { in virtex2_ssm_load() 229 ts = get_timer (0); in virtex2_ssm_load() 232 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_INIT) { in virtex2_ssm_load() 285 ts = get_timer (0); in virtex2_ssm_load() 287 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_BUSY) { in virtex2_ssm_load() 318 ts = get_timer (0); in virtex2_ssm_load() 321 if (get_timer (ts) > CONFIG_SYS_FPGA_WAIT_CONFIG) { in virtex2_ssm_load()
|
| H A D | zynqpl.c | 166 ts = get_timer(0); in zynq_dma_transfer() 178 if (get_timer(ts) > CONFIG_SYS_FPGA_PROG_TIME) { in zynq_dma_transfer() 212 ts = get_timer(0); in zynq_dma_xfer_init() 214 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_dma_xfer_init() 225 ts = get_timer(0); in zynq_dma_xfer_init() 228 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_dma_xfer_init() 380 ts = get_timer(0); in zynq_load() 382 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_load() 460 ts = get_timer(0); in zynq_loadfs() 462 if (get_timer(ts) > CONFIG_SYS_FPGA_WAIT) { in zynq_loadfs()
|
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | omap_hsmmc.c | 199 start = get_timer(0); in mmc_init_stream() 201 if (get_timer(0) - start > MAX_RETRY_MS) { in mmc_init_stream() 210 start = get_timer(0); in mmc_init_stream() 212 if (get_timer(0) - start > MAX_RETRY_MS) { in mmc_init_stream() 233 start = get_timer(0); in omap_hsmmc_init_setup() 235 if (get_timer(0) - start > MAX_RETRY_MS) { in omap_hsmmc_init_setup() 241 start = get_timer(0); in omap_hsmmc_init_setup() 243 if (get_timer(0) - start > MAX_RETRY_MS) { in omap_hsmmc_init_setup() 264 start = get_timer(0); in omap_hsmmc_init_setup() 266 if (get_timer(0) - start > MAX_RETRY_MS) { in omap_hsmmc_init_setup() [all …]
|
| H A D | ftsdc010_mci.c | 62 for (ts = get_timer(0); get_timer(ts) < CFG_CMD_TIMEOUT; ) { in ftsdc010_send_cmd() 71 for (ts = get_timer(0); get_timer(ts) < CFG_CMD_TIMEOUT; ) { in ftsdc010_send_cmd() 132 for (ts = get_timer(0); get_timer(ts) < CFG_CMD_TIMEOUT; ) { in ftsdc010_wait() 295 for (ts = get_timer(0); get_timer(ts) < CFG_RST_TIMEOUT; ) { in ftsdc010_init()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | fb_common.c | 32 *start = get_timer(0); in timed_send_info() 34 ulong time = get_timer(*start); in timed_send_info() 37 *start = get_timer(0); in timed_send_info()
|
| /rk3399_rockchip-uboot/arch/arm/mach-bcm283x/ |
| H A D | mbox.c | 18 ulong endtime = get_timer(0) + TIMEOUT; in bcm2835_mbox_call_raw() 21 debug("time: %lu timeout: %lu\n", get_timer(0), endtime); in bcm2835_mbox_call_raw() 34 if (get_timer(0) >= endtime) { in bcm2835_mbox_call_raw() 47 if (get_timer(0) >= endtime) { in bcm2835_mbox_call_raw() 65 if (get_timer(0) >= endtime) { in bcm2835_mbox_call_raw()
|
| /rk3399_rockchip-uboot/arch/microblaze/cpu/ |
| H A D | timer.c | 19 ulong get_timer (ulong base) in get_timer() function 31 i = get_timer(0); in __udelay() 32 while ((get_timer(0) - i) < (usec / 1000)) in __udelay() 105 return get_timer(0); in get_ticks()
|
| /rk3399_rockchip-uboot/drivers/i2c/muxes/ |
| H A D | i2c-arb-gpio-challenge.c | 46 start = get_timer(0); in i2c_arbitrator_select() 58 start_retry = get_timer(0); in i2c_arbitrator_select() 59 while (get_timer(start_retry) < priv->wait_retry_ms) { in i2c_arbitrator_select() 78 } while (get_timer(start) < priv->wait_free_ms); in i2c_arbitrator_select() 81 printf("I2C: Could not claim bus, timeout %lu\n", get_timer(start)); in i2c_arbitrator_select()
|
| /rk3399_rockchip-uboot/drivers/power/regulator/ |
| H A D | tps65090_regulator.c | 96 start = get_timer(0); in tps65090_fet_set_enable() 102 if (get_timer(start) > 100) in tps65090_fet_set_enable() 111 __func__, fet_id, get_timer(start), loops); in tps65090_fet_set_enable() 114 __func__, fet_id, get_timer(start), loops); in tps65090_fet_set_enable()
|
| /rk3399_rockchip-uboot/arch/arm/mach-at91/ |
| H A D | clock.c | 78 start_time = get_timer(0); in at91_upll_clk_enable() 81 tmp_time = get_timer(0); in at91_upll_clk_enable() 96 start_time = get_timer(0); in at91_upll_clk_disable() 99 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()
|
| /rk3399_rockchip-uboot/arch/arm/mach-tegra/tegra210/ |
| H A D | xusb-padctl.c | 279 start = get_timer(0); in pcie_phy_enable() 281 while (get_timer(start) < 250) { in pcie_phy_enable() 298 start = get_timer(0); in pcie_phy_enable() 300 while (get_timer(start) < 250) { in pcie_phy_enable() 316 start = get_timer(0); in pcie_phy_enable() 318 while (get_timer(start) < 250) { in pcie_phy_enable() 335 start = get_timer(0); in pcie_phy_enable() 337 while (get_timer(start) < 250) { in pcie_phy_enable() 353 start = get_timer(0); in pcie_phy_enable() 355 while (get_timer(start) < 250) { in pcie_phy_enable()
|
| /rk3399_rockchip-uboot/drivers/power/ |
| H A D | charge_animation.c | 280 get_timer(priv->auto_screen_off_timeout) > in check_key_press() 318 get_timer(priv->suspend_delay_timeout) <= SYSTEM_SUSPEND_DELAY_MS) in system_suspend_enter() 358 priv->suspend_delay_timeout = get_timer(0); in system_suspend_enter() 694 charge_start = get_timer(0); in charge_animation_show() 695 delta = get_timer(0); in charge_animation_show() 704 if (!first_poll_fg && get_timer(delta) < FUEL_GAUGE_POLL_MS) in charge_animation_show() 707 delta = get_timer(0); in charge_animation_show() 788 debug_start = get_timer(0); in charge_animation_show() 789 if (get_timer(debug_start) > 30000) { in charge_animation_show() 790 debug_start = get_timer(0); in charge_animation_show() [all …]
|
| /rk3399_rockchip-uboot/lib/dhry/ |
| H A D | cmd_dhry.c | 21 start = get_timer(0); in do_dhry() 23 duration = get_timer(start); in do_dhry()
|
| /rk3399_rockchip-uboot/drivers/i2c/ |
| H A D | designware_i2c.c | 186 unsigned long start_time_bb = get_timer(0); in i2c_wait_for_bb() 192 if (get_timer(start_time_bb) > (unsigned long)(I2C_BYTE_TO_BB)) in i2c_wait_for_bb() 217 ulong start_stop_det = get_timer(0); in i2c_xfer_finish() 223 } else if (get_timer(start_stop_det) > I2C_STOPDET_TO) { in i2c_xfer_finish() 276 start_time_rx = get_timer(0); in __dw_i2c_read() 296 start_time_rx = get_timer(0); in __dw_i2c_read() 298 } else if (get_timer(start_time_rx) > I2C_BYTE_TO) { in __dw_i2c_read() 344 start_time_tx = get_timer(0); in __dw_i2c_write() 354 start_time_tx = get_timer(0); in __dw_i2c_write() 356 } else if (get_timer(start_time_tx) > (nb * I2C_BYTE_TO)) { in __dw_i2c_write()
|
| /rk3399_rockchip-uboot/board/freescale/m5253demo/ |
| H A D | flash.c | 221 start = get_timer(0); in flash_erase() 235 start = get_timer(0); in flash_erase() 243 if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) { in flash_erase() 273 start = get_timer(0); in flash_erase() 295 if (get_timer(start) > in flash_erase() 426 start = get_timer(0); in write_word() 431 if (get_timer(start) > CONFIG_SYS_FLASH_WRITE_TOUT) { in write_word()
|
| /rk3399_rockchip-uboot/arch/arm/cpu/sa1100/ |
| H A D | timer.c | 16 ulong get_timer (ulong base) in get_timer() function 60 return get_timer(0); in get_ticks()
|
| /rk3399_rockchip-uboot/arch/arm/mach-at91/arm920t/ |
| H A D | clock.c | 166 start_time = get_timer(0); in at91_pllb_clk_enable() 169 tmp_time = get_timer(0); in at91_pllb_clk_enable() 184 start_time = get_timer(0); in at91_pllb_clk_disable() 187 tmp_time = get_timer(0); in at91_pllb_clk_disable()
|
| /rk3399_rockchip-uboot/arch/arm/mach-omap2/omap3/ |
| H A D | am35x_musb.c | 27 unsigned long start = get_timer(0); in am35x_musb_phy_power() 41 if (get_timer(start) > CONFIG_SYS_HZ / 10) { in am35x_musb_phy_power()
|