• Home
  • Raw
  • Download

Lines Matching refs:sinfo

103 static void wait_for_state(int fd, state_info* sinfo) {  in wait_for_state()  argument
104 D("wait_for_state %d", sinfo->state); in wait_for_state()
109 const char* serial = sinfo->serial.length() ? sinfo->serial.c_str() : nullptr; in wait_for_state()
110 atransport* t = acquire_one_transport(sinfo->transport_type, serial, sinfo->transport_id, in wait_for_state()
112 if (sinfo->state == kCsOffline) { in wait_for_state()
119 (sinfo->state == kCsAny || sinfo->state == t->GetConnectionState())) { in wait_for_state()
207 std::shared_ptr<state_info> sinfo = std::make_shared<state_info>(); in host_service_to_socket() local
208 if (sinfo == nullptr) { in host_service_to_socket()
213 sinfo->serial = serial; in host_service_to_socket()
214 sinfo->transport_id = transport_id; in host_service_to_socket()
217 sinfo->transport_type = kTransportLocal; in host_service_to_socket()
219 sinfo->transport_type = kTransportUsb; in host_service_to_socket()
221 sinfo->transport_type = kTransportAny; in host_service_to_socket()
227 sinfo->state = kCsDevice; in host_service_to_socket()
229 sinfo->state = kCsRecovery; in host_service_to_socket()
231 sinfo->state = kCsRescue; in host_service_to_socket()
233 sinfo->state = kCsSideload; in host_service_to_socket()
235 sinfo->state = kCsBootloader; in host_service_to_socket()
237 sinfo->state = kCsAny; in host_service_to_socket()
239 sinfo->state = kCsOffline; in host_service_to_socket()
244 unique_fd fd = create_service_thread("wait", [sinfo](int fd) { in host_service_to_socket()
245 wait_for_state(fd, sinfo.get()); in host_service_to_socket()