Lines Matching refs:conf_desc
803 struct libusb_config_descriptor *conf_desc; in test_device() local
865 CALL_CHECK_CLOSE(libusb_get_config_descriptor(dev, 0, &conf_desc), handle); in test_device()
866 nb_ifaces = conf_desc->bNumInterfaces; in test_device()
869 first_iface = conf_desc->usb_interface[0].altsetting[0].bInterfaceNumber; in test_device()
872 conf_desc->usb_interface[i].altsetting[0].bInterfaceNumber); in test_device()
873 for (j=0; j<conf_desc->usb_interface[i].num_altsetting; j++) { in test_device()
875 i, j, conf_desc->usb_interface[i].altsetting[j].bNumEndpoints); in test_device()
877 conf_desc->usb_interface[i].altsetting[j].bInterfaceClass, in test_device()
878 conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass, in test_device()
879 conf_desc->usb_interface[i].altsetting[j].bInterfaceProtocol); in test_device()
880 if ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceClass == LIBUSB_CLASS_MASS_STORAGE) in test_device()
881 && ( (conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass == 0x01) in test_device()
882 || (conf_desc->usb_interface[i].altsetting[j].bInterfaceSubClass == 0x06) ) in test_device()
883 && (conf_desc->usb_interface[i].altsetting[j].bInterfaceProtocol == 0x50) ) { in test_device()
887 for (k=0; k<conf_desc->usb_interface[i].altsetting[j].bNumEndpoints; k++) { in test_device()
889 endpoint = &conf_desc->usb_interface[i].altsetting[j].endpoint[k]; in test_device()
912 libusb_free_config_descriptor(conf_desc); in test_device()