Home
last modified time | relevance | path

Searched refs:timeout_ms (Results 1 – 25 of 29) sorted by relevance

12

/u-boot/net/
A Dlink_local.c92 if (timeout_ms == -1) in configure_wait()
96 if (!timeout_ms) in configure_wait()
124 timeout_ms = 0; in link_local_start()
186 timeout_ms = -1; in link_local_timeout()
198 timeout_ms = -1; in link_local_timeout()
205 timeout_ms = 0; in link_local_timeout()
224 if (timeout_ms > 0) { in link_local_receive_arp()
231 timeout_ms = 0; in link_local_receive_arp()
309 timeout_ms = 0; in link_local_receive_arp()
333 timeout_ms = 0; in link_local_receive_arp()
[all …]
A Dtftp.c49 static ulong timeout_ms = TIMEOUT; variable
374 sprintf((char *)pkt, "%lu", timeout_ms / 1000); in tftp_send()
573 if (timeout_val_rcvd != (timeout_ms / 1000)) { in tftp_handler()
664 net_set_timeout_handler(timeout_ms, tftp_timeout_handler); in tftp_handler()
765 timeout_ms = simple_strtol(ep, NULL, 10); in tftp_start()
767 if (timeout_ms < 1000) { in tftp_start()
769 timeout_ms); in tftp_start()
770 timeout_ms = 1000; in tftp_start()
859 net_set_timeout_handler(timeout_ms, tftp_timeout_handler); in tftp_start()
911 timeout_ms = TIMEOUT; in tftp_start_server()
[all …]
/u-boot/drivers/watchdog/
A Dmtk_wdt.c75 static void mtk_wdt_set_timeout(struct udevice *dev, u64 timeout_ms) in mtk_wdt_set_timeout() argument
96 if (timeout_ms > 15984) in mtk_wdt_set_timeout()
97 timeout_ms = 15984; in mtk_wdt_set_timeout()
99 timeout_us = timeout_ms * 1000; in mtk_wdt_set_timeout()
108 static int mtk_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in mtk_wdt_start() argument
112 mtk_wdt_set_timeout(dev, timeout_ms); in mtk_wdt_start()
A Dtangier_wdt.c41 static int tangier_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in tangier_wdt_start() argument
51 do_div(timeout_ms, 1000); in tangier_wdt_start()
52 timeout_sec = clamp_t(u32, timeout_ms, WDT_TIMEOUT_MIN, WDT_TIMEOUT_MAX); in tangier_wdt_start()
A Dat91sam9_wdt.c40 static int at91_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in at91_wdt_start() argument
47 timeout = timeout_ms; in at91_wdt_start()
A Dast2600_wdt.c19 static int ast2600_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in ast2600_wdt_start() argument
25 writel((u32)(timeout_ms * 1000), &wdt->counter_reload_val); in ast2600_wdt_start()
A Dcortina_wdt.c45 static void cortina_wdt_set_timeout(struct udevice *dev, u64 timeout_ms) in cortina_wdt_set_timeout() argument
55 writel(timeout_ms, priv->base + CA_WDT_LD); in cortina_wdt_set_timeout()
A Docteontx_wdt.c31 static int octeontx_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in octeontx_wdt_start() argument
42 tout_wdog = (clk_rate * timeout_ms / 1000) >> 10; in octeontx_wdt_start()
A Drti_wdt.c45 static int rti_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in rti_wdt_start() argument
54 timer_margin = timeout_ms * priv->clk_khz / 1000; in rti_wdt_start()
A Dstm32mp_wdt.c54 static int stm32mp_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in stm32mp_wdt_start() argument
62 reload = timeout_ms * priv->wdt_clk_rate / 256; in stm32mp_wdt_start()
A Dwdt-uclass.c61 int wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in wdt_start() argument
68 return ops->start(dev, timeout_ms, flags); in wdt_start()
A Domap_wdt.c189 static int omap3_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in omap3_wdt_start() argument
192 u32 pre_margin = GET_WLDR_VAL(timeout_ms / 1000); in omap3_wdt_start()
A Dorion_wdt.c60 static int orion_wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags) in orion_wdt_start() argument
65 priv->timeout = DIV_ROUND_UP(timeout_ms, 1000); in orion_wdt_start()
/u-boot/include/
A Dregmap.h289 timeout_ms, test_add_time) \ argument
301 if ((timeout_ms) && get_timer(__start) > (timeout_ms)) { \
311 #define regmap_read_poll_timeout(map, addr, val, cond, sleep_us, timeout_ms) \ argument
313 timeout_ms, 0) \
332 #define regmap_field_read_poll_timeout(field, val, cond, sleep_us, timeout_ms) \ argument
342 if ((timeout_ms) && get_timer(__start) > (timeout_ms)) { \
A Dwdt.h30 int wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags);
76 int (*start)(struct udevice *dev, u64 timeout_ms, ulong flags);
A Dwait_bit.h42 const unsigned int timeout_ms, \
57 if (get_timer(start) > timeout_ms) \
/u-boot/drivers/sysreset/
A Dpoweroff_gpio.c27 u32 timeout_ms; member
58 mdelay(priv->timeout_ms); in poweroff_gpio_request()
71 priv->timeout_ms = dev_read_u32_default(dev, "timeout-ms", 3000); in poweroff_gpio_probe()
/u-boot/drivers/usb/eth/
A Dlan7x.h136 const unsigned int timeout_ms, in lan7x_wait_for_bit() argument
151 if (get_timer(start) > timeout_ms) in lan7x_wait_for_bit()
178 const unsigned int timeout_ms, in lan7x_mdio_wait_for_bit() argument
193 if (get_timer(start) > timeout_ms) in lan7x_mdio_wait_for_bit()
/u-boot/drivers/mmc/
A Dmmc_write.c83 int timeout_ms = 1000; in mmc_berase() local
123 if (mmc_poll_for_busy(mmc, timeout_ms)) in mmc_berase()
135 int timeout_ms = 1000; in mmc_write_blocks() local
181 if (mmc_poll_for_busy(mmc, timeout_ms)) in mmc_write_blocks()
A Dmmc.c271 int mmc_poll_for_busy(struct mmc *mmc, int timeout_ms) in mmc_poll_for_busy() argument
276 err = mmc_wait_dat0(mmc, 1, timeout_ms * 1000); in mmc_poll_for_busy()
297 if (timeout_ms-- <= 0) in mmc_poll_for_busy()
303 if (timeout_ms <= 0) { in mmc_poll_for_busy()
793 int timeout_ms = DEFAULT_CMD6_TIMEOUT_MS; in __mmc_switch() local
799 timeout_ms = mmc->gen_cmd6_time * 10; in __mmc_switch()
802 timeout_ms = mmc->part_switch_time * 10; in __mmc_switch()
817 ret = mmc_wait_dat0(mmc, 1, timeout_ms * 1000); in __mmc_switch()
827 mdelay(timeout_ms); in __mmc_switch()
848 } while (get_timer(start) < timeout_ms); in __mmc_switch()
/u-boot/drivers/ram/rockchip/
A Ddmc-rk3368.c222 const ulong timeout_ms = 500; in memory_init() local
234 if (get_timer(tmp) > timeout_ms) { in memory_init()
236 __func__, timeout_ms); in memory_init()
405 const ulong timeout_ms = 200; in dfi_cfg() local
426 if (get_timer(tmp) > timeout_ms) { in dfi_cfg()
428 __func__, timeout_ms); in dfi_cfg()
578 const ulong timeout_ms = 500; in ddrphy_data_training() local
589 if (get_timer(tmp) > timeout_ms) { in ddrphy_data_training()
591 __func__, timeout_ms); in ddrphy_data_training()
/u-boot/drivers/net/fsl-mc/
A Dmc.c640 unsigned long timeout_ms = CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS; in get_mc_boot_timeout_ms() local
645 timeout_ms = simple_strtoul(timeout_ms_env_var, NULL, 10); in get_mc_boot_timeout_ms()
646 if (timeout_ms == 0) { in get_mc_boot_timeout_ms()
650 timeout_ms); in get_mc_boot_timeout_ms()
652 timeout_ms = CONFIG_SYS_LS_MC_BOOT_TIMEOUT_MS; in get_mc_boot_timeout_ms()
656 return timeout_ms; in get_mc_boot_timeout_ms()
699 unsigned long timeout_ms = get_mc_boot_timeout_ms(); in wait_for_mc() local
703 assert(timeout_ms > 0); in wait_for_mc()
711 timeout_ms--; in wait_for_mc()
712 if (timeout_ms == 0) in wait_for_mc()
[all …]
/u-boot/drivers/rtc/
A Drv3029.c154 const unsigned long timeout_ms = 10000; in rv3029_rtc_reset() local
165 if (get_timer(start) > timeout_ms) in rv3029_rtc_reset()
/u-boot/drivers/mtd/nand/raw/brcmnand/
A Dbrcmnand.c779 unsigned long timeout_ms) in bcmnand_ctrl_poll_status() argument
785 if (!timeout_ms) in bcmnand_ctrl_poll_status()
786 timeout_ms = NAND_POLL_STATUS_TIMEOUT_MS; in bcmnand_ctrl_poll_status()
788 limit = jiffies + msecs_to_jiffies(timeout_ms); in bcmnand_ctrl_poll_status()
800 if (!timeout_ms) in bcmnand_ctrl_poll_status()
801 timeout_ms = NAND_POLL_STATUS_TIMEOUT_MS; in bcmnand_ctrl_poll_status()
804 limit = CONFIG_SYS_HZ * timeout_ms / 1000; in bcmnand_ctrl_poll_status()
/u-boot/drivers/mtd/nand/raw/
A Dsunxi_nand.c323 unsigned int timeout_ms) in sunxi_nfc_wait_int() argument
329 if (!timeout_ms) in sunxi_nfc_wait_int()
330 timeout_ms = NFC_DEFAULT_TIMEOUT_MS; in sunxi_nfc_wait_int()
332 timeout_ticks = (timeout_ms * CONFIG_SYS_HZ) / 1000; in sunxi_nfc_wait_int()

Completed in 1136 milliseconds

12