/drivers/peripheral/usb/ddk_service/src/ |
H A D | usb_ddk_service.cpp | 38 #define GET_CTRL_REQ_RECIP(requestType) ((requestType)&USB_RECIP_MASK) 40 #define GET_CTRL_REQ_DIR(requestType) ((requestType) >> TRANS_DIRECTION_OFFSET) 43 #define GET_CTRL_REQ_TYPE(requestType) (((requestType) >> REQ_TYPE_OFFERT) & REQ_TYPE_MASK) 312 params.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in SendControlReadRequest() 314 params.ctrlReq.target = static_cast<UsbRequestTargetType>(GET_CTRL_REQ_RECIP(setup.requestType)); in SendControlReadRequest() 315 params.ctrlReq.reqType = setup.requestType; in SendControlReadRequest() 316 params.ctrlReq.directon = static_cast<UsbRequestDirection>(GET_CTRL_REQ_DIR(setup.requestType)); in SendControlReadRequest() [all...] |
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/ |
H A D | message_dispatcher.c | 41 (context->requestType != MESSAGE_TYPE_SYNC_REQ && context->requestType != MESSAGE_TYPE_SYNC_RSP)) { in ReleaseMessageContext() 111 if (context->requestType != MESSAGE_TYPE_ASYNC_REQ && context->requestType != MESSAGE_TYPE_SYNC_REQ) { in SetToResponse() 112 HDF_LOGE("Only sync and async message can send response!type=%u", context->requestType); in SetToResponse() 118 context->requestType = MESSAGE_RSP_START + context->requestType - MESSAGE_REQ_START; in SetToResponse() 172 if (context->requestType == MESSAGE_TYPE_ASYNC_RSP && context->callback == NULL) { in HandleRequestMessage() 190 if (context->requestType == MESSAGE_TYPE_SYNC_RSP || context->requestType in HandleRequestMessage() [all...] |
H A D | sidecar.c | 92 context->requestType = MESSAGE_TYPE_SYNC_REQ; in DispatchToMessage() 127 context->requestType = MESSAGE_TYPE_SYNC_REQ; in SideCarSendSyncMessage() 167 context->requestType = MESSAGE_TYPE_ASYNC_REQ; in SideCarSendAsyncMessageInner()
|
/drivers/hdf_core/framework/model/network/wifi/platform/src/message/nodes/ |
H A D | local_node.c | 57 if (context->requestType < MESSAGE_RSP_START) { in HandleResponseMessage() 58 HDF_LOGD("%s: Not expected requestType!", __func__); in HandleResponseMessage() 62 if (context->requestType == MESSAGE_TYPE_SYNC_RSP) { in HandleResponseMessage() 68 } else if (context->requestType == MESSAGE_TYPE_ASYNC_RSP) { in HandleResponseMessage() 75 HDF_LOGE("%s:Response type not supported!type=%u", __func__, context->requestType); in HandleResponseMessage() 89 if (!context->crossNode && context->requestType == MESSAGE_TYPE_SYNC_REQ) { in SendMessageLocalNode() 93 } else if (context->requestType == MESSAGE_TYPE_SYNC_RSP) { in SendMessageLocalNode() 102 if (context->requestType < MESSAGE_RSP_START) { in SendMessageLocalNode()
|
/drivers/peripheral/usb/test/unittest/host_sdk/ |
H A D | usb_host_sdk_if_test_io.cpp | 113 dr.target = (UsbRequestTargetType)(msgData.requestType & TARGET_MASK); in UsbControlMsg() 114 dr.reqType = (UsbControlRequestType)((msgData.requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK); in UsbControlMsg() 115 dr.directon = (UsbRequestDirection)((msgData.requestType >> USB_DIR_OFFSET) & DIRECTION_MASK); in UsbControlMsg() 222 readParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in AcmFillReadRequest() 259 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in AcmFillWriteRequest() 280 intParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in AcmFillIntRequest() 302 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in AcmFillCtrlRequest() 311 msgData.requestType = USB_DDK_TYPE_CLASS | USB_DDK_RECIP_INTERFACE; in AcmFillCtrlRequest()
|
H A D | usb_host_sdk_if_test.h | 121 uint8_t requestType; member
|
H A D | usb_host_sdk_if_test.cpp | 185 dr.target = (UsbRequestTargetType)(msgData.requestType & TARGET_MASK); in UsbControlMsg() 186 dr.reqType = (UsbControlRequestType)((msgData.requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK); in UsbControlMsg() 187 dr.directon = (UsbRequestDirection)((msgData.requestType >> USB_DIR_OFFSET) & DIRECTION_MASK); in UsbControlMsg() 1332 readParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in HWTEST_F() 1370 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in HWTEST_F() 1397 intParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in HWTEST_F() 1425 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in HWTEST_F() 1434 msgData.requestType = USB_DDK_TYPE_CLASS | USB_DDK_RECIP_INTERFACE; in HWTEST_F() 1462 readParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in HWTEST_F() 1500 parmas.requestType in HWTEST_F() [all...] |
H A D | usb_raw_sdk_if_test.h | 190 unsigned char requestType; member
|
/drivers/hdf_core/framework/model/audio/usb/include/ |
H A D | audio_usb_validate_desc.h | 17 uint8_t requestType; member
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
H A D | usb_test.c | 144 dr.target = (UsbRequestTargetType)(msgData.requestType & TARGET_MASK); in UsbControlMsg() 145 dr.reqType = (UsbControlRequestType)((msgData.requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK); in UsbControlMsg() 146 dr.directon = (UsbRequestDirection)((msgData.requestType >> USB_DIR_OFFSET) & DIRECTION_MASK); in UsbControlMsg() 1026 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in CheckHostSdkIfFillIsoRequest001() 1052 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in CheckHostSdkIfFillIsoRequest002() 1078 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in CheckHostSdkIfFillIsoRequest003() 1124 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in CheckHostSdkIfFillIsoRequest005() 1217 readParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in CheckHostSdkIfFillRequest001() 1249 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in CheckHostSdkIfFillRequest002() 1272 intParmas.requestType in CheckHostSdkIfFillRequest003() [all...] |
/drivers/peripheral/usb/ddk/host/include/ |
H A D | usb_ddk_request.h | 97 unsigned char requestType; member
|
H A D | liteos_adapter.h | 37 uint8_t requestType; member
|
/drivers/peripheral/usb/net/include/ |
H A D | cdc_ether.h | 77 uint8_t requestType; member
|
/drivers/peripheral/usb/ddk/host/src/ |
H A D | usb_interface_pool.c | 551 hostRequest->requestType = USB_PIPE_TYPE_BULK; in IfFillBulkRequest() 568 hostRequest->requestType = USB_PIPE_TYPE_BULK; in IfFillBulkRequestByMmap() 653 if (params->requestType != USB_REQUEST_PARAMS_CTRL_TYPE) { in IfFillRequestByPipeType() 664 if (params->requestType != USB_REQUEST_PARAMS_DATA_TYPE) { in IfFillRequestByPipeType() 673 if (params->requestType != USB_REQUEST_PARAMS_DATA_TYPE) { in IfFillRequestByPipeType() 682 if (params->requestType != USB_REQUEST_PARAMS_DATA_TYPE) { in IfFillRequestByPipeType() 705 if (params->requestType != USB_REQUEST_PARAMS_CTRL_TYPE) { in IfFillRequestByPipeTypeByMmap() 716 if (params->requestType != USB_REQUEST_PARAMS_DATA_TYPE) { in IfFillRequestByPipeTypeByMmap() 725 if (params->requestType != USB_REQUEST_PARAMS_DATA_TYPE) { in IfFillRequestByPipeTypeByMmap() 734 if (params->requestType ! in IfFillRequestByPipeTypeByMmap() [all...] |
H A D | usb_raw_api_library.c | 110 request->requestType = type; in HandleSyncRequest() 676 if ((requestData->requestType & USB_DDK_ENDPOINT_DIR_MASK) == USB_PIPE_DIRECTION_IN) { in ControlRequestCompletion() 988 request->requestType = USB_PIPE_TYPE_BULK; in RawFillBulkRequest() 1007 setupData->requestType = requestData->requestType; in RawFillControlSetup() 1026 request->requestType = USB_PIPE_TYPE_CONTROL; in RawFillControlRequest() 1052 request->requestType = USB_PIPE_TYPE_INTERRUPT; in RawFillInterruptRequest() 1072 request->requestType = USB_PIPE_TYPE_INTERRUPT; in RawFillInterruptRequestByMmap() 1099 request->requestType = USB_PIPE_TYPE_ISOCHRONOUS; in RawFillIsoRequest() 1125 if ((requestData->requestType in RawSendControlRequest() [all...] |
H A D | liteos_adapter.c | 475 if (request->requestType == USB_REQUEST_TYPE_ISOCHRONOUS) { in OsDiscardUrbs() 504 uhe = usb_find_host_endpoint((UsbAdapterDevice *)adapterDevice, request->requestType, request->endPoint); in OsSubmitControlMsg() 579 switch (request->requestType) { in OsSubmitBulkRequestHandleUrb() 586 DPRINTFN(0, "%s:%d unknown requestType=%u\n", __func__, __LINE__, request->requestType); in OsSubmitBulkRequestHandleUrb() 611 UsbAdapterHostEndpoint *uhe = usb_find_host_endpoint(adapterDevice, request->requestType, request->endPoint); in OsSubmitBulkRequestHandle() 711 UsbPipeType pipeType = request->requestType; in OsAllocIsoUrbs() 1352 switch (request->requestType) { in AdapterSubmitRequest() 1364 DPRINTFN(0, "%s:%d unknown requestType=%u\n", __func__, __LINE__, request->requestType); in AdapterSubmitRequest() [all...] |
/drivers/peripheral/usb/net/src/ |
H A D | cdc_ether.c | 131 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in EcmStartWb() 215 dr.target = controlParams->requestType & TARGET_MASK; in EcmUsbControlMsg() 216 dr.reqType = (controlParams->requestType >> USB_TYPE_OFFSET) & REQUEST_TYPE_MASK; in EcmUsbControlMsg() 217 dr.directon = (controlParams->requestType >> USB_DIR_OFFSET) & DIRECTION_MASK; in EcmUsbControlMsg() 245 controlParams.requestType = USB_DDK_TYPE_CLASS | USB_DDK_RECIP_INTERFACE; in EcmCtrlMsg() 254 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in EcmCtrlMsg() 899 intParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in EcmAllocIntReq() 926 readParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in EcmAllocReadReq()
|
/drivers/peripheral/usb/serial/src/ |
H A D | usb_serial.c | 120 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in AcmStartWb() 149 parmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in AcmStartWbSync() 266 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in UsbGetDescriptor() 324 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in UsbGetStatus() 372 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in UsbGetInterface() 411 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in UsbGetConfig() 460 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in SerialCtrlMsg() 502 parmas.requestType = USB_REQUEST_PARAMS_CTRL_TYPE; in SerialCtrlAsyncMsg() 688 readParmas.requestType = USB_REQUEST_PARAMS_DATA_TYPE; in UsbSerialReadSync() 739 parmas.requestType in UsbStdCtrlCmd() [all...] |
/drivers/hdf_core/framework/model/network/wifi/platform/include/message/ |
H A D | sidecar.h | 32 uint8_t requestType; \
|
/drivers/peripheral/usb/hdi_service/src/ |
H A D | usbd_dispatcher.cpp | 256 params->requestType = USB_REQUEST_PARAMS_DATA_TYPE;
in UsbRequestParamsWSyncInit() 347 params->requestType = USB_REQUEST_PARAMS_CTRL_TYPE;
in UsbRequestParamsInit() 351 int32_t UsbdDispatcher::CtrlTranParamGetReqType(HdfSBuf *data, UsbControlParams *pCtrParams, uint32_t requestType)
in CtrlTranParamGetReqType() argument 360 int32_t target = requestType & USB_RECIP_MASK;
in CtrlTranParamGetReqType() 361 int32_t direction = (requestType >> DIRECTION_OFFSET_7) & ENDPOINT_DIRECTION_MASK;
in CtrlTranParamGetReqType() 362 int32_t cmdType = (requestType >> CMD_OFFSET_5) & CMD_TYPE_MASK;
in CtrlTranParamGetReqType() 391 int32_t requestType;
in CtrlTransferParamInit() local 392 if (!HdfSbufReadInt32(data, &requestType)) {
in CtrlTransferParamInit() 393 HDF_LOGE("%{public}s:failed to read the requestType from data", __func__);
in CtrlTransferParamInit() 423 int32_t ret = CtrlTranParamGetReqType(data, pCtrParams, requestType);
in CtrlTransferParamInit() [all...] |
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/ |
H A D | usb_test.h | 217 uint8_t requestType; member
|
/drivers/peripheral/clearplay/interfaces/include/drm/v1_0/ |
H A D | media_key_system_types.h | 128 OHOS::HDI::Drm::V1_0::MediaKeyRequestType requestType; member
|
/drivers/peripheral/usb/hdi_service/include/ |
H A D | usbd_type.h | 125 uint8_t requestType;
member
|
/drivers/peripheral/usb/interfaces/ddk/host/ |
H A D | usb_ddk_interface.h | 278 UsbRequestParamsType requestType;
member
|
H A D | usb_raw_api.h | 72 uint8_t requestType;
member
|