Searched refs:thandle (Results 1 – 5 of 5) sorted by relevance
/system/core/fastbootd/ |
D | transport.c | 30 ssize_t transport_handle_write(struct transport_handle *thandle, char *buffer, size_t len) in transport_handle_write() argument 32 return thandle->transport->write(thandle, buffer, len); in transport_handle_write() 35 void transport_handle_close(struct transport_handle *thandle) in transport_handle_close() argument 37 thandle->transport->close(thandle); in transport_handle_close() 40 int transport_handle_download(struct transport_handle *thandle, size_t len) in transport_handle_download() argument 64 ret = thandle->transport->read(thandle, buffer + n, len - n); in transport_handle_download() 81 transport_handle_close(thandle); in transport_handle_download() 87 struct transport_handle *thandle = arg; in transport_data_thread() local 88 struct protocol_handle *phandle = create_protocol_handle(thandle); in transport_data_thread() 90 while (!thandle->stopped) { in transport_data_thread() [all …]
|
D | transport_socket.c | 62 void socket_close(struct transport_handle *thandle) in socket_close() argument 64 struct socket_handle * handle = container_of(thandle, struct socket_handle, handle); in socket_close() 86 ssize_t socket_write(struct transport_handle *thandle, const void *data, size_t len) in socket_write() argument 89 struct socket_handle *handle = container_of(thandle, struct socket_handle, handle); in socket_write() 101 ssize_t socket_read(struct transport_handle *thandle, void *data, size_t len) in socket_read() argument 104 struct socket_handle *handle = container_of(thandle, struct socket_handle, handle); in socket_read()
|
D | transport.h | 30 void (*close)(struct transport_handle *thandle); 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);
|
D | usb_linux_client.c | 214 static ssize_t usb_write(struct transport_handle *thandle, const void *data, size_t len) in usb_write() argument 217 struct transport *t = thandle->transport; in usb_write() 230 ssize_t usb_read(struct transport_handle *thandle, void *data, size_t len) in usb_read() argument 233 struct transport *t = thandle->transport; in usb_read() 246 void usb_close(struct transport_handle *thandle) in usb_close() argument 249 struct transport *t = thandle->transport; in usb_close()
|
D | protocol.c | 170 struct protocol_handle *create_protocol_handle(struct transport_handle *thandle) in create_protocol_handle() argument 176 phandle->transport_handle = thandle; in create_protocol_handle()
|