Home
last modified time | relevance | path

Searched refs:get_timer (Results 1 – 25 of 211) sorted by relevance

123456789

/openbmc/u-boot/test/
H A Dtime_ut.c16 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 Dspartan2.c154 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 Dspartan3.c158 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 Dvirtex2.c210 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 Dzynqpl.c167 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 Dtime.c104 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 Dmisc.c16 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 Dsf.c75 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 Dmbox.c17 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 Dtimer.c18 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 Di2c-arb-gpio-challenge.c45 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/arch/arm/mach-tegra/tegra210/
H A Dxusb-padctl.c278 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/power/regulator/
H A Dtps65090_regulator.c95 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 Dclock.c77 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()
/openbmc/u-boot/drivers/i2c/
H A Ddesignware_i2c.c190 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()
H A Ds3c24x0_i2c.c41 ulong start_time = get_timer(0); in WaitForXfer()
47 } while (get_timer(start_time) < I2C_TIMEOUT_MS); in WaitForXfer()
112 ulong start_time = get_timer(0); in i2c_transfer()
121 if (get_timer(start_time) > I2C_TIMEOUT_MS) in i2c_transfer()
286 start_time = get_timer(0); in s3c24x0_i2c_xfer()
288 if (get_timer(start_time) > I2C_TIMEOUT_MS) { in s3c24x0_i2c_xfer()
H A Drk_i2c.c113 start = get_timer(0); in rk_i2c_send_start_bit()
119 if (get_timer(start) > I2C_TIMEOUT_MS) { in rk_i2c_send_start_bit()
141 start = get_timer(0); in rk_i2c_send_stop_bit()
147 if (get_timer(start) > I2C_TIMEOUT_MS) { in rk_i2c_send_stop_bit()
221 start = get_timer(0); in rk_i2c_read()
231 if (get_timer(start) > I2C_TIMEOUT_MS) { in rk_i2c_read()
311 start = get_timer(0); in rk_i2c_write()
321 if (get_timer(start) > I2C_TIMEOUT_MS) { in rk_i2c_write()
/openbmc/u-boot/board/freescale/m5253demo/
H A Dflash.c220 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 Dclock.c165 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/drivers/net/
H A Dcs8900.c94 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()
H A Dftmac110.c81 for (ts = get_timer(0); get_timer(ts) < CFG_MDIORD_TIMEOUT; ) { in mdio_read()
110 for (ts = get_timer(0); get_timer(ts) < CFG_MDIOWR_TIMEOUT; ) { in mdio_write()
146 ts = get_timer(0); in ftmac110_phyqry()
154 } while (get_timer(ts) < CFG_LINKUP_TIMEOUT); in ftmac110_phyqry()
201 for (i = get_timer(0); get_timer(i) < 1000; ) { in ftmac110_reset()
/openbmc/u-boot/drivers/input/
H A Dtegra-kbc.c135 get_timer(priv->last_poll_ms) < KBC_REPEAT_RATE_MS) in check_for_keys()
137 priv->last_poll_ms = get_timer(0); in check_for_keys()
162 elapsed_time = get_timer(priv->start_time_ms); in kbd_wait_for_fifo_init()
251 priv->start_time_ms = get_timer(0); in tegra_kbc_open()
252 priv->last_poll_ms = get_timer(0); in tegra_kbc_open()
/openbmc/u-boot/drivers/usb/eth/
H A Dlan7x.h132 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/drivers/video/rockchip/
H A Drk_edp.c119 start = get_timer(0); in rk_edp_init_analog_func()
155 start = get_timer(0); in rk_edp_aux_enable()
159 } while (get_timer(start) < 20); in rk_edp_aux_enable()
168 start = get_timer(0); in rk_edp_is_aux_reply()
170 if (get_timer(start) > 10) in rk_edp_is_aux_reply()
643 start = get_timer(0); in rk_edp_hw_link_training()
648 } while (get_timer(start) < 10); in rk_edp_hw_link_training()
816 start = get_timer(0); in rk_edp_is_video_stream_clock_on()
834 } while (get_timer(start) < 100); in rk_edp_is_video_stream_clock_on()
844 start = get_timer(0); in rk_edp_is_video_stream_on()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Domap_hsmmc.c280 start = get_timer(0); in mmc_init_stream()
291 start = get_timer(0); in mmc_init_stream()
821 start = get_timer(0); in omap_hsmmc_init_setup()
829 start = get_timer(0); in omap_hsmmc_init_setup()
864 start = get_timer(0); in omap_hsmmc_init_setup()
913 start = get_timer(0); in mmc_reset_controller_fsm()
920 start = get_timer(0); in mmc_reset_controller_fsm()
1064 start = get_timer(0);
1073 start = get_timer(0);
1148 start = get_timer(0);
[all …]

123456789