/external/libusb/examples/ |
lsusb.c | 25 static void print_devs(libusb_device **devs) 27 libusb_device *dev; 46 libusb_device **devs;
|
/external/libusb_aah/examples/ |
listdevs.c | 25 static void print_devs(libusb_device **devs) 27 libusb_device *dev; 46 libusb_device **devs;
|
/external/libusb/libusb/ |
libusb.h | 543 struct libusb_device; 580 typedef struct libusb_device libusb_device; typedef in typeref:struct:libusb_device 779 libusb_device ***list); 780 void libusb_free_device_list(libusb_device **list, int unref_devices); 781 libusb_device *libusb_ref_device(libusb_device *dev); 782 void libusb_unref_device(libusb_device *dev); 785 int libusb_get_device_descriptor(libusb_device *dev, 787 int libusb_get_active_config_descriptor(libusb_device *dev [all...] |
core.c | 315 * context pointers in other objects (e.g. libusb_device instances) and hence 342 libusb_device **list; 343 libusb_device *found = NULL; 351 libusb_device *device = list[i]; 381 * \ref libusb_device opaque type. A device represents a USB device that 442 * eliminating the need for a list node in the libusb_device structure 461 struct discovered_devs *discdevs, struct libusb_device *dev) 499 struct libusb_device *usbi_alloc_device(struct libusb_context *ctx, 503 struct libusb_device *dev = malloc(sizeof(*dev) + priv_size); 527 int usbi_sanitize_device(struct libusb_device *dev [all...] |
libusbi.h | 204 struct libusb_device { struct 227 struct libusb_device *dev; 296 struct libusb_device *usbi_alloc_device(struct libusb_context *ctx, 298 struct libusb_device *usbi_get_device_by_session_id(struct libusb_context *ctx, 300 int usbi_sanitize_device(struct libusb_device *dev); 309 int usbi_get_config_index_by_value(struct libusb_device *dev, 329 * eliminating the need for a list node in the libusb_device structure 334 struct libusb_device *devices[0]; 338 struct discovered_devs *discdevs, struct libusb_device *dev); 383 * knows about the device, and if so, it provides you with a libusb_device [all...] |
descriptor.c | 432 API_EXPORTED int libusb_get_device_descriptor(libusb_device *dev, 468 API_EXPORTED int libusb_get_active_config_descriptor(libusb_device *dev, 533 API_EXPORTED int libusb_get_config_descriptor(libusb_device *dev, 592 int usbi_get_config_index_by_value(struct libusb_device *dev, 632 API_EXPORTED int libusb_get_config_descriptor_by_value(libusb_device *dev,
|
/external/libusb_aah/libusb/ |
libusb.h | 638 struct libusb_device; 698 typedef struct libusb_device libusb_device; typedef in typeref:struct:libusb_device 960 libusb_device ***list); 961 void LIBUSB_CALL libusb_free_device_list(libusb_device **list, 963 libusb_device * LIBUSB_CALL libusb_ref_device(libusb_device *dev); 964 void LIBUSB_CALL libusb_unref_device(libusb_device *dev); 968 int LIBUSB_CALL libusb_get_device_descriptor(libusb_device *dev, 970 int LIBUSB_CALL libusb_get_active_config_descriptor(libusb_device *dev [all...] |
libusbi.h | 313 struct libusb_device { struct 337 struct libusb_device *dev; 418 struct libusb_device *usbi_alloc_device(struct libusb_context *ctx, 420 struct libusb_device *usbi_get_device_by_session_id(struct libusb_context *ctx, 422 int usbi_sanitize_device(struct libusb_device *dev); 431 int usbi_get_config_index_by_value(struct libusb_device *dev, 452 * eliminating the need for a list node in the libusb_device structure 457 struct libusb_device *devices[0]; 461 struct discovered_devs *discdevs, struct libusb_device *dev); 506 * knows about the device, and if so, it provides you with a libusb_device [all...] |
core.c | 342 * context pointers in other objects (e.g. libusb_device instances) and hence 369 libusb_device **list; 370 libusb_device *found = NULL; 378 libusb_device *device = list[i]; 408 * \ref libusb_device opaque type. A device represents a USB device that 469 * eliminating the need for a list node in the libusb_device structure 488 struct discovered_devs *discdevs, struct libusb_device *dev) 526 struct libusb_device *usbi_alloc_device(struct libusb_context *ctx, 530 struct libusb_device *dev = calloc(1, sizeof(*dev) + priv_size); 557 int usbi_sanitize_device(struct libusb_device *dev [all...] |
descriptor.c | 435 int API_EXPORTED libusb_get_device_descriptor(libusb_device *dev, 471 int API_EXPORTED libusb_get_active_config_descriptor(libusb_device *dev, 536 int API_EXPORTED libusb_get_config_descriptor(libusb_device *dev, 595 int usbi_get_config_index_by_value(struct libusb_device *dev, 635 int API_EXPORTED libusb_get_config_descriptor_by_value(libusb_device *dev,
|
/external/libusb_aah/libusb/os/ |
openbsd_usb.c | 55 static int obsd_get_device_descriptor(struct libusb_device *, unsigned char *, 57 static int obsd_get_active_config_descriptor(struct libusb_device *, 59 static int obsd_get_config_descriptor(struct libusb_device *, uint8_t, 72 static void obsd_destroy_device(struct libusb_device *); 85 static int _cache_active_config_descriptor(struct libusb_device *, int); 135 struct libusb_device *dev; 241 obsd_get_device_descriptor(struct libusb_device *dev, unsigned char *buf, 256 obsd_get_active_config_descriptor(struct libusb_device *dev, 275 obsd_get_config_descriptor(struct libusb_device *dev, uint8_t idx, 414 obsd_destroy_device(struct libusb_device *dev [all...] |
linux_usbfs.c | 152 static void _get_usbfs_path(struct libusb_device *dev, char *path) 162 static struct linux_device_priv *_device_priv(struct libusb_device *dev) 421 static int usbfs_get_device_descriptor(struct libusb_device *dev, 431 static int _open_sysfs_attr(struct libusb_device *dev, const char *attr) 484 static int sysfs_get_device_descriptor(struct libusb_device *dev, 510 static int op_get_device_descriptor(struct libusb_device *dev, 521 static int usbfs_get_active_config_descriptor(struct libusb_device *dev, 534 static int sysfs_get_active_config(struct libusb_device *dev, int *config) 607 static int sysfs_get_active_config_descriptor(struct libusb_device *dev, 702 static int op_get_active_config_descriptor(struct libusb_device *dev [all...] |
windows_usb.c | 52 static int windows_get_active_config_descriptor(struct libusb_device *dev, unsigned char *buffer, size_t len, int *host_endian); 831 static int force_hcd_device_descriptor(struct libusb_device *dev) 862 static int cache_config_descriptors(struct libusb_device *dev, HANDLE hub_handle, char* device_id) [all...] |
windows_usb.h | 158 struct libusb_device *parent_dev; // access to parent is required for usermode ops 173 static inline struct windows_device_priv *_device_priv(struct libusb_device *dev) { 177 static inline void windows_device_priv_init(libusb_device* dev) { 197 static inline void windows_device_priv_release(libusb_device* dev) {
|
darwin_usb.c | 64 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned char *buffer, size_t len, int *host_endian); 419 static int darwin_get_device_descriptor(struct libusb_device *dev, unsigned char *buffer, int *host_endian) { 430 static int get_configuration_index (struct libusb_device *dev, int config_value) { 452 static int darwin_get_active_config_descriptor(struct libusb_device *dev, unsigned char *buffer, size_t len, int *host_endian) { 466 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned char *buffer, size_t len, int *host_endian) { 506 static int darwin_check_configuration (struct libusb_context *ctx, struct libusb_device *dev, usb_device_t **darwin_device) { 563 static int darwin_cache_device_descriptor (struct libusb_context *ctx, struct libusb_device *dev, usb_device_t **device) { 696 struct libusb_device *dev; [all...] |
/external/libmtp/src/ |
libusb-glue.c | 86 struct usb_device *libusb_device; member in struct:mtpdevice_list_struct 171 new_list_entry->libusb_device = newdevice; 630 retdevs[i].device_entry.vendor_id = dev->libusb_device->descriptor.idVendor; 632 retdevs[i].device_entry.product_id = dev->libusb_device->descriptor.idProduct; 636 if(dev->libusb_device->descriptor.idVendor == mtp_device_table[j].vendor_id && 637 dev->libusb_device->descriptor.idProduct == mtp_device_table[j].product_id) { 654 dev->libusb_device->descriptor.idVendor, 655 dev->libusb_device->descriptor.idProduct, 666 dev->libusb_device->descriptor.idVendor, 667 dev->libusb_device->descriptor.idProduct) 1786 struct usb_device *libusb_device; local [all...] |
/external/libusb/libusb/os/ |
linux_usbfs.c | 140 static void __get_usbfs_path(struct libusb_device *dev, char *path) 146 static struct linux_device_priv *__device_priv(struct libusb_device *dev) 269 static int usbfs_get_device_descriptor(struct libusb_device *dev, 279 static int __open_sysfs_attr(struct libusb_device *dev, const char *attr) 297 static int sysfs_get_device_descriptor(struct libusb_device *dev, 323 static int op_get_device_descriptor(struct libusb_device *dev, 334 static int usbfs_get_active_config_descriptor(struct libusb_device *dev, 347 static int sysfs_get_active_config(struct libusb_device *dev, int *config) 420 static int sysfs_get_active_config_descriptor(struct libusb_device *dev, 515 static int op_get_active_config_descriptor(struct libusb_device *dev [all...] |
darwin_usb.c | 52 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned char *buffer, size_t len, int *host_endian); 349 static int darwin_get_device_descriptor(struct libusb_device *dev, unsigned char *buffer, int *host_endian) { 360 static int get_configuration_index (struct libusb_device *dev, int config_value) { 382 static int darwin_get_active_config_descriptor(struct libusb_device *dev, unsigned char *buffer, size_t len, int *host_endian) { 399 static int darwin_get_config_descriptor(struct libusb_device *dev, uint8_t config_index, unsigned char *buffer, size_t len, int *host_endian) { 440 struct libusb_device *dev; [all...] |
/system/core/adb/ |
usb_libusb.c | 48 libusb_device *dev; 378 check_device(libusb_device *dev) 584 libusb_device **devs= NULL; 585 libusb_device *dev= NULL;
|
/external/libusb-compat/libusb/ |
core.c | 173 libusb_device **dev_list = NULL; 198 libusb_device *dev = dev_list[i]; 308 static int find_devices(libusb_device **dev_list, int dev_list_len, 316 libusb_device *newlib_dev = dev_list[i]; 508 libusb_device *newlib_dev = dev->dev; 569 libusb_device **dev_list; 661 r = libusb_open((libusb_device *) dev->dev, &udev->handle);
|