Searched refs:timeout (Results 76 - 100 of 412) sorted by last modified time

1234567891011>>

/haiku/src/add-ons/media/media-add-ons/esound_sink/
H A DESDEndpoint.cpp181 struct timeval timeout = { 10, 0 }; // 10s should be enough on a LAN local
210 setsockopt(fSocket, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(struct timeval));
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/
H A Dscsi_cd.cpp262 ccb->timeout = SCSI_CD_STD_TIMEOUT;
643 // are 10 seconds enough for timeout?
644 ccb->timeout = 10;
/haiku/src/add-ons/kernel/drivers/input/i2c_elan/
H A DELANDevice.h58 bigtime_t timeout, int& zero_report_count);
59 status_t _WaitForReport(bigtime_t timeout);
H A DELANDevice.cpp192 if (user_memcpy(&read.timeout, &(((touchpad_read*)buffer)->timeout),
200 &read.u.touchpad, read.timeout,
230 ELANDevice::_WaitForReport(bigtime_t timeout) argument
248 result = conditionVariableEntry.Wait(B_RELATIVE_TIMEOUT, timeout);
261 ELANDevice::_ReadAndParseReport(touchpad_movement *info, bigtime_t timeout, int &zero_report_count) argument
264 status_t result = _WaitForReport(timeout);
/haiku/src/system/kernel/locks/
H A Dlock.cpp552 bigtime_t timeout)
616 status_t error = thread_block_with_timeout(timeoutFlags, timeout);
1082 _mutex_lock_with_timeout(mutex* lock, uint32 timeoutFlags, bigtime_t timeout) argument
1127 status_t error = thread_block_with_timeout(timeoutFlags, timeout);
1139 // if we resume due to a timeout before our thread is set to NULL.
1143 // If the timeout occurred, we must remove our waiter structure from
1168 // the structure is not in the list -- even though the timeout
551 _rw_lock_read_lock_with_timeout(rw_lock* lock, uint32 timeoutFlags, bigtime_t timeout) argument
/haiku/headers/private/kernel/
H A Dlock.h172 uint32 timeoutFlags, bigtime_t timeout);
180 bigtime_t timeout);
199 bigtime_t timeout)
202 return _rw_lock_read_lock_with_timeout(lock, timeoutFlags, timeout);
206 return _rw_lock_read_lock_with_timeout(lock, timeoutFlags, timeout);
259 mutex_lock_with_timeout(mutex* lock, uint32 timeoutFlags, bigtime_t timeout) argument
262 return _mutex_lock_with_timeout(lock, timeoutFlags, timeout);
265 return _mutex_lock_with_timeout(lock, timeoutFlags, timeout);
198 rw_lock_read_lock_with_timeout(rw_lock* lock, uint32 timeoutFlags, bigtime_t timeout) argument
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_rwlock.cpp67 status_t ReadLock(uint32 flags, bigtime_t timeout) argument
69 return acquire_sem_etc(sem, 1, flags, timeout);
72 status_t WriteLock(uint32 flags, bigtime_t timeout) argument
75 flags, timeout);
148 status_t ReadLock(uint32 flags, bigtime_t timeout) argument
157 return _Wait(false, flags, timeout);
160 status_t WriteLock(uint32 flags, bigtime_t timeout) argument
170 return _Wait(true, flags, timeout);
189 status_t _Wait(bool writer, uint32 flags, bigtime_t timeout) argument
191 if (timeout
348 bigtime_t timeout = abstime->tv_sec * 1000000LL local
409 bigtime_t timeout = abstime->tv_sec * 1000000LL local
[all...]
H A Dpthread_mutex.cpp53 __pthread_mutex_lock(pthread_mutex_t* mutex, uint32 flags, bigtime_t timeout) argument
71 return timeout < 0 ? EBUSY : EDEADLK;
79 if (timeout < 0)
87 error = _kern_mutex_lock((int32*)&mutex->lock, NULL, flags, timeout);
121 // translate the timeout
123 bigtime_t timeout = 0; local
126 timeout = abstime->tv_sec * 1000000LL + abstime->tv_nsec / 1000LL;
143 status_t status = __pthread_mutex_lock(mutex, flags, timeout);
H A Dpthread_cond.cpp61 bigtime_t timeout)
87 (int32*)&cond->lock, "pthread condition", flags, timeout);
60 cond_wait(pthread_cond_t* cond, pthread_mutex_t* mutex, uint32 flags, bigtime_t timeout) argument
/haiku/src/system/kernel/
H A Dsignal.cpp2051 The \c flags and \c timeout combination must either define an infinite
2052 timeout (no timeout flags set), an absolute timeout (\c B_ABSOLUTE_TIMEOUT
2053 set), or a relative timeout \code <= 0 \endcode (\c B_RELATIVE_TIMEOUT set).
2057 bigtime_t timeout)
2066 bool canWait = (flags & B_RELATIVE_TIMEOUT) == 0 || timeout > 0;
2125 error = thread_block_with_timeout(flags, timeout);
2128 // POSIX requires EAGAIN (B_WOULD_BLOCK) on timeout
2332 bigtime_t timeout)
2056 sigwait_internal(const sigset_t* set, siginfo_t* info, uint32 flags, bigtime_t timeout) argument
2331 _user_sigwait(const sigset_t *userSet, siginfo_t *userInfo, uint32 flags, bigtime_t timeout) argument
[all...]
H A Dlow_resource_manager.cpp245 bigtime_t timeout = kLowResourceInterval; local
248 B_RELATIVE_TIMEOUT, timeout);
270 timeout = kWarnResourceInterval;
272 timeout = kLowResourceInterval;
326 and \a timeout specify a timeout, the function will wait until the low
328 handlers, or until the timeout occurs (whichever happens first).
331 low_resource(uint32 resource, uint64 requirements, uint32 flags, uint32 timeout) argument
375 if ((flags & B_RELATIVE_TIMEOUT) == 0 || timeout > 0)
376 sLowResourceWaiterCondition.Wait(flags, timeout);
[all...]
/haiku/src/system/kernel/device_manager/
H A DIORequest.cpp916 IORequest::Wait(uint32 flags, bigtime_t timeout) argument
928 status_t error = entry.Wait(flags, timeout);
H A DIORequest.h249 status_t Wait(uint32 flags = 0, bigtime_t timeout = 0);
/haiku/src/libs/compat/freebsd_network/
H A Dusb.cpp187 uint16_t* actlen, usb_timeout_t timeout)
185 usbd_do_request_flags(struct freebsd_usb_device* udev, struct mtx* mtx, struct usb_device_request* req, void* data, uint16_t flags, uint16_t* actlen, usb_timeout_t timeout) argument
H A Dcallout.cpp62 bigtime_t timeout = B_INFINITE_TIMEOUT; local
65 // scan timers for new timeout and/or execute a timer
76 // calculate new timeout
77 if (timeout > c->c_due)
78 timeout = c->c_due;
100 sTimeout = timeout;
104 status = acquire_sem_etc(sWaitSem, 1, B_ABSOLUTE_TIMEOUT, timeout);
/haiku/src/kits/network/libnetapi/
H A DSecureSocket.cpp369 BSecureSocket::BSecureSocket(const BNetworkAddress& peer, bigtime_t timeout) argument
374 Connect(peer, timeout);
428 BSecureSocket::Connect(const BNetworkAddress& peer, bigtime_t timeout) argument
434 status = BSocket::Connect(peer, timeout);
455 BSecureSocket::WaitForReadable(bigtime_t timeout) const
465 return BSocket::WaitForReadable(timeout);
637 BSecureSocket::BSecureSocket(const BNetworkAddress& peer, bigtime_t timeout) argument
671 BSecureSocket::Connect(const BNetworkAddress& peer, bigtime_t timeout) argument
684 BSecureSocket::WaitForReadable(bigtime_t timeout) const
/haiku/src/kits/device/
H A DSerialPort.cpp185 /*! \brief Set the timeout for the port.
186 \param microSeconds The timeout for the port.
466 value of SetBlocking(); however, it respects the timeout
604 //Set the timeout
611 int timeout = fTimeout / 100000; local
612 options.c_cc[VTIME] = (timeout == 0) ? 1 : timeout;
/haiku/src/add-ons/kernel/generic/tty/
H A Dtty_private.h91 status_t Wait(bool interruptable, bigtime_t timeout = B_INFINITE_TIMEOUT);
/haiku/headers/private/libroot/
H A Dpthread_private.h98 status_t __pthread_mutex_lock(pthread_mutex_t* mutex, bigtime_t timeout);
/haiku/src/add-ons/kernel/busses/scsi/ahci/
H A Dahci_defs.h359 wait_until_set(volatile uint32 *reg, uint32 bits, bigtime_t timeout) argument
361 int trys = (timeout + 9999) / 10000;
372 wait_until_clear(volatile uint32 *reg, uint32 bits, bigtime_t timeout) argument
374 int trys = (timeout + 9999) / 10000;
/haiku/src/servers/app/drawing/interface/virtual/
H A DDWindowHWInterface.cpp881 DWindowHWInterface::WaitForRetrace(bigtime_t timeout) argument
885 return screen.WaitForRetrace(timeout);
/haiku/src/system/kernel/cache/
H A Dblock_cache.cpp2567 bigtime_t timeout = kDefaultTimeout; local
2573 B_RELATIVE_TIMEOUT, timeout);
2576 timeout -= system_time() - start;
2585 timeout = kDefaultTimeout;
2598 timeout = min_c(timeout,
2651 // see if we can decrease the timeout.
2652 timeout = min_c(timeout,
/haiku/src/system/kernel/arch/riscv64/
H A Darch_timer.cpp29 arch_timer_set_hardware_timer(bigtime_t timeout) argument
32 dprintf("arch_timer_set_hardware_timer(%" B_PRIu64 "), cpu: %" B_PRId32 "\n", timeout,
35 uint64 scaledTimeout = (static_cast<__uint128_t>(timeout) * sTimerConversionFactor) >> 32;
/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211_input.c941 /* Do not re-arm the gap timeout if we made no progress. */
2837 u_int16_t params, ssn, bufsz, timeout; local
2860 timeout = LE_READ_2(&frm[5]);
2873 /* XXX should we update the timeout value? */
2911 ba->ba_timeout_val = timeout * IEEE80211_DUR_TU;
3005 u_int16_t status, params, bufsz, timeout; local
3021 timeout = LE_READ_2(&frm[7]);
3040 /* we got an ADDBA Response matching our request, stop timeout */
3090 /* start Block Ack inactivity timeout */
/haiku/src/libs/compat/openbsd_network/compat/sys/
H A Dsystm.h25 #define tsleep(identifier, priority, wmesg, timeout) \
26 msleep(identifier, &Giant, priority, wmesg, timeout)

Completed in 130 milliseconds

1234567891011>>