Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 122) sorted by relevance

12345

/device/generic/goldfish-opengl/android-emu/android/base/threads/
DAndroidWorkPool.cpp69 bool waitAllLocked(WorkPool::TimeoutUs timeout) { in waitAllLocked() argument
72 timeout); in waitAllLocked()
75 bool waitAnyLocked(WorkPool::TimeoutUs timeout) { in waitAnyLocked() argument
78 timeout); in waitAnyLocked()
93 bool doWait(WorkPool::TimeoutUs timeout) { in doWait() argument
94 if (timeout == ~0ULL) { in doWait()
99 return mCv.timedWait(&mLock, getDeadline(timeout)); in doWait()
128 … bool conditionalTimeoutLocked(std::function<bool()> conditionFunc, WorkPool::TimeoutUs timeout) { in conditionalTimeoutLocked() argument
130 WorkPool::TimeoutUs currTimeout = timeout; in conditionalTimeoutLocked()
384 bool waitAny(WorkPool::WaitGroupHandle waitGroupHandle, WorkPool::TimeoutUs timeout) { in waitAny() argument
[all …]
DAndroidWorkPool.h42 bool waitAny(WaitGroupHandle waitGroup, TimeoutUs timeout = -1);
43 bool waitAll(WaitGroupHandle waitGroup, TimeoutUs timeout = -1);
/device/linaro/hikey/hifi/xaf/host-apf/include/os/android/
Dxf-osal.h106 static inline int __xf_wait(xf_wait_t *w, u32 timeout) in __xf_wait() argument
113 if (!timeout) in __xf_wait()
123 ts.tv_sec = tv.tv_sec + timeout / 1000; in __xf_wait()
124 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000; in __xf_wait()
135 #define __xf_wait(w, timeout) \ argument
139 __r = (__xf_wait)(w, timeout); \
/device/linaro/hikey/hifi/xaf/host-apf/include/os/xos/
Dxf-osal.h100 static inline int __xf_wait(xf_wait_t *w, u32 timeout)
107 if (!timeout)
117 ts.tv_sec = tv.tv_sec + timeout / 1000;
118 ts.tv_nsec = tv.tv_usec * 1000 + (timeout % 1000) * 1000000;
129 #define __xf_wait(w, timeout) \
133 __r = (__xf_wait)(w, timeout); \
/device/linaro/hikey/bluetooth/
Dasync_fd_watcher.cc50 const std::chrono::milliseconds timeout, in ConfigureTimeout() argument
56 timeout_ms_ = timeout; in ConfigureTimeout()
125 struct timeval timeout; in ThreadRoutine() local
128 timeout.tv_sec = timeout_ms_.count() / 1000; in ThreadRoutine()
129 timeout.tv_usec = (timeout_ms_.count() % 1000) * 1000; in ThreadRoutine()
130 timeout_ptr = &timeout; in ThreadRoutine()
/device/generic/goldfish/radio/libril/
Dril_event.cpp86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event()
170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts()
230 (int)tev->timeout.tv_sec, (int)tev->timeout.tv_usec); in calcNextTimeout()
231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout()
232 timersub(&tev->timeout, &now, tv); in calcNextTimeout()
299 timeradd(&now, tv, &ev->timeout); in ril_timer_add()
302 while (timercmp(&list->timeout, &ev->timeout, < ) in ril_timer_add()
/device/google/cuttlefish/guest/hals/ril/libril/
Dril_event.cpp86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event()
170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts()
230 (int)tev->timeout.tv_sec, (int)tev->timeout.tv_usec); in calcNextTimeout()
231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout()
232 timersub(&tev->timeout, &now, tv); in calcNextTimeout()
299 timeradd(&now, tv, &ev->timeout); in ril_timer_add()
302 while (timercmp(&list->timeout, &ev->timeout, < ) in ril_timer_add()
/device/google/cuttlefish/guest/hals/ril/reference-libril/
Dril_event.cpp86 dlog(" timeout = %ds + %dus", (int)ev->timeout.tv_sec, (int)ev->timeout.tv_usec); in dump_event()
170 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) { in processTimeouts()
230 (int)tev->timeout.tv_sec, (int)tev->timeout.tv_usec); in calcNextTimeout()
231 if (timercmp(&tev->timeout, &now, >)) { in calcNextTimeout()
232 timersub(&tev->timeout, &now, tv); in calcNextTimeout()
299 timeradd(&now, tv, &ev->timeout); in ril_timer_add()
302 while (timercmp(&list->timeout, &ev->timeout, < ) in ril_timer_add()
/device/linaro/hikey/hifi/xaf/host-apf/proxy/
Dxf-fio.c84 int xf_ipc_wait(xf_proxy_ipc_data_t *ipc, u32 timeout) in xf_ipc_wait() argument
95 (timeout ? tv.tv_sec = timeout / 1000, tv.tv_usec = (timeout % 1000) * 1000 : 0); in xf_ipc_wait()
99 select(fd+1,&rfds,NULL,NULL,(timeout? &tv: NULL)); in xf_ipc_wait()
/device/google/contexthub/util/stm32_flash/
Dspi.c97 uint16_t timeout = 65535; in spi_read_ack() local
114 timeout --; in spi_read_ack()
115 } while (buffer[0] != CMD_ACK && buffer[0] != CMD_NACK && timeout > 0); in spi_read_ack()
117 if (buffer[0] != CMD_ACK && buffer[0] != CMD_NACK && timeout == 0) in spi_read_ack()
/device/generic/goldfish/network/netmgr/
Dpoller.cpp43 auto timeout = deadline - now; in calculateTimeout() local
45 auto seconds = duration_cast<std::chrono::seconds>(timeout); in calculateTimeout()
47 auto nanos = duration_cast<std::chrono::nanoseconds>(timeout - seconds); in calculateTimeout()
/device/generic/goldfish/network/wifi_forwarder/
Dpoller.cpp42 auto timeout = deadline - now; in calculateTimeout() local
44 auto seconds = duration_cast<std::chrono::seconds>(timeout); in calculateTimeout()
46 auto nanos = duration_cast<std::chrono::nanoseconds>(timeout - seconds); in calculateTimeout()
/device/google/cuttlefish/host/commands/cvd_status/
Dcvd_status.cc85 struct timeval timeout = {FLAGS_wait_for_launcher, 0}; in main() local
87 FLAGS_wait_for_launcher <= 0 ? nullptr : &timeout); in main()
/device/google/cuttlefish/host/commands/powerwash_cvd/
Dpowerwash_cvd.cc88 struct timeval timeout = {FLAGS_wait_for_launcher, 0}; in main() local
90 FLAGS_wait_for_launcher <= 0 ? nullptr : &timeout); in main()
/device/google/wahoo/usb/
DUsbGadget.h82 uint64_t timeout) override;
91 uint64_t timeout);
/device/generic/goldfish/dhcp/client/
Ddhcpclient.cpp221 uint32_t timeout = calculateTimeoutMillis(); in waitAndReceive() local
226 ts.tv_sec = timeout / 1000; in waitAndReceive()
227 ts.tv_nsec = (timeout - ts.tv_sec * 1000) * 1000000; in waitAndReceive()
292 uint64_t end = startedAt + timeout; in waitAndReceive()
298 timeout = end - currentTime; in waitAndReceive()
/device/generic/goldfish/camera/
DEmulatedCameraDevice.cpp491 EmulatedCameraDevice::CameraThread::waitForFrameOrTimeout(nsecs_t timeout) { in waitForFrameOrTimeout() argument
499 mRunningCondition.waitRelative(mRunningMutex, timeout); in waitForFrameOrTimeout()
506 timeout = milliseconds(5); in waitForFrameOrTimeout()
517 nsecs_t timeout = std::max<nsecs_t>(0, wakeAt - now); in inWorkerThread() local
519 if (!waitForFrameOrTimeout(timeout)) { in inWorkerThread()
665 nsecs_t timeout = std::max<nsecs_t>(0, nextFrame - now); in inWorkerThread() local
669 mRunningCondition.waitRelative(mRunningMutex, timeout); in inWorkerThread()
/device/google/bonito/usb/
DUsbGadget.h84 uint64_t timeout) override;
93 uint64_t timeout);
/device/google/crosshatch/usb/
DUsbGadget.h84 uint64_t timeout) override;
93 uint64_t timeout);
/device/google/coral/usb/
DUsbGadget.h78 uint64_t timeout) override;
85 uint64_t timeout);
DUsbGadget.cpp221 uint64_t timeout) { in setupFunctions() argument
278 bool pullup = monitorFfs.waitForPullUp(timeout); in setupFunctions()
290 uint64_t timeout) { in setCurrentUsbFunctions() argument
322 status = setupFunctions(functions, callback, timeout); in setCurrentUsbFunctions()
/device/google/cuttlefish/host/commands/secure_env/
Din_process_tpm.cpp60 int32_t timeout) { in Receive() argument
62 InProcessTpm::TpmFromContext(context)->Receive(size, response, timeout); in Receive()
/device/generic/opengl-transport/host/libs/virglrenderer/include/sync/
Dsync.h20 int sync_wait(int fd, int timeout);
/device/generic/opengl-transport/host/libs/virglrenderer/include/android/
Dsync.h20 int sync_wait(int fd, int timeout);
/device/generic/goldfish-opengl/fuchsia/include/sync/
Dsync.h6 int sync_wait(int fd, int timeout);

12345