/u-boot/include/linux/ |
H A D | iopoll.h | 20 * @timeout_us: Timeout in us, 0 means never timeout 29 #define read_poll_timeout(op, val, cond, sleep_us, timeout_us, args...) \ 31 unsigned long timeout = timer_get_us() + timeout_us; \ 36 if (timeout_us && time_after(timer_get_us(), timeout)) { \ 46 #define readx_poll_sleep_timeout(op, addr, val, cond, sleep_us, timeout_us) \ 47 read_poll_timeout(op, val, cond, sleep_us, timeout_us, addr) 49 #define readl_poll_sleep_timeout(addr, val, cond, sleep_us, timeout_us) \ 50 readx_poll_sleep_timeout(readl, addr, val, cond, sleep_us, timeout_us) 52 #define readx_poll_timeout(op, addr, val, cond, timeout_us) \ 53 read_poll_timeout(op, val, cond, false, timeout_us, add [all...] |
/u-boot/include/ |
H A D | mailbox.h | 130 * This function will wait (up to the specified @timeout_us) for a message to 140 * @timeout_us: The maximum time to wait for a message to be available, in 145 int mbox_recv(struct mbox_chan *chan, void *data, ulong timeout_us);
|
H A D | phy.h | 292 * @timeout_us: Timeout in us, 0 means never timeout 296 * be called from atomic context if sleep_us or timeout_us are used. 299 sleep_us, timeout_us, sleep_before_read) \ 302 sleep_us, timeout_us, \
|
H A D | mmc.h | 505 * @timeout_us: timeout in us 508 int (*wait_dat0)(struct udevice *dev, int state, int timeout_us); 554 int mmc_wait_dat0(struct mmc *mmc, int state, int timeout_us); 573 int (*wait_dat0)(struct mmc *mmc, int state, int timeout_us);
|
/u-boot/drivers/mailbox/ |
H A D | mailbox-uclass.c | 127 int mbox_recv(struct mbox_chan *chan, void *data, ulong timeout_us) argument 133 debug("%s(chan=%p, data=%p, timeout_us=%ld)\n", __func__, chan, data, 134 timeout_us); 138 * Account for partial us ticks, but if timeout_us is 0, ensure we 141 if (timeout_us) 142 timeout_us++; 148 if ((timer_get_us() - start_time) >= timeout_us)
|
/u-boot/drivers/firmware/scmi/ |
H A D | mailbox_agent.c | 26 * @timeout_us: Timeout in microseconds for the mailbox transfer 31 ulong timeout_us; member in struct:scmi_mbox_channel 61 ret = mbox_recv(&chan->mbox, chan->smt.buf, chan->timeout_us); 91 chan->timeout_us = TIMEOUT_US_10MS;
|
/u-boot/drivers/watchdog/ |
H A D | mtk_wdt.c | 78 u64 timeout_us; local 99 timeout_us = timeout_ms * 1000; 100 timeout_cc = (15624 + timeout_us) / 15625;
|
/u-boot/drivers/i2c/ |
H A D | tegra_i2c.c | 182 int timeout_us = I2C_TIMEOUT_USEC; local 184 while (timeout_us >= 0) { 190 timeout_us -= 10; 199 int timeout_us = I2C_TIMEOUT_USEC; local 201 while (timeout_us >= 0) { 207 timeout_us -= 10; 216 int timeout_us = I2C_TIMEOUT_USEC; local 218 while (timeout_us >= 0) { 228 timeout_us -= 10;
|
/u-boot/drivers/mtd/nand/raw/ |
H A D | sunxi_nand_spl.c | 123 int timeout_us, int negation) 130 } while (--timeout_us); 136 int timeout_us) 138 return check_value_inner(offset, expected_bits, timeout_us, 0); 142 int timeout_us) 144 return check_value_inner(offset, unexpected_bits, timeout_us, 1); 122 check_value_inner(int offset, int expected_bits, int timeout_us, int negation) argument 135 check_value(int offset, int expected_bits, int timeout_us) argument 141 check_value_negated(int offset, int unexpected_bits, int timeout_us) argument
|
/u-boot/drivers/adc/ |
H A D | adc-uclass.c | 147 unsigned int timeout_us = uc_pdata->data_timeout_us; local 164 } while (timeout_us--); 173 unsigned int timeout_us = uc_pdata->multidata_timeout_us; local 191 } while (timeout_us--);
|
/u-boot/drivers/spi/ |
H A D | rockchip_sfc.c | 289 static int rockchip_sfc_wait_txfifo_ready(struct rockchip_sfc *sfc, u32 timeout_us) argument 296 timeout_us); 306 static int rockchip_sfc_wait_rxfifo_ready(struct rockchip_sfc *sfc, u32 timeout_us) argument 313 timeout_us); 540 static int rockchip_sfc_xfer_done(struct rockchip_sfc *sfc, u32 timeout_us) argument 547 timeout_us);
|
H A D | nxp_fspi.c | 450 u32 timeout_us, bool c) 459 delay_us, timeout_us); 462 delay_us, timeout_us); 448 fspi_readl_poll_tout(struct nxp_fspi *f, void __iomem *base, u32 mask, u32 delay_us, u32 timeout_us, bool c) argument
|
/u-boot/drivers/serial/ |
H A D | serial_msm_geni.c | 288 unsigned long timeout_us = 10000; local 303 timeout_us = ((fifo_bits * USEC_PER_SEC) / baud) + 500; 306 timeout_us = DIV_ROUND_UP(timeout_us, 10) * 10; 307 while (timeout_us) { 312 timeout_us -= 10;
|
/u-boot/drivers/mmc/ |
H A D | mmc-uclass.c | 73 static int dm_mmc_wait_dat0(struct udevice *dev, int state, int timeout_us) argument 79 return ops->wait_dat0(dev, state, timeout_us); 82 int mmc_wait_dat0(struct mmc *mmc, int state, int timeout_us) argument 84 return dm_mmc_wait_dat0(mmc->dev, state, timeout_us);
|
H A D | fsl_esdhc_imx.c | 1065 int timeout_us) 1076 timeout_us); 1137 static int esdhc_wait_dat0(struct mmc *mmc, int state, int timeout_us) argument 1141 return esdhc_wait_dat0_common(priv, state, timeout_us); 1610 int timeout_us) 1614 return esdhc_wait_dat0_common(priv, state, timeout_us); 1064 esdhc_wait_dat0_common(struct fsl_esdhc_priv *priv, int state, int timeout_us) argument 1609 fsl_esdhc_wait_dat0(struct udevice *dev, int state, int timeout_us) argument
|
H A D | renesas-sdhi.c | 686 int timeout_us) 693 timeout_us = DIV_ROUND_UP(timeout_us, 10); /* check every 10 us. */ 694 while (timeout_us--) { 685 renesas_sdhi_wait_dat0(struct udevice *dev, int state, int timeout_us) argument
|
H A D | bcm2835_sdhost.c | 400 int timeout_us = SDHST_TIMEOUT_MAX_USEC; local 403 !(value & SDCMD_NEW_FLAG), timeout_us); 405 printf("%s: timeout (%d us)\n", __func__, timeout_us);
|
H A D | sdhci.c | 815 int timeout_us) 820 unsigned long timeout = timer_get_us() + timeout_us; 828 } while (!timeout_us || !time_after(timer_get_us(), timeout)); 814 sdhci_wait_dat0(struct udevice *dev, int state, int timeout_us) argument
|
/u-boot/drivers/video/tegra124/ |
H A D | display.c | 100 u32 mask, u32 exp_val, u32 poll_interval_us, u32 timeout_us) 102 u32 temp = timeout_us; 108 if (timeout_us > poll_interval_us) 109 timeout_us -= poll_interval_us; 99 tegra_dc_poll_register(void *reg, u32 mask, u32 exp_val, u32 poll_interval_us, u32 timeout_us) argument
|
H A D | dp.c | 57 u32 timeout_us) 60 u32 temp = timeout_us; 65 if (timeout_us > poll_interval_us) 66 timeout_us -= poll_interval_us; 54 tegra_dc_dpaux_poll_register(struct tegra_dp_priv *dp, u32 reg, u32 mask, u32 exp_val, u32 poll_interval_us, u32 timeout_us) argument
|
/u-boot/drivers/crypto/aspeed/ |
H A D | aspeed_hace.c | 83 static int aspeed_hace_wait_completion(uint32_t reg, uint32_t flag, int timeout_us) argument 87 return readl_poll_timeout(reg, val, (val & flag) == flag, timeout_us);
|
/u-boot/arch/arm/mach-imx/imx8ulp/ |
H A D | soc.c | 177 ulong timeout_us = timeout_ms * 1000; local 186 ret = readl_poll_sleep_timeout(MU0_B_BASE_ADDR + 0x104, fsr, fsr & BIT(0), 10, timeout_us);
|
/u-boot/arch/x86/cpu/ |
H A D | mp_init.c | 509 const int timeout_us = 100000; local 519 timeout_us, step_us)) {
|
/u-boot/drivers/nvme/ |
H A D | nvme.c | 171 ulong timeout_us = timeout * 100000; local 182 if (timeout_us > 0 && (timer_get_us() - start_time) 183 >= timeout_us)
|
/u-boot/drivers/usb/isp1760/ |
H A D | isp1760-hcd.c | 309 u32 timeout_us) 317 val, 0, timeout_us); 321 u32 timeout_us) 329 !val, 0, timeout_us); 333 u32 timeout_us) 341 !val, 0, timeout_us); 308 isp1760_hcd_set_and_wait(struct usb_hcd *hcd, u32 field, u32 timeout_us) argument 320 isp1760_hcd_set_and_wait_swap(struct usb_hcd *hcd, u32 field, u32 timeout_us) argument 332 isp1760_hcd_clear_and_wait(struct usb_hcd *hcd, u32 field, u32 timeout_us) argument
|