/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 …]
|
/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/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 81 timeout = h->timeout_find_get(net, timeout_name); in nf_ct_set_timeout() [all …]
|
H A D | nfnetlink_cttimeout.c | 44 struct nf_ct_timeout timeout; member 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() 136 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout() 137 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout() 140 return ctnl_timeout_parse_policy(&matching->timeout.data, 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() 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/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() 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() 80 timeout = 10; in set_sec_mon_state_non_sec() 93 while (timeout) { in set_sec_mon_state_non_sec() 101 timeout--; in set_sec_mon_state_non_sec() [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/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/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() 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() 167 ulong timeout = 100000; in eeprom_enable_erase_and_write() local 175 while ((timeout > 0) && (smc911x_reg_read(E2P_CMD) & E2P_CMD_EPC_BUSY_)) { in eeprom_enable_erase_and_write() 177 timeout--; in eeprom_enable_erase_and_write() 180 if (timeout == 0) { in eeprom_enable_erase_and_write() [all …]
|
/openbmc/linux/io_uring/ |
H A D | timeout.c | 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 104 list_del_init(&timeout->list); in io_kill_timeout() 114 struct io_timeout *timeout, *tmp; in io_flush_timeouts() local [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/openbmc-tools/pwmtachtool/src/ |
H A D | EINTR_wrappers.c | 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() 109 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in sigwrap_epoll_wait() argument 113 if (timeout != -1) in sigwrap_epoll_wait() 117 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_wait() 118 Timeout.tv_nsec = (timeout % 1000) * 1000000; // Convert msec to nsec in sigwrap_epoll_wait() 125 int Result = epoll_wait(epfd, events, maxevents, timeout); in sigwrap_epoll_wait() 133 if (timeout == -1) in sigwrap_epoll_wait() 139 timeout = To.Timeout.tv_sec * 1000 + To.Timeout.tv_nsec / 1000000; in sigwrap_epoll_wait() [all …]
|
/openbmc/openbmc-tools/adcapp/src/ |
H A D | EINTR_wrappers.c | 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() 110 int sigwrap_semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout) 114 if (timeout == NULL) 117 sigwrap_InitTimeout(&To, timeout); 136 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout) in sigwrap_epoll_wait() argument 140 if (timeout != -1) in sigwrap_epoll_wait() 144 Timeout.tv_sec = timeout / 1000; in sigwrap_epoll_wait() 145 Timeout.tv_nsec = (timeout % 1000) * 1000000; // Convert msec to nsec in sigwrap_epoll_wait() [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | redfish_request.py | 67 def request_login(self, headers, url, credential, timeout=10): argument 106 def request_get(self, headers, url, timeout=10, verify=False): argument 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 186 + str(timeout) 193 url, headers=headers, data=data, timeout=timeout, verify=verify 199 def request_post(self, headers, url, data=None, timeout=10, verify=False): argument 235 + str(timeout) 245 timeout=timeout, [all …]
|
/openbmc/linux/include/linux/ |
H A D | wait.h | 392 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 394 TASK_UNINTERRUPTIBLE, 0, timeout, \ 416 #define wait_event_timeout(wq_head, condition, timeout) \ argument 418 long __ret = timeout; \ 421 __ret = __wait_event_timeout(wq_head, condition, timeout); \ 425 #define __wait_event_freezable_timeout(wq_head, condition, timeout) \ argument 427 (TASK_INTERRUPTIBLE|TASK_FREEZABLE), 0, timeout, \ 434 #define wait_event_freezable_timeout(wq_head, condition, timeout) \ argument 436 long __ret = timeout; \ 439 __ret = __wait_event_freezable_timeout(wq_head, condition, timeout); \ [all …]
|
H A D | swait.h | 193 #define __swait_event_timeout(wq, condition, timeout) \ argument 195 TASK_UNINTERRUPTIBLE, timeout, \ 198 #define swait_event_timeout_exclusive(wq, condition, timeout) \ argument 200 long __ret = timeout; \ 202 __ret = __swait_event_timeout(wq, condition, timeout); \ 218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \ argument 220 TASK_INTERRUPTIBLE, timeout, \ 223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\ argument 225 long __ret = timeout; \ 228 condition, timeout); \ [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | lpc32xx_nand_mlc.c | 237 unsigned int i, status, timeout, err, max_bitflips = 0; in lpc32xx_read_page_hwecc() local 245 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_read_page_hwecc() 285 unsigned int i, status, timeout; in lpc32xx_read_page_raw() local 293 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_read_page_raw() 333 unsigned int i, status, timeout, err, max_bitflips = 0; in lpc32xx_read_oob() local 345 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_read_oob() 387 unsigned int i, status, timeout; in lpc32xx_write_page_hwecc() local 399 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_write_page_hwecc() 411 for (timeout = LPC32X_NAND_TIMEOUT; timeout; timeout--) { in lpc32xx_write_page_hwecc() 481 unsigned int i, status, timeout; in lpc32xx_write_oob() local [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/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_wait.c | 20 long timeout) in i915_gem_object_wait_fence() argument 25 return timeout; in i915_gem_object_wait_fence() 28 return i915_request_wait_timeout(to_request(fence), flags, timeout); in i915_gem_object_wait_fence() 32 timeout); in i915_gem_object_wait_fence() 69 long timeout) in i915_gem_object_wait_reservation() argument 73 long ret = timeout ?: 1; in i915_gem_object_wait_reservation() 80 ret = i915_gem_object_wait_fence(fence, flags, timeout); in i915_gem_object_wait_reservation() 84 if (timeout) in i915_gem_object_wait_reservation() 85 timeout = ret; in i915_gem_object_wait_reservation() 172 long timeout) in i915_gem_object_wait() argument [all …]
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_conntrack_timeout.h | 21 struct nf_ct_timeout __rcu *timeout; member 28 struct nf_ct_timeout *timeout; in nf_ct_timeout_data() local 30 timeout = rcu_dereference(t->timeout); in nf_ct_timeout_data() 31 if (timeout == NULL) in nf_ct_timeout_data() 34 return (unsigned int *)timeout->data; in nf_ct_timeout_data() 52 struct nf_ct_timeout *timeout, in nf_ct_timeout_ext_add() argument 62 rcu_assign_pointer(timeout_ext->timeout, timeout); in nf_ct_timeout_ext_add() 84 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout); 105 void (*timeout_put)(struct nf_ct_timeout *timeout);
|
/openbmc/sdbusplus/test/event/ |
H A D | event.cpp | 17 static constexpr auto timeout = 250ms; in TEST_F() local 20 ev.run_one(timeout); in TEST_F() 23 EXPECT_TRUE(stop - start > timeout); in TEST_F() 24 EXPECT_TRUE(stop - start < timeout * 3); in TEST_F() 29 static constexpr auto timeout = 10s; in TEST_F() local 34 ev.run_one(timeout); in TEST_F() 37 EXPECT_TRUE(stop - start < timeout); in TEST_F() 62 static constexpr auto timeout = 50ms; in TEST_F() local 75 auto c = ev.add_oneshot_timer(handler::_, &ran, timeout); in TEST_F() 80 EXPECT_TRUE(stop - start > timeout); in TEST_F() [all …]
|
/openbmc/linux/block/ |
H A D | blk-timeout.c | 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() 137 if (!req->timeout) in blk_add_timer() 138 req->timeout = q->rq_timeout; in blk_add_timer() 142 expiry = jiffies + req->timeout; in blk_add_timer() 152 if (!timer_pending(&q->timeout) || in blk_add_timer() 153 time_before(expiry, q->timeout.expires)) { in blk_add_timer() 154 unsigned long diff = q->timeout.expires - expiry; in blk_add_timer() [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | tty_ldsem.c | 156 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() argument 198 if (!timeout) in down_read_failed() 200 timeout = schedule_timeout(timeout); in down_read_failed() 205 if (!timeout) { in down_read_failed() 230 down_write_failed(struct ld_semaphore *sem, long count, long timeout) in down_write_failed() argument 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 [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/linux/tools/testing/selftests/timens/ |
H A D | futex.c | 23 struct timespec timeout, end; in run_test() local 29 clock_gettime(clockid, &timeout); in run_test() 30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test() 31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test() 32 timeout.tv_sec++; in run_test() 33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test() 37 &timeout, 0, FUTEX_BITSET_MATCH_ANY) >= 0) { in run_test() 50 if (end.tv_sec < timeout.tv_sec || in run_test() 51 (end.tv_sec == timeout.tv_sec && end.tv_nsec < timeout.tv_nsec)) { in run_test()
|