Lines Matching refs:hSession
223 HSession hSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr);
224 if (hSession == nullptr) {
225 WRITE_LOG(LOG_FATAL, "ResetOldSession hSession nullptr sessionId:%u", sessionId);
229 hSession->isSoftReset = isSoftReset;
260 bool HdcDaemonUSB::ReadyForWorkThread(HSession hSession)
262 HdcUSBBase::ReadyForWorkThread(hSession);
298 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int length)
305 while (modRunning && isAlive && !hSession->isDead) {
328 length, offset, modRunning, isAlive, hSession->isDead);
333 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length)
336 HdcDaemon *daemon = (HdcDaemon *)hSession->classInstance;
337 uint32_t sessionId = hSession->sessionId;
343 ++hSession->ref;
344 int ret = SendUSBIOSync(hSession, &usbHandle, data, length);
345 --hSession->ref;
347 daemon->FreeSession(hSession->sessionId);
360 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession)
362 WRITE_LOG(LOG_DEBUG, "OnSessionFreeFinally sid:%u currentsid:%u", hSession->sessionId, currentSessionId);
363 if (hSession->isSoftReset) {
364 WRITE_LOG(LOG_INFO, "OnSessionFreeFinally sid:%u softreset", hSession->sessionId);
367 if (currentSessionId == hSession->sessionId) {
394 hSessionInfo->hSession = hChildSession;
410 HSession hChildSession = hSessionInfo->hSession;