Home
last modified time | relevance | path

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

1234

/drivers/hdf_core/adapter/platform/watchdog/
Dwatchdog_stm32f4xx.c28 int timeout; // Maximum interval between watchdog feeding, unit: ms member
67 device->timeout = HCS_PROP(node, timeout); \
109 if (dri->GetUint32(resourceNode, "timeout", &device->timeout, 0) != HDF_SUCCESS) { in GetWatchdogDeviceInfoResource()
115 HDF_LOGI("timeout = %dms\n", device->timeout); in GetWatchdogDeviceInfoResource()
253 int32_t timeout = 0; local
263 timeout = watchdogdeviceinfo->timeout;
265 if (timeout < WATCHDOG_MIN_TIMEOUT) {
267 timeout = WATCHDOG_MIN_TIMEOUT;
269 if (timeout > WATCHDOG_MAX_TIMEOUT) {
271 timeout = WATCHDOG_MAX_TIMEOUT;
[all …]
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
Dhci_watcher.cpp52 bool HciWatcher::SetTimeout(std::chrono::milliseconds timeout, TimeoutCallback callback) in SetTimeout() argument
54 std::chrono::seconds seconds = std::chrono::duration_cast<std::chrono::seconds>(timeout); in SetTimeout()
57 timeoutTimer_.tv_usec = (timeout - seconds).count(); in SetTimeout()
110 timeval *timeout = nullptr; in WatcherThread() local
127 timeout = nullptr; in WatcherThread()
129 timeout = &timeoutTimer_; in WatcherThread()
133 int ret = select(nfds + 1, &readFds, nullptr, nullptr, timeout); in WatcherThread()
/drivers/hdf_core/framework/core/manager/test/unittest/common/
Ddevmgr_uevent_test.cpp29 static const uint32_t timeout = 200; member in DevmgrUeventTest
79 while (sampleService != nullptr && cnt < timeout) {
92 while (sampleService == nullptr && cnt < timeout) {
125 while (sampleService == nullptr && cnt < timeout) {
138 while (sampleService != nullptr && cnt < timeout) {
171 while (sampleService != nullptr && cnt < timeout) {
185 while (sampleService == nullptr && cnt < timeout) {
198 while (sampleService != nullptr && cnt < timeout) {
/drivers/hdf_core/adapter/uhdf2/host/test/unittest/
Ddevmgr_test.cpp37 static const uint32_t timeout = 200; member in OHOS::DevMgrTest
79 while (sampleService == nullptr && cnt < timeout) {
103 while (sampleService != nullptr && cnt < timeout) {
124 while (sampleService == nullptr && cnt < timeout) {
135 while (sampleService != nullptr && cnt < timeout) {
/drivers/peripheral/usb/hdi_service/include/
Dusb_impl.h59 … const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint8_t> &data) override;
61 …const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data) overrid…
66 … const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint8_t> &data) override;
68 …const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data) overrid…
70 … const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint8_t> &data) override;
72 …const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data) overrid…
76 …ev &dev, std::vector<uint8_t> &clientData, std::vector<uint8_t> &buffer, int32_t timeout) override;
105 int32_t UsbControlTransferEx(HostDevice *dev, UsbControlParams *ctrParams, int32_t timeout);
112 …int32_t timeout, uint8_t *buffer, uint32_t size, uint32_t *actlength, UsbdRequestSync *requestSync…
114 …vice *port, UsbdRequestSync *requestSync, const uint8_t *buffer, uint32_t length, int32_t timeout);
[all …]
Dusbd_type.h111 uint32_t timeout; member
121 uint32_t timeout; member
131 uint32_t timeout; member
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/include/
Dusb_impl_mock.h70 …BulkTransferRead, int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uin…
72 …int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data)…
78 … int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint8_t> &data));
80 …int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data)…
82 …IsoTransferRead, int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, std::vector<uint…
84 …int32_t(const UsbDev &dev, const UsbPipe &pipe, int32_t timeout, const std::vector<uint8_t> &data)…
89 …nst UsbDev &dev, std::vector<uint8_t> &clientData, std::vector<uint8_t> &buffer, int32_t timeout));
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dhdi_smq_syncer.cpp101 void SharedMemQueueSyncer::TimeoutToRealtime(int64_t timeout, struct timespec &realtime) in TimeoutToRealtime() argument
106 int64_t timeoutNanoSec = timeout % nano; in TimeoutToRealtime()
107 int64_t timeoutSec = timeout / nano; in TimeoutToRealtime()
/drivers/peripheral/usb/test/fuzztest/usbbulktransferread_fuzzer/
Dusbbulktransferread_fuzzer.cpp43 int32_t timeout = *(reinterpret_cast<int32_t *>(*data)); in UsbBulkTransferReadFuzzTest() local
44 …ret = usbInterface->BulkTransferRead(dev, pipe, timeout, reinterpret_cast<std::vector<uint8_t> &>(… in UsbBulkTransferReadFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbisotransferwrite_fuzzer/
Dusbisotransferwrite_fuzzer.cpp44 int32_t timeout = *(reinterpret_cast<int32_t *>(*data)); in UsbIsoTransferWriteFuzzTest() local
45 …ret = usbInterface->IsoTransferWrite(dev, pipe, timeout, reinterpret_cast<std::vector<uint8_t> &>(… in UsbIsoTransferWriteFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbinterrupttransferwrite_fuzzer/
Dusbinterrupttransferwrite_fuzzer.cpp44 int32_t timeout = *(reinterpret_cast<int32_t *>(*data)); in UsbInterruptTransferWriteFuzzTest() local
45 …ret = usbInterface->InterruptTransferWrite(dev, pipe, timeout, reinterpret_cast<std::vector<uint8_… in UsbInterruptTransferWriteFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbinterrupttransferread_fuzzer/
Dusbinterrupttransferread_fuzzer.cpp44 int32_t timeout = *(reinterpret_cast<int32_t *>(*data)); in UsbInterruptTransferReadFuzzTest() local
45 …ret = usbInterface->InterruptTransferRead(dev, pipe, timeout, reinterpret_cast<std::vector<uint8_t… in UsbInterruptTransferReadFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbisotransferread_fuzzer/
Dusbisotransferread_fuzzer.cpp44 int32_t timeout = *(reinterpret_cast<int32_t *>(*data)); in UsbIsoTransferReadFuzzTest() local
45 …ret = usbInterface->IsoTransferRead(dev, pipe, timeout, reinterpret_cast<std::vector<uint8_t> &>(d… in UsbIsoTransferReadFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbbulktransferwrite_fuzzer/
Dusbbulktransferwrite_fuzzer.cpp43 int32_t timeout = *(reinterpret_cast<int32_t *>(*data)); in UsbBulkTransferWriteFuzzTest() local
44 …ret = usbInterface->BulkTransferWrite(dev, pipe, timeout, reinterpret_cast<const std::vector<uint8… in UsbBulkTransferWriteFuzzTest()
/drivers/external_device_manager/interfaces/ddk/usb/
Dusb_ddk_api.h170 uint32_t timeout, uint8_t *data, uint32_t *dataLen);
186 uint32_t timeout, const uint8_t *data, uint32_t dataLen);
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/
Dbuffer_pool.cpp163 std::shared_ptr<IBuffer> BufferPool::AcquireBuffer(int timeout) in AcquireBuffer() argument
177 if (timeout < 0) { in AcquireBuffer()
191 if (timeout > 0) { in AcquireBuffer()
192 if (cv_.wait_for(l, std::chrono::seconds(timeout), [this] { in AcquireBuffer()
202 … CAMERA_LOGV("acquire buffer wait %{public}ds, index = %{public}d", timeout, buffer->GetIndex()); in AcquireBuffer()
/drivers/peripheral/battery/interfaces/hdi_service/src/
Dbattery_thread.cpp222 int32_t timeout = epollInterval_; in LoopingThreadEntry() local
224 if ((timeout < 0) || (waitTimeout > 0 && waitTimeout < timeout)) { in LoopingThreadEntry()
225 timeout = waitTimeout; in LoopingThreadEntry()
228 nevents = epoll_wait(epFd_, events, static_cast<int32_t>(size), timeout); in LoopingThreadEntry()
/drivers/peripheral/usb/ddk_service/src/
Dusb_ddk_service.cpp236 …uint64_t interfaceHandle, const UsbControlRequestSetup &setup, uint32_t timeout, std::vector<uint8… in SendControlReadRequest() argument
256 params.timeout = timeout; in SendControlReadRequest()
284 …uint64_t interfaceHandle, const UsbControlRequestSetup &setup, uint32_t timeout, const std::vector… in SendControlWriteRequest() argument
306 params.timeout = timeout; in SendControlWriteRequest()
355 params.timeout = pipe.timeout; in SendPipeRequest()
/drivers/peripheral/usb/ddk_service/include/
Dusb_ddk_service.h47 …ControlReadRequest(uint64_t interfaceHandle, const UsbControlRequestSetup &setup, uint32_t timeout,
50 …ontrolWriteRequest(uint64_t interfaceHandle, const UsbControlRequestSetup &setup, uint32_t timeout,
/drivers/peripheral/usb/test/unittest/host_sdk/
Dusb_raw_sdk_if_test_io.cpp368 reqData.timeout = USB_CTRL_SET_TIMEOUT; in AcmRawFillWriteReq()
389 reqData.timeout = USB_CTRL_SET_TIMEOUT; in AcmRawFillReadReq()
409 fillRequestData.timeout = USB_CTRL_SET_TIMEOUT; in AcmRawFillIntReq()
433 ctrlReq.timeout = USB_CTRL_SET_TIMEOUT; in AcmRawFillCtrlReq()
502 ctrlReq.timeout = USB_CTRL_SET_TIMEOUT;
530 ctrlReq.timeout = USB_CTRL_SET_TIMEOUT;
572 ctrlReq.timeout = USB_CTRL_SET_TIMEOUT;
600 ctrlReq.timeout = USB_CTRL_SET_TIMEOUT;
660 reqData.timeout = USB_CTRL_SET_TIMEOUT;
689 reqData.timeout = USB_CTRL_SET_TIMEOUT;
[all …]
/drivers/peripheral/usb/ddk/host/include/
Dusb_ddk_request.h96 unsigned int timeout; member
124 unsigned int timeout; member
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/
Dusb_raw_test.c318 reqData.timeout = USB_CTRL_SET_TIMEOUT; in CheckRawSdkIfFillIsoRequest001()
341 reqData.timeout = USB_CTRL_SET_TIMEOUT; in CheckRawSdkIfFillIsoRequest002()
379 reqData.timeout = USB_CTRL_SET_TIMEOUT; in CheckRawSdkIfFillIsoRequest004()
402 reqData.timeout = USB_CTRL_SET_TIMEOUT; in CheckRawSdkIfFillIsoRequest005()
908 reqData.timeout = USB_CTRL_SET_TIMEOUT; in CheckRawSdkIfFillBulkRequest001()
930 reqData.timeout = USB_CTRL_SET_TIMEOUT; in CheckRawSdkIfFillBulkRequest002()
953 fillRequestData.timeout = USB_RAW_REQUEST_TIME_ZERO_MS; in CheckRawSdkIfFillInterruptRequest001()
976 fillRequestData.timeout = USB_RAW_REQUEST_TIME_ZERO_MS; in CheckRawSdkIfFillInterruptRequest002()
999 fillRequestData.timeout = USB_RAW_REQUEST_TIME_ZERO_MS; in CheckRawSdkIfFillInterruptRequest003()
1030 fillRequestData.timeout = USB_CTRL_SET_TIMEOUT; in CheckRawSdkIfFillControlRequest001()
[all …]
/drivers/interface/usb/v1_0/
DIUsbInterface.idl194 * direction. You can specify a timeout duration if needed.
198 * @param timeout Indicates the timeout duration.
204 …BulkTransferRead([in] struct UsbDev dev, [in] struct UsbPipe pipe, [in] int timeout, [out] unsigne…
212 * @param timeout Indicates the timeout duration.
218 …BulkTransferWrite([in] struct UsbDev dev, [in] struct UsbPipe pipe, [in] int timeout, [in] unsigne…
256 * @param timeout Indicates the timeout duration.
262 …InterruptTransferRead([in] struct UsbDev dev, [in] struct UsbPipe pipe, [in] int timeout, [out] un…
270 * @param timeout Indicates the timeout duration.
276 …InterruptTransferWrite([in] struct UsbDev dev, [in] struct UsbPipe pipe, [in] int timeout, [in] un…
284 * @param timeout Indicates the timeout duration.
[all …]
/drivers/peripheral/usb/interfaces/ddk/host/
Dusb_raw_api.h82 unsigned int timeout; member
102 unsigned int timeout; member
150 unsigned int timeout; member
/drivers/peripheral/usb/sample/device/liteos/lib/include/
Dlib_acm_test.h23 void AcmRead(char *str, int32_t timeout = 5);

1234