/development/host/windows/usb/api/ |
adb_legacy_endpoint_object.h | 133 HANDLE usb_handle() const {
function in class:AdbLegacyEndpointObject
|
/bootable/recovery/minadbd/ |
usb_linux_client.c | 33 struct usb_handle struct 47 struct usb_handle *usb = (struct usb_handle *)x; 82 int usb_write(usb_handle *h, const void *data, int len) 97 int usb_read(usb_handle *h, void *data, int len) 114 usb_handle *h; 118 h = calloc(1, sizeof(usb_handle)); 141 void usb_kick(usb_handle *h) 153 int usb_close(usb_handle *h)
|
adb.h | 47 typedef struct usb_handle usb_handle; typedef in typeref:struct:usb_handle 182 usb_handle *usb; 248 void init_usb_transport(atransport *t, usb_handle *usb, int state); 260 void register_usb_transport(usb_handle *h, const char *serial, unsigned writeable); 263 void unregister_usb_transport(usb_handle *usb); 384 int usb_write(usb_handle *h, const void *data, int len); 385 int usb_read(usb_handle *h, void *data, int len); 386 int usb_close(usb_handle *h); 387 void usb_kick(usb_handle *h) [all...] |
/system/core/fastboot/ |
usb.h | 32 typedef struct usb_handle usb_handle; typedef in typeref:struct:usb_handle 61 usb_handle *usb_open(ifc_match_func callback); 62 int usb_close(usb_handle *h); 63 int usb_read(usb_handle *h, void *_data, int len); 64 int usb_write(usb_handle *h, const void *_data, int len);
|
usb_windows.c | 47 /** Structure usb_handle describes our connection to the usb device via 51 struct usb_handle { struct 70 int recognized_device(usb_handle* handle, ifc_match_func callback); 73 usb_handle* do_usb_open(const wchar_t* interface_name); 76 int usb_write(usb_handle* handle, const void* data, int len); 79 int usb_read(usb_handle *handle, void* data, int len); 82 void usb_cleanup_handle(usb_handle* handle); 85 void usb_kick(usb_handle* handle); 88 int usb_close(usb_handle* handle); 91 usb_handle* do_usb_open(const wchar_t* interface_name) [all...] |
usb_linux.c | 70 struct usb_handle struct 244 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) 246 usb_handle *usb = 0; 287 usb = calloc(1, sizeof(usb_handle)); 311 int usb_write(usb_handle *h, const void *_data, int len) 361 int usb_read(usb_handle *h, void *_data, int len) 406 void usb_kick(usb_handle *h) 418 int usb_close(usb_handle *h) 432 usb_handle *usb_open(ifc_match_func callback)
|
usb_osx.c | 53 struct usb_handle struct 67 static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { 260 static int try_device(io_service_t device, usb_handle *handle) { 381 static int init_usb(ifc_match_func callback, usb_handle **handle) { 386 usb_handle h; 434 *handle = calloc(1, sizeof(usb_handle)); 435 memcpy(*handle, &h, sizeof(usb_handle)); 454 usb_handle *usb_open(ifc_match_func callback) { 455 usb_handle *handle = NULL; 465 int usb_close(usb_handle *h) [all...] |
/system/core/adb/ |
usb_libusb.c | 43 struct usb_handle struct 45 usb_handle *prev; 46 usb_handle *next; 62 static struct usb_handle handle_list = { 100 usb_bulk_write(usb_handle *uh, const void *data, int len) 118 usb_bulk_read(usb_handle *uh, void *data, int len) 136 usb_write(struct usb_handle *uh, const void *_data, int len) 177 usb_read(struct usb_handle *uh, void *_data, int len) 208 usb_close(struct usb_handle *h) 229 void usb_kick(struct usb_handle *h [all...] |
usb_linux_client.c | 40 struct usb_handle struct 45 int (*write)(usb_handle *h, const void *data, int len); 46 int (*read)(usb_handle *h, void *data, int len); 47 void (*kick)(usb_handle *h); 151 struct usb_handle *usb = (struct usb_handle *)x; 186 static int usb_adb_write(usb_handle *h, const void *data, int len) 201 static int usb_adb_read(usb_handle *h, void *data, int len) 216 static void usb_adb_kick(usb_handle *h) 230 usb_handle *h [all...] |
usb_windows.c | 29 /** Structure usb_handle describes our connection to the usb device via 33 struct usb_handle { struct 35 usb_handle *prev; 38 usb_handle *next; 60 static usb_handle handle_list = { 76 int register_new_device(usb_handle* handle); 79 int recognized_device(usb_handle* handle); 96 usb_handle* do_usb_open(const wchar_t* interface_name); 99 int usb_write(usb_handle* handle, const void* data, int len); 102 int usb_read(usb_handle *handle, void* data, int len) [all...] |
usb_osx.c | 38 struct usb_handle struct 56 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface, 258 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface, 288 usb_handle *handle = (usb_handle *)refCon; 303 static usb_handle* 306 usb_handle* handle = NULL; 341 handle = calloc(1, sizeof(usb_handle)); 452 int usb_write(usb_handle *handle, const void *buf, int len) 492 int usb_read(usb_handle *handle, void *buf, int len [all...] |
usb_linux.c | 50 struct usb_handle struct 52 usb_handle *prev; 53 usb_handle *next; 80 static usb_handle handle_list = { 87 usb_handle *usb; 104 usb_handle *usb; 311 static int usb_bulk_write(usb_handle *h, const void *data, int len) 364 static int usb_bulk_read(usb_handle *h, void *data, int len) 436 int usb_write(usb_handle *h, const void *_data, int len) 474 int usb_read(usb_handle *h, void *_data, int len [all...] |
adb.h | 48 typedef struct usb_handle usb_handle; typedef in typeref:struct:usb_handle 188 usb_handle *usb; 286 void init_usb_transport(atransport *t, usb_handle *usb, int state); 298 void register_usb_transport(usb_handle *h, const char *serial, const char *devpath, unsigned writeable); 301 void unregister_usb_transport(usb_handle *usb); 445 int usb_write(usb_handle *h, const void *data, int len); 446 int usb_read(usb_handle *h, void *data, int len); 447 int usb_close(usb_handle *h); 448 void usb_kick(usb_handle *h) [all...] |
/system/core/fastbootd/ |
usb_linux_client.c | 69 struct usb_handle { struct 318 struct usb_handle *usb_handle = calloc(sizeof(struct usb_handle), 1); local 333 return &usb_handle->handle;
|
/external/chromium_org/chrome/browser/devtools/adb/ |
android_usb_device.cc | 69 scoped_refptr<UsbDeviceHandle> usb_handle, 94 if (!usb_handle->ClaimInterface(interface_id)) 98 if (!usb_handle->GetSerial(&serial) || serial.empty()) 101 return new AndroidUsbDevice(rsa_key, usb_handle, UTF16ToASCII(serial), 192 scoped_refptr<UsbDeviceHandle> usb_handle = device->Open(); local 193 if (usb_handle) { 195 ClaimInterface(rsa_key, usb_handle, config->GetInterface(interface_id), 200 usb_handle->Close();
|