/system/core/adb/ |
D | usb_windows.c | 33 struct usb_handle { struct 35 usb_handle *prev; argument 38 usb_handle *next; argument 60 static usb_handle handle_list = { argument 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); 105 void usb_cleanup_handle(usb_handle* handle); [all …]
|
D | usb_linux_client.c | 40 struct usb_handle struct 45 int (*write)(usb_handle *h, const void *data, int len); argument 46 int (*read)(usb_handle *h, void *data, int len); argument 47 void (*kick)(usb_handle *h); argument 151 struct usb_handle *usb = (struct usb_handle *)x; in usb_adb_open_thread() 186 static int usb_adb_write(usb_handle *h, const void *data, int len) in usb_adb_write() 201 static int usb_adb_read(usb_handle *h, void *data, int len) in usb_adb_read() 216 static void usb_adb_kick(usb_handle *h) in usb_adb_kick() 230 usb_handle *h; in usb_adb_init() 234 h = calloc(1, sizeof(usb_handle)); in usb_adb_init() [all …]
|
D | usb_libusb.c | 43 struct usb_handle struct 45 usb_handle *prev; argument 46 usb_handle *next; argument 62 static struct usb_handle handle_list = { argument 100 usb_bulk_write(usb_handle *uh, const void *data, int len) in usb_bulk_write() 118 usb_bulk_read(usb_handle *uh, void *data, int len) in usb_bulk_read() 136 usb_write(struct usb_handle *uh, const void *_data, int len) in usb_write() 177 usb_read(struct usb_handle *uh, void *_data, int len) in usb_read() 208 usb_close(struct usb_handle *h) in usb_close() 229 void usb_kick(struct usb_handle *h) in usb_kick() [all …]
|
D | adb.h | 48 typedef struct usb_handle usb_handle; typedef 191 usb_handle *usb; 289 void init_usb_transport(atransport *t, usb_handle *usb, int state); 301 void register_usb_transport(usb_handle *h, const char *serial, const char *devpath, unsigned writea… 304 void unregister_usb_transport(usb_handle *usb); 448 int usb_write(usb_handle *h, const void *data, int len); 449 int usb_read(usb_handle *h, void *data, int len); 450 int usb_close(usb_handle *h); 451 void usb_kick(usb_handle *h);
|
D | usb_osx.c | 38 struct usb_handle struct 56 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface, argument 258 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface, in AndroidInterfaceAdded() 288 usb_handle *handle = (usb_handle *)refCon; in AndroidInterfaceNotify() 303 static usb_handle* 306 usb_handle* handle = NULL; in CheckInterface() 341 handle = calloc(1, sizeof(usb_handle)); in CheckInterface() 452 int usb_write(usb_handle *handle, const void *buf, int len) in usb_write() 492 int usb_read(usb_handle *handle, void *buf, int len) in usb_read() 528 int usb_close(usb_handle *handle) in usb_close() [all …]
|
D | usb_linux.c | 50 struct usb_handle struct 52 usb_handle *prev; argument 53 usb_handle *next; argument 80 static usb_handle handle_list = { argument 87 usb_handle *usb; in known_device() 104 usb_handle *usb; in kick_disconnected_devices() 311 static int usb_bulk_write(usb_handle *h, const void *data, int len) in usb_bulk_write() 364 static int usb_bulk_read(usb_handle *h, void *data, int len) in usb_bulk_read() 436 int usb_write(usb_handle *h, const void *_data, int len) in usb_write() 474 int usb_read(usb_handle *h, void *_data, int len) in usb_read() [all …]
|
D | transport_usb.c | 112 void init_usb_transport(atransport *t, usb_handle *h, int state) in init_usb_transport()
|
D | transport.c | 1061 void register_usb_transport(usb_handle *usb, const char *serial, const char *devpath, unsigned writ… in register_usb_transport() 1077 void unregister_usb_transport(usb_handle *usb) in unregister_usb_transport()
|
/system/core/fastboot/ |
D | usb.h | 32 typedef struct usb_handle usb_handle; typedef 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);
|
D | usb_windows.c | 51 struct usb_handle { struct 70 int recognized_device(usb_handle* handle, ifc_match_func callback); argument 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) { in do_usb_open() 93 usb_handle* ret = (usb_handle*)malloc(sizeof(usb_handle)); in do_usb_open() [all …]
|
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); 61 int fb_execute_queue(usb_handle *usb);
|
D | protocol.c | 50 static int check_response(usb_handle *usb, unsigned int size, char *response) in check_response() 109 static int _command_start(usb_handle *usb, const char *cmd, unsigned size, in _command_start() 133 static int _command_data(usb_handle *usb, const void *data, unsigned size) in _command_data() 152 static int _command_end(usb_handle *usb) in _command_end() 162 static int _command_send(usb_handle *usb, const char *cmd, in _command_send() 189 static int _command_send_no_data(usb_handle *usb, const char *cmd, in _command_send_no_data() 197 int fb_command(usb_handle *usb, const char *cmd) in fb_command() 202 int fb_command_response(usb_handle *usb, const char *cmd, char *response) in fb_command_response() 207 int fb_download_data(usb_handle *usb, const void *data, unsigned size) in fb_download_data() 229 usb_handle *usb = priv; in fb_download_data_sparse_write() [all …]
|
D | usb_osx.c | 53 struct usb_handle struct 67 static int try_interfaces(IOUSBDeviceInterface182 **dev, usb_handle *handle) { in try_interfaces() argument 260 static int try_device(io_service_t device, usb_handle *handle) { in try_device() 381 static int init_usb(ifc_match_func callback, usb_handle **handle) { in init_usb() 386 usb_handle h; in init_usb() 434 *handle = calloc(1, sizeof(usb_handle)); in init_usb() 435 memcpy(*handle, &h, sizeof(usb_handle)); in init_usb() 454 usb_handle *usb_open(ifc_match_func callback) { in usb_open() 455 usb_handle *handle = NULL; in usb_open() 465 int usb_close(usb_handle *h) { in usb_close() [all …]
|
D | usb_linux.c | 70 struct usb_handle struct 244 static usb_handle *find_usb_device(const char *base, ifc_match_func callback) in find_usb_device() 246 usb_handle *usb = 0; in find_usb_device() 287 usb = calloc(1, sizeof(usb_handle)); in find_usb_device() 311 int usb_write(usb_handle *h, const void *_data, int len) in usb_write() 361 int usb_read(usb_handle *h, void *_data, int len) in usb_read() 406 void usb_kick(usb_handle *h) in usb_kick() 418 int usb_close(usb_handle *h) in usb_close() 432 usb_handle *usb_open(ifc_match_func callback) in usb_open()
|
D | usbtest.c | 89 int test_null(usb_handle *usb) in test_null() 108 int test_zero(usb_handle *usb) in test_zero() 130 int (*test)(usb_handle *usb); 180 usb_handle *usb; in main()
|
D | fastboot.c | 67 static usb_handle *usb = 0; 243 usb_handle *open_device(void) in open_device() 245 static usb_handle *usb = 0; in open_device() 525 static int64_t get_target_sparse_limit(struct usb_handle *usb) in get_target_sparse_limit() 542 static int64_t get_sparse_limit(struct usb_handle *usb, int64_t size) in get_sparse_limit() 580 void do_flash(usb_handle *usb, const char *pname, const char *fname) in do_flash()
|
D | engine.c | 114 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...) in fb_getvar() 154 int fb_format_supported(usb_handle *usb, const char *partition) in fb_format_supported() 317 int fb_format(Action *a, usb_handle *usb, int skip_if_not_supported) in fb_format() 594 int fb_execute_queue(usb_handle *usb) in fb_execute_queue()
|