/external/libusb/libusb/ |
D | hotplug.c | 162 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()
|
D | descriptor.c | 535 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()
|
D | core.c | 767 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()
|
D | libusbi.h | 469 struct libusb_device_descriptor device_descriptor; member
|
/external/libusb/libusb/os/ |
D | haiku_pollfs.cpp | 131 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()
|
D | windows_winusb.c | 697 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 …]
|
D | windows_usbdk.c | 289 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()
|
D | netbsd_usb.c | 162 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()
|
D | sunos_usb.c | 392 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()
|
D | openbsd_usb.c | 189 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()
|
D | windows_winusb.h | 223 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()
|
D | linux_usbfs.c | 772 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()
|
D | darwin_usb.c | 1124 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/ |
D | descriptor.rs | 124 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/ |
D | host_backend_device_provider.rs | 164 let device_descriptor = Descriptor(device.as_raw_descriptor()); in handle_attach_device() localVariable 173 &device_descriptor, in handle_attach_device()
|
/external/libusb/include/libusb/ |
D | libusbi.h | 469 struct libusb_device_descriptor device_descriptor; member
|