Searched refs:deviceDescriptor (Results 1 - 6 of 6) sorted by relevance
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/ |
H A D | usb_dev_subscriber.cpp | 138 UsbDevDescLite deviceDescriptor = *(reinterpret_cast<const UsbDevDescLite *>(descData.data())); in OnDeviceConnect() local 139 if (deviceDescriptor.bLength != USB_DEV_DESC_SIZE) { in OnDeviceConnect() 144 string desc = ToDeviceDesc(usbDev, deviceDescriptor); in OnDeviceConnect() 148 usbDevInfo->bcdUSB_ = deviceDescriptor.bcdUSB; in OnDeviceConnect() 149 usbDevInfo->idProduct_ = deviceDescriptor.idProduct; in OnDeviceConnect() 150 usbDevInfo->idVendor_ = deviceDescriptor.idVendor; in OnDeviceConnect() 151 usbDevInfo->deviceClass_ = deviceDescriptor.bDeviceClass; in OnDeviceConnect()
|
/drivers/peripheral/usb/ddk/host/include/ |
H A D | usb_ddk_device.h | 40 struct UsbDeviceDescriptor deviceDescriptor; member
|
/drivers/peripheral/usb/test/unittest/mock/src/ |
H A D | mock_linux_adapter.cpp | 58 handle->dev->deviceDescriptor = dec; in FillUsbDeviceHandle() 212 ret = memcpy_s(&dev->deviceDescriptor, sizeof(UsbDeviceDescriptor), dev->descriptors, USB_DDK_DT_DEVICE_SIZE); in OsInitDevice() 287 if (dev == nullptr || buffer == nullptr || (configIndex > dev->deviceDescriptor.bNumConfigurations)) { in FuncAdapterGetConfigDescriptor() 291 for (i = 0; i < dev->deviceDescriptor.bNumConfigurations; i++) { in FuncAdapterGetConfigDescriptor()
|
/drivers/peripheral/usb/ddk/host/src/ |
H A D | linux_adapter.c | 332 memcpy_s(&dev->deviceDescriptor, sizeof(struct UsbDeviceDescriptor), dev->descriptors, USB_DDK_DT_DEVICE_SIZE); in OsInitDevice() 1022 for (i = 0; i < dev->deviceDescriptor.bNumConfigurations; i++) { in AdapterGetConfigDescriptor() 1030 if (dev->deviceDescriptor.bNumConfigurations == 1) { in AdapterGetConfigDescriptor()
|
H A D | usb_raw_api_library.c | 1382 if (dev == NULL || desc == NULL || sizeof(dev->deviceDescriptor) != USB_DDK_DT_DEVICE_SIZE) { in RawGetDeviceDescriptor() 1387 *desc = dev->deviceDescriptor; in RawGetDeviceDescriptor()
|
H A D | liteos_adapter.c | 438 ret = memcpy_s(&dev->deviceDescriptor, sizeof(struct UsbDeviceDescriptor), &osDev->adapterDevice->ddesc, in OsInitDevice()
|
Completed in 8 milliseconds