Lines Matching refs:hSession
167 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local
168 if (hSession == nullptr) { in ResetOldSession()
171 if (hSession->hUART != nullptr) { in ResetOldSession()
172 hSession->hUART->resetIO = true; in ResetOldSession()
176 OnTransferError(hSession); in ResetOldSession()
181 HSession hSession = daemon.AdminSession(OP_QUERY, sessionId, nullptr); in GetSession() local
182 if (hSession == nullptr and create) { in GetSession()
183 hSession = PrepareNewSession(sessionId); in GetSession()
185 return hSession; in GetSession()
206 HSession hSession = daemon.MallocSession(false, CONN_SERIAL, this, sessionId); in PrepareNewSession() local
207 if (!hSession) { in PrepareNewSession()
218 Base::FinishWorkThread, hSession); in PrepareNewSession()
220 HSession hSession = reinterpret_cast<HSession>(handle->data); in PrepareNewSession() local
221 HdcDaemon &daemonSession = *reinterpret_cast<HdcDaemon *>(hSession->classInstance); in PrepareNewSession()
222 if (hSession->childLoop.active_handles == 0) { in PrepareNewSession()
226 if (!hSession->isDead) { in PrepareNewSession()
228 Base::SendToPollFd(hSession->ctrlFd[STREAM_MAIN], ctrl.data(), ctrl.size()); in PrepareNewSession()
233 externInterface.TimerUvTask(&daemon.loopMain, hSession, funcNewSessionUp); in PrepareNewSession()
234 return hSession; in PrepareNewSession()
314 bool HdcDaemonUART::IsSendReady(HSession hSession) in IsSendReady() argument
316 if (isAlive and !hSession->isDead and uartHandle >= 0 and !hSession->hUART->resetIO) { in IsSendReady()
321 } else if (hSession->isDead) { in IsSendReady()
325 } else if (hSession->hUART->resetIO) { in IsSendReady()