Searched refs:device_descriptor (Results 1 – 7 of 7) sorted by relevance
121 STORAGE_DEVICE_DESCRIPTOR* device_descriptor = in AddDeviceInfo() local124 if (!device_descriptor->RemovableMedia && in AddDeviceInfo()125 !(device_descriptor->BusType == BusTypeUsb)) { in AddDeviceInfo()155 device->removable = device_descriptor->RemovableMedia == TRUE; in AddDeviceInfo()157 if (device_descriptor->VendorIdOffset && in AddDeviceInfo()158 output_buf[device_descriptor->VendorIdOffset]) { in AddDeviceInfo()159 device->vendor.assign(output_buf.get() + device_descriptor->VendorIdOffset); in AddDeviceInfo()163 if (device_descriptor->ProductIdOffset && in AddDeviceInfo()164 output_buf[device_descriptor->ProductIdOffset]) { in AddDeviceInfo()165 device->model.assign(output_buf.get() + device_descriptor->ProductIdOffset); in AddDeviceInfo()
52 STORAGE_DEVICE_DESCRIPTOR* device_descriptor = in IsValidDevice() local55 return device_descriptor->RemovableMedia == TRUE || in IsValidDevice()56 device_descriptor->BusType == BusTypeUsb; in IsValidDevice()
524 r = usbi_backend->get_device_descriptor(dev, (unsigned char *) &dev->device_descriptor, in usbi_device_cache_descriptor()530 dev->device_descriptor.bcdUSB = libusb_le16_to_cpu(dev->device_descriptor.bcdUSB); in usbi_device_cache_descriptor()531 dev->device_descriptor.idVendor = libusb_le16_to_cpu(dev->device_descriptor.idVendor); in usbi_device_cache_descriptor()532 dev->device_descriptor.idProduct = libusb_le16_to_cpu(dev->device_descriptor.idProduct); in usbi_device_cache_descriptor()533 dev->device_descriptor.bcdDevice = libusb_le16_to_cpu(dev->device_descriptor.bcdDevice); in usbi_device_cache_descriptor()555 memcpy((unsigned char *) desc, (unsigned char *) &dev->device_descriptor, in libusb_get_device_descriptor()556 sizeof (dev->device_descriptor)); in libusb_get_device_descriptor()
160 hotplug_cb->vendor_id != dev->device_descriptor.idVendor) { in usbi_hotplug_match_cb()165 hotplug_cb->product_id != dev->device_descriptor.idProduct) { in usbi_hotplug_match_cb()170 hotplug_cb->dev_class != dev->device_descriptor.bDeviceClass) { in usbi_hotplug_match_cb()
308 struct libusb_device_descriptor device_descriptor; member
600 num_configurations = dev->device_descriptor.bNumConfigurations; in usbi_sanitize_device()
89 const STORAGE_DEVICE_DESCRIPTOR* device_descriptor = in GetMachineId() local94 const DWORD offset = device_descriptor->SerialNumberOffset; in GetMachineId()