Lines Matching refs:pSession

82    MTC_SESSION_CONTEXT* pSession = NULL;  in static_getMonotonicCounter()  local
90 pSession = (MTC_SESSION_CONTEXT *)hCounter; in static_getMonotonicCounter()
91 if ((pSession == NULL) || (pSession->nMagicWord != MTC_SESSION_MAGIC)) in static_getMonotonicCounter()
106 sOperation.params[0].value.a = pSession->nCounterIdentifier; in static_getMonotonicCounter()
108 nError = TEEC_InvokeCommand(&pSession->sSession, in static_getMonotonicCounter()
109 (pSession->hCryptoSession << 16 ) | in static_getMonotonicCounter()
163 MTC_SESSION_CONTEXT* pSession = NULL; in SMonotonicCounterOpen() local
183 pSession = (MTC_SESSION_CONTEXT*)malloc(sizeof(MTC_SESSION_CONTEXT)); in SMonotonicCounterOpen()
184 if (pSession == NULL) in SMonotonicCounterOpen()
188 memset(pSession, 0, sizeof(MTC_SESSION_CONTEXT)); in SMonotonicCounterOpen()
189 pSession->nMagicWord = MTC_SESSION_MAGIC; in SMonotonicCounterOpen()
193 &pSession->sSession, in SMonotonicCounterOpen()
208 nError = TEEC_InvokeCommand(&pSession->sSession, in SMonotonicCounterOpen()
214 TEEC_CloseSession(&pSession->sSession); in SMonotonicCounterOpen()
218 pSession->hCryptoSession = sOperation.params[0].value.a; in SMonotonicCounterOpen()
219 pSession->nCounterIdentifier = nCounterIdentifier; in SMonotonicCounterOpen()
221 nError = SMonotonicCounterGet((S_HANDLE)pSession, &nCounterValue); in SMonotonicCounterOpen()
224 SMonotonicCounterClose((S_HANDLE)pSession); in SMonotonicCounterOpen()
228 *phCounter = (S_HANDLE)pSession; in SMonotonicCounterOpen()
233 free(pSession); in SMonotonicCounterOpen()
239 MTC_SESSION_CONTEXT* pSession; in SMonotonicCounterClose() local
246 pSession = (MTC_SESSION_CONTEXT *)hCounter; in SMonotonicCounterClose()
247 if ((pSession == NULL) || (pSession->nMagicWord != MTC_SESSION_MAGIC)) in SMonotonicCounterClose()
252 (void)TEEC_InvokeCommand(&pSession->sSession, in SMonotonicCounterClose()
253 (pSession->hCryptoSession << 16 ) | in SMonotonicCounterClose()
258 TEEC_CloseSession(&pSession->sSession); in SMonotonicCounterClose()
259 free(pSession); in SMonotonicCounterClose()