Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/u-boot/drivers/misc/
A Dfsl_sec_mon.c20 int timeout = 10; in set_sec_mon_state_non_sec() local
36 while (timeout) { in set_sec_mon_state_non_sec()
44 timeout--; in set_sec_mon_state_non_sec()
47 if (timeout == 0) { in set_sec_mon_state_non_sec()
65 while (timeout) { in set_sec_mon_state_non_sec()
73 timeout--; in set_sec_mon_state_non_sec()
81 timeout = 10; in set_sec_mon_state_non_sec()
102 timeout--; in set_sec_mon_state_non_sec()
121 int timeout = 10; in set_sec_mon_state_soft_fail() local
129 while (timeout) { in set_sec_mon_state_soft_fail()
[all …]
/u-boot/drivers/mtd/nand/raw/
A Dlpc32xx_nand_mlc.c246 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_read_page_hwecc()
286 unsigned int i, status, timeout; in lpc32xx_read_page_raw() local
294 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_read_page_raw()
346 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_read_oob()
388 unsigned int i, status, timeout; in lpc32xx_write_page_hwecc() local
400 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_write_page_hwecc()
412 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_write_page_hwecc()
493 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_write_oob()
517 unsigned int timeout; in lpc32xx_waitfunc() local
519 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_waitfunc()
[all …]
A Darasan_nfc.c342 u32 timeout; in arasan_nand_read_page() local
386 timeout--; in arasan_nand_read_page()
426 timeout--; in arasan_nand_read_page()
598 timeout--; in arasan_nand_write_page_hwecc()
660 timeout--; in arasan_nand_reset()
771 timeout--; in arasan_nand_write_buf()
792 timeout--; in arasan_nand_write_buf()
846 timeout--; in arasan_nand_erase()
899 timeout--; in arasan_nand_read_status()
990 timeout--; in arasan_nand_read_buf()
[all …]
/u-boot/drivers/usb/host/
A Dutmi-armada100.c23 int timeout; in utmi_phy_init() local
35 timeout = 10000; in utmi_phy_init()
36 while (--timeout && ((readl(&phy_regs->utmi_pll) & PLL_READY) == 0)) in utmi_phy_init()
38 if (!timeout) in utmi_phy_init()
51 timeout = 10000; in utmi_phy_init()
52 while (--timeout && ((readl(&phy_regs->utmi_pll) & PLL_READY) == 0)) in utmi_phy_init()
54 if (!timeout) in utmi_phy_init()
/u-boot/drivers/watchdog/
A Dimx_watchdog.c65 u64 timeout) in imx_watchdog_init() argument
78 timeout = max_t(u64, timeout, TIMEOUT_MIN); in imx_watchdog_init()
79 timeout = min_t(u64, timeout, TIMEOUT_MAX); in imx_watchdog_init()
80 timeout = lldiv(timeout, 500) - 1; in imx_watchdog_init()
83 wcr = (WCR_WDA | WCR_SRS | WCR_WDE) << 8 | timeout; in imx_watchdog_init()
86 WCR_WDA | SET_WCR_WT(timeout); in imx_watchdog_init()
133 static int imx_wdt_start(struct udevice *dev, u64 timeout, ulong flags) in imx_wdt_start() argument
137 imx_watchdog_init(priv->base, priv->ext_reset, timeout); in imx_wdt_start()
A Dat91sam9_wdt.c43 u64 timeout; in at91_wdt_start() local
47 timeout = timeout_ms; in at91_wdt_start()
48 do_div(timeout, 1000); in at91_wdt_start()
49 timeout = min_t(u64, timeout, WDT_MAX_TIMEOUT); in at91_wdt_start()
50 ticks = WDT_SEC2TICKS(timeout); in at91_wdt_start()
A Dcdns_wdt.c128 static int cdns_wdt_start(struct udevice *dev, u64 timeout, ulong flags) in cdns_wdt_start() argument
147 do_div(timeout, 1000); in cdns_wdt_start()
148 timeout = max_t(u64, timeout, CDNS_WDT_MIN_TIMEOUT); in cdns_wdt_start()
149 timeout = min_t(u64, timeout, CDNS_WDT_MAX_TIMEOUT); in cdns_wdt_start()
151 debug("%s: CLK_FREQ %ld, timeout %lld\n", __func__, clk_f, timeout); in cdns_wdt_start()
165 count = (timeout * (clk_f / prescaler)) / in cdns_wdt_start()
A Ds5p_wdt.c25 void wdt_start(unsigned int timeout) in wdt_start() argument
39 writel(timeout, &wdt->wtdat); in wdt_start()
40 writel(timeout, &wdt->wtcnt); in wdt_start()
A Dast_wdt.c22 static int ast_wdt_start(struct udevice *dev, u64 timeout, ulong flags) in ast_wdt_start() argument
29 timeout = min_t(u64, timeout, 4294967); in ast_wdt_start()
32 timeout *= 1000; in ast_wdt_start()
42 writel((u32) timeout, &priv->regs->counter_reload_val); in ast_wdt_start()
/u-boot/include/linux/
A Dcompletion.h114 unsigned long timeout);
116 unsigned long timeout);
118 struct completion *x, unsigned long timeout);
120 struct completion *x, unsigned long timeout);
141 unsigned long timeout) in wait_for_completion_timeout() argument
146 unsigned long timeout) in wait_for_completion_io_timeout() argument
151 unsigned long timeout) in wait_for_completion_interruptible_timeout() argument
156 unsigned long timeout) in wait_for_completion_killable_timeout() argument
/u-boot/arch/arm/mach-imx/
A Dmisc.c25 int timeout) in mxs_wait_mask_set() argument
27 while (--timeout) { in mxs_wait_mask_set()
33 return !timeout; in mxs_wait_mask_set()
37 int timeout) in mxs_wait_mask_clr() argument
39 while (--timeout) { in mxs_wait_mask_clr()
45 return !timeout; in mxs_wait_mask_clr()
/u-boot/drivers/mmc/
A Dkona_sdhci.c26 unsigned int timeout; in init_kona_mmc_core() local
38 timeout = 1000; in init_kona_mmc_core()
40 if (timeout == 0) { in init_kona_mmc_core()
44 timeout--; in init_kona_mmc_core()
66 timeout = 1000; in init_kona_mmc_core()
68 if (timeout == 0) { in init_kona_mmc_core()
72 timeout--; in init_kona_mmc_core()
A Ddw_mmc.c31 while (timeout--) { in dwmci_wait_reset()
106 u32 timeout = 20000; in dwmci_fifo_ready() local
114 if (!timeout) { in dwmci_fifo_ready()
124 unsigned int timeout; in dwmci_get_timeout() local
128 timeout /= mmc->clock; in dwmci_get_timeout()
132 timeout = (timeout < 1000) ? 1000 : timeout; in dwmci_get_timeout()
134 return timeout; in dwmci_get_timeout()
404 int timeout = 10000; local
437 if (timeout-- < 0) {
449 timeout = 10000;
[all …]
/u-boot/board/phytium/durian/
A DREADME44 SATA link 1 timeout.
45 SATA link 2 timeout.
46 SATA link 3 timeout.
52 SATA link 0 timeout.
53 SATA link 1 timeout.
54 SATA link 2 timeout.
55 SATA link 3 timeout.
/u-boot/drivers/ata/
A Dahci_sunxi.c22 int timeout; in sunxi_ahci_phy_init() local
42 timeout = 250; /* Power up takes approx 50 us */ in sunxi_ahci_phy_init()
47 if (--timeout == 0) { in sunxi_ahci_phy_init()
56 timeout = 100; /* Calibration takes approx 10 us */ in sunxi_ahci_phy_init()
61 if (--timeout == 0) { in sunxi_ahci_phy_init()
/u-boot/drivers/usb/musb/
A Dam35x.c20 .timeout = AM35X_USB_OTG_TIMEOUT,
30 u32 timeout; in phy_on() local
43 timeout = musb_cfg.timeout; in phy_on()
44 while (timeout--) in phy_on()
/u-boot/board/keymile/kmp204x/
A Dpci.c39 u32 timeout = 10000; in trigger_fpga_config() local
56 if (timeout-- == 0) { in trigger_fpga_config()
75 u32 timeout = 500000; in wait_for_fpga_config() local
80 if (timeout-- == 0) { in wait_for_fpga_config()
/u-boot/arch/arm/mach-bcm283x/
A Dreset.c35 uint32_t rstc, timeout; in __reset_cpu() local
39 timeout = RESET_TIMEOUT; in __reset_cpu()
41 timeout = ticks & BCM2835_WDOG_MAX_TIMEOUT; in __reset_cpu()
47 writel(BCM2835_WDOG_PASSWORD | timeout, &wdog_regs->wdog); in __reset_cpu()
/u-boot/drivers/phy/
A Dphy-da8xx-usb.c21 unsigned long timeout; in da8xx_usb_phy_power_on() local
30 timeout = get_timer(0); in da8xx_usb_phy_power_on()
31 while (get_timer(timeout) < 10) { in da8xx_usb_phy_power_on()
/u-boot/lib/efi_loader/
A Defi_watchdog.c44 efi_status_t efi_set_watchdog(unsigned long timeout) in efi_set_watchdog() argument
48 if (timeout) in efi_set_watchdog()
51 EFI_SECONDS_TO_100NS * timeout); in efi_set_watchdog()
/u-boot/drivers/ddr/fsl/
A Dfsl_ddr_gen4.c27 int timeout = 1000; in set_wait_for_bits_clear() local
33 timeout--; in set_wait_for_bits_clear()
35 if (timeout <= 0) in set_wait_for_bits_clear()
60 int timeout; in fsl_ddr_set_memctl_regs() local
361 timeout = 40; in fsl_ddr_set_memctl_regs()
366 timeout--; in fsl_ddr_set_memctl_regs()
412 timeout = 40; in fsl_ddr_set_memctl_regs()
416 timeout--; in fsl_ddr_set_memctl_regs()
524 timeout--; in fsl_ddr_set_memctl_regs()
592 timeout = 100; in fsl_ddr_set_memctl_regs()
[all …]
/u-boot/test/py/
A Du_boot_console_base.py65 def __init__(self, console, timeout): argument
67 self.orig_timeout = self.p.timeout
68 self.p.timeout = timeout
74 self.p.timeout = self.orig_timeout
302 orig_timeout = self.p.timeout
305 self.p.timeout = 1000
322 self.p.timeout = orig_timeout
350 self.p.timeout = 30000
465 def temporary_timeout(self, timeout): argument
478 return ConsoleSetupTimeout(self, timeout)
/u-boot/test/dm/
A Dwdt.c20 const u64 timeout = 42; in dm_test_wdt_base() local
27 ut_assertok(wdt_start(dev, timeout, 0)); in dm_test_wdt_base()
28 ut_asserteq(timeout, state->wdt.counter); in dm_test_wdt_base()
/u-boot/arch/arm/mach-keystone/
A Dpsc.c252 int timeout = 100000; in psc_module_keep_in_reset_enabled() local
278 while (timeout) { in psc_module_keep_in_reset_enabled()
285 timeout--; in psc_module_keep_in_reset_enabled()
288 if (!timeout) { in psc_module_keep_in_reset_enabled()
309 int timeout = 100000; in psc_module_release_from_reset() local
322 while (timeout) { in psc_module_release_from_reset()
329 timeout--; in psc_module_release_from_reset()
332 if (!timeout) { in psc_module_release_from_reset()
/u-boot/drivers/net/octeontx/
A Dsmi.c120 unsigned long timeout = MDIO_TIMEOUT; in octeontx_c45_addr() local
137 timeout--; in octeontx_c45_addr()
138 } while (smix_wr_dat.s.pending && timeout); in octeontx_c45_addr()
140 return timeout == 0; in octeontx_c45_addr()
148 unsigned long timeout = MDIO_TIMEOUT; in octeontx_phy_read() local
183 timeout--; in octeontx_phy_read()
184 } while (smix_rd_dat.s.pending && timeout); in octeontx_phy_read()
197 unsigned long timeout = MDIO_TIMEOUT; in octeontx_phy_write() local
235 timeout--; in octeontx_phy_write()
236 } while (smix_wr_dat.s.pending && timeout); in octeontx_phy_write()
[all …]

Completed in 35 milliseconds

12345678910>>...15