Lines Matching refs:conf_desc
802 struct libusb_config_descriptor *conf_desc; in test_device() local
864 CALL_CHECK(libusb_get_config_descriptor(dev, 0, &conf_desc)); in test_device()
865 nb_ifaces = conf_desc->bNumInterfaces; in test_device()
868 first_iface = conf_desc->usb_interface[0].altsetting[0].bInterfaceNumber; in test_device()
871 conf_desc->usb_interface[i].altsetting[0].bInterfaceNumber); in test_device()
872 for (j=0; j<conf_desc->usb_interface[i].num_altsetting; j++) { in test_device()
874 i, j, conf_desc->usb_interface[i].altsetting[j].bNumEndpoints); in test_device()
876 conf_desc->usb_interface[i].altsetting[j].bInterfaceClass, in test_device()
877 conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass, in test_device()
878 conf_desc->usb_interface[i].altsetting[j].bInterfaceProtocol); in test_device()
879 if ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceClass == LIBUSB_CLASS_MASS_STORAGE) in test_device()
880 && ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass == 0x01) in test_device()
881 || (conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass == 0x06) ) in test_device()
882 && (conf_desc->usb_interface[i].altsetting[j].bInterfaceProtocol == 0x50) ) { in test_device()
886 for (k=0; k<conf_desc->usb_interface[i].altsetting[j].bNumEndpoints; k++) { in test_device()
888 endpoint = &conf_desc->usb_interface[i].altsetting[j].endpoint[k]; in test_device()
911 libusb_free_config_descriptor(conf_desc); in test_device()