Lines Matching refs:hSession
221 HSession hSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local
222 if (hSession == nullptr) { in ResetOldSession()
255 bool HdcDaemonUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() argument
257 HdcUSBBase::ReadyForWorkThread(hSession); in ReadyForWorkThread()
293 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int le… in SendUSBIOSync() argument
300 while (modRunning && isAlive && !hSession->isDead) { in SendUSBIOSync()
323 length, offset, modRunning, isAlive, hSession->isDead); in SendUSBIOSync()
328 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw() argument
331 HdcDaemon *daemon = (HdcDaemon *)hSession->classInstance; in SendUSBRaw()
333 ++hSession->ref; in SendUSBRaw()
334 int ret = SendUSBIOSync(hSession, &usbHandle, data, length); in SendUSBRaw()
335 --hSession->ref; in SendUSBRaw()
337 daemon->FreeSession(hSession->sessionId); in SendUSBRaw()
350 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession) in OnSessionFreeFinally() argument
352 if (currentSessionId == hSession->sessionId) { in OnSessionFreeFinally()