Home
last modified time | relevance | path

Searched refs:conf_desc (Results 1 – 3 of 3) sorted by relevance

/external/libusb/examples/
Dxusb.c803 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()
[all …]
/external/libiio/src/
Dusb.c769 struct libusb_config_descriptor *conf_desc; in usb_create_context() local
868 ret = libusb_get_active_config_descriptor(usb_dev, &conf_desc); in usb_create_context()
875 iface = &conf_desc->interface[interface].altsetting[0]; in usb_create_context()
946 libusb_free_config_descriptor(conf_desc); in usb_create_context()
989 libusb_free_config_descriptor(conf_desc); in usb_create_context()
/external/libusb/libusb/os/
Dwindows_winusb.c441 static int get_interface_by_endpoint(struct libusb_config_descriptor *conf_desc, uint8_t ep) in get_interface_by_endpoint() argument
448 for (i = 0; i < conf_desc->bNumInterfaces; i++) { in get_interface_by_endpoint()
449 intf = &conf_desc->interface[i]; in get_interface_by_endpoint()
493 struct libusb_config_descriptor *conf_desc; in windows_assign_endpoints() local
497 r = libusb_get_active_config_descriptor(dev_handle->dev, &conf_desc); in windows_assign_endpoints()
503 if_desc = &conf_desc->interface[iface].altsetting[altsetting]; in windows_assign_endpoints()
508 libusb_free_config_descriptor(conf_desc); in windows_assign_endpoints()
515 libusb_free_config_descriptor(conf_desc); in windows_assign_endpoints()
524 libusb_free_config_descriptor(conf_desc); in windows_assign_endpoints()
4254 struct libusb_config_descriptor *conf_desc; in composite_submit_control_transfer() local
[all …]