/openbmc/openbmc-test-automation/lib/ |
H A D | redfish_request.py | 67 def request_login(self, headers, url, credential, timeout=10): argument 81 timeout By default timeout is set to 10 seconds. 82 If user assign the timeout, then default timeout 106 def request_get(self, headers, url, timeout=10, verify=False): argument 115 timeout By default timeout is set to 10 seconds. 116 If user assign the timeout, then default timeout value 136 + " ,timeout = " 137 + str(timeout) 144 url, headers=headers, timeout=timeout, verify=verify 150 def request_patch(self, headers, url, data=None, timeout=10, verify=False): argument [all …]
|
H A D | rest_client.robot | 32 [Arguments] ${uri} ${timeout}=30 ${quiet}=${QUIET} &{kwargs} 36 # timeout Timeout in seconds to establish connection with URI. 43 Initialize OpenBMC ${timeout} quiet=${quiet} 50 … ${resp}= GET On Session openbmc ${base_uri} &{kwargs} timeout=${timeout} expected_status=any 59 [Arguments] ${uri} ${timeout}=10 ${quiet}=${QUIET} &{kwargs} 63 # timeout Timeout in seconds to establish connection with URI. 70 Initialize OpenBMC ${timeout} quiet=${quiet} 77 ${ret}= POST On Session openbmc ${base_uri} &{kwargs} timeout=${timeout} 84 [Arguments] ${uri} ${timeout}=10 &{kwargs} 88 # timeout Timeout in seconds to establish connection with URI. [all …]
|
/openbmc/openbmc-tools/adcapp/src/ |
H A D | EINTR_wrappers.c | 36 struct timespec EndTime, Timeout; member 39 static void sigwrap_InitTimeout(SIGWRAP_TIMEOUT *pDst, const struct timespec *timeout) in sigwrap_InitTimeout() argument 41 pDst->Timeout = *timeout; in sigwrap_InitTimeout() 43 …if ((timeout->tv_sec == 0) && (timeout->tv_nsec == 0)) // If both value are zero … in sigwrap_InitTimeout() 55 …pDst->EndTime.tv_sec = Now.tv_sec + pDst->Timeout.tv_sec; // Check necessary in 2038… in sigwrap_InitTimeout() 56 pDst->EndTime.tv_nsec = Now.tv_nsec + pDst->Timeout.tv_nsec; in sigwrap_InitTimeout() 78 pTo->Timeout.tv_nsec = pTo->EndTime.tv_nsec - Now.tv_nsec; in sigwrap_CheckTimeout() 79 pTo->Timeout.tv_sec = pTo->EndTime.tv_sec - Now.tv_sec; in sigwrap_CheckTimeout() 81 if (pTo->Timeout.tv_sec == 0) in sigwrap_CheckTimeout() 83 if (pTo->Timeout.tv_nsec <= 0) in sigwrap_CheckTimeout() [all …]
|
/openbmc/openbmc-tools/pwmtachtool/src/ |
H A D | EINTR_wrappers.c | 36 struct timespec EndTime, Timeout; member 39 static void sigwrap_InitTimeout(SIGWRAP_TIMEOUT *pDst, const struct timespec *timeout) in sigwrap_InitTimeout() argument 41 pDst->Timeout = *timeout; in sigwrap_InitTimeout() 43 …if ((timeout->tv_sec == 0) && (timeout->tv_nsec == 0)) // If both value are zero … in sigwrap_InitTimeout() 55 …pDst->EndTime.tv_sec = Now.tv_sec + pDst->Timeout.tv_sec; // Check necessary in 2038… in sigwrap_InitTimeout() 56 pDst->EndTime.tv_nsec = Now.tv_nsec + pDst->Timeout.tv_nsec; in sigwrap_InitTimeout() 78 pTo->Timeout.tv_nsec = pTo->EndTime.tv_nsec - Now.tv_nsec; in sigwrap_CheckTimeout() 79 pTo->Timeout.tv_sec = pTo->EndTime.tv_sec - Now.tv_sec; in sigwrap_CheckTimeout() 81 if (pTo->Timeout.tv_sec == 0) in sigwrap_CheckTimeout() 83 if (pTo->Timeout.tv_nsec <= 0) in sigwrap_CheckTimeout() [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | completion.c | 82 long (*action)(long), long timeout, int state) in do_wait_for_common() argument 89 timeout = -ERESTARTSYS; in do_wait_for_common() 95 timeout = action(timeout); in do_wait_for_common() 97 } while (!x->done && timeout); in do_wait_for_common() 100 return timeout; in do_wait_for_common() 104 return timeout ?: 1; in do_wait_for_common() 109 long (*action)(long), long timeout, int state) in __wait_for_common() argument 116 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common() 121 return timeout; in __wait_for_common() 125 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_timeout.c | 28 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument 35 t = rcu_access_pointer(timeout_ext->timeout); in untimeout() 37 if (!timeout || t == timeout) in untimeout() 38 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in untimeout() 45 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) in nf_ct_untimeout() argument 49 .data = timeout, in nf_ct_untimeout() 56 static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout) in __nf_ct_timeout_put() argument 61 h->timeout_put(timeout); in __nf_ct_timeout_put() 68 struct nf_ct_timeout *timeout; in nf_ct_set_timeout() local 77 errmsg = "Timeout policy base is empty"; in nf_ct_set_timeout() [all …]
|
H A D | nfnetlink_cttimeout.c | 44 struct nf_ct_timeout timeout; member 54 MODULE_DESCRIPTION("cttimeout: Extended Netfilter Connection Tracking timeout tuning"); 70 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument 91 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy() 106 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local 120 list_for_each_entry(timeout, &pernet->nfct_timeout_list, head) { in cttimeout_new_timeout() 121 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout() 127 matching = timeout; in cttimeout_new_timeout() 133 /* You cannot replace one timeout policy by another of in cttimeout_new_timeout() 136 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout() [all …]
|
H A D | nf_conntrack_proto_generic.c | 24 unsigned int *timeout = data; in generic_timeout_nlattr_to_obj() local 26 if (!timeout) in generic_timeout_nlattr_to_obj() 27 timeout = &gn->timeout; in generic_timeout_nlattr_to_obj() 30 *timeout = in generic_timeout_nlattr_to_obj() 33 /* Set default generic timeout. */ in generic_timeout_nlattr_to_obj() 34 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj() 43 const unsigned int *timeout = data; in generic_timeout_obj_to_nlattr() local 45 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr() 64 gn->timeout = nf_ct_generic_timeout; in nf_conntrack_generic_init_net()
|
/openbmc/linux/Documentation/watchdog/ |
H A D | watchdog-parameters.rst | 21 timeout. Setting this to a non-zero value can be useful to ensure that 43 timeout: 44 Watchdog timeout in seconds. 1<= timeout <=63, default=60. 52 timeout: 53 Watchdog timeout in seconds. (0 < timeout < 18000, default=60 61 timeout: 62 Watchdog timeout in seconds. (1<=timeout<=3600, default=30 82 timeout: 83 Watchdog timeout in seconds. (default=120) 135 Default watchdog0 timeout in 1/10secs [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | npcm_wdt.c | 74 if (wdd->timeout < 2) in npcm_wdt_start() 76 else if (wdd->timeout < 3) in npcm_wdt_start() 78 else if (wdd->timeout < 6) in npcm_wdt_start() 80 else if (wdd->timeout < 11) in npcm_wdt_start() 82 else if (wdd->timeout < 22) in npcm_wdt_start() 84 else if (wdd->timeout < 44) in npcm_wdt_start() 86 else if (wdd->timeout < 87) in npcm_wdt_start() 88 else if (wdd->timeout < 173) in npcm_wdt_start() 90 else if (wdd->timeout < 688) in npcm_wdt_start() 115 unsigned int timeout) in npcm_wdt_set_timeout() argument [all …]
|
H A D | da9063_wdt.c | 25 * Watchdog selector to timeout in seconds. 27 * others: timeout = 2048 ms * 2^(TWDSCALE-1). 53 * Read the currently active timeout. 73 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument 79 * The watchdog triggers a reboot if a timeout value is already in da9063_wdt_update_timeout() 80 * programmed because the timeout value combines two functions in da9063_wdt_update_timeout() 82 * The watchdog must be disabled to be able to change the timeout in da9063_wdt_update_timeout() 84 * new timeout value which enables the watchdog again. in da9063_wdt_update_timeout() 91 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout() 102 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start() [all …]
|
H A D | ts4800_wdt.c | 36 * TS-4800 supports the following timeout values: 45 * Keep the regmap/timeout map ordered by timeout 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() 160 * must be called to initialize timeout and feed_val with valid values. in ts4800_wdt_probe() 161 * Default to maximum timeout if none, or an invalid one, is provided in in ts4800_wdt_probe() [all …]
|
H A D | sbsa_gwdt.c | 19 * In the single stage mode, when the timeout is reached, your system 21 * In the two stages mode, when the timeout is reached, the first signal (WS0) 31 * |----timeout-----(panic)----timeout-----reset 35 * |--------------timeout-------------------reset 38 * by WOR, in the single stage mode, the timeout is (WOR * 2); in the two 39 * stages mode, the timeout is WOR. The maximum timeout in the two stages mode 96 static unsigned int timeout; variable 97 module_param(timeout, uint, 0); 98 MODULE_PARM_DESC(timeout, 99 "Watchdog timeout in seconds. (>=0, default=" [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/directfb/directfb/ |
H A D | 0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch | 56 struct timeval timeout = { 0, 125000 }; 59 /* select() timeout? */ 75 - timeout_passed( &state->timeout, &levt->time )) { 76 + timeout_passed( &state->timeout, &tval )) { 78 devt->timestamp = state->timeout; /* timeout of levt->time? */ 84 - state->timeout = levt->time; 85 + state->timeout.tv_sec = levt->input_event_sec; 86 + state->timeout.tv_usec = levt->input_event_usec; 87 timeout_add( &state->timeout, &timeout ); 94 - if (!timeout_passed( &state->timeout, &levt->time )) { [all …]
|
/openbmc/linux/io_uring/ |
H A D | timeout.c | 14 #include "timeout.h" 32 /* timeout update */ 40 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_is_timeout_noseq() local 43 return !timeout->off || data->flags & IORING_TIMEOUT_MULTISHOT; in io_is_timeout_noseq() 54 static inline bool io_timeout_finish(struct io_timeout *timeout, in io_timeout_finish() argument 60 if (!timeout->off || (timeout->repeats && --timeout->repeats)) in io_timeout_finish() 70 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_timeout_complete() local 74 if (!io_timeout_finish(timeout, data)) { in io_timeout_complete() 81 list_add(&timeout->list, ctx->timeout_list.prev); in io_timeout_complete() 98 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_kill_timeout() local [all …]
|
/openbmc/u-boot/drivers/misc/ |
H A D | fsl_sec_mon.c | 19 int timeout = 10; in set_sec_mon_state_non_sec() local 35 while (timeout) { in set_sec_mon_state_non_sec() 43 timeout--; in set_sec_mon_state_non_sec() 46 if (timeout == 0) { in set_sec_mon_state_non_sec() 47 printf("SEC_MON state transition timeout.\n"); in set_sec_mon_state_non_sec() 64 while (timeout) { in set_sec_mon_state_non_sec() 72 timeout--; in set_sec_mon_state_non_sec() 75 if (timeout == 0) { in set_sec_mon_state_non_sec() 76 printf("SEC_MON state transition timeout.\n"); in set_sec_mon_state_non_sec() 80 timeout = 10; in set_sec_mon_state_non_sec() [all …]
|
/openbmc/u-boot/board/micronas/vct/ |
H A D | smc_eeprom.c | 73 int timeout = req_to; in mac_busy() local 75 while (timeout--) { in mac_busy() 79 return 1; /* Timeout */ in mac_busy() 82 return 0; /* No timeout */ in mac_busy() 98 printf("get_mac_reg: timeout waiting for response from MAC\n"); in get_mac_reg() 138 ulong timeout = 100000; in eeprom_read_location() local 150 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_read_location() 152 timeout--; in eeprom_read_location() 155 if (timeout == 0) { in eeprom_read_location() 156 printf("Timeout\n"); in eeprom_read_location() [all …]
|
/openbmc/linux/block/ |
H A D | blk-timeout.c | 3 * Functions related to generic timeout handling of requests. 75 * request by deleting the timer and calling the q's timeout function. 76 * LLDDs who implement their own error recovery MAY ignore the timeout 82 * All we need to ensure is that timeout scan takes place in blk_abort_request() 83 * immediately and that scan sees the new timeout value. in blk_abort_request() 109 unsigned long blk_rq_timeout(unsigned long timeout) in blk_rq_timeout() argument 114 if (time_after(timeout, maxt)) in blk_rq_timeout() 115 timeout = maxt; in blk_rq_timeout() 117 return timeout; in blk_rq_timeout() 121 * blk_add_timer - Start timeout timer for a single request [all …]
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-extended/python-blivet/python3-blivet/ |
H A D | 0003-support-infinit-timeout.patch | 4 Subject: [PATCH 03/11] support infinit timeout 21 +# timeout = -1 means infinite timeout, always wait. 22 def timeout_command(argv, timeout, *args, **kwargs): 24 if it doesn't normally exit within timeout seconds and return None""" 25 @@ -182,7 +183,7 @@ def timeout_command(argv, timeout, *args, **kwargs): 29 - if (now - start).seconds> timeout: 30 + if timeout != -1 and (now - start).seconds> timeout: 33 program_log.debug("%d seconds timeout" % timeout) 34 @@ -196,7 +197,7 @@ def timeout_command(argv, timeout, *args, **kwargs): 39 …gv, root='/', stdin=None, env_prune=None, stderr_to_stdout=False, binary_output=False, timeout=10): [all …]
|
/openbmc/linux/tools/testing/vsock/ |
H A D | timeout.c | 2 /* Timeout API for single-threaded programs that use blocking 12 * timeout_begin(TIMEOUT); 24 #include "timeout.h" 26 static volatile bool timeout; variable 34 timeout = true; in sigalrm() 37 /* Start a timeout. Call timeout_check() to verify that the timeout hasn't 38 * expired. timeout_end() must be called to stop the timeout. Timeouts cannot 46 /* Exit with an error message if the timeout has expired */ 49 if (timeout) { in timeout_check() 55 /* Stop a timeout */ [all …]
|
/openbmc/linux/tools/testing/selftests/firmware/ |
H A D | fw_fallback.sh | 30 local timeout=10 33 timeout=$(( $timeout - 1 )) 34 if [ "$timeout" -eq 0 ]; then 57 local timeout=10 60 timeout=$(( $timeout - 1 )) 61 if [ "$timeout" -eq 0 ]; then 86 local timeout=10 89 timeout=$(( $timeout - 1 )) 90 if [ "$timeout" -eq 0 ]; then 119 local timeout=10 [all …]
|
/openbmc/linux/include/linux/ |
H A D | wait.h | 300 * on purpose; we use long where we can return timeout values and int 392 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 394 TASK_UNINTERRUPTIBLE, 0, timeout, \ 398 * wait_event_timeout - sleep until a condition gets true or a timeout elapses 401 * @timeout: timeout, in jiffies 411 * 0 if the @condition evaluated to %false after the @timeout elapsed, 412 * 1 if the @condition evaluated to %true after the @timeout elapsed, 414 * to %true before the @timeout elapsed. 416 #define wait_event_timeout(wq_head, condition, timeout) \ argument 418 long __ret = timeout; \ [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/glib-2.0/files/ |
H A D | skip-timeout.patch | 4 Subject: [PATCH] Skip /timeout/rounding test 6 This test is sensitive to load because it expects certain timeout operations 15 glib/tests/timeout.c | 1 - 18 diff --git a/glib/tests/timeout.c b/glib/tests/timeout.c 20 --- a/glib/tests/timeout.c 21 +++ b/glib/tests/timeout.c 23 g_test_add_func ("/timeout/seconds-once", test_seconds_once); 24 g_test_add_func ("/timeout/weeks-overflow", test_weeks_overflow); 25 g_test_add_func ("/timeout/far-future-ready-time", test_far_future_ready_time); 26 - g_test_add_func ("/timeout/rounding", test_rounding);
|
/openbmc/openbmc-test-automation/redfish/service_root/ |
H A D | test_sessions_management.robot | 48 Set Session Timeout And Verify Response Code 49 [Documentation] Set Session Timeout And Verify Response Code. 51 [Template] Set Session Timeout And Verify 52 [Teardown] Set Session Timeout And Verify ${Default_Timeout_Value} ${HTTP_OK} 54 # The minimum & maximum allowed values for session timeout are 30 67 Set Session Timeout And Verify Session After Timeout 68 [Documentation] Set timeout for session service and verify session is deleted after timeout. 70 [Teardown] Set Session Timeout And Verify ${Default_Timeout_Value} ${HTTP_OK} 71 [Template] Set Session Timeout And Verify Session Deleted After Timeout 73 #timeout Value [all …]
|
/openbmc/linux/arch/arm/mach-sa1100/ |
H A D | ssp.c | 23 #define TIMEOUT 100000 macro 48 * %-ETIMEDOUT timeout occurred 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() 85 * %-ETIMEDOUT timeout occurred 90 int timeout = TIMEOUT; in ssp_read_word() local 93 if (!--timeout) in ssp_read_word() 112 * %-ETIMEDOUT timeout occurred [all …]
|