/third_party/eudev/src/udev/ |
H A D | udevadm-settle.c | 44 " -t --timeout=SECONDS Maximum time to wait for events\n" in help() 51 { "timeout", required_argument, NULL, 't' }, in adm_settle() 61 unsigned int timeout = 120; in adm_settle() local 73 r = safe_atou(optarg, &timeout); in adm_settle() 75 fprintf(stderr, "Invalid timeout value '%s': %s\n", in adm_settle() 109 deadline = now(CLOCK_MONOTONIC) + timeout * USEC_PER_SEC; in adm_settle() 117 if (udev_ctrl_send_ping(uctrl, MAX(5U, timeout)) < 0) { in adm_settle()
|
/third_party/ltp/lib/ |
H A D | tst_checkpoint.c | 85 struct timespec timeout; in tst_checkpoint_wait() local 96 timeout.tv_sec = msec_timeout/1000; in tst_checkpoint_wait() 97 timeout.tv_nsec = (msec_timeout%1000) * 1000000; in tst_checkpoint_wait() 101 tst_futexes[id], &timeout); in tst_checkpoint_wait()
|
/third_party/node/deps/ngtcp2/ngtcp2/lib/ |
H A D | ngtcp2_pmtud.c | 94 ngtcp2_tstamp timeout; in ngtcp2_pmtud_probe_sent() local 97 timeout = pto; in ngtcp2_pmtud_probe_sent() 99 timeout = 3 * pto; in ngtcp2_pmtud_probe_sent() 102 pmtud->expiry = ts + timeout; in ngtcp2_pmtud_probe_sent()
|
/third_party/node/deps/npm/node_modules/retry/lib/ |
H A D | retry.js | 54 var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt)); 55 timeout = Math.min(timeout, opts.maxTimeout); 57 return timeout;
|
/third_party/ltp/testcases/kernel/syscalls/times/ |
H A D | times03.c | 30 static volatile int timeout; variable 35 timeout = 1; in sighandler() 44 while (!timeout) in work() 48 timeout = 0; in work()
|
/third_party/ltp/testcases/kernel/syscalls/select/ |
H A D | select01.c | 9 * 1.) select(2) to fd of regular file with no I/O and small timeout 10 * 2.) select(2) to fd of system pipe with no I/O and small timeout 11 * 3.) select(2) of fd of a named-pipe (FIFO) with no I/O and small timeout value 40 struct timeval timeout; in run() local 44 timeout.tv_sec = 0; in run() 45 timeout.tv_usec = 100000; in run() 52 TEST(do_select(*tc->nfds + 1, tc->readfds, tc->writefds, 0, &timeout)); in run()
|
/third_party/ltp/testcases/kernel/syscalls/recvmmsg/ |
H A D | recvmmsg01.c | 8 * - EINVAL Bad seconds value for the timeout argument 9 * - EINVAL Bad nanoseconds value for the timeout argument 10 * - EFAULT Bad timeout address 53 .desc = "negative seconds in timeout", 61 .desc = "overflow in nanoseconds in timeout", 69 .desc = "bad timeout address", 81 void *timeout; in do_test() local 88 timeout = bad_addr; in do_test() 90 timeout = tst_ts_get(&ts); in do_test() 92 TST_EXP_FAIL2(tv->recvmmsg(*tc->fd, *tc->msg_vec, VLEN, 0, timeout), in do_test() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
H A D | 2-1.c | 42 struct timespec timeout; in t1_func() local 58 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in t1_func() 59 timeout.tv_nsec = curtime.tv_usec * 1000; in t1_func() 62 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout); in t1_func()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 3-1.c | 12 * shall be terminated when the specified timeout expires. 57 struct timespec timeout, ts; in fn_rd() local 68 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_rd() 69 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_rd() 72 rc = pthread_rwlock_timedrdlock(&rwlock, &timeout); in fn_rd() 170 /* we expect rd_thread2 to block and timeout. */ in main() 188 "but the timeout is not correct: " in main()
|
H A D | 1-1.c | 12 * shall be terminated when the specified timeout expires. 54 struct timespec timeout; in fn_rd() local 60 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; in fn_rd() 61 timeout.tv_nsec = currsec1.tv_usec * 1000; in fn_rd() 64 rc = pthread_rwlock_timedrdlock(&rwlock, &timeout); in fn_rd() 156 /* we expect rd_thread2 to block and timeout. */ in main() 173 ("Test FAILED: the timer expired and thread terminated, but the timeout is not correct: start time %ld.%06ld, end time %ld.%06ld\n", in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
H A D | 2-2.c | 37 struct timespec timeout; in thr_func() local 54 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in thr_func() 55 timeout.tv_nsec = curtime.tv_usec * 1000; in thr_func() 59 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout); in thr_func()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
H A D | 2-2.c | 37 struct timespec timeout; in thr_func() local 54 timeout.tv_sec = curtime.tv_sec + TIMEOUT; in thr_func() 55 timeout.tv_nsec = curtime.tv_usec * 1000; in thr_func() 60 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout); in thr_func()
|
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-wasm-gen.cc | 69 TNode<BigInt> timeout = BigIntFromInt32Pair(timeout_low, timeout_high); in TF_BUILTIN() local 76 address_number, expected_value_number, timeout)); in TF_BUILTIN() 98 TNode<BigInt> timeout = BigIntFromInt32Pair(timeout_low, timeout_high); in TF_BUILTIN() local 105 address_number, expected_value, timeout)); in TF_BUILTIN()
|
/third_party/musl/libc-test/src/functionalext/fortify/ |
H A D | poll.c | 64 // Set timeout to 0 to prevent waiting for polling if hardening tests fail. in poll_0020() 144 // Set timeout to zero to prevent waiting in ppoll when fortify test fails. in ppoll_0020() 145 struct timespec timeout; in ppoll_0020() local 146 timeout.tv_sec = timeout.tv_nsec = 0; in ppoll_0020() 155 ppoll(buf, fd_count, &timeout, NULL); in ppoll_0020()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | __recvmmsg_time64.c | 84 struct timespec timeout; in recvsss() local 108 timeout.tv_sec = TIMEOUT; in recvsss() 109 timeout.tv_nsec = 0; in recvsss() 111 retval = __recvmmsg_time64(sockfd, msgs, VLEN, 0, &timeout); in recvsss()
|
H A D | recvmmsg.c | 82 struct timespec timeout; in recvsss() local 106 timeout.tv_sec = TIMEOUT; in recvsss() 107 timeout.tv_nsec = 0; in recvsss() 109 retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout); in recvsss()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | Fence.cpp | 106 GLuint64 timeout, in clientWait() 110 return mFence->clientWait(context, flags, timeout, outResult); in clientWait() 113 angle::Result Sync::serverWait(const Context *context, GLbitfield flags, GLuint64 timeout) in serverWait() argument 115 return mFence->serverWait(context, flags, timeout); in serverWait() 104 clientWait(const Context *context, GLbitfield flags, GLuint64 timeout, GLenum *outResult) clientWait() argument
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkTimelineSemaphore.hpp | 147 const std::chrono::time_point<Clock, Duration> timeout) in wait() 149 return shared->wait(value, timeout); in wait() 154 const std::chrono::time_point<Clock, Duration> timeout) in wait() 157 if(!cv.wait_until(lock, timeout, [&]() { return counter == value; })) in wait() 146 wait(uint64_t value, const std::chrono::time_point<Clock, Duration> timeout) wait() argument 153 wait(uint64_t value, const std::chrono::time_point<Clock, Duration> timeout) wait() argument
|
/kernel/linux/linux-5.10/drivers/iio/pressure/ |
H A D | dps310.c | 421 static int dps310_ready_status(struct dps310_data *data, int ready_bit, int timeout) in dps310_ready_status() argument 423 int sleep = DPS310_POLL_SLEEP_US(timeout); in dps310_ready_status() 427 sleep, timeout); in dps310_ready_status() 430 static int dps310_ready(struct dps310_data *data, int ready_bit, int timeout) in dps310_ready() argument 434 rc = dps310_ready_status(data, ready_bit, timeout); in dps310_ready() 442 if (dps310_ready_status(data, ready_bit, timeout)) in dps310_ready() 460 int timeout; in dps310_read_pres_raw() local 468 timeout = DPS310_POLL_TIMEOUT_US(rate); in dps310_read_pres_raw() 470 /* Poll for sensor readiness; base the timeout upon the sample rate. */ in dps310_read_pres_raw() 471 rc = dps310_ready(data, DPS310_PRS_RDY, timeout); in dps310_read_pres_raw() 508 int timeout; dps310_read_temp_raw() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
H A D | cm.c | 54 struct delayed_work timeout; member 60 struct delayed_work timeout; member 179 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() 245 INIT_DELAYED_WORK(&ent->timeout, id_map_ent_timeout); in id_map_alloc() 291 schedule_delayed_work(&id->timeout, CM_CLEANUP_CACHE_TIMEOUT); in schedule_delayed() 293 /* Adjust timeout if already scheduled */ in schedule_delayed() 294 mod_delayed_work(system_wq, &id->timeout, CM_CLEANUP_CACHE_TIMEOUT); in schedule_delayed() 348 struct rej_tmout_entry *item = container_of(delay, struct rej_tmout_entry, timeout); in rej_tmout_timeout() 373 mod_delayed_work(system_wq, &item->timeout, CM_CLEANUP_CACHE_TIMEOUT); in alloc_rej_tmout() 382 INIT_DELAYED_WORK(&item->timeout, rej_tmout_timeou in alloc_rej_tmout() [all...] |
/kernel/linux/linux-5.10/drivers/staging/kpc2000/ |
H A D | kpc2000_i2c.c | 159 static int i801_check_post(struct kpc_i2c *priv, int status, int timeout) in i801_check_post() argument 164 if (timeout) { in i801_check_post() 165 dev_err(&priv->adapter.dev, "Transaction timeout\n"); in i801_check_post() 213 int timeout = 0; in i801_transaction() local 227 } while ((status & SMBHSTSTS_HOST_BUSY) && (timeout++ < MAX_RETRIES)); in i801_transaction() 229 result = i801_check_post(priv, status, timeout > MAX_RETRIES); in i801_transaction() 240 int timeout = 0; in i801_wait_hwpec() local 246 } while ((!(status & SMBHSTSTS_INTR)) && (timeout++ < MAX_RETRIES)); in i801_wait_hwpec() 248 if (timeout > MAX_RETRIES) in i801_wait_hwpec() 297 int timeout; in i801_block_transaction_byte_by_byte() local [all...] |
/kernel/linux/linux-6.6/drivers/iio/pressure/ |
H A D | dps310.c | 421 static int dps310_ready_status(struct dps310_data *data, int ready_bit, int timeout) in dps310_ready_status() argument 423 int sleep = DPS310_POLL_SLEEP_US(timeout); in dps310_ready_status() 427 sleep, timeout); in dps310_ready_status() 430 static int dps310_ready(struct dps310_data *data, int ready_bit, int timeout) in dps310_ready() argument 434 rc = dps310_ready_status(data, ready_bit, timeout); in dps310_ready() 442 if (dps310_ready_status(data, ready_bit, timeout)) in dps310_ready() 460 int timeout; in dps310_read_pres_raw() local 468 timeout = DPS310_POLL_TIMEOUT_US(rate); in dps310_read_pres_raw() 470 /* Poll for sensor readiness; base the timeout upon the sample rate. */ in dps310_read_pres_raw() 471 rc = dps310_ready(data, DPS310_PRS_RDY, timeout); in dps310_read_pres_raw() 508 int timeout; dps310_read_temp_raw() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/ |
H A D | cm.c | 54 struct delayed_work timeout; member 60 struct delayed_work timeout; member 180 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() 246 INIT_DELAYED_WORK(&ent->timeout, id_map_ent_timeout); in id_map_alloc() 292 queue_delayed_work(cm_wq, &id->timeout, CM_CLEANUP_CACHE_TIMEOUT); in schedule_delayed() 294 /* Adjust timeout if already scheduled */ in schedule_delayed() 295 mod_delayed_work(cm_wq, &id->timeout, CM_CLEANUP_CACHE_TIMEOUT); in schedule_delayed() 349 struct rej_tmout_entry *item = container_of(delay, struct rej_tmout_entry, timeout); in rej_tmout_timeout() 374 mod_delayed_work(cm_wq, &item->timeout, CM_CLEANUP_CACHE_TIMEOUT); in alloc_rej_tmout() 383 INIT_DELAYED_WORK(&item->timeout, rej_tmout_timeou in alloc_rej_tmout() [all...] |
/third_party/python/Lib/asyncio/ |
H A D | tasks.py | 389 async def wait(fs, *, timeout=None, return_when=ALL_COMPLETED): 403 when the timeout occurs are returned in the second set. 418 return await _wait(fs, timeout, return_when, loop) 426 async def wait_for(fut, timeout): 427 """Wait for the single Future or coroutine to complete, with timeout. 431 Returns result of the Future or coroutine. When a timeout occurs, 441 if timeout is None: 444 if timeout <= 0: 457 timeout_handle = loop.call_later(timeout, _release_waiter, waiter) 464 # wait until the future completes or the timeout [all...] |
/kernel/linux/linux-5.10/drivers/phy/tegra/ |
H A D | xusb-tegra210.c | 263 unsigned long timeout; in tegra210_pex_uphy_enable() local 344 timeout = jiffies + msecs_to_jiffies(100); in tegra210_pex_uphy_enable() 346 while (time_before(jiffies, timeout)) { in tegra210_pex_uphy_enable() 354 if (time_after_eq(jiffies, timeout)) { in tegra210_pex_uphy_enable() 363 timeout = jiffies + msecs_to_jiffies(100); in tegra210_pex_uphy_enable() 365 while (time_before(jiffies, timeout)) { in tegra210_pex_uphy_enable() 373 if (time_after_eq(jiffies, timeout)) { in tegra210_pex_uphy_enable() 382 timeout = jiffies + msecs_to_jiffies(100); in tegra210_pex_uphy_enable() 384 while (time_before(jiffies, timeout)) { in tegra210_pex_uphy_enable() 392 if (time_after_eq(jiffies, timeout)) { in tegra210_pex_uphy_enable() 492 unsigned long timeout; tegra210_sata_uphy_enable() local [all...] |