/drivers/external_device_manager/frameworks/ddk/usb/ |
D | usb_config_desc_parser.cpp | 169 static int32_t ParseEndpoint(UsbDdkEndpointDescriptor *endPoint, const uint8_t *buffer, int32_t siz… in ParseEndpoint() argument 190 ParseDescriptor(USB_DDK_ENDPOINT_DESCRIPTOR_TYPE, reinterpret_cast<uint8_t *>(endPoint), in ParseEndpoint() 200 ret = FillExtraDescriptor(&endPoint->extra, &endPoint->extraLength, buffer, len); in ParseEndpoint() 234 UsbDdkEndpointDescriptor *endPoint = nullptr; in ParseInterfaceEndpoint() local 238 endPoint = new UsbDdkEndpointDescriptor[ddkIntfDesc.interfaceDescriptor.bNumEndpoints]; in ParseInterfaceEndpoint() 239 if (endPoint == nullptr) { in ParseInterfaceEndpoint() 244 (void)memset_s(static_cast<void *>(endPoint), len, 0, len); in ParseInterfaceEndpoint() 246 ddkIntfDesc.endPoint = endPoint; in ParseInterfaceEndpoint() 248 ret = ParseEndpoint(endPoint + i, *buffer, *size); in ParseInterfaceEndpoint() 341 ddkIntfDesc.endPoint = nullptr; in ParseInterface() [all …]
|
/drivers/peripheral/usb/ddk/host/src/ |
D | usb_raw_api_library.c | 100 if (UsbEndpointDirOut(requestData->endPoint)) { in HandleSyncRequest() 109 request->endPoint = requestData->endPoint; in HandleSyncRequest() 300 static void ClearEndpoint(struct UsbRawEndpointDescriptor *endPoint) in ClearEndpoint() argument 302 if ((endPoint != NULL) && (endPoint->extra != NULL)) { in ClearEndpoint() 303 RawUsbMemFree((void *)endPoint->extra); in ClearEndpoint() 304 endPoint->extra = NULL; in ClearEndpoint() 308 static int32_t ParseEndpoint(struct UsbRawEndpointDescriptor *endPoint, const uint8_t *buffer, int3… in ParseEndpoint() argument 332 ParseDescriptor(buffer, USB_RAW_AUDIO_ENDPOINT_DESCRIPTOR_TYPE, endPoint); in ParseEndpoint() 334 ParseDescriptor(buffer, USB_RAW_ENDPOINT_DESCRIPTOR_TYPE, endPoint); in ParseEndpoint() 350 ret = memcpy_s(extra, len + endPoint->extraLength, buffer, len); in ParseEndpoint() [all …]
|
D | linux_adapter.c | 419 urb->endPoint = request->endPoint; in OsSubmitControlRequest() 459 urb->endPoint = request->endPoint; in OsSubmitBulkRequestHandleUrb() 491 urb->bufferLength, urb->endPoint, urb->type); in OsSubmitBulkRequestHandle() 589 urb->endPoint = request->endPoint; in OsAllocIsoUrbs() 1162 static int32_t AdapterClearHalt(const struct UsbDeviceHandle *handle, unsigned int endPoint) in AdapterClearHalt() argument 1171 ret = ioctl(handle->fd, USBDEVFS_CLEAR_HALT, &endPoint); in AdapterClearHalt()
|
D | liteos_adapter.c | 500 …usb_find_host_endpoint((UsbAdapterDevice *)adapterDevice, request->requestType, request->endPoint); in OsSubmitControlMsg() 607 …HostEndpoint *uhe = usb_find_host_endpoint(adapterDevice, request->requestType, request->endPoint); in OsSubmitBulkRequestHandle() 708 unsigned char endPoint = request->endPoint; in OsAllocIsoUrbs() local 714 uhe = usb_find_host_endpoint(adapterDevice, pipeType, endPoint); in OsAllocIsoUrbs() 1272 static int32_t AdapterClearHalt(const struct UsbDeviceHandle *handle, unsigned int endPoint) in AdapterClearHalt() argument 1278 UsbAdapterHostEndpoint *uhe = usb_find_host_endpoint(adapterDevice, PIPE_BULK, endPoint); in AdapterClearHalt()
|
D | usb_interface_pool.c | 446 fillRequestData.endPoint = 0; in IfFillControlRequest() 457 fillRequestData.endPoint = (((uint8_t)ctrlReq.directon) << USB_DIR_OFFSET); in IfFillControlRequest() 482 fillRequestData.endPoint = (((uint8_t)dir) << USB_DIR_OFFSET) | pipeAddress; in IfFillIsoRequest() 509 hostRequest->endPoint = (((uint8_t)dir) << USB_DIR_OFFSET) | pipeAddress; in IfFillBulkRequest() 526 hostRequest->endPoint = pipeAddress; in IfFillBulkRequestByMmap() 545 fillRequestData.endPoint = (((uint8_t)dir) << USB_DIR_OFFSET) | pipeAddress; in IfFillInterrupteRequest() 563 fillRequestData.endPoint = pipeAddress; in IfFillInterrupteRequestByMmap()
|
D | usb_protocol.c | 168 return &ifDes->endPoint[idx]; in UsbGetEpDesc()
|
/drivers/peripheral/usb/ddk/host/include/ |
D | usb_ddk_request.h | 59 unsigned char endPoint; member 95 unsigned char endPoint; member 118 unsigned char endPoint; member
|
/drivers/peripheral/usb/test/unittest/host_sdk/ |
D | usb_raw_sdk_if_test_io.cpp | 278 … acm->notifyEp->addr = interface->altsetting->endPoint[0].endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptor() 279 … acm->notifyEp->interval = interface->altsetting->endPoint[0].endpointDescriptor.bInterval; in UsbParseConfigDescriptor() 280 …acm->notifyEp->maxPacketSize = interface->altsetting->endPoint[0].endpointDescriptor.wMaxPacketSiz… in UsbParseConfigDescriptor() 285 … const struct UsbRawEndpointDescriptor *endPoint = &interface->altsetting->endPoint[j]; in UsbParseConfigDescriptor() local 288 if ((endPoint->endpointDescriptor.bEndpointAddress \ in UsbParseConfigDescriptor() 295 acm->dataInEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptor() 296 acm->dataInEp->interval = endPoint->endpointDescriptor.bInterval; in UsbParseConfigDescriptor() 297 acm->dataInEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbParseConfigDescriptor() 304 acm->dataOutEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptor() 305 acm->dataOutEp->interval = endPoint->endpointDescriptor.bInterval; in UsbParseConfigDescriptor() [all …]
|
D | usb_raw_sdk_if_test.h | 154 unsigned char endPoint; member 188 unsigned char endPoint; member 210 unsigned char endPoint; member
|
D | usb_raw_sdk_if_test.cpp | 329 … acm->notifyEp->addr = interface->altsetting->endPoint[0].endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptor() 330 … acm->notifyEp->interval = interface->altsetting->endPoint[0].endpointDescriptor.bInterval; in UsbParseConfigDescriptor() 331 …acm->notifyEp->maxPacketSize = interface->altsetting->endPoint[0].endpointDescriptor.wMaxPacketSiz… in UsbParseConfigDescriptor() 336 … const struct UsbRawEndpointDescriptor *endPoint = &interface->altsetting->endPoint[j]; in UsbParseConfigDescriptor() local 339 …if ((endPoint->endpointDescriptor.bEndpointAddress & USB_DDK_ENDPOINT_DIR_MASK) == USB_DDK_DIR_IN)… in UsbParseConfigDescriptor() 345 acm->dataInEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptor() 346 acm->dataInEp->interval = endPoint->endpointDescriptor.bInterval; in UsbParseConfigDescriptor() 347 acm->dataInEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbParseConfigDescriptor() 354 acm->dataOutEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptor() 355 acm->dataOutEp->interval = endPoint->endpointDescriptor.bInterval; in UsbParseConfigDescriptor() [all …]
|
/drivers/peripheral/usb/sample/host/src/ |
D | usbhost_sdkraw_speed.c | 228 …t UsbGetBulkEndpoint(struct AcmDevice * const acm, const struct UsbRawEndpointDescriptor *endPoint) in UsbGetBulkEndpoint() argument 230 …if ((endPoint->endpointDescriptor.bEndpointAddress & USB_DDK_ENDPOINT_DIR_MASK) == USB_DDK_DIR_IN)… in UsbGetBulkEndpoint() 237 acm->dataInEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbGetBulkEndpoint() 238 acm->dataInEp->interval = endPoint->endpointDescriptor.bInterval; in UsbGetBulkEndpoint() 239 acm->dataInEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbGetBulkEndpoint() 247 acm->dataOutEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbGetBulkEndpoint() 248 acm->dataOutEp->interval = endPoint->endpointDescriptor.bInterval; in UsbGetBulkEndpoint() 249 acm->dataOutEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbGetBulkEndpoint() 270 … acm->notifyEp->addr = interface->altsetting->endPoint[0].endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptorProcess() 271 … acm->notifyEp->interval = interface->altsetting->endPoint[0].endpointDescriptor.bInterval; in UsbParseConfigDescriptorProcess() [all …]
|
D | usbhost_nosdk_speed.c | 122 urb->endPoint = g_endNum; in FillUrb() 236 static int32_t FillUrbData(unsigned char endPoint) in FillUrbData() argument 249 urb[i].urb->endPoint = endPoint; in FillUrbData() 263 static int32_t BeginProcess(unsigned char endPoint) in BeginProcess() argument 270 if ((g_fd < 0) || (endPoint == 0)) { in BeginProcess() 275 ret = FillUrbData(endPoint); in BeginProcess()
|
/drivers/peripheral/usb/sample/host/liteos_test/src/ |
D | usbhost_sdkraw_speed.c | 233 …SpeedGetBulkEndpoint(struct AcmDevice * const acm, const struct UsbRawEndpointDescriptor *endPoint) in UsbSpeedGetBulkEndpoint() argument 235 …if ((endPoint->endpointDescriptor.bEndpointAddress & USB_DDK_ENDPOINT_DIR_MASK) == USB_DDK_DIR_IN)… in UsbSpeedGetBulkEndpoint() 242 acm->dataInEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbSpeedGetBulkEndpoint() 243 acm->dataInEp->interval = endPoint->endpointDescriptor.bInterval; in UsbSpeedGetBulkEndpoint() 244 acm->dataInEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbSpeedGetBulkEndpoint() 252 acm->dataOutEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbSpeedGetBulkEndpoint() 253 acm->dataOutEp->interval = endPoint->endpointDescriptor.bInterval; in UsbSpeedGetBulkEndpoint() 254 acm->dataOutEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbSpeedGetBulkEndpoint() 276 … acm->notifyEp->addr = interface->altsetting->endPoint[0].endpointDescriptor.bEndpointAddress; in UsbSpeedParaseInterfaceClass() 277 … acm->notifyEp->interval = interface->altsetting->endPoint[0].endpointDescriptor.bInterval; in UsbSpeedParaseInterfaceClass() [all …]
|
D | usbhost_nosdk_speed.c | 203 static int32_t BeginProcess(unsigned char endPoint) in BeginProcess() argument 206 if (endPoint == 0) { in BeginProcess() 211 g_uhe = usb_find_host_endpoint(g_fd, USB_REQUEST_TYPE_BULK, endPoint); in BeginProcess() 221 HDF_LOGI("%{public}s:%{public}d test NO SDK endpoint:%u\n", __func__, __LINE__, endPoint); in BeginProcess()
|
/drivers/peripheral/usb/interfaces/ddk/host/ |
D | usb_raw_api.h | 94 unsigned char endPoint; member 138 unsigned char endPoint; member 172 const struct UsbRawEndpointDescriptor *endPoint; member
|
/drivers/peripheral/usb/hdi_service/include/ |
D | usbd_type.h | 92 uint8_t endPoint; member 107 uint8_t endPoint; member 115 unsigned char endPoint; member
|
/drivers/peripheral/usb/serial/src/ |
D | usb_serial_rawapi.c | 175 … int32_t UsbGetBulkEndpoint(struct AcmDevice *acm, const struct UsbRawEndpointDescriptor *endPoint) in UsbGetBulkEndpoint() argument 177 …if ((endPoint->endpointDescriptor.bEndpointAddress & USB_DDK_ENDPOINT_DIR_MASK) == USB_DDK_DIR_IN)… in UsbGetBulkEndpoint() 184 acm->dataInEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbGetBulkEndpoint() 185 acm->dataInEp->interval = endPoint->endpointDescriptor.bInterval; in UsbGetBulkEndpoint() 186 acm->dataInEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbGetBulkEndpoint() 194 acm->dataOutEp->addr = endPoint->endpointDescriptor.bEndpointAddress; in UsbGetBulkEndpoint() 195 acm->dataOutEp->interval = endPoint->endpointDescriptor.bInterval; in UsbGetBulkEndpoint() 196 acm->dataOutEp->maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in UsbGetBulkEndpoint() 217 … acm->notifyEp->addr = interface->altsetting->endPoint[0].endpointDescriptor.bEndpointAddress; in UsbParseConfigDescriptorProcess() 218 … acm->notifyEp->interval = interface->altsetting->endPoint[0].endpointDescriptor.bInterval; in UsbParseConfigDescriptorProcess() [all …]
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
D | usb_raw_io.c | 279 … acm->notifyEp.addr = interface->altsetting->endPoint[0].endpointDescriptor.bEndpointAddress; in AcmParaseInterfaceClass() 280 … acm->notifyEp.interval = interface->altsetting->endPoint[0].endpointDescriptor.bInterval; in AcmParaseInterfaceClass() 281 …acm->notifyEp.maxPacketSize = interface->altsetting->endPoint[0].endpointDescriptor.wMaxPacketSize; in AcmParaseInterfaceClass() 286 … const struct UsbRawEndpointDescriptor *endPoint = &interface->altsetting->endPoint[j]; in AcmParaseInterfaceClass() local 289 if ((endPoint->endpointDescriptor.bEndpointAddress in AcmParaseInterfaceClass() 291 acm->dataInEp.addr = endPoint->endpointDescriptor.bEndpointAddress; in AcmParaseInterfaceClass() 292 acm->dataInEp.interval = endPoint->endpointDescriptor.bInterval; in AcmParaseInterfaceClass() 293 acm->dataInEp.maxPacketSize = endPoint->endpointDescriptor.wMaxPacketSize; in AcmParaseInterfaceClass() 295 acm->dataOutEp.addr = endPoint->endpointDescriptor.bEndpointAddress; in AcmParaseInterfaceClass() 296 acm->dataOutEp.interval = endPoint->endpointDescriptor.bInterval; in AcmParaseInterfaceClass() [all …]
|
D | usb_raw_test.c | 315 reqData.endPoint = rawAcm->isoEp.addr; in CheckRawSdkIfFillIsoRequest001() 338 reqData.endPoint = rawAcm->isoEp.addr; in CheckRawSdkIfFillIsoRequest002() 376 reqData.endPoint = rawAcm->isoEp.addr; in CheckRawSdkIfFillIsoRequest004() 399 reqData.endPoint = rawAcm->isoEp.addr; in CheckRawSdkIfFillIsoRequest005() 904 reqData.endPoint = rawAcm->dataOutEp.addr; in CheckRawSdkIfFillBulkRequest001() 926 reqData.endPoint = rawAcm->dataInEp.addr; in CheckRawSdkIfFillBulkRequest002() 948 fillRequestData.endPoint = rawAcm->notifyEp.addr; in CheckRawSdkIfFillInterruptRequest001() 971 fillRequestData.endPoint = rawAcm->notifyEp.addr; in CheckRawSdkIfFillInterruptRequest002() 994 fillRequestData.endPoint = rawAcm->notifyEp.addr; in CheckRawSdkIfFillInterruptRequest003() 1427 reqData.endPoint = rawAcm->dataOutEp.addr; in CheckRawSdkIfSendBulkRequest001() [all …]
|
/drivers/peripheral/usb/sample/host/include/ |
D | usbhost_nosdk_speed.h | 58 unsigned char endPoint; member
|
/drivers/peripheral/usb/test/unittest/mock/include/ |
D | mock_linux_adapter.h | 33 int32_t FuncAdapterClearHalt(const UsbDeviceHandle *handle, uint32_t endPoint);
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/include/ |
D | usb_raw_test.h | 289 unsigned char endPoint; member 323 unsigned char endPoint; member 345 unsigned char endPoint; member
|
/drivers/external_device_manager/interfaces/ddk/usb/ |
D | usb_ddk_types.h | 211 struct UsbDdkEndpointDescriptor *endPoint; member
|
/drivers/peripheral/usb/test/unittest/mock/src/ |
D | mock_linux_adapter.cpp | 372 int32_t FuncAdapterClearHalt(const UsbDeviceHandle *handle, uint32_t endPoint) in FuncAdapterClearHalt() argument 375 (void)endPoint; in FuncAdapterClearHalt()
|