Home
last modified time | relevance | path

Searched refs:transport_handle (Results 1 – 6 of 6) sorted by relevance

/system/core/fastbootd/
Dtransport.h22 struct transport_handle { struct
30 void (*close)(struct transport_handle *thandle); argument
31 ssize_t (*read)(struct transport_handle *thandle, void *data, size_t len);
32 ssize_t (*write)(struct transport_handle *thandle, const void *data, size_t len);
33 struct transport_handle *(*connect)(struct transport *transport);
38 ssize_t transport_handle_write(struct transport_handle *handle, char *buffer, size_t len);
39 int transport_handle_download(struct transport_handle *handle, size_t len);
Dprotocol.h39 struct transport_handle *transport_handle; member
52 struct protocol_handle *create_protocol_handle(struct transport_handle *t);
Dtransport.c30 ssize_t transport_handle_write(struct transport_handle *thandle, char *buffer, size_t len) in transport_handle_write()
35 void transport_handle_close(struct transport_handle *thandle) in transport_handle_close()
40 int transport_handle_download(struct transport_handle *thandle, size_t len) in transport_handle_download()
87 struct transport_handle *thandle = arg; in transport_data_thread()
117 struct transport_handle *thandle; in transport_connect_thread()
Dtransport_socket.c57 struct transport_handle handle;
62 void socket_close(struct transport_handle *thandle) in socket_close()
68 struct transport_handle *socket_connect(struct transport *transport) in socket_connect()
86 ssize_t socket_write(struct transport_handle *thandle, const void *data, size_t len) in socket_write()
101 ssize_t socket_read(struct transport_handle *thandle, void *data, size_t len) in socket_read()
Dprotocol.c104 return transport_handle_download(phandle->transport_handle, len); in protocol_handle_download()
110 return transport_handle_write(phandle->transport_handle, buffer, len); in protocol_handle_write()
170 struct protocol_handle *create_protocol_handle(struct transport_handle *thandle) in create_protocol_handle()
176 phandle->transport_handle = thandle; in create_protocol_handle()
Dusb_linux_client.c69 struct transport_handle handle;
214 static ssize_t usb_write(struct transport_handle *thandle, const void *data, size_t len) in usb_write()
230 ssize_t usb_read(struct transport_handle *thandle, void *data, size_t len) in usb_read()
246 void usb_close(struct transport_handle *thandle) in usb_close()
270 struct transport_handle *usb_connect(struct transport *transport) in usb_connect()