/openbmc/linux/drivers/tty/ |
H A D | tty_ldsem.c | 198 if (!timeout) in down_read_failed() 200 timeout = schedule_timeout(timeout); in down_read_failed() 205 if (!timeout) { in down_read_failed() 259 if (!timeout) in down_write_failed() 262 timeout = schedule_timeout(timeout); in down_write_failed() 296 int subclass, long timeout) in __ldsem_down_read_nested() argument 305 if (!down_read_failed(sem, count, timeout)) { in __ldsem_down_read_nested() 315 int subclass, long timeout) in __ldsem_down_write_nested() argument 324 if (!down_write_failed(sem, count, timeout)) { in __ldsem_down_write_nested() 340 return __ldsem_down_read_nested(sem, 0, timeout); in ldsem_down_read() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | da9063_wdt.c | 91 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout() 145 unsigned int timeout) in da9063_wdt_set_timeout() argument 161 ret = da9063_wdt_update_timeout(da9063, timeout); in da9063_wdt_set_timeout() 167 wdd->timeout = wdt_timeout[da9063_wdt_timeout_to_sel(timeout)]; in da9063_wdt_set_timeout() 220 unsigned int timeout; in da9063_wdt_probe() local 247 wdd->timeout = DA9063_WDG_TIMEOUT; in da9063_wdt_probe() 250 timeout = da9063_wdt_read_timeout(da9063); in da9063_wdt_probe() 251 if (timeout) in da9063_wdt_probe() 252 wdd->timeout = timeout; in da9063_wdt_probe() 256 da9063_wdt_set_timeout(wdd, wdd->timeout); in da9063_wdt_probe() [all …]
|
H A D | visconti_wdt.c | 43 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_start() local 47 writel(timeout, priv->base + WDT_MAX); in visconti_wdt_start() 76 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() local 79 if (timeout <= cnt) in visconti_wdt_get_timeleft() 81 timeout -= cnt; in visconti_wdt_get_timeleft() 83 return timeout / VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() 86 static int visconti_wdt_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in visconti_wdt_set_timeout() argument 91 wdev->timeout = timeout; in visconti_wdt_set_timeout() 92 val = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_set_timeout() 149 wdev->timeout = min(wdev->max_timeout, WDT_DEFAULT_TIMEOUT); in visconti_wdt_probe()
|
H A D | ts4800_wdt.c | 48 const int timeout; member 79 unsigned int timeout) in ts4800_wdt_set_timeout() argument 85 if (ts4800_wdt_map[i].timeout >= timeout) in ts4800_wdt_set_timeout() 89 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout() 151 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe() 152 wdd->max_timeout = ts4800_wdt_map[MAX_TIMEOUT_INDEX].timeout; in ts4800_wdt_probe() 164 if (!wdd->timeout) in ts4800_wdt_probe() 165 wdd->timeout = wdd->max_timeout; in ts4800_wdt_probe() 166 ts4800_wdt_set_timeout(wdd, wdd->timeout); in ts4800_wdt_probe() 181 wdd->timeout, nowayout); in ts4800_wdt_probe()
|
H A D | nic7018_wdt.c | 33 static unsigned int timeout; variable 34 module_param(timeout, uint, 0); 35 MODULE_PARM_DESC(timeout, 72 if (timeout < 30 && timeout != 16) { in nic7018_get_config() 74 count = timeout / 2 + 1; in nic7018_get_config() 77 count = DIV_ROUND_UP(timeout + 16, 32); in nic7018_get_config() 87 unsigned int timeout) in nic7018_set_timeout() argument 109 nic7018_set_timeout(wdd, wdd->timeout); in nic7018_start() 200 wdd->timeout = WDT_DEFAULT_TIMEOUT; in nic7018_probe() 205 watchdog_init_timeout(wdd, timeout, dev); in nic7018_probe() [all …]
|
H A D | sun4v_wdt.c | 27 static unsigned int timeout; variable 28 module_param(timeout, uint, 0); 29 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" 53 hverr = sun4v_mach_set_watchdog(wdd->timeout * 1000, NULL); in sun4v_wdt_ping() 61 unsigned int timeout) in sun4v_wdt_set_timeout() argument 63 wdd->timeout = timeout; in sun4v_wdt_set_timeout() 89 .timeout = WDT_TIMEOUT, 153 watchdog_init_timeout(&wdd, timeout, NULL); in sun4v_wdt_init() 162 wdd.timeout, nowayout); in sun4v_wdt_init()
|
H A D | it87_wdt.c | 89 static unsigned int timeout = DEFAULT_TIMEOUT; variable 93 module_param(timeout, int, 0); 94 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds, default=" 203 return wdt_update_timeout(wdd->timeout); in wdt_start() 228 wdd->timeout = t; in wdt_set_timeout() 331 if (timeout < 1 || timeout > max_units * 60) { in it87_wdt_init() 332 timeout = DEFAULT_TIMEOUT; in it87_wdt_init() 337 if (timeout > max_units) in it87_wdt_init() 338 timeout = wdt_round_time(timeout); in it87_wdt_init() 340 wdt_dev.timeout = timeout; in it87_wdt_init() [all …]
|
H A D | db8500_wdt.c | 26 static unsigned int timeout = WATCHDOG_TIMEOUT; variable 27 module_param(timeout, uint, 0); 28 MODULE_PARM_DESC(timeout, 54 unsigned int timeout) in db8500_wdt_set_timeout() argument 57 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in db8500_wdt_set_timeout() 89 timeout = 600; /* Default to 10 minutes */ in db8500_wdt_probe() 97 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in db8500_wdt_probe() 115 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in db8500_wdt_suspend() 127 prcmu_load_a9wdog(PRCMU_WDOG_ALL, timeout * 1000); in db8500_wdt_resume()
|
H A D | txx9wdt.c | 26 static unsigned int timeout = TIMER_MARGIN; /* in seconds */ variable 27 module_param(timeout, uint, 0); 28 MODULE_PARM_DESC(timeout, 54 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); in txx9wdt_start() 77 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout() 124 if (timeout < 1 || timeout > WD_MAX_TIMEOUT) in txx9wdt_probe() 125 timeout = TIMER_MARGIN; in txx9wdt_probe() 126 txx9wdt.timeout = timeout; in txx9wdt_probe() 137 timeout, WD_MAX_TIMEOUT, nowayout); in txx9wdt_probe()
|
H A D | meson_wdt.c | 35 static unsigned int timeout; variable 87 unsigned int timeout) in meson_wdt_change_timeout() argument 94 reg |= MESON_SEC_TO_TC(timeout, meson_wdt->data->count_unit); in meson_wdt_change_timeout() 99 unsigned int timeout) in meson_wdt_set_timeout() argument 101 wdt_dev->timeout = timeout; in meson_wdt_set_timeout() 103 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout() 183 meson_wdt->wdt_dev.timeout = min_t(unsigned int, in meson_wdt_probe() 189 watchdog_init_timeout(&meson_wdt->wdt_dev, timeout, dev); in meson_wdt_probe() 201 meson_wdt->wdt_dev.timeout, nowayout); in meson_wdt_probe() 216 module_param(timeout, uint, 0); [all …]
|
H A D | sl28cpld_wdt.c | 36 static int timeout; variable 37 module_param(timeout, int, 0); 38 MODULE_PARM_DESC(timeout, "Initial watchdog timeout in seconds"); 92 unsigned int timeout) in sl28cpld_wdt_set_timeout() argument 97 ret = regmap_write(wdt->regmap, wdt->offset + WDT_TIMEOUT, timeout); in sl28cpld_wdt_set_timeout() 101 wdd->timeout = timeout; in sl28cpld_wdt_set_timeout() 179 wdd->timeout = val; in sl28cpld_wdt_probe() 181 wdd->timeout = WDT_DEFAULT_TIMEOUT; in sl28cpld_wdt_probe() 183 watchdog_init_timeout(wdd, timeout, &pdev->dev); in sl28cpld_wdt_probe() 184 sl28cpld_wdt_set_timeout(wdd, wdd->timeout); in sl28cpld_wdt_probe() [all …]
|
H A D | arm_smc_wdt.c | 32 static unsigned int timeout; variable 69 static int smcwd_set_timeout(struct watchdog_device *wdd, unsigned int timeout) in smcwd_set_timeout() argument 73 res = smcwd_call(wdd, SMCWD_SET_TIMEOUT, timeout, NULL); in smcwd_set_timeout() 75 wdd->timeout = timeout; in smcwd_set_timeout() 138 wdd->timeout = res.a2; in smcwd_probe() 146 watchdog_init_timeout(wdd, timeout, &pdev->dev); in smcwd_probe() 147 err = smcwd_set_timeout(wdd, wdd->timeout); in smcwd_probe() 157 wdd->timeout, nowayout); in smcwd_probe() 178 module_param(timeout, uint, 0); 179 MODULE_PARM_DESC(timeout, "Watchdog heartbeat in seconds");
|
H A D | kempld_wdt.c | 85 module_param(timeout, uint, 0); 86 MODULE_PARM_DESC(timeout, 130 unsigned int timeout) in kempld_wdt_set_stage_timeout() argument 173 unsigned int timeout; in kempld_wdt_get_timeout() local 191 timeout = stage_timeout; in kempld_wdt_get_timeout() 194 return timeout; in kempld_wdt_get_timeout() 198 unsigned int timeout) in kempld_wdt_set_timeout() argument 216 timeout); in kempld_wdt_set_timeout() 220 wdd->timeout = timeout; in kempld_wdt_set_timeout() 237 if (pretimeout > wdd->timeout) in kempld_wdt_set_pretimeout() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/ |
H A D | 0005-fix-incorrect-timeout-while-system-time-changed.patch | 4 Subject: [PATCH 05/11] fix incorrect timeout while system time changed 7 breaks with incorrect timeout. 11 |01:40:55,086 DEBUG program: 10 seconds timeout 28 @@ -176,14 +176,14 @@ def timeout_command(argv, timeout, *args, **kwargs): 30 if it doesn't normally exit within timeout seconds and return None""" 40 - if timeout != -1 and (now - start).seconds> timeout: 42 + if timeout != -1 and count > timeout*10: 45 program_log.debug("%d seconds timeout" % timeout)
|
/openbmc/u-boot/drivers/pci/ |
H A D | pcie_aspeed.c | 21 u32 timeout = 0; in aspeed_pcie_set_slot_power_limit() local 57 timeout++; in aspeed_pcie_set_slot_power_limit() 64 timeout = 0; in aspeed_pcie_set_slot_power_limit() 70 timeout++; in aspeed_pcie_set_slot_power_limit() 80 timeout++; in aspeed_pcie_set_slot_power_limit() 130 timeout++; in aspeed_pcie_cfg_read() 140 timeout = 0; in aspeed_pcie_cfg_read() 145 timeout++; in aspeed_pcie_cfg_read() 166 timeout++; in aspeed_pcie_cfg_read() 266 timeout++; in aspeed_pcie_cfg_write() [all …]
|
/openbmc/linux/arch/mips/loongson2ef/lemote-2f/ |
H A D | ec_kb3310b.c | 53 int timeout; in ec_query_seq() local 66 timeout = EC_CMD_TIMEOUT; in ec_query_seq() 68 while (timeout-- && (status & (1 << 1))) { in ec_query_seq() 75 if (timeout <= 0) { in ec_query_seq() 81 timeout, EC_CMD_TIMEOUT - timeout, cmd, status); in ec_query_seq() 104 int timeout = 100; in ec_get_event_num() local 111 while (timeout-- && !(status & (1 << 0))) { in ec_get_event_num() 115 if (timeout <= 0) { in ec_get_event_num()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | common_baco.c | 30 u32 timeout = 5000, data; in baco_wait_register() local 35 timeout--; in baco_wait_register() 36 } while (value != (data & mask) && (timeout != 0)); in baco_wait_register() 38 if (timeout == 0) in baco_wait_register() 45 u32 shift, u32 value, u32 timeout) in baco_cmd_handler() argument 64 if (timeout) in baco_cmd_handler() 66 msleep(timeout); in baco_cmd_handler() 69 if (timeout) in baco_cmd_handler() 71 udelay(timeout); in baco_cmd_handler() 94 entry[i].shift, entry[i].val, entry[i].timeout)) in baco_program_registers() [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | rest_client.robot | 77 ${ret}= POST On Session openbmc ${base_uri} &{kwargs} timeout=${timeout} 126 ${ret}= DELETE On Session openbmc ${base_uri} &{kwargs} timeout=${timeout} 164 Create Session openbmc ${AUTH_URI} timeout=${timeout} 194 Create Session openbmc ${AUTH_URI} timeout=${timeout} max_retries=3 264 ${resp}= OpenBMC Get Request ${uri}attr/${attr} timeout=${timeout} 298 ... timeout=${timeout} &{kwargs} 323 ${resp}= OpenBMC Get Request ${uri} timeout=${timeout} quiet=${quiet} 340 ... timeout=${timeout} quiet=${quiet} &{kwargs} 370 ${ret}= POST On Session openbmc ${base_uri} &{kwargs} timeout=${timeout} 392 Create Session redfish ${AUTH_URI} timeout=${timeout} [all …]
|
/openbmc/linux/arch/mips/include/asm/octeon/ |
H A D | cvmx-spi.h | 57 int timeout); 60 int (*training_cb) (int interface, cvmx_spi_mode_t mode, int timeout); 64 int timeout); 98 int timeout, int num_ports); 114 int timeout); 218 int timeout); 235 int timeout); 252 int timeout);
|
/openbmc/linux/arch/arm/mach-sa1100/ |
H A D | ssp.c | 53 int timeout = TIMEOUT; in ssp_write_word() local 56 if (!--timeout) in ssp_write_word() 63 timeout = TIMEOUT; in ssp_write_word() 65 if (!--timeout) in ssp_write_word() 90 int timeout = TIMEOUT; in ssp_read_word() local 93 if (!--timeout) in ssp_read_word() 117 int timeout = TIMEOUT * 2; in ssp_flush() local 121 if (!--timeout) in ssp_flush() 125 if (!--timeout) in ssp_flush()
|
/openbmc/linux/drivers/base/firmware_loader/ |
H A D | fallback.c | 42 static inline int fw_sysfs_wait_timeout(struct fw_priv *fw_priv, long timeout) in fw_sysfs_wait_timeout() argument 44 return __fw_state_wait_common(fw_priv, timeout); in fw_sysfs_wait_timeout() 70 static int fw_load_sysfs_fallback(struct fw_sysfs *fw_sysfs, long timeout) in fw_load_sysfs_fallback() argument 103 timeout = MAX_JIFFY_OFFSET; in fw_load_sysfs_fallback() 106 retval = fw_sysfs_wait_timeout(fw_priv, timeout); in fw_load_sysfs_fallback() 131 long timeout; in fw_load_from_user_helper() local 134 timeout = firmware_loading_timeout(); in fw_load_from_user_helper() 136 timeout = usermodehelper_read_lock_wait(timeout); in fw_load_from_user_helper() 137 if (!timeout) { in fw_load_from_user_helper() 158 ret = fw_load_sysfs_fallback(fw_sysfs, timeout); in fw_load_from_user_helper()
|
/openbmc/ipmitool/src/plugins/usb/ |
H A D | usb.c | 196 io_hdr.timeout = timeout; in sendscsicmd_SGIO() 198 if (!timeout) { in sendscsicmd_SGIO() 199 io_hdr.timeout = 20000; in sendscsicmd_SGIO() 211 if (!timeout) { in sendscsicmd_SGIO() 315 unsigned int timeout) in AMI_SPT_CMD_SendCmd() argument 333 sensebuff, 32, timeout); in AMI_SPT_CMD_SendCmd() 463 if (timeout > 0) { in WaitForCommandCompletion() 501 if (!timeout) { in SendDataToUSBDriver() 523 if (!timeout) { in SendDataToUSBDriver() 575 long timeout = 20000; in ipmi_usb_send_cmd() local [all …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | utmi-armada100.c | 22 int timeout; in utmi_phy_init() local 34 timeout = 10000; in utmi_phy_init() 35 while (--timeout && ((readl(&phy_regs->utmi_pll) & PLL_READY) == 0)) in utmi_phy_init() 37 if (!timeout) in utmi_phy_init() 50 timeout = 10000; in utmi_phy_init() 51 while (--timeout && ((readl(&phy_regs->utmi_pll) & PLL_READY) == 0)) in utmi_phy_init() 53 if (!timeout) in utmi_phy_init()
|
/openbmc/linux/drivers/input/serio/ |
H A D | libps2.c | 65 msecs_to_jiffies(timeout)); in ps2_do_sendbyte() 172 msecs_to_jiffies(timeout)); in ps2_drain() 215 if (timeout > msecs_to_jiffies(100)) in ps2_adjust_timeout() 216 timeout = msecs_to_jiffies(100); in ps2_adjust_timeout() 230 timeout = 0; in ps2_adjust_timeout() 241 timeout = 0; in ps2_adjust_timeout() 249 return timeout; in ps2_adjust_timeout() 267 unsigned int timeout; in __ps2_command() local 343 timeout = wait_event_timeout(ps2dev->wait, in __ps2_command() 348 timeout = ps2_adjust_timeout(ps2dev, command, timeout); in __ps2_command() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | early_printk_8250.c | 17 unsigned int timeout) in setup_8250_early_printk_port() argument 21 serial8250_tx_timeout = timeout; in setup_8250_early_printk_port() 36 unsigned int timeout; in prom_putchar() local 42 timeout = serial8250_tx_timeout; in prom_putchar() 48 if (--timeout == 0) in prom_putchar() 52 if (timeout) in prom_putchar()
|