Lines Matching refs:hSession
220 HSession hSession = daemon->AdminSession(OP_QUERY, sessionId, nullptr); in ResetOldSession() local
221 if (hSession == nullptr) { in ResetOldSession()
252 bool HdcDaemonUSB::ReadyForWorkThread(HSession hSession) in ReadyForWorkThread() argument
254 HdcUSBBase::ReadyForWorkThread(hSession); in ReadyForWorkThread()
290 int HdcDaemonUSB::SendUSBIOSync(HSession hSession, HUSB hMainUSB, const uint8_t *data, const int le… in SendUSBIOSync() argument
297 while (modRunning && isAlive && !hSession->isDead) { in SendUSBIOSync()
320 length, offset, modRunning, isAlive, hSession->isDead); in SendUSBIOSync()
325 int HdcDaemonUSB::SendUSBRaw(HSession hSession, uint8_t *data, const int length) in SendUSBRaw() argument
328 HdcDaemon *daemon = (HdcDaemon *)hSession->classInstance; in SendUSBRaw()
330 ++hSession->ref; in SendUSBRaw()
331 int ret = SendUSBIOSync(hSession, &usbHandle, data, length); in SendUSBRaw()
332 --hSession->ref; in SendUSBRaw()
334 daemon->FreeSession(hSession->sessionId); in SendUSBRaw()
347 void HdcDaemonUSB::OnSessionFreeFinally(const HSession hSession) in OnSessionFreeFinally() argument
349 if (currentSessionId == hSession->sessionId) { in OnSessionFreeFinally()