Home
last modified time | relevance | path

Searched refs:timeout (Results 26 - 50 of 8086) sorted by relevance

12345678910>>...324

/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dmtx_timedlock.c27 * @tc.desc : Provide correct parameters, test timeout and lock
32 struct timespec timeout; in mtx_timedlock_0100() local
33 timeout.tv_sec = TWO; in mtx_timedlock_0100()
34 timeout.tv_nsec = 0; in mtx_timedlock_0100()
42 ret = mtx_timedlock(&mutex, &timeout); in mtx_timedlock_0100()
60 struct timespec timeout; in mtx_timedlock_0200() local
61 timeout.tv_sec = TWO; in mtx_timedlock_0200()
62 timeout.tv_nsec = 0; in mtx_timedlock_0200()
74 ret = mtx_timedlock(&mutex, &timeout); in mtx_timedlock_0200()
86 * @tc.desc : Provide correct parameters, test timeout an
91 struct timespec timeout; mtx_timedlock_time64_0100() local
[all...]
/third_party/node/deps/uv/src/
H A Dtimer.c46 if (a->timeout < b->timeout) in timer_less_than()
48 if (b->timeout < a->timeout) in timer_less_than()
51 /* Compare start_id when both have the same timeout. start_id is in timer_less_than()
61 handle->timeout = 0; in uv_timer_init()
69 uint64_t timeout, in uv_timer_start()
79 clamped_timeout = handle->loop->time + timeout; in uv_timer_start()
80 if (clamped_timeout < timeout) in uv_timer_start()
84 handle->timeout in uv_timer_start()
67 uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat) uv_timer_start() argument
[all...]
/kernel/linux/linux-5.10/drivers/watchdog/
H A Dda9063_wdt.c23 * Watchdog selector to timeout in seconds.
25 * others: timeout = 2048 ms * 2^(TWDSCALE-1).
49 * Read the currently active timeout.
69 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
75 * The watchdog triggers a reboot if a timeout value is already in da9063_wdt_update_timeout()
76 * programmed because the timeout value combines two functions in da9063_wdt_update_timeout()
78 * The watchdog must be disabled to be able to change the timeout in da9063_wdt_update_timeout()
80 * new timeout value which enables the watchdog again. in da9063_wdt_update_timeout()
87 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout()
98 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start()
133 da9063_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) da9063_wdt_set_timeout() argument
195 unsigned int timeout; da9063_wdt_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/
H A Di915_gem_wait.c20 long timeout) in i915_gem_object_wait_fence()
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()
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()
167 * @timeout
18 i915_gem_object_wait_fence(struct dma_fence *fence, unsigned int flags, long timeout) i915_gem_object_wait_fence() argument
67 i915_gem_object_wait_reservation(struct dma_resv *resv, unsigned int flags, long timeout) i915_gem_object_wait_reservation() argument
170 i915_gem_object_wait(struct drm_i915_gem_object *obj, unsigned int flags, long timeout) i915_gem_object_wait() argument
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_conntrack_proto_generic.c24 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 / H in generic_timeout_obj_to_nlattr()
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_conntrack_proto_generic.c24 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 / H in generic_timeout_obj_to_nlattr()
[all...]
/kernel/linux/linux-6.6/include/net/netfilter/
H A Dnf_conntrack_timeout.h21 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()
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);
51 nf_ct_timeout_ext_add(struct nf_conn *ct, struct nf_ct_timeout *timeout, gfp_t gfp) nf_ct_timeout_ext_add() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dswait.h193 #define __swait_event_timeout(wq, condition, timeout) \
195 TASK_UNINTERRUPTIBLE, timeout, \
198 #define swait_event_timeout_exclusive(wq, condition, timeout) \
200 long __ret = timeout; \
202 __ret = __swait_event_timeout(wq, condition, timeout); \
218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \
220 TASK_INTERRUPTIBLE, timeout, \
223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\
225 long __ret = timeout; \
228 condition, timeout); \
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dswait.h193 #define __swait_event_timeout(wq, condition, timeout) \
195 TASK_UNINTERRUPTIBLE, timeout, \
198 #define swait_event_timeout_exclusive(wq, condition, timeout) \
200 long __ret = timeout; \
202 __ret = __swait_event_timeout(wq, condition, timeout); \
218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \
220 TASK_INTERRUPTIBLE, timeout, \
223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\
225 long __ret = timeout; \
228 condition, timeout); \
[all...]
/third_party/node/deps/uv/src/unix/
H A Depoll.c103 void uv__io_poll(uv_loop_t* loop, int timeout) { in uv__io_poll() argument
106 * indefinitely, we cap the timeout and poll again if necessary. in uv__io_poll()
185 assert(timeout >= -1); in uv__io_poll()
188 real_timeout = timeout; in uv__io_poll()
192 user_timeout = timeout; in uv__io_poll()
193 timeout = 0; in uv__io_poll()
209 /* Only need to set the provider_entry_time if timeout != 0. The function in uv__io_poll()
212 if (timeout != 0) in uv__io_poll()
218 if (sizeof(int32_t) == sizeof(long) && timeout >= max_safe_timeout) in uv__io_poll()
219 timeout in uv__io_poll()
[all...]
/third_party/python/Lib/test/
H A Dmock_socket.py47 self.timeout = None
59 def settimeout(self, timeout):
60 if timeout is None:
61 self.timeout = _defaulttimeout
63 self.timeout = timeout
66 return self.timeout
117 def create_connection(address, timeout=socket_module._GLOBAL_DEFAULT_TIMEOUT,
124 if timeout is socket_module._GLOBAL_DEFAULT_TIMEOUT:
125 timeout
[all...]
/third_party/libbpf/ci/managers/
H A Dtravis_wait.bash8 local timeout="${1}"
14 while [[ "${count}" -lt "${timeout}" ]]; do
16 echo -ne "Still running (${count} of ${timeout}): ${*}\\r"
20 echo -e "\\n${ANSI_RED}Timeout (${timeout} minutes) reached. Terminating \"${*}\"${ANSI_RESET}\\n"
25 local timeout="${1}"
27 if [[ "${timeout}" =~ ^[0-9]+$ ]]; then
30 timeout=20
39 travis_jigger "${!}" "${timeout}" "${cmd[@]}" &
/third_party/glfw/src/
H A Dposix_poll.c39 GLFWbool _glfwPollPOSIX(struct pollfd* fds, nfds_t count, double* timeout) in _glfwPollPOSIX() argument
43 if (timeout) in _glfwPollPOSIX()
48 const time_t seconds = (time_t) *timeout; in _glfwPollPOSIX()
49 const long nanoseconds = (long) ((*timeout - seconds) * 1e9); in _glfwPollPOSIX()
53 const time_t seconds = (time_t) *timeout; in _glfwPollPOSIX()
54 const long nanoseconds = (long) ((*timeout - seconds) * 1e9); in _glfwPollPOSIX()
58 const int milliseconds = (int) (*timeout * 1e3); in _glfwPollPOSIX()
63 *timeout -= (_glfwPlatformGetTimerValue() - base) / in _glfwPollPOSIX()
70 else if (*timeout <= 0.0) in _glfwPollPOSIX()
/third_party/lwip/src/core/
H A Dtimeouts.c123 /** The one and only timeout list */
188 struct sys_timeo *timeout, *t; in sys_timeout_abs() local
190 timeout = (struct sys_timeo *)memp_malloc(MEMP_SYS_TIMEOUT); in sys_timeout_abs()
191 if (timeout == NULL) { in sys_timeout_abs()
192 LWIP_ASSERT("sys_timeout: timeout != NULL, pool MEMP_SYS_TIMEOUT is empty", timeout != NULL); in sys_timeout_abs()
196 timeout->next = NULL; in sys_timeout_abs()
197 timeout->h = handler; in sys_timeout_abs()
198 timeout->arg = arg; in sys_timeout_abs()
199 timeout in sys_timeout_abs()
[all...]
/test/xts/dcts/communication/softbus_standard/common/
H A Dwifi_utils.cpp44 int timeout = 10; in EnableWifi() local
51 LOG("[wifi]is active, timeout:%d", timeout); in EnableWifi()
55 timeout--; in EnableWifi()
56 } while (timeout > 0); in EnableWifi()
58 if (timeout <= 0) { in EnableWifi()
59 LOG("[wifi]wait wifi state fail[timeout]"); in EnableWifi()
87 int timeout = 10; in DisableWifi() local
94 LOG("[wifi]not active, timeout:%d", timeout); in DisableWifi()
136 int timeout = 10; ConnectTo() local
[all...]
/third_party/libuv/src/
H A Dtimer.c49 if (a->timeout < b->timeout) in timer_less_than()
51 if (b->timeout < a->timeout) in timer_less_than()
54 /* Compare start_id when both have the same timeout. start_id is in timer_less_than()
64 handle->timeout = 0; in uv_timer_init()
72 uint64_t timeout, in uv_timer_start()
82 clamped_timeout = handle->loop->time + timeout; in uv_timer_start()
83 if (clamped_timeout < timeout) in uv_timer_start()
87 handle->timeout in uv_timer_start()
70 uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat) uv_timer_start() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/timens/
H A Dfutex.c23 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 in run_test()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/timens/
H A Dfutex.c23 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 in run_test()
[all...]
/kernel/liteos_a/testsuites/unittest/extended/signal/full/
H A Dsignal_test_026.cpp46 struct timespec timeout; in TestCase() local
48 timeout.tv_nsec = 0; in TestCase()
49 timeout.tv_sec = 1; in TestCase()
57 ret = sigtimedwait(&newset, &info, &timeout); in TestCase()
68 timeout.tv_nsec = 1; in TestCase()
69 timeout.tv_sec = -1; in TestCase()
70 ret = sigtimedwait(&newset, &info, &timeout); in TestCase()
81 timeout.tv_nsec = 1; in TestCase()
82 timeout.tv_sec = 3; // 3, set the sec of timeout in TestCase()
[all...]
/foundation/multimedia/media_foundation/src/osal/task/pthread/
H A Dcondition_variable.cpp101 struct timespec timeout = {0, 0}; in WaitFor() local
103 clock_gettime(CLOCK_REALTIME, &timeout); in WaitFor()
105 clock_gettime(CLOCK_MONOTONIC, &timeout); in WaitFor()
107 timeout = NsToTm(TmToNs(timeout) + timeoutMs * std::mega::num); in WaitFor()
108 return pthread_cond_timedwait(&cond_, &(lock.mutex_->nativeHandle_), &timeout) == 0; in WaitFor()
117 struct timespec timeout = {0, 0}; in WaitFor() local
119 clock_gettime(CLOCK_REALTIME, &timeout); in WaitFor()
121 clock_gettime(CLOCK_MONOTONIC, &timeout); in WaitFor()
123 timeout in WaitFor()
[all...]
/kernel/linux/linux-5.10/block/
H A Dblk-timeout.c3 * 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 time
[all...]
/kernel/linux/linux-6.6/block/
H A Dblk-timeout.c3 * 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 time
[all...]
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
H A Dlinux_completion.c134 unsigned long linux_wait_for_completion_timeout(struct completion *x, unsigned long timeout) in linux_wait_for_completion_timeout() argument
142 return timeout; in linux_wait_for_completion_timeout()
148 return timeout; in linux_wait_for_completion_timeout()
156 return timeout; in linux_wait_for_completion_timeout()
164 return timeout ? timeout : 1; in linux_wait_for_completion_timeout()
167 if (timeout == 0) { in linux_wait_for_completion_timeout()
169 return timeout; in linux_wait_for_completion_timeout()
172 OsTaskWaitSetPendMask(OS_TASK_WAIT_COMPLETE, (UINTPTR)x, timeout); in linux_wait_for_completion_timeout()
173 ret = runTask->ops->wait(runTask, &x->comList, timeout); in linux_wait_for_completion_timeout()
[all...]
/kernel/linux/linux-5.10/drivers/input/serio/
H A Dlibps2.c26 unsigned int timeout, unsigned int max_attempts)
47 msecs_to_jiffies(timeout));
86 int ps2_sendbyte(struct ps2dev *ps2dev, u8 byte, unsigned int timeout) in ps2_sendbyte() argument
92 retval = ps2_do_sendbyte(ps2dev, byte, timeout, 1); in ps2_sendbyte()
122 void ps2_drain(struct ps2dev *ps2dev, size_t maxbytes, unsigned int timeout) in ps2_drain() argument
138 msecs_to_jiffies(timeout)); in ps2_drain()
166 * response and tries to reduce remaining timeout to speed up command
171 unsigned int command, unsigned int timeout) in ps2_adjust_timeout()
178 * shorten the timeout. in ps2_adjust_timeout()
182 if (timeout > msecs_to_jiffie in ps2_adjust_timeout()
170 ps2_adjust_timeout(struct ps2dev *ps2dev, unsigned int command, unsigned int timeout) ps2_adjust_timeout() argument
228 unsigned int timeout; __ps2_command() local
[all...]
/kernel/linux/linux-5.10/drivers/tty/
H A Dtty_ldsem.c156 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()
209 * was no timeout; otherwise, cleanup lock wait. 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()
295 __ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, long timeout) __ldsem_down_read_nested() argument
314 __ldsem_down_write_nested(struct ld_semaphore *sem, int subclass, long timeout) __ldsem_down_write_nested() argument
337 ldsem_down_read(struct ld_semaphore *sem, long timeout) ldsem_down_read() argument
363 ldsem_down_write(struct ld_semaphore *sem, long timeout) ldsem_down_write() argument
417 ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, long timeout) ldsem_down_read_nested() argument
423 ldsem_down_write_nested(struct ld_semaphore *sem, int subclass, long timeout) ldsem_down_write_nested() argument
[all...]

Completed in 9 milliseconds

12345678910>>...324