/system/core/fastboot/ |
H A D | 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); 65 int usb_wait_for_disconnect(usb_handle *h);
|
H A D | fastboot.h | 37 int fb_command(usb_handle *usb, const char *cmd); 38 int fb_command_response(usb_handle *usb, const char *cmd, char *response); 39 int fb_download_data(usb_handle *usb, const void *data, unsigned size); 40 int fb_download_data_sparse(usb_handle *usb, struct sparse_file *s); 47 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...); 48 int fb_format_supported(usb_handle *usb, const char *partition, const char *type_override); 62 int fb_execute_queue(usb_handle *usb);
|
H A D | usb_windows.c | 48 /** Structure usb_handle describes our connection to the usb device via 52 struct usb_handle { struct 71 int recognized_device(usb_handle* handle, ifc_match_func callback); 74 usb_handle* do_usb_open(const wchar_t* interface_name); 77 int usb_write(usb_handle* handle, const void* data, int len); 80 int usb_read(usb_handle *handle, void* data, int len); 83 void usb_cleanup_handle(usb_handle* handle); 86 void usb_kick(usb_handle* handle); 89 int usb_close(usb_handle* handle); 92 usb_handle* do_usb_ope [all...] |
H A D | protocol.c | 50 static int check_response(usb_handle *usb, unsigned int size, char *response) 109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, 132 static int _command_data(usb_handle *usb, const void *data, unsigned size) 151 static int _command_end(usb_handle *usb) 161 static int _command_send(usb_handle *usb, const char *cmd, 188 static int _command_send_no_data(usb_handle *usb, const char *cmd, 194 int fb_command(usb_handle *usb, const char *cmd) 199 int fb_command_response(usb_handle *usb, const char *cmd, char *response) 204 int fb_download_data(usb_handle *usb, const void *data, unsigned size) 226 usb_handle *us [all...] |
H A D | 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 * [all...] |
H A D | usb_linux.c | 77 struct usb_handle struct 301 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) 303 usb_handle *usb = 0; 336 usb = calloc(1, sizeof(usb_handle)); 359 int usb_write(usb_handle *h, const void *_data, int len) 394 int usb_read(usb_handle *h, void *_data, int len) 439 void usb_kick(usb_handle *h) 451 int usb_close(usb_handle *h) 465 usb_handle *usb_open(ifc_match_func callback) 474 int usb_wait_for_disconnect(usb_handle *us [all...] |
H A D | usbtest.c | 89 int test_null(usb_handle *usb) 108 int test_zero(usb_handle *usb) 130 int (*test)(usb_handle *usb); 180 usb_handle *usb;
|
H A D | fastboot.c | 70 static usb_handle *usb = 0; 257 usb_handle *open_device(void) 259 static usb_handle *usb = 0; 581 static int64_t get_target_sparse_limit(struct usb_handle *usb) 598 static int64_t get_sparse_limit(struct usb_handle *usb, int64_t size) 636 static int load_buf_fd(usb_handle *usb, int fd, 670 static int load_buf(usb_handle *usb, const char *fname, 703 void do_flash(usb_handle *usb, const char *pname, const char *fname) 723 void do_update(usb_handle *usb, char *fn, int erase_first) 801 void do_flashall(usb_handle *us [all...] |
H A D | engine.c | 87 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...) 109 int fb_format_supported(usb_handle *usb, const char *partition, const char *type_override) 367 int fb_execute_queue(usb_handle *usb)
|
/system/core/adb/ |
H A D | usb_windows.c | 31 /** Structure usb_handle describes our connection to the usb device via 35 struct usb_handle { struct 37 usb_handle *prev; 40 usb_handle *next; 62 static usb_handle handle_list = { 78 int register_new_device(usb_handle* handle); 81 int recognized_device(usb_handle* handle); 98 usb_handle* do_usb_open(const wchar_t* interface_name); 101 int usb_write(usb_handle* handle, const void* data, int len); 104 int usb_read(usb_handle *handl [all...] |
H A D | 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 * [all...] |
H A D | 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 * [all...] |
H A D | adb.h | 49 typedef struct usb_handle usb_handle; typedef in typeref:struct:usb_handle 195 usb_handle *usb; 293 void init_usb_transport(atransport *t, usb_handle *usb, int state); 305 void register_usb_transport(usb_handle *h, const char *serial, const char *devpath, unsigned writeable); 308 void unregister_usb_transport(usb_handle *usb); 369 int usb_write(usb_handle *h, const void *data, int len); 370 int usb_read(usb_handle *h, void *data, int len); 371 int usb_close(usb_handle *h); 372 void usb_kick(usb_handle * [all...] |
H A D | 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 *handl [all...] |
H A D | 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 * [all...] |
H A D | transport_usb.c | 112 void init_usb_transport(atransport *t, usb_handle *h, int state)
|
H A D | transport.c | 1099 void register_usb_transport(usb_handle *usb, const char *serial, const char *devpath, unsigned writeable) 1102 D("transport: %p init'ing for usb_handle %p (sn='%s')\n", t, usb, 1123 void unregister_usb_transport(usb_handle *usb)
|
/system/core/fastbootd/ |
H A D | usb_linux_client.c | 68 struct usb_handle { struct 273 struct usb_handle *usb_handle = calloc(sizeof(struct usb_handle), 1); local 288 return &usb_handle->handle;
|