Home
last modified time | relevance | path

Searched refs:dev_cap (Results 1 – 5 of 5) sorted by relevance

/external/libusb/libusb/
Ddescriptor.c923 struct libusb_bos_dev_capability_descriptor *dev_cap, in libusb_get_usb_2_0_extension_descriptor() argument
928 if (dev_cap->bDevCapabilityType != LIBUSB_BT_USB_2_0_EXTENSION) { in libusb_get_usb_2_0_extension_descriptor()
930 dev_cap->bDevCapabilityType, in libusb_get_usb_2_0_extension_descriptor()
933 } else if (dev_cap->bLength < LIBUSB_BT_USB_2_0_EXTENSION_SIZE) { in libusb_get_usb_2_0_extension_descriptor()
935 dev_cap->bLength, LIBUSB_BT_USB_2_0_EXTENSION_SIZE); in libusb_get_usb_2_0_extension_descriptor()
943 parse_descriptor(dev_cap, "bbbd", _usb_2_0_extension); in libusb_get_usb_2_0_extension_descriptor()
978 struct libusb_bos_dev_capability_descriptor *dev_cap, in libusb_get_ss_usb_device_capability_descriptor() argument
983 if (dev_cap->bDevCapabilityType != LIBUSB_BT_SS_USB_DEVICE_CAPABILITY) { in libusb_get_ss_usb_device_capability_descriptor()
985 dev_cap->bDevCapabilityType, in libusb_get_ss_usb_device_capability_descriptor()
988 } else if (dev_cap->bLength < LIBUSB_BT_SS_USB_DEVICE_CAPABILITY_SIZE) { in libusb_get_ss_usb_device_capability_descriptor()
[all …]
Dlibusb.h1390 struct libusb_bos_dev_capability_descriptor *dev_cap,
1396 struct libusb_bos_dev_capability_descriptor *dev_cap,
1401 struct libusb_bos_dev_capability_descriptor *dev_cap,
/external/libusb/examples/
Dtestlibusb.c113 struct libusb_bos_dev_capability_descriptor *dev_cap = bos->dev_capability[i]; in print_bos() local
115 if (dev_cap->bDevCapabilityType == LIBUSB_BT_USB_2_0_EXTENSION) { in print_bos()
118 ret = libusb_get_usb_2_0_extension_descriptor(NULL, dev_cap, &usb_2_0_extension); in print_bos()
124 } else if (dev_cap->bDevCapabilityType == LIBUSB_BT_SS_USB_DEVICE_CAPABILITY) { in print_bos()
127 ret = libusb_get_ss_usb_device_capability_descriptor(NULL, dev_cap, &ss_dev_cap); in print_bos()
Dxusb.c758 static void print_device_cap(struct libusb_bos_dev_capability_descriptor *dev_cap) in print_device_cap() argument
760 switch(dev_cap->bDevCapabilityType) { in print_device_cap()
763 libusb_get_usb_2_0_extension_descriptor(NULL, dev_cap, &usb_2_0_ext); in print_device_cap()
773 libusb_get_ss_usb_device_capability_descriptor(NULL, dev_cap, &ss_usb_device_cap); in print_device_cap()
785 libusb_get_container_id_descriptor(NULL, dev_cap, &container_id); in print_device_cap()
793 printf(" Unknown BOS device capability %02x:\n", dev_cap->bDevCapabilityType); in print_device_cap()
/external/libusb/include/libusb/
Dlibusb.h1390 struct libusb_bos_dev_capability_descriptor *dev_cap,
1396 struct libusb_bos_dev_capability_descriptor *dev_cap,
1401 struct libusb_bos_dev_capability_descriptor *dev_cap,