Searched refs:usb_handle (Results 1 - 17 of 17) sorted by relevance

/system/core/fastboot/
H A Dusb.h32 typedef struct usb_handle usb_handle; typedef in typeref:struct:usb_handle
60 usb_handle *usb_open(ifc_match_func callback);
61 int usb_close(usb_handle *h);
62 int usb_read(usb_handle *h, void *_data, int len);
63 int usb_write(usb_handle *h, const void *_data, int len);
H A Dfastboot.h35 int fb_command(usb_handle *usb, const char *cmd);
36 int fb_command_response(usb_handle *usb, const char *cmd, char *response);
37 int fb_download_data(usb_handle *usb, const void *data, unsigned size);
55 int fb_execute_queue(usb_handle *usb);
H A Dusb_windows.c47 /** 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_ope
[all...]
H A Dprotocol.c43 static int check_response(usb_handle *usb, unsigned size,
103 static int _command_send(usb_handle *usb, const char *cmd,
157 int fb_command(usb_handle *usb, const char *cmd)
162 int fb_command_response(usb_handle *usb, const char *cmd, char *response)
167 int fb_download_data(usb_handle *usb, const void *data, unsigned size)
H A Dusb_osx.c53 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) {
373 static int init_usb(ifc_match_func callback, usb_handle **handle) {
378 usb_handle h;
426 *handle = calloc(1, sizeof(usb_handle));
427 memcpy(*handle, &h, sizeof(usb_handle));
446 usb_handle *usb_open(ifc_match_func callback) {
447 usb_handle *handle = NULL;
457 int usb_close(usb_handle *
[all...]
H A Dusb_linux.c69 struct usb_handle struct
205 static usb_handle *find_usb_device(const char *base, ifc_match_func callback)
207 usb_handle *usb = 0;
248 usb = calloc(1, sizeof(usb_handle));
272 int usb_write(usb_handle *h, const void *_data, int len)
322 int usb_read(usb_handle *h, void *_data, int len)
367 void usb_kick(usb_handle *h)
379 int usb_close(usb_handle *h)
393 usb_handle *usb_open(ifc_match_func callback)
H A Dusbtest.c89 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 Dfastboot.c55 static usb_handle *usb = 0;
193 usb_handle *open_device(void)
195 static usb_handle *usb = 0;
H A Dengine.c270 int fb_format(Action *a, usb_handle *usb, int skip_if_not_supported)
538 int fb_execute_queue(usb_handle *usb)
/system/core/adb/
H A Dusb_windows.c29 /** 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 *handl
[all...]
H A Dusb_linux_client.c33 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)
H A Dusb_libusb.c43 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 Dadb.h47 typedef struct usb_handle usb_handle; typedef in typeref:struct:usb_handle
187 usb_handle *usb;
277 void init_usb_transport(atransport *t, usb_handle *usb, int state);
289 void register_usb_transport(usb_handle *h, const char *serial, unsigned writeable);
292 void unregister_usb_transport(usb_handle *usb);
435 int usb_write(usb_handle *h, const void *data, int len);
436 int usb_read(usb_handle *h, void *data, int len);
437 int usb_close(usb_handle *h);
438 void usb_kick(usb_handle *
[all...]
H A Dusb_osx.c38 struct usb_handle struct
56 static usb_handle* CheckInterface(IOUSBInterfaceInterface **iface,
250 usb_handle* handle = CheckInterface((IOUSBInterfaceInterface**)iface,
280 usb_handle *handle = (usb_handle *)refCon;
295 static usb_handle*
298 usb_handle* handle = NULL;
333 handle = calloc(1, sizeof(usb_handle));
444 int usb_write(usb_handle *handle, const void *buf, int len)
484 int usb_read(usb_handle *handl
[all...]
H A Dusb_linux.c50 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;
286 static int usb_bulk_write(usb_handle *h, const void *data, int len)
339 static int usb_bulk_read(usb_handle *h, void *data, int len)
411 int usb_write(usb_handle *h, const void *_data, int len)
449 int usb_read(usb_handle *
[all...]
H A Dtransport_usb.c112 void init_usb_transport(atransport *t, usb_handle *h, int state)
H A Dtransport.c959 void register_usb_transport(usb_handle *usb, const char *serial, unsigned writeable)
962 D("transport: %p init'ing for usb_handle %p (sn='%s')\n", t, usb,
972 void unregister_usb_transport(usb_handle *usb)

Completed in 786 milliseconds