Searched refs:dev_descriptor (Results 1 – 4 of 4) sorted by relevance
/external/libusb/libusb/os/ |
D | darwin_usb.c | 567 memmove (buffer, &(priv->dev_descriptor), DEVICE_DESC_LENGTH); in darwin_get_device_descriptor() 648 if (dev->dev_descriptor.bNumConfigurations < 1) { in darwin_check_configuration() 655 if (0x05ac == dev->dev_descriptor.idVendor && 0x8005 == dev->dev_descriptor.idProduct) { in darwin_check_configuration() 689 if (dev->dev_descriptor.bNumConfigurations == 1) in darwin_check_configuration() 744 …n_request_descriptor (device, kUSBDeviceDesc, 0, &dev->dev_descriptor, sizeof(dev->dev_descriptor)… in darwin_cache_device_descriptor() 746 if (kIOReturnOverrun == ret && kUSBDeviceDesc == dev->dev_descriptor.bDescriptorType) in darwin_cache_device_descriptor() 755 if (kIOReturnSuccess == ret && (0 == dev->dev_descriptor.bNumConfigurations || in darwin_cache_device_descriptor() 756 0 == dev->dev_descriptor.bcdUSB)) { in darwin_cache_device_descriptor() 824 if (libusb_le16_to_cpu (dev->dev_descriptor.idProduct) != idProduct) { in darwin_cache_device_descriptor() 827 idProduct, libusb_le16_to_cpu (dev->dev_descriptor.idProduct)); in darwin_cache_device_descriptor() [all …]
|
D | darwin_usb.h | 119 IOUSBDeviceDescriptor dev_descriptor; member
|
D | windows_winusb.c | 862 priv->dev_descriptor.bLength = sizeof(USB_DEVICE_DESCRIPTOR); in force_hcd_device_descriptor() 863 priv->dev_descriptor.bDescriptorType = USB_DEVICE_DESCRIPTOR_TYPE; in force_hcd_device_descriptor() 864 priv->dev_descriptor.bNumConfigurations = 1; in force_hcd_device_descriptor() 874 priv->dev_descriptor.idVendor = (uint16_t)vid; in force_hcd_device_descriptor() 875 priv->dev_descriptor.idProduct = (uint16_t)pid; in force_hcd_device_descriptor() 878 priv->dev_descriptor.idVendor = 0x1d6b; // Linux Foundation root hub in force_hcd_device_descriptor() 879 priv->dev_descriptor.idProduct = 1; in force_hcd_device_descriptor() 1079 memcpy(&priv->dev_descriptor, &(conn_info.DeviceDescriptor), sizeof(USB_DEVICE_DESCRIPTOR)); in init_device() 1080 dev->num_configurations = priv->dev_descriptor.bNumConfigurations; in init_device() 1087 priv->dev_descriptor.bNumConfigurations = 0; in init_device() [all …]
|
D | windows_winusb.h | 218 USB_DEVICE_DESCRIPTOR dev_descriptor; member 241 memset(&p->dev_descriptor, 0, sizeof(USB_DEVICE_DESCRIPTOR)); in windows_device_priv_init()
|