Searched refs:dev_descriptor (Results 1 – 7 of 7) sorted by relevance
/external/chromium_org/third_party/libusb/src/libusb/os/ |
D | darwin_usb.c | 460 memmove (buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in darwin_get_device_descriptor() 541 if (dev->dev_descriptor.bNumConfigurations < 1) { in darwin_check_configuration() 574 if (dev->dev_descriptor.bNumConfigurations == 1) in darwin_check_configuration() 629 …n_request_descriptor (device, kUSBDeviceDesc, 0, &dev->dev_descriptor, sizeof(dev->dev_descriptor)… in darwin_cache_device_descriptor() 631 if (kIOReturnOverrun == ret && kUSBDeviceDesc == dev->dev_descriptor.bDescriptorType) in darwin_cache_device_descriptor() 640 if (kIOReturnSuccess == ret && (0 == dev->dev_descriptor.bNumConfigurations || in darwin_cache_device_descriptor() 641 0 == dev->dev_descriptor.bcdUSB)) { in darwin_cache_device_descriptor() 709 if (libusb_le16_to_cpu (dev->dev_descriptor.idProduct) != idProduct) { in darwin_cache_device_descriptor() 712 idProduct, libusb_le16_to_cpu (dev->dev_descriptor.idProduct)); in darwin_cache_device_descriptor() 717 usbi_dbg (" bDescriptorType: 0x%02x", dev->dev_descriptor.bDescriptorType); in darwin_cache_device_descriptor() [all …]
|
D | darwin_usb.h | 113 IOUSBDeviceDescriptor dev_descriptor; member
|
D | windows_usb.c | 951 priv->dev_descriptor.bLength = sizeof(USB_DEVICE_DESCRIPTOR); in force_hcd_device_descriptor() 952 priv->dev_descriptor.bDescriptorType = USB_DEVICE_DESCRIPTOR_TYPE; in force_hcd_device_descriptor() 953 priv->dev_descriptor.bNumConfigurations = 1; in force_hcd_device_descriptor() 962 priv->dev_descriptor.idVendor = (uint16_t)vid; in force_hcd_device_descriptor() 963 priv->dev_descriptor.idProduct = (uint16_t)pid; in force_hcd_device_descriptor() 966 priv->dev_descriptor.idVendor = 0x1d6b; // Linux Foundation root hub in force_hcd_device_descriptor() 967 priv->dev_descriptor.idProduct = 1; in force_hcd_device_descriptor() 1147 memcpy(&priv->dev_descriptor, &(conn_info.DeviceDescriptor), sizeof(USB_DEVICE_DESCRIPTOR)); in init_device() 1148 dev->num_configurations = priv->dev_descriptor.bNumConfigurations; in init_device() 1154 priv->dev_descriptor.bNumConfigurations = 0; in init_device() [all …]
|
D | windows_usb.h | 225 USB_DEVICE_DESCRIPTOR dev_descriptor; member 245 memset(&(p->dev_descriptor), 0, sizeof(USB_DEVICE_DESCRIPTOR)); in windows_device_priv_init()
|
/external/libusb/libusb/os/ |
D | darwin_usb.h | 120 IOUSBDeviceDescriptor dev_descriptor; member
|
D | linux_usbfs.c | 105 unsigned char *dev_descriptor; member 275 memcpy(buffer, priv->dev_descriptor, DEVICE_DESC_LENGTH); in usbfs_get_device_descriptor() 692 priv->dev_descriptor = NULL; in initialize_device() 782 priv->dev_descriptor = dev_buf; in initialize_device() 1312 if (priv->dev_descriptor) in op_destroy_device() 1313 free(priv->dev_descriptor); in op_destroy_device()
|
D | darwin_usb.c | 353 memmove (buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in darwin_get_device_descriptor() 469 req.pData = &(priv->dev_descriptor); in process_new_device() 516 if (libusb_le16_to_cpu (priv->dev_descriptor.idProduct) != idProduct) { in process_new_device() 519 idProduct, libusb_le16_to_cpu (priv->dev_descriptor.idProduct)); in process_new_device()
|