/drivers/peripheral/usb/ddk/host/src/ |
D | linux_adapter.c | 363 static void OsFreeIsoUrbs(struct UsbHostRequest *request) in OsFreeIsoUrbs() argument 367 for (int32_t i = 0; i < request->numUrbs; i++) { in OsFreeIsoUrbs() 368 urb = request->isoUrbs[i]; in OsFreeIsoUrbs() 375 RawUsbMemFree(request->isoUrbs); in OsFreeIsoUrbs() 376 request->isoUrbs = NULL; in OsFreeIsoUrbs() 379 static void OsDiscardUrbs(const struct UsbHostRequest *request, int32_t first, int32_t last) in OsDiscardUrbs() argument 383 if (request == NULL || request->devHandle == NULL || first > URBS_PER_REQUEST || first > last) { in OsDiscardUrbs() 389 if (request->requestType == USB_REQUEST_TYPE_ISOCHRONOUS) { in OsDiscardUrbs() 390 urb = request->isoUrbs[i]; in OsDiscardUrbs() 392 urb = &request->urbs[i]; in OsDiscardUrbs() [all …]
|
D | liteos_adapter.c | 443 static void OsFreeIsoUrbs(struct UsbHostRequest *request) in OsFreeIsoUrbs() argument 447 for (int32_t i = 0; i < request->numUrbs; i++) { in OsFreeIsoUrbs() 448 urb = request->isoUrbs[i]; in OsFreeIsoUrbs() 453 request->isoUrbs[i] = NULL; in OsFreeIsoUrbs() 456 RawUsbMemFree(request->isoUrbs); in OsFreeIsoUrbs() 457 request->isoUrbs = NULL; in OsFreeIsoUrbs() 460 static void OsDiscardUrbs(const struct UsbHostRequest *request, int32_t first, int32_t last) in OsDiscardUrbs() argument 465 …if ((request == NULL) || (request->devHandle == NULL) || (first > URBS_PER_REQUEST) || (first > la… in OsDiscardUrbs() 471 if (request->requestType == USB_REQUEST_TYPE_ISOCHRONOUS) { in OsDiscardUrbs() 472 as = (struct Async *)request->isoUrbs[i]; in OsDiscardUrbs() [all …]
|
D | usb_raw_api.c | 47 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbControlRequest… in UsbRawSendControlRequest() argument 49 if ((request == NULL) || (devHandle == NULL) || (requestData == NULL)) { in UsbRawSendControlRequest() 55 (struct UsbHostRequest *)request, (const struct UsbDeviceHandle *)devHandle, requestData); in UsbRawSendControlRequest() 59 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRequestData *r… in UsbRawSendBulkRequest() argument 61 if ((request == NULL) || (devHandle == NULL) || (requestData == NULL)) { in UsbRawSendBulkRequest() 67 … (const struct UsbHostRequest *)request, (const struct UsbDeviceHandle *)devHandle, requestData); in UsbRawSendBulkRequest() 71 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRequestData *r… in UsbRawSendInterruptRequest() argument 73 if ((request == NULL) || (devHandle == NULL) || (requestData == NULL)) { in UsbRawSendInterruptRequest() 79 … (const struct UsbHostRequest *)request, (const struct UsbDeviceHandle *)devHandle, requestData); in UsbRawSendInterruptRequest() 124 int32_t UsbRawGetDescriptor(const struct UsbRawRequest *request, const UsbRawHandle *devHandle, in UsbRawGetDescriptor() argument [all …]
|
D | usb_raw_api_library.c | 27 struct UsbHostRequest *request = (struct UsbHostRequest *)requestArg; in SyncRequestCallback() local 28 if (request == NULL || request->userData == NULL) { in SyncRequestCallback() 33 int32_t *completed = request->userData; in SyncRequestCallback() 35 OsalSemPost(&request->sem); in SyncRequestCallback() 38 static inline unsigned char *ControlRequestGetData(const struct UsbHostRequest *request) in ControlRequestGetData() argument 40 return request->buffer + USB_RAW_CONTROL_SETUP_SIZE; in ControlRequestGetData() 43 static int32_t HandleSyncRequestCompletion(const struct UsbHostRequest *request, struct UsbRequestD… in HandleSyncRequestCompletion() argument 48 if (request->timeout == USB_RAW_REQUEST_TIME_ZERO_MS) { in HandleSyncRequestCompletion() 51 waitTime = request->timeout; in HandleSyncRequestCompletion() 54 ret = OsalSemWait((struct OsalSem *)&request->sem, waitTime); in HandleSyncRequestCompletion() [all …]
|
D | usb_io_manage.c | 37 UsbCancelRequest(&requestObj->request); in IoCancelRequest() 40 return (requestObj->request.compInfo.status == USB_REQUEST_CANCELLED); in IoCancelRequest() 182 …32_t UsbIoSendRequest(const struct UsbMessageQueue *msgQueue, const struct UsbHostRequest *request) in UsbIoSendRequest() argument 184 if ((msgQueue == NULL) || (request == NULL)) { in UsbIoSendRequest() 190 DListInsertTail((struct DListHead *)&request->list, (struct DListHead *)&msgQueue->entry); in UsbIoSendRequest() 198 HDF_STATUS UsbIoGetRequest(const struct UsbMessageQueue *msgQueue, struct UsbHostRequest **request) in UsbIoGetRequest() argument 203 if ((msgQueue == NULL) || (request == NULL)) { in UsbIoGetRequest() 232 *request = (struct UsbHostRequest *)reqEntry; in UsbIoGetRequest() 238 *request = NULL; in UsbIoGetRequest() 366 requestObj->request.compInfo.buffer = hostRequest->buffer; in UsbIoSetRequestCompletionInfo() [all …]
|
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/ |
D | stream_base.cpp | 202 auto request = waitingList_.front(); in StopStream() local 203 if (request != nullptr && request->IsContinous()) { in StopStream() 204 request->Cancel(); in StopStream() 244 RetCode StreamBase::AddRequest(std::shared_ptr<CaptureRequest>& request) in AddRequest() argument 246 CHECK_IF_PTR_NULL_RETURN_VALUE(request, RC_ERROR); in AddRequest() 247 request->AddOwner(shared_from_this()); in AddRequest() 249 request->SetFirstRequest(false); in AddRequest() 256 request->SetFirstRequest(true); in AddRequest() 262 waitingList_.emplace_back(request); in AddRequest() 269 RetCode StreamBase::CancelRequest(const std::shared_ptr<CaptureRequest>& request) in CancelRequest() argument [all …]
|
D | stream_still_capture.cpp | 49 RetCode StreamStillCapture::Capture(const std::shared_ptr<CaptureRequest>& request) in Capture() argument 55 return StreamBase::Capture(request); in Capture() 113 auto request = waitingList_.front(); in StopStream() local 114 if (request != nullptr && request->IsContinous()) { in StopStream() 115 request->Cancel(); in StopStream()
|
/drivers/peripheral/usb/ddk/host/include/ |
D | usb_raw_api_library.h | 40 uint8_t request; member 90 int32_t FreeRequest(const struct UsbHostRequest *request); 91 int32_t RawFillBulkRequest(struct UsbHostRequest *request, const struct UsbDeviceHandle *devHandle, 94 int32_t RawFillControlRequest(struct UsbHostRequest *request, const struct UsbDeviceHandle *devHand… 96 int32_t RawFillInterruptRequest(struct UsbHostRequest *request, const struct UsbDeviceHandle *devHa… 98 int32_t RawFillInterruptRequestByMmap(struct UsbHostRequest *request, const struct UsbDeviceHandle … 100 int32_t RawFillIsoRequest(struct UsbHostRequest *request, const struct UsbDeviceHandle *devHandle, 102 int32_t RawSendControlRequest(struct UsbHostRequest *request, const struct UsbDeviceHandle *devHand… 104 int32_t RawSendBulkRequest(const struct UsbHostRequest *request, const struct UsbDeviceHandle *devH… 106 int32_t RawSendInterruptRequest(const struct UsbHostRequest *request, const struct UsbDeviceHandle … [all …]
|
D | liteos_adapter.h | 38 uint8_t request; member 107 int32_t (*freeRequest)(struct UsbHostRequest *request); 108 int32_t (*submitRequest)(struct UsbHostRequest *request); 109 int32_t (*cancelRequest)(const struct UsbHostRequest *request);
|
D | usb_io_manage.h | 32 …2_t UsbIoSendRequest(const struct UsbMessageQueue *msgQueue, const struct UsbHostRequest *request); 33 HDF_STATUS UsbIoGetRequest(const struct UsbMessageQueue *msgQueue, struct UsbHostRequest **request);
|
/drivers/peripheral/usb/test/unittest/mock/src/ |
D | mock_linux_adapter.cpp | 388 UsbHostRequest *request; in FuncAdapterAllocRequest() local 401 request = static_cast<UsbHostRequest *>(memBuf); in FuncAdapterAllocRequest() 402 g_sprq = request; in FuncAdapterAllocRequest() 403 request->numIsoPackets = isoPackets; in FuncAdapterAllocRequest() 404 request->buffer = static_cast<unsigned char *>(memBuf) + allocSize - len; in FuncAdapterAllocRequest() 405 request->bufLen = len; in FuncAdapterAllocRequest() 406 request->bulkUrb = RawUsbMemCalloc(sizeof(UsbAdapterUrb)); in FuncAdapterAllocRequest() 407 if (request->bulkUrb == nullptr) { in FuncAdapterAllocRequest() 412 request->urbs = request->bulkUrb; in FuncAdapterAllocRequest() 413 return request; in FuncAdapterAllocRequest() [all …]
|
/drivers/peripheral/usb/interfaces/ddk/host/ |
D | usb_raw_api.h | 263 int32_t UsbRawSendControlRequest(const struct UsbRawRequest *request, const UsbRawHandle *devHandle, 277 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRequestData *r… 289 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRequestData *r… 345 int32_t UsbRawGetDescriptor(const struct UsbRawRequest *request, const UsbRawHandle *devHandle, 422 int32_t UsbRawFreeRequest(const struct UsbRawRequest *request); 435 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRawFillRequest… 459 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRawFillRequest… 472 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRawFillRequest… 485 …const struct UsbRawRequest *request, const UsbRawHandle *devHandle, const struct UsbRawFillRequest… 495 int32_t UsbRawSubmitRequest(const struct UsbRawRequest *request); [all …]
|
D | usb_ddk_interface.h | 222 typedef void (*UsbRequestCallback)(struct UsbRequest *request); 235 uint8_t request; member 446 int32_t UsbFreeRequest(const struct UsbRequest *request); 447 int32_t UsbFreeRequestByMmap(const struct UsbRequest *request); 457 int32_t UsbSubmitRequestAsync(const struct UsbRequest *const request); 469 int32_t UsbFillRequest(const struct UsbRequest *request, const UsbInterfaceHandle *interfaceHandle, 472 …const struct UsbRequest *request, const UsbInterfaceHandle *interfaceHandle, const struct UsbReque… 480 int32_t UsbCancelRequest(const struct UsbRequest *request); 490 int32_t UsbSubmitRequestSync(const struct UsbRequest *request);
|
/drivers/interface/location/agnss/v1_0/ |
D | IAGnssCallback.idl | 31 …* @brief Defines the agnss callback to request the upper layer to establish or release data servic… 32 …* request the upper layer to deliver setId, and request the upper layer to deliver the agnss refer… 43 …* @brief Defines the agnss callback to request the upper layer to establish or release data servic… 44 …* request the upper layer to deliver setId, and request the upper layer to deliver the agnss refer… 52 * @param request Indicates the request information for operating the data service. 54 * @return Returns <b>0</b> if send request successed; returns a negative value otherwise. 59 RequestSetUpAgnssDataLink([in] struct AGnssDataLinkRequest request); 65 * @return Returns <b>0</b> if send request successed; returns a negative value otherwise. 75 * @return Returns <b>0</b> if send request successed; returns a negative value otherwise.
|
/drivers/peripheral/usb/ddk_service/src/ |
D | usb_ddk_service.cpp | 246 struct UsbRequest *request = UsbAllocRequest(handleConvert, 0, MAX_CONTROL_BUFF_SIZE); in SendControlReadRequest() local 247 if (request == nullptr) { in SendControlReadRequest() 260 params.ctrlReq.request = setup.requestCmd; in SendControlReadRequest() 265 ret = UsbFillRequest(request, handleConvert, ¶ms); in SendControlReadRequest() 271 ret = UsbSubmitRequestSync(request); in SendControlReadRequest() 277 … data.assign(request->compInfo.buffer, request->compInfo.buffer + request->compInfo.actualLength); in SendControlReadRequest() 279 (void)UsbFreeRequest(request); in SendControlReadRequest() 294 struct UsbRequest *request = UsbAllocRequest(handleConvert, 0, MAX_CONTROL_BUFF_SIZE); in SendControlWriteRequest() local 295 if (request == nullptr) { in SendControlWriteRequest() 310 params.ctrlReq.request = setup.requestCmd; in SendControlWriteRequest() [all …]
|
/drivers/peripheral/usb/hdi_service/src/ |
D | usbd_dispatcher.cpp | 89 controlReq->request = controlParams->request; in UsbControlSetUp() 238 req->request = nullptr; in UsbdRequestSyncAlloc() 277 … requestSync->request = UsbAllocRequest(requestSync->ifHandle, 0, requestSync->pipe.maxPacketSize); in UsbdRequestSyncInit() 278 if (requestSync->request == nullptr) { in UsbdRequestSyncInit() 295 if (requestSync->request != nullptr) { in UsbdRequestSyncRelease() 296 ret = UsbFreeRequest(requestSync->request); in UsbdRequestSyncRelease() 300 requestSync->request = nullptr; in UsbdRequestSyncRelease() 391 pCtrParams->request = static_cast<uint8_t>(requestCmd); in CtrlTransferParamInit() 578 int32_t UsbdDispatcher::UsbdRequestASyncRelease(UsbdRequestASync *request) in UsbdRequestASyncRelease() argument 580 if (request == nullptr) { in UsbdRequestASyncRelease() [all …]
|
/drivers/peripheral/camera/vdi_base/v4l2/src/offline_stream_operator/ |
D | offline_stream.cpp | 127 std::shared_ptr<CaptureRequest> request = nullptr; in ReturnBuffer() local 138 request = *it; in ReturnBuffer() 146 … std::make_shared<CaptureErrorMessage>(streamId_, request->GetCaptureId(), request->GetEndTime(), in ReturnBuffer() 147 … request->GetOwnerCount(), static_cast<VdiStreamError>(status)); in ReturnBuffer() 152 if (request->NeedShutterCallback()) { in ReturnBuffer() 154 streamId_, request->GetCaptureId(), request->GetEndTime(), request->GetOwnerCount()); in ReturnBuffer() 159 …streamId_, request->GetCaptureId(), request->GetEndTime(), request->GetOwnerCount(), tunnel->GetFr… in ReturnBuffer()
|
/drivers/interface/ril/v1_1/ |
D | IRilCallback.idl | 61 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 74 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 85 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 98 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 111 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 124 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 137 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 148 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 159 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 172 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… [all …]
|
D | IRil.idl | 32 * @brief Declares the request API of the RIL module. 49 * @brief Declares the request API of the RIL module. 75 * @param serialId Serial ID of a request. 90 * @param serialId Serial ID of a request. 104 * @param serialId Serial ID of a request. 118 * @param serialId Serial ID of a request. 133 * @param serialId Serial ID of a request. 147 * @param serialId Serial ID of a request. 162 * @param serialId Serial ID of a request. 176 * @param serialId Serial ID of a request. [all …]
|
/drivers/interface/ril/v1_0/ |
D | IRilCallback.idl | 61 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 74 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 85 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 98 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 111 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 124 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 137 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 148 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 159 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… 172 …* @param responseInfo Common response information, such as the card slot ID and request sequence I… [all …]
|
D | IRil.idl | 32 * @brief Declares the request API of the RIL module. 49 * @brief Declares the request API of the RIL module. 75 * @param serialId Serial ID of a request. 90 * @param serialId Serial ID of a request. 104 * @param serialId Serial ID of a request. 118 * @param serialId Serial ID of a request. 133 * @param serialId Serial ID of a request. 147 * @param serialId Serial ID of a request. 162 * @param serialId Serial ID of a request. 176 * @param serialId Serial ID of a request. [all …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/test/ |
D | conftest.py | 35 def browser(request): argument 38 name = request.config.getoption("--browser") 49 request.addfinalizer(fn)
|
/drivers/peripheral/camera/vdi_base/v4l2/include/stream_operator/ |
D | istream.h | 44 virtual RetCode AddRequest(std::shared_ptr<CaptureRequest>& request) = 0; 45 virtual RetCode CancelRequest(const std::shared_ptr<CaptureRequest>& request) = 0; 52 virtual RetCode Capture(const std::shared_ptr<CaptureRequest>& request) = 0; 53 virtual RetCode OnFrame(const std::shared_ptr<CaptureRequest>& request) = 0;
|
/drivers/peripheral/usb/test/unittest/mock/include/ |
D | mock_linux_adapter.h | 36 int32_t FuncAdapterFreeRequest(UsbHostRequest *request); 37 int32_t FuncAdapterSubmitRequest(UsbHostRequest *request); 38 int32_t FuncAdapterCancelRequest(UsbHostRequest * const request);
|
/drivers/peripheral/usb/hdi_service/include/ |
D | usbd.h | 59 struct UsbRequest *request; member 115 struct UsbRequest *request; member 123 uint8_t request; member 135 struct UsbRequest *request; member 153 struct UsbRequest *request; member
|