Lines Matching refs:descriptor
227 * This checks if a device has an MTP descriptor. The descriptor was
251 if (!(dev->descriptor.bDeviceClass == USB_CLASS_PER_INTERFACE ||
252 dev->descriptor.bDeviceClass == USB_CLASS_COMM ||
253 dev->descriptor.bDeviceClass == USB_CLASS_PTP ||
254 dev->descriptor.bDeviceClass == 0xEF || /* Intf. Association Desc.*/
255 dev->descriptor.bDeviceClass == USB_CLASS_VENDOR_SPEC)) {
269 * dev->descriptor.bNumConfigurations > 0
279 for (i = 0; i < dev->descriptor.bNumConfigurations; i++) {
285 /* Current interface descriptor */
297 * We only want to probe for the OS descriptor if the
370 if (dev->descriptor.bNumConfigurations)
371 LIBMTP_INFO("dev->config is NULL in probe_device_descriptor yet dev->descriptor.bNumConfigurations > 0\n");
375 * Only probe for OS descriptor if the device is vendor specific
378 if (dev->descriptor.bDeviceClass == USB_CLASS_VENDOR_SPEC ||
381 /* Read the special descriptor */
398 fprintf(dumpfile, "Microsoft device descriptor 0xee:\n");
402 /* Check if descriptor length is at least 10 bytes */
408 /* Check if this device has a Microsoft Descriptor */
480 dev->descriptor.idVendor, dev->descriptor.idProduct);
515 if (dev->descriptor.bDeviceClass != USB_CLASS_HUB) {
523 if(dev->descriptor.idVendor == mtp_device_table[i].vendor_id &&
524 dev->descriptor.idProduct == mtp_device_table[i].product_id) {
533 // If we didn't know it, try probing the "OS Descriptor".
548 if ( dev->config != NULL &&dev->config->interface->altsetting->bInterfaceClass == USB_CLASS_PTP && dev->descriptor.bDeviceClass != USB_CLASS_HUB ) {
567 * number has an MTP type device descriptor.
655 retdevs[i].device_entry.vendor_id = dev->libusb_device->descriptor.idVendor;
657 retdevs[i].device_entry.product_id = dev->libusb_device->descriptor.idProduct;
661 if(dev->libusb_device->descriptor.idVendor == mtp_device_table[j].vendor_id &&
662 dev->libusb_device->descriptor.idProduct == mtp_device_table[j].product_id) {
671 dev->libusb_device->descriptor.idVendor,
672 dev->libusb_device->descriptor.idProduct,
680 dev->libusb_device->descriptor.idVendor,
681 dev->libusb_device->descriptor.idProduct);
715 LIBMTP_INFO(" bcdUSB: %d\n", dev->descriptor.bcdUSB);
716 LIBMTP_INFO(" bDeviceClass: %d\n", dev->descriptor.bDeviceClass);
717 LIBMTP_INFO(" bDeviceSubClass: %d\n", dev->descriptor.bDeviceSubClass);
718 LIBMTP_INFO(" bDeviceProtocol: %d\n", dev->descriptor.bDeviceProtocol);
719 LIBMTP_INFO(" idVendor: %04x\n", dev->descriptor.idVendor);
720 LIBMTP_INFO(" idProduct: %04x\n", dev->descriptor.idProduct);
750 if (dev->descriptor.idVendor == 0x041e) {
1887 for (i = 0; i < dev->descriptor.bNumConfigurations; i++) {
1973 dev->descriptor.idVendor == device->device_entry.vendor_id &&
1974 dev->descriptor.idProduct == device->device_entry.product_id ) {
2001 * Some devices must have their "OS Descriptor" massaged in order
2005 // Massage the device descriptor
2026 ptp_usb->bcdusb = libusb_device->descriptor.bcdUSB;