Searched refs:dev_cap (Results 1 – 5 of 5) sorted by relevance
/external/libusb/libusb/ |
D | descriptor.c | 809 struct libusb_bos_dev_capability_descriptor dev_cap; in parse_bos() local 850 usbi_parse_descriptor(buffer, "bbb", &dev_cap, host_endian); in parse_bos() 851 if (dev_cap.bDescriptorType != LIBUSB_DT_DEVICE_CAPABILITY) { in parse_bos() 853 dev_cap.bDescriptorType, LIBUSB_DT_DEVICE_CAPABILITY); in parse_bos() 856 if (dev_cap.bLength < LIBUSB_DT_DEVICE_CAPABILITY_SIZE) { in parse_bos() 858 dev_cap.bLength); in parse_bos() 862 if (dev_cap.bLength > size) { in parse_bos() 864 size, dev_cap.bLength); in parse_bos() 868 _bos->dev_capability[i] = malloc(dev_cap.bLength); in parse_bos() 873 memcpy(_bos->dev_capability[i], buffer, dev_cap.bLength); in parse_bos() [all …]
|
D | libusb.h | 1345 struct libusb_bos_dev_capability_descriptor *dev_cap, 1351 struct libusb_bos_dev_capability_descriptor *dev_cap, 1356 struct libusb_bos_dev_capability_descriptor *dev_cap,
|
/external/libusb/examples/ |
D | testlibusb.c | 127 struct libusb_ss_usb_device_capability_descriptor *dev_cap; in print_bos() local 128 ret = libusb_get_ss_usb_device_capability_descriptor(NULL, bos->dev_capability[0],&dev_cap); in print_bos() 133 print_ss_usb_cap(dev_cap); in print_bos() 134 libusb_free_ss_usb_device_capability_descriptor(dev_cap); in print_bos()
|
D | xusb.c | 757 static void print_device_cap(struct libusb_bos_dev_capability_descriptor *dev_cap) in print_device_cap() argument 759 switch(dev_cap->bDevCapabilityType) { in print_device_cap() 762 libusb_get_usb_2_0_extension_descriptor(NULL, dev_cap, &usb_2_0_ext); in print_device_cap() 772 libusb_get_ss_usb_device_capability_descriptor(NULL, dev_cap, &ss_usb_device_cap); in print_device_cap() 784 libusb_get_container_id_descriptor(NULL, dev_cap, &container_id); in print_device_cap() 792 printf(" Unknown BOS device capability %02x:\n", dev_cap->bDevCapabilityType); in print_device_cap()
|
/external/libusb/include/libusb/ |
D | libusb.h | 1345 struct libusb_bos_dev_capability_descriptor *dev_cap, 1351 struct libusb_bos_dev_capability_descriptor *dev_cap, 1356 struct libusb_bos_dev_capability_descriptor *dev_cap,
|