Home
last modified time | relevance | path

Searched refs:device_descriptor (Results 1 – 16 of 16) sorted by relevance

/external/libusb/libusb/
Dhotplug.c162 hotplug_cb->vendor_id != dev->device_descriptor.idVendor) { in usbi_hotplug_match_cb()
167 hotplug_cb->product_id != dev->device_descriptor.idProduct) { in usbi_hotplug_match_cb()
172 hotplug_cb->dev_class != dev->device_descriptor.bDeviceClass) { in usbi_hotplug_match_cb()
Ddescriptor.c535 static_assert(sizeof(dev->device_descriptor) == LIBUSB_DT_DEVICE_SIZE, in libusb_get_device_descriptor()
537 *desc = dev->device_descriptor; in libusb_get_device_descriptor()
605 if (config_index >= dev->device_descriptor.bNumConfigurations) in libusb_get_config_descriptor()
660 for (idx = 0; idx < dev->device_descriptor.bNumConfigurations; idx++) { in libusb_get_config_descriptor_by_value()
Dcore.c767 if (dev->device_descriptor.bLength != LIBUSB_DT_DEVICE_SIZE || in usbi_sanitize_device()
768 dev->device_descriptor.bDescriptorType != LIBUSB_DT_DEVICE) { in usbi_sanitize_device()
773 num_configurations = dev->device_descriptor.bNumConfigurations; in usbi_sanitize_device()
Dlibusbi.h469 struct libusb_device_descriptor device_descriptor; member
/external/libusb/libusb/os/
Dhaiku_pollfs.cpp131 static_assert(sizeof(dev->device_descriptor) == sizeof(usb_device_descriptor), in WatchedEntry()
133 memcpy(&dev->device_descriptor, fDevice->Descriptor(), LIBUSB_DT_DEVICE_SIZE); in WatchedEntry()
134 usbi_localize_device_descriptor(&dev->device_descriptor); in WatchedEntry()
Dwindows_winusb.c697 num_configurations = dev->device_descriptor.bNumConfigurations; in cache_config_descriptors()
959 dev->device_descriptor.bLength = LIBUSB_DT_DEVICE_SIZE; in init_root_hub()
960 dev->device_descriptor.bDescriptorType = LIBUSB_DT_DEVICE; in init_root_hub()
961 dev->device_descriptor.bDeviceClass = LIBUSB_CLASS_HUB; in init_root_hub()
962 if ((dev->device_descriptor.idVendor == 0) && (dev->device_descriptor.idProduct == 0)) { in init_root_hub()
963 dev->device_descriptor.idVendor = 0x1d6b; // Linux Foundation in init_root_hub()
964 dev->device_descriptor.idProduct = (uint16_t)speed; in init_root_hub()
966 dev->device_descriptor.bcdDevice = 0x0100; in init_root_hub()
967 dev->device_descriptor.bNumConfigurations = 1; in init_root_hub()
971 dev->device_descriptor.bcdUSB = 0x0310; in init_root_hub()
[all …]
Dwindows_usbdk.c289 static_assert(sizeof(dev->device_descriptor) == sizeof(info->DeviceDescriptor), in usbdk_device_init()
291 memcpy(&dev->device_descriptor, &info->DeviceDescriptor, LIBUSB_DT_DEVICE_SIZE); in usbdk_device_init()
292 usbi_localize_device_descriptor(&dev->device_descriptor); in usbdk_device_init()
383 for (index = 0; index < dev->device_descriptor.bNumConfigurations; index++) { in usbdk_get_config_descriptor_by_value()
510 usbdk_release_config_descriptors(priv, dev->device_descriptor.bNumConfigurations); in usbdk_destroy_device()
Dnetbsd_usb.c162 static_assert(sizeof(dev->device_descriptor) == sizeof(ddesc), in netbsd_get_device_list()
164 memcpy(&dev->device_descriptor, &ddesc, LIBUSB_DT_DEVICE_SIZE); in netbsd_get_device_list()
165 usbi_localize_device_descriptor(&dev->device_descriptor); in netbsd_get_device_list()
Dsunos_usb.c392 dev_handle->dev->device_descriptor.idVendor, in sunos_detach_kernel_driver()
393 dev_handle->dev->device_descriptor.idProduct); in sunos_detach_kernel_driver()
471 bcopy(rdata, &dev->device_descriptor, LIBUSB_DT_DEVICE_SIZE); in sunos_fill_in_dev_info()
502 dev->device_descriptor.idVendor, in sunos_fill_in_dev_info()
503 dev->device_descriptor.idProduct); in sunos_fill_in_dev_info()
534 dev->device_descriptor.idVendor, dev->device_descriptor.idProduct, in sunos_fill_in_dev_info()
Dopenbsd_usb.c189 static_assert(sizeof(dev->device_descriptor) == sizeof(dd.udd_desc), in obsd_get_device_list()
191 memcpy(&dev->device_descriptor, &dd.udd_desc, LIBUSB_DT_DEVICE_SIZE); in obsd_get_device_list()
192 usbi_localize_device_descriptor(&dev->device_descriptor); in obsd_get_device_list()
Dwindows_winusb.h223 if ((dev->device_descriptor.bNumConfigurations > 0) && (priv->config_descriptor != NULL)) { in winusb_device_priv_release()
224 for (i = 0; i < dev->device_descriptor.bNumConfigurations; i++) { in winusb_device_priv_release()
Dlinux_usbfs.c772 for (idx = 0; idx < dev->device_descriptor.bNumConfigurations; idx++) { in op_get_config_descriptor_by_value()
820 if (config_index >= dev->device_descriptor.bNumConfigurations) in op_get_config_descriptor()
975 memcpy(&dev->device_descriptor, priv->descriptors, LIBUSB_DT_DEVICE_SIZE); in initialize_device()
979 usbi_localize_device_descriptor(&dev->device_descriptor); in initialize_device()
Ddarwin_usb.c1124 static_assert(sizeof(dev->device_descriptor) == sizeof(cached_device->dev_descriptor), in process_new_device()
1126 memcpy(&dev->device_descriptor, &cached_device->dev_descriptor, LIBUSB_DT_DEVICE_SIZE); in process_new_device()
1127 usbi_localize_device_descriptor(&dev->device_descriptor); in process_new_device()
/external/crosvm/usb_util/src/
Ddescriptor.rs124 let mut device_descriptor = DeviceDescriptorTree { in parse_usbfs_descriptors() localVariable
129 for cfg_idx in 0..device_descriptor.bNumConfigurations { in parse_usbfs_descriptors()
173 device_descriptor in parse_usbfs_descriptors()
182 Ok(device_descriptor) in parse_usbfs_descriptors()
/external/crosvm/devices/src/usb/host_backend/
Dhost_backend_device_provider.rs164 let device_descriptor = Descriptor(device.as_raw_descriptor()); in handle_attach_device() localVariable
173 &device_descriptor, in handle_attach_device()
/external/libusb/include/libusb/
Dlibusbi.h469 struct libusb_device_descriptor device_descriptor; member