/system/core/include/usbhost/ |
usbhost.h | 44 struct usb_device *dev; 103 /* Creates a usb_device object for a USB device */ 104 struct usb_device *usb_device_open(const char *dev_name); 107 void usb_device_close(struct usb_device *device); 109 /* Creates a usb_device object for already open USB device */ 110 struct usb_device *usb_device_new(const char *dev_name, int fd); 112 /* Returns the file descriptor for the usb_device */ 113 int usb_device_get_fd(struct usb_device *device); 118 const char* usb_device_get_name(struct usb_device *device); 123 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); 172 struct usb_device* device = get_device_from_object(env, thiz); 195 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 | 75 struct usb_device { struct 316 struct usb_device *usb_device_open(const char *dev_name) 341 struct usb_device* result = usb_device_new(dev_name, fd); 347 void usb_device_close(struct usb_device *device) 353 struct usb_device *usb_device_new(const char *dev_name, int fd) 355 struct usb_device *device = calloc(1, sizeof(struct usb_device)); 380 static int usb_device_reopen_writeable(struct usb_device *device) 396 int usb_device_get_fd(struct usb_device *device) 403 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);
|
/external/libusb-compat/libusb/ |
usbi.h | 50 struct usb_device *device;
|
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);
|
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...] |
/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/asus/grouper/ |
audio_policy.conf | 60 usb_device {
|
/device/samsung/manta/ |
audio_policy.conf | 74 usb_device {
|
/external/chromium_org/chrome/browser/devtools/adb/ |
android_usb_device.cc | 18 #include "chrome/browser/usb/usb_device.h" 143 void ReleaseInterface(scoped_refptr<UsbDeviceHandle> usb_device) { 144 usb_device->ReleaseInterface(1); 145 usb_device->Close(); 245 UsbDevice* usb_device = it2->get(); local 247 if (usb_device == device->usb_device()->device()) { 249 claimed_devices.insert(usb_device); 315 scoped_refptr<UsbDeviceHandle> usb_device, 322 usb_device_(usb_device), [all...] |
android_usb_device.h | 90 scoped_refptr<UsbDeviceHandle> usb_device() { return usb_device_; } function in class:AndroidUsbDevice
|
/device/asus/flo/ |
audio_policy.conf | 74 usb_device {
|
/device/lge/hammerhead/ |
audio_policy.conf | 85 usb_device {
|
/device/lge/mako/ |
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 | 86 struct usb_device *libusb_device; 103 static void find_interface_and_endpoints(struct usb_device *dev, 111 static int init_ptp_usb (PTPParams* params, PTP_USB* ptp_usb, struct usb_device* dev); 152 * Small recursive function to append a new usb_device to the linked list of 161 struct usb_device *newdevice, 221 static int probe_device_descriptor(struct usb_device *dev, FILE *dumpfile) 308 static int probe_device_descriptor(struct usb_device *dev, FILE *dumpfile) 516 struct usb_device *dev = bus->devices; 695 struct usb_device *dev; 707 dev = usb_device(ptp_usb->handle) [all...] |
/frameworks/base/services/jni/ |
com_android_server_UsbHostManager.cpp | 59 struct usb_device *device = usb_device_open(devname); 149 struct usb_device* device = usb_device_open(deviceNameStr);
|