Home | History | Annotate | Download | only in fastbootd

Lines Matching full:thandle

30 ssize_t transport_handle_write(struct transport_handle *thandle, char *buffer, size_t len)
32 return thandle->transport->write(thandle, buffer, len);
35 void transport_handle_close(struct transport_handle *thandle)
37 thandle->transport->close(thandle);
40 int transport_handle_download(struct transport_handle *thandle, size_t len)
64 ret = thandle->transport->read(thandle, buffer + n, len - n);
81 transport_handle_close(thandle);
87 struct transport_handle *thandle = arg;
88 struct protocol_handle *phandle = create_protocol_handle(thandle);
90 while (!thandle->stopped) {
95 ret = thandle->transport->read(thandle, buffer, COMMAND_BUF_SIZE);
106 transport_handle_close(thandle);
107 free(thandle);
116 struct transport_handle *thandle;
121 thandle = transport->connect(transport);
122 if (thandle == NULL) {
127 thandle->transport = transport;
132 pthread_create(&thread, &attr, transport_data_thread, thandle);