/system/core/include/usbhost/ |
usbhost.h | 44 struct usb_device *dev; 90 /* Creates a usb_device object for a USB device */ 91 struct usb_device *usb_device_open(const char *dev_name); 94 void usb_device_close(struct usb_device *device); 96 /* Creates a usb_device object for already open USB device */ 97 struct usb_device *usb_device_new(const char *dev_name, int fd); 99 /* Returns the file descriptor for the usb_device */ 100 int usb_device_get_fd(struct usb_device *device); 105 const char* usb_device_get_name(struct usb_device *device); 110 int usb_device_get_unique_id(struct usb_device *device) [all...] |
/external/kernel-headers/original/linux/ |
usb.h | 23 struct usb_device; 150 container_of(intf->dev.parent, struct usb_device, dev) 176 * These structures persist for the lifetime of a usb_device, unlike 280 struct usb_device *root_hub; /* Root hub */ 317 * struct usb_device - kernel's representation of a USB device 324 struct usb_device { struct 336 struct usb_device *parent; /* our hub, unless we're the root */ 375 struct usb_device *children[USB_MAXCHILDREN]; 377 #define to_usb_device(d) container_of(d, struct usb_device, dev) 379 extern struct usb_device *usb_get_dev(struct usb_device *dev) [all...] |
/system/core/toolbox/ |
lsusb.c | 28 static const char *get_str(struct usb_device *dev, int id) 43 static void lsusb_parse_device_descriptor(struct usb_device *dev, 62 static void lsusb_parse_config_descriptor(struct usb_device *dev, 75 static void lsusb_parse_interface_descriptor(struct usb_device *dev, 89 static void lsusb_parse_endpoint_descriptor(struct usb_device *dev, 102 static void lsusb_dump_descriptor(struct usb_device *dev, 121 static void lsusb_parse_descriptor(struct usb_device *dev, 150 struct usb_device *dev = usb_device_open(dev_name);
|
/external/libusb-compat/examples/ |
lsusb.c | 34 struct usb_device *dev;
|
testlibusb.c | 62 int print_device(struct usb_device *dev, int level) 145 struct usb_device *dev;
|
/frameworks/base/core/jni/ |
android_hardware_UsbDeviceConnection.cpp | 36 struct usb_device* get_device_from_object(JNIEnv* env, jobject connection) 38 return (struct usb_device*)env->GetIntField(connection, field_context); 52 struct usb_device* device = usb_device_new(deviceNameStr, fd); 68 struct usb_device* device = get_device_from_object(env, thiz); 78 struct usb_device* device = get_device_from_object(env, thiz); 111 struct usb_device* device = get_device_from_object(env, thiz); 129 struct usb_device* device = get_device_from_object(env, thiz); 147 struct usb_device* device = get_device_from_object(env, thiz); 175 struct usb_device* device = get_device_from_object(env, thiz); 201 struct usb_device* device = get_device_from_object(env, thiz) [all...] |
android_hardware_UsbRequest.cpp | 39 extern struct usb_device* get_device_from_object(JNIEnv* env, jobject connection); 47 struct usb_device* device = get_device_from_object(env, java_device);
|
/system/core/libusbhost/ |
usbhost.c | 65 struct usb_device { struct 257 struct usb_device *usb_device_open(const char *dev_name) 282 struct usb_device* result = usb_device_new(dev_name, fd); 288 void usb_device_close(struct usb_device *device) 294 struct usb_device *usb_device_new(const char *dev_name, int fd) 296 struct usb_device *device = calloc(1, sizeof(struct usb_device)); 321 static int usb_device_reopen_writeable(struct usb_device *device) 337 int usb_device_get_fd(struct usb_device *device) 344 const char* usb_device_get_name(struct usb_device *device [all...] |
/frameworks/av/media/mtp/ |
MtpDevice.h | 27 struct usb_device; 39 struct usb_device* mDevice; 63 MtpDevice(struct usb_device* device, int interface,
|
MtpDataPacket.h | 23 struct usb_device; 109 int readDataWait(struct usb_device *device);
|
MtpDevice.cpp | 54 struct usb_device *device = usb_device_new(deviceName, fd); 175 MtpDevice::MtpDevice(struct usb_device* device, int interface,
|
MtpDataPacket.cpp | 428 int MtpDataPacket::readDataWait(struct usb_device *device) {
|
/external/libusb-compat/libusb/ |
usb.h | 237 struct usb_device; 245 struct usb_device { struct 246 struct usb_device *next, *prev; 260 struct usb_device **children; 268 struct usb_device *devices; 271 struct usb_device *root_dev; 287 usb_dev_handle *usb_open(struct usb_device *dev); 331 struct usb_device *usb_device(usb_dev_handle *dev);
|
usbi.h | 50 struct usb_device *device;
|
core.c | 309 struct usb_bus *bus, struct usb_device **ret) 311 struct usb_device *devices = NULL; 312 struct usb_device *dev; 342 struct usb_device *tdev = dev->next; 389 static void clear_device(struct usb_device *dev) 506 static int initialize_device(struct usb_device *dev) 559 static void free_device(struct usb_device *dev) 585 struct usb_device *new_devices = NULL; 586 struct usb_device *dev; 600 struct usb_device *tdev = dev->next 682 API_EXPORTED struct usb_device *usb_device(usb_dev_handle *dev) function [all...] |
/device/asus/grouper/ |
audio_policy.conf | 60 usb_device {
|
/device/samsung/manta/ |
audio_policy.conf | 74 usb_device {
|
/cts/apps/cts-usb-accessory/ |
cts-usb-accessory.c | 32 struct usb_device *sDevice = NULL; 70 static void send_string(struct usb_device *device, int index, const char* string) { 85 struct usb_device *device = usb_device_open(devname);
|
/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/ |
accessorychat.c | 32 struct usb_device *sDevice = NULL; 77 static void send_string(struct usb_device *device, int index, const char* string) { 92 struct usb_device *device = usb_device_open(devname);
|
/device/samsung/tuna/audio/ |
audio_policy.conf | 74 usb_device {
|
/external/libmtp/src/ |
libusb-glue.h | 70 int open_device (int busn, int devn, short force, PTP_USB *ptp_usb, PTPParams *params, struct usb_device **dev);
|
libusb-glue.c | 84 struct usb_device *libusb_device; 101 static void find_interface_and_endpoints(struct usb_device *dev, 109 static int init_ptp_usb (PTPParams* params, PTP_USB* ptp_usb, struct usb_device* dev); 150 * Small recursive function to append a new usb_device to the linked list of 159 struct usb_device *newdevice, 219 static int probe_device_descriptor(struct usb_device *dev, FILE *dumpfile) 306 static int probe_device_descriptor(struct usb_device *dev, FILE *dumpfile) 514 struct usb_device *dev = bus->devices; 693 struct usb_device *dev; 705 dev = usb_device(ptp_usb->handle) [all...] |
/frameworks/base/services/jni/ |
com_android_server_UsbHostManager.cpp | 58 struct usb_device *device = usb_device_open(devname); 148 struct usb_device* device = usb_device_open(deviceNameStr);
|