/third_party/mesa3d/.gitlab-ci/bare-metal/ |
H A D | serial_buffer.py | 33 def __init__(self, dev, filename, prefix, timeout=None, line_queue=None): 39 self.serial = serial.Serial(dev, 115200, timeout=timeout) 53 self.timeout = timeout 140 def lines(self, timeout=None, phase=None): 144 if timeout: 145 read_timeout = timeout - (time.monotonic() - start_time) 147 print("read timeout waiting for serial during {}".format(phase)) 152 line = self.line_queue.get(timeout [all...] |
/third_party/eudev/src/udev/ |
H A D | udev-ctrl.c | 260 static int ctrl_send(struct udev_ctrl *uctrl, enum udev_ctrl_msg_type type, int intval, const char *buf, int timeout) { in ctrl_send() argument 293 r = poll(pfd, 1, timeout * MSEC_PER_SEC); in ctrl_send() 314 int udev_ctrl_send_set_log_level(struct udev_ctrl *uctrl, int priority, int timeout) { in udev_ctrl_send_set_log_level() argument 315 return ctrl_send(uctrl, UDEV_CTRL_SET_LOG_LEVEL, priority, NULL, timeout); in udev_ctrl_send_set_log_level() 318 int udev_ctrl_send_stop_exec_queue(struct udev_ctrl *uctrl, int timeout) { in udev_ctrl_send_stop_exec_queue() argument 319 return ctrl_send(uctrl, UDEV_CTRL_STOP_EXEC_QUEUE, 0, NULL, timeout); in udev_ctrl_send_stop_exec_queue() 322 int udev_ctrl_send_start_exec_queue(struct udev_ctrl *uctrl, int timeout) { in udev_ctrl_send_start_exec_queue() argument 323 return ctrl_send(uctrl, UDEV_CTRL_START_EXEC_QUEUE, 0, NULL, timeout); in udev_ctrl_send_start_exec_queue() 326 int udev_ctrl_send_reload(struct udev_ctrl *uctrl, int timeout) { in udev_ctrl_send_reload() argument 327 return ctrl_send(uctrl, UDEV_CTRL_RELOAD, 0, NULL, timeout); in udev_ctrl_send_reload() 330 udev_ctrl_send_set_env(struct udev_ctrl *uctrl, const char *key, int timeout) udev_ctrl_send_set_env() argument 334 udev_ctrl_send_set_children_max(struct udev_ctrl *uctrl, int count, int timeout) udev_ctrl_send_set_children_max() argument 338 udev_ctrl_send_ping(struct udev_ctrl *uctrl, int timeout) udev_ctrl_send_ping() argument 342 udev_ctrl_send_exit(struct udev_ctrl *uctrl, int timeout) udev_ctrl_send_exit() argument [all...] |
/third_party/pulseaudio/src/modules/dbus/ |
H A D | module-dbus-protocol.c | 242 DBusTimeout *timeout = userdata; in time_event_cb() local 244 if (dbus_timeout_get_enabled(timeout)) { in time_event_cb() 246 dbus_timeout_handle(timeout); in time_event_cb() 249 pa_timeval_add(&next, (pa_usec_t) dbus_timeout_get_interval(timeout) * 1000); in time_event_cb() 323 static dbus_bool_t timeout_add_cb(DBusTimeout *timeout, void *data) { in timeout_add_cb() argument 329 pa_assert(timeout); in timeout_add_cb() 332 if (!dbus_timeout_get_enabled(timeout)) in timeout_add_cb() 338 pa_timeval_add(&tv, (pa_usec_t) dbus_timeout_get_interval(timeout) * 1000); in timeout_add_cb() 340 ev = mainloop->time_new(mainloop, &tv, time_event_cb, timeout); in timeout_add_cb() 342 dbus_timeout_set_data(timeout, e in timeout_add_cb() 348 timeout_remove_cb(DBusTimeout *timeout, void *data) timeout_remove_cb() argument 360 timeout_toggled_cb(DBusTimeout *timeout, void *data) timeout_toggled_cb() argument [all...] |
/third_party/curl/tests/libtest/ |
H A D | lib582.c | 130 * Callback invoked by curl to set a timeout. 134 struct timeval *timeout = userp; in curlTimerCallback() local 138 *timeout = tutil_tvnow(); in curlTimerCallback() 139 timeout->tv_usec += (int)timeout_ms * 1000; in curlTimerCallback() 142 timeout->tv_sec = -1; in curlTimerCallback() 176 static int getMicroSecondTimeout(struct timeval *timeout) in getMicroSecondTimeout() argument 181 result = (ssize_t)((timeout->tv_sec - now.tv_sec) * 1000000 + in getMicroSecondTimeout() 182 timeout->tv_usec - now.tv_usec); in getMicroSecondTimeout() 238 struct timeval timeout = {-1, 0}; in test() local 303 multi_setopt(m, CURLMOPT_TIMERDATA, &timeout); in test() [all...] |
H A D | lib530.c | 151 * Callback invoked by curl to set a timeout. 155 struct timeval *timeout = userp; in curlTimerCallback() local 164 *timeout = tutil_tvnow(); in curlTimerCallback() 165 timeout->tv_usec += (int)timeout_ms * 1000; in curlTimerCallback() 168 timeout->tv_sec = -1; in curlTimerCallback() 202 static int getMicroSecondTimeout(struct timeval *timeout) in getMicroSecondTimeout() argument 207 result = (ssize_t)((timeout->tv_sec - now.tv_sec) * 1000000 + in getMicroSecondTimeout() 208 timeout->tv_usec - now.tv_usec); in getMicroSecondTimeout() 266 struct timeval timeout = {-1, 0}; in testone() local 296 multi_setopt(m, CURLMOPT_TIMERDATA, &timeout); in testone() [all...] |
H A D | lib591.c | 81 /* server connection timeout */ in test() 94 long timeout = -99; in test() local 112 multi_timeout(multi, &timeout); in test() 114 /* At this point, timeout is guaranteed to be greater or equal than -1. */ in test() 116 if(timeout != -1L) { in test() 119 itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; in test() 121 itimeout = (int)timeout; in test()
|
H A D | lib597.c | 75 long timeout = -99; in test() local 93 multi_timeout(multi, &timeout); in test() 95 /* At this point, timeout is guaranteed to be greater or equal than in test() 98 if(timeout != -1L) { in test() 101 itimeout = (timeout > (long)INT_MAX) ? INT_MAX : (int)timeout; in test() 103 itimeout = (int)timeout; in test()
|
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_waitfor.py | 10 # The following value can be used as a very small timeout: 11 # it passes check "timeout > 0", but has almost 96 for timeout in [0, -1]: 97 with self.subTest(timeout=timeout): 116 await asyncio.wait_for(fut, timeout) 120 # it should have been cancelled due to the timeout 145 # it should have been cancelled due to the timeout 154 res = await asyncio.wait_for(coro(), timeout=None) 161 task = asyncio.wait_for(fut, timeout [all...] |
/third_party/node/test/known_issues/ |
H A D | test-vm-timeout-escape-queuemicrotask.js | 4 // Promises, nextTick, and queueMicrotask allow code to escape the timeout 16 const timeout = common.platformTimeout(100); 25 `escaped ${timeout}ms timeout at ${span}ms`); 38 { timeout, microtaskMode: 'afterScriptRun' }, 42 message: `Script execution timed out after ${timeout}ms`,
|
/third_party/ltp/testcases/kernel/syscalls/epoll_pwait/ |
H A D | epoll_pwait_var.h | 17 maxevents, int timeout, const sigset_t *sigmask) in do_epoll_pwait() 20 return epoll_pwait(epfd, events, maxevents, timeout, sigmask); in do_epoll_pwait() 24 if (timeout < 0) { in do_epoll_pwait() 27 ts.tv_sec = timeout / MSEC_PER_SEC; in do_epoll_pwait() 28 ts.tv_nsec = NSEC_PER_MSEC * (timeout % MSEC_PER_SEC); in do_epoll_pwait() 16 do_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask) do_epoll_pwait() argument
|
/third_party/node/lib/internal/dns/ |
H A D | utils.js | 48 const { timeout = -1 } = { ...options }; 49 validateInt32(timeout, 'options.timeout', -1); 50 return timeout; 69 const timeout = validateTimeout(options); 74 this[kSnapshotStates] = { timeout, tries }; 76 this[kInitializeHandle](timeout, tries); 79 [kInitializeHandle](timeout, tries) { 81 this._handle = new ChannelWrap(timeout, tries); 188 const { timeout, trie [all...] |
/third_party/ltp/testcases/network/rpc/basic_tests/rpc01/ |
H A D | rpc1.c | 35 struct timeval timeout; in main() local 135 timeout.tv_usec = 0; in main() 136 timeout.tv_sec = 10; in main() 137 clnt = clntudp_create(&server_sin, program, version, timeout, &sock); in main() 142 timeout.tv_usec = 0; in main() 143 timeout.tv_sec = 30; in main() 146 (char *)&return_buffer, timeout); in main() 157 timeout.tv_usec = 0; in main() 158 timeout.tv_sec = 30; in main() 161 (char *)&return_buffer, timeout); in main() [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_fence.c | 39 uint64_t timeout) 47 threaded_context_flush(pctx, fence->tc_token, timeout == 0); 50 if (!timeout) 53 if (timeout == PIPE_TIMEOUT_INFINITE) { 56 int64_t abs_timeout = os_time_get_absolute_timeout(timeout); 134 struct pipe_fence_handle *fence, uint64_t timeout) in fd_fence_finish() 140 if (!fence_flush(pctx, fence, timeout)) in fd_fence_finish() 144 return fd_fence_finish(pscreen, pctx, fence->last_fence, timeout); in fd_fence_finish() 150 int ret = sync_wait(fence->submit_fence.fence_fd, timeout / 1000000); in fd_fence_finish() 154 if (fd_pipe_wait_timeout(fence->pipe, &fence->submit_fence.fence, timeout)) in fd_fence_finish() 133 fd_fence_finish(struct pipe_screen *pscreen, struct pipe_context *pctx, struct pipe_fence_handle *fence, uint64_t timeout) fd_fence_finish() argument [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | connection.py | 42 # A very generous timeout when it comes to local connections... 59 def _init_timeout(timeout=CONNECTION_TIMEOUT): 60 return time.monotonic() + timeout 252 def poll(self, timeout=0.0): 256 return self._poll(timeout) 325 def _poll(self, timeout): 329 return bool(wait([self], timeout)) 422 def _poll(self, timeout): 423 r = wait([self], timeout) 804 def _exhaustive_wait(handles, timeout) [all...] |
/third_party/libuv/test/ |
H A D | benchmark-queue-work.c | 53 int timeout; in BENCHMARK_IMPL() local 56 timeout = 5000; in BENCHMARK_IMPL() 59 ASSERT_OK(uv_timer_start(&timer_handle, timer_cb, timeout, 0)); in BENCHMARK_IMPL() 66 timeout / 1000., in BENCHMARK_IMPL() 67 fmt(&fmtbuf[1], events / (timeout / 1000.))); in BENCHMARK_IMPL()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | weakType.js | 3 timeout?: number; 8 return { timeout: 1000 }; 11 new(s: string): { timeout: 1000 } 17 doSomething(() => ({ timeout: 1000 })); 69 return { timeout: 1000 };
74 doSomething(function () { return ({ timeout: 1000 }); });
|
/third_party/alsa-utils/alsactl/ |
H A D | lock.c | 45 static int state_lock_(const char *lock_file, int lock, int timeout, int _fd) in state_lock_() argument 68 while (fd < 0 && timeout-- > 0) { in state_lock_() 91 if (fd < 0 && timeout <= 0) { in state_lock_() 118 itv.it_value.tv_sec = timeout; in state_lock_() 160 int state_lock(const char *file, int timeout) in state_lock() argument 166 err = state_lock_(fn, 1, timeout, -1); in state_lock() 189 int card_lock(int card_number, int timeout) in card_lock() argument 195 err = state_lock_(fn, 1, timeout, -1); in card_lock()
|
/third_party/node/deps/undici/src/lib/core/ |
H A D | connect.js | 76 function buildConnector ({ allowH2, maxCachedSessions, socketPath, timeout, ...opts }) { 83 timeout = timeout == null ? 10e3 : timeout 133 const cancelTimeout = setupTimeout(() => onConnectTimeout(socket), timeout) 160 function setupTimeout (onConnectTimeout, timeout) { 161 if (!timeout) { 177 }, timeout)
|
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_session_timeout.c | 21 * @brief tests closing sessions after set timeout. Openssl is used for 125 struct timeval timeout; in parentproc() local 171 killchild("SPDY_get_timeout returned wrong timeout"); in parentproc() 190 killchild("SPDY_get_timeout returned wrong timeout"); in parentproc() 203 timeout.tv_sec = 1; in parentproc() 204 timeout.tv_usec = 0; in parentproc() 208 timeout.tv_sec = timeoutlong / 1000; in parentproc() 209 timeout.tv_usec = (timeoutlong % 1000) * 1000; in parentproc() 213 timeout.tv_sec = 0; in parentproc() 214 timeout in parentproc() [all...] |
/drivers/peripheral/bluetooth/hci/hdi_service/implement/ |
H A D | hci_watcher.cpp | 57 bool HciWatcher::SetTimeout(std::chrono::milliseconds timeout, TimeoutCallback callback)
in SetTimeout() argument 59 std::chrono::seconds seconds = std::chrono::duration_cast<std::chrono::seconds>(timeout);
in SetTimeout() 62 timeoutTimer_.tv_usec = (timeout - seconds).count();
in SetTimeout() 117 timeval *timeout = nullptr;
in WatcherThread() local 138 timeout = nullptr;
in WatcherThread() 140 timeout = &timeoutTimer_;
in WatcherThread() 144 int ret = select(nfds + 1, &readFds, nullptr, nullptr, timeout);
in WatcherThread()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/p2p/ |
H A D | p2p_disconnect.py | 40 global timeout 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 53 self.timeout = timeout 104 # Required for timeout implementation 113 timeout = 5 variable 152 wpas_dbus_interface,timeout) 163 time.sleep(int(p2p_disconnect_test.timeout))
|
H A D | p2p_flush.py | 40 global timeout 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 53 self.timeout = timeout 104 # Required for timeout implementation 113 timeout = 5 variable 151 p2p_flush_test = P2P_Flush(interface_name, wpas_dbus_interface,timeout) 162 time.sleep(int(p2p_flush_test.timeout))
|
H A D | p2p_stop_find.py | 42 global timeout 51 def __init__(self,interface_name,wpas_dbus_interface,timeout): 55 self.timeout = timeout 109 # Required for timeout implementation 118 timeout = 5 variable 157 wpas_dbus_interface,timeout) 168 time.sleep(int(p2p_stop_find_test.timeout))
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/p2p/ |
H A D | p2p_disconnect.py | 40 global timeout 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 53 self.timeout = timeout 104 # Required for timeout implementation 113 timeout = 5 variable 152 wpas_dbus_interface,timeout) 163 time.sleep(int(p2p_disconnect_test.timeout))
|
H A D | p2p_flush.py | 40 global timeout 49 def __init__(self,interface_name,wpas_dbus_interface,timeout): 53 self.timeout = timeout 104 # Required for timeout implementation 113 timeout = 5 variable 151 p2p_flush_test = P2P_Flush(interface_name, wpas_dbus_interface,timeout) 162 time.sleep(int(p2p_flush_test.timeout))
|