/hardware/ti/omap4-aah/security/tf_crypto_sst/ |
D | mtc.c | 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() [all …]
|
D | pkcs11_session.c | 56 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = NULL; in C_OpenSession() local 88 pSession = (PPKCS11_PRIMARY_SESSION_CONTEXT)malloc(sizeof(PKCS11_PRIMARY_SESSION_CONTEXT)); in C_OpenSession() 89 if (pSession == NULL) in C_OpenSession() 94 pSession->sHeader.nMagicWord = PKCS11_SESSION_MAGIC; in C_OpenSession() 95 pSession->sHeader.nSessionTag = PKCS11_PRIMARY_SESSION_TAG; in C_OpenSession() 96 memset(&pSession->sSession, 0, sizeof(TEEC_Session)); in C_OpenSession() 97 pSession->sSecondarySessionTable.pRoot = NULL_PTR; in C_OpenSession() 101 memset(&pSession->sSecondarySessionTableMutex, 0, in C_OpenSession() 102 sizeof(pSession->sSecondarySessionTableMutex)); in C_OpenSession() 103 libMutexInit(&pSession->sSecondarySessionTableMutex); in C_OpenSession() [all …]
|
D | sst_stub.c | 256 TEEC_Session* pSession; in SSTOpen() local 275 pSession = static_SSTGetSession(); in SSTOpen() 276 if (pSession == NULL) in SSTOpen() 286 nError = TEEC_InvokeCommand(pSession, in SSTOpen() 301 TEEC_Session* pSession; in SSTCloseHandle() local 311 pSession = static_SSTGetSession(); in SSTCloseHandle() 312 if (pSession == NULL) in SSTCloseHandle() 319 nError = TEEC_InvokeCommand(pSession, in SSTCloseHandle() 332 TEEC_Session* pSession; in SSTWrite() local 347 pSession = static_SSTGetSession(); in SSTWrite() [all …]
|
D | pkcs11_global.c | 129 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = NULL; in ckInternalSessionIsOpenedEx() local 137 pSession = (PPKCS11_PRIMARY_SESSION_CONTEXT)pHeader; in ckInternalSessionIsOpenedEx() 142 return (pSession->hCryptoSession != CK_INVALID_HANDLE); in ckInternalSessionIsOpenedEx() 151 pSession = pSecSession->pPrimarySession; in ckInternalSessionIsOpenedEx() 152 if ( (pSession == NULL) || in ckInternalSessionIsOpenedEx() 153 (pSession->sHeader.nMagicWord != PKCS11_SESSION_MAGIC) || in ckInternalSessionIsOpenedEx() 154 (pSession->sHeader.nSessionTag != PKCS11_PRIMARY_SESSION_TAG)) in ckInternalSessionIsOpenedEx() 159 if (pSession->hCryptoSession == CK_INVALID_HANDLE) in ckInternalSessionIsOpenedEx()
|
D | pkcs11_object.c | 76 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = in static_checkPreConditionsAndUpdateHandles() local 79 *phSession = pSession->hCryptoSession; in static_checkPreConditionsAndUpdateHandles() 80 *phCommandIDAndSession = (pSession->hCryptoSession<<16)|(*phCommandIDAndSession&0x00007FFF); in static_checkPreConditionsAndUpdateHandles() 81 *ppSession = pSession; in static_checkPreConditionsAndUpdateHandles() 263 PPKCS11_PRIMARY_SESSION_CONTEXT pSession; in static_C_CallInit() local 265 …ErrorCode = static_checkPreConditionsAndUpdateHandles(&hSession, &nCommandIDAndSession, &pSession); in static_C_CallInit() 297 teeErr = TEEC_InvokeCommand( &pSession->sSession, in static_C_CallInit() 333 PPKCS11_PRIMARY_SESSION_CONTEXT pSession; in static_C_CallForSingle() local 335 …ErrorCode = static_checkPreConditionsAndUpdateHandles(&hSession, &nCommandIDAndSession, &pSession); in static_C_CallForSingle() 376 teeErr = TEEC_InvokeCommand(&pSession->sSession, in static_C_CallForSingle() [all …]
|
/hardware/ti/omap4xxx/security/tf_crypto_sst/ |
D | mtc.c | 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() [all …]
|
D | pkcs11_session.c | 56 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = NULL; in C_OpenSession() local 88 pSession = (PPKCS11_PRIMARY_SESSION_CONTEXT)malloc(sizeof(PKCS11_PRIMARY_SESSION_CONTEXT)); in C_OpenSession() 89 if (pSession == NULL) in C_OpenSession() 94 pSession->sHeader.nMagicWord = PKCS11_SESSION_MAGIC; in C_OpenSession() 95 pSession->sHeader.nSessionTag = PKCS11_PRIMARY_SESSION_TAG; in C_OpenSession() 96 memset(&pSession->sSession, 0, sizeof(TEEC_Session)); in C_OpenSession() 97 pSession->sSecondarySessionTable.pRoot = NULL_PTR; in C_OpenSession() 101 memset(&pSession->sSecondarySessionTableMutex, 0, in C_OpenSession() 102 sizeof(pSession->sSecondarySessionTableMutex)); in C_OpenSession() 103 libMutexInit(&pSession->sSecondarySessionTableMutex); in C_OpenSession() [all …]
|
D | sst_stub.c | 257 TEEC_Session* pSession; in SSTOpen() local 276 pSession = static_SSTGetSession(); in SSTOpen() 277 if (pSession == NULL) in SSTOpen() 287 nError = TEEC_InvokeCommand(pSession, in SSTOpen() 302 TEEC_Session* pSession; in SSTCloseHandle() local 312 pSession = static_SSTGetSession(); in SSTCloseHandle() 313 if (pSession == NULL) in SSTCloseHandle() 320 nError = TEEC_InvokeCommand(pSession, in SSTCloseHandle() 333 TEEC_Session* pSession; in SSTWrite() local 348 pSession = static_SSTGetSession(); in SSTWrite() [all …]
|
D | pkcs11_global.c | 129 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = NULL; in ckInternalSessionIsOpenedEx() local 137 pSession = (PPKCS11_PRIMARY_SESSION_CONTEXT)pHeader; in ckInternalSessionIsOpenedEx() 142 return (pSession->hCryptoSession != CK_INVALID_HANDLE); in ckInternalSessionIsOpenedEx() 151 pSession = pSecSession->pPrimarySession; in ckInternalSessionIsOpenedEx() 152 if ( (pSession == NULL) || in ckInternalSessionIsOpenedEx() 153 (pSession->sHeader.nMagicWord != PKCS11_SESSION_MAGIC) || in ckInternalSessionIsOpenedEx() 154 (pSession->sHeader.nSessionTag != PKCS11_PRIMARY_SESSION_TAG)) in ckInternalSessionIsOpenedEx() 159 if (pSession->hCryptoSession == CK_INVALID_HANDLE) in ckInternalSessionIsOpenedEx()
|
D | pkcs11_object.c | 76 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = in static_checkPreConditionsAndUpdateHandles() local 79 *phSession = pSession->hCryptoSession; in static_checkPreConditionsAndUpdateHandles() 80 *phCommandIDAndSession = (pSession->hCryptoSession<<16)|(*phCommandIDAndSession&0x00007FFF); in static_checkPreConditionsAndUpdateHandles() 81 *ppSession = pSession; in static_checkPreConditionsAndUpdateHandles() 266 PPKCS11_PRIMARY_SESSION_CONTEXT pSession; in static_C_CallInit() local 268 …ErrorCode = static_checkPreConditionsAndUpdateHandles(&hSession, &nCommandIDAndSession, &pSession); in static_C_CallInit() 300 teeErr = TEEC_InvokeCommand( &pSession->sSession, in static_C_CallInit() 336 PPKCS11_PRIMARY_SESSION_CONTEXT pSession; in static_C_CallForSingle() local 338 …ErrorCode = static_checkPreConditionsAndUpdateHandles(&hSession, &nCommandIDAndSession, &pSession); in static_C_CallForSingle() 379 teeErr = TEEC_InvokeCommand(&pSession->sSession, in static_C_CallForSingle() [all …]
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api_50001/ |
D | loc_eng_ni.cpp | 119 loc_eng_ni_session_s_type* pSession = NULL; in loc_eng_ni_request_handler() local 134 pSession = &loc_eng_ni_data_p->sessionEs; in loc_eng_ni_request_handler() 145 pSession = &loc_eng_ni_data_p->session; in loc_eng_ni_request_handler() 150 if (pSession) { in loc_eng_ni_request_handler() 152 pSession->rawRequest = (void*)passThrough; in loc_eng_ni_request_handler() 153 pSession->reqID = ++loc_eng_ni_data_p->reqIDCounter; in loc_eng_ni_request_handler() 154 pSession->adapter = loc_eng_data.adapter; in loc_eng_ni_request_handler() 157 ((GpsNiNotification*)notif)->notification_id = pSession->reqID; in loc_eng_ni_request_handler() 176 … pSession->respTimeLeft = 5 + (notif->timeout != 0 ? notif->timeout : LOC_NI_NO_RESPONSE_TIME); in loc_eng_ni_request_handler() 177 …LOC_LOGI("Automatically sends 'no response' in %d seconds (to clear status)\n", pSession->respTime… in loc_eng_ni_request_handler() [all …]
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api_50001/ |
D | loc_eng_ni.cpp | 119 loc_eng_ni_session_s_type* pSession = NULL; in loc_eng_ni_request_handler() local 134 pSession = &loc_eng_ni_data_p->sessionEs; in loc_eng_ni_request_handler() 145 pSession = &loc_eng_ni_data_p->session; in loc_eng_ni_request_handler() 150 if (pSession) { in loc_eng_ni_request_handler() 152 pSession->rawRequest = (void*)passThrough; in loc_eng_ni_request_handler() 153 pSession->reqID = ++loc_eng_ni_data_p->reqIDCounter; in loc_eng_ni_request_handler() 154 pSession->adapter = loc_eng_data.adapter; in loc_eng_ni_request_handler() 157 ((GpsNiNotification*)notif)->notification_id = pSession->reqID; in loc_eng_ni_request_handler() 176 … pSession->respTimeLeft = 5 + (notif->timeout != 0 ? notif->timeout : LOC_NI_NO_RESPONSE_TIME); in loc_eng_ni_request_handler() 177 …LOC_LOGI("Automatically sends 'no response' in %d seconds (to clear status)\n", pSession->respTime… in loc_eng_ni_request_handler() [all …]
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api_50001/ |
D | loc_eng_ni.cpp | 119 loc_eng_ni_session_s_type* pSession = NULL; in loc_eng_ni_request_handler() local 134 pSession = &loc_eng_ni_data_p->sessionEs; in loc_eng_ni_request_handler() 145 pSession = &loc_eng_ni_data_p->session; in loc_eng_ni_request_handler() 150 if (pSession) { in loc_eng_ni_request_handler() 152 pSession->rawRequest = (void*)passThrough; in loc_eng_ni_request_handler() 153 pSession->reqID = ++loc_eng_ni_data_p->reqIDCounter; in loc_eng_ni_request_handler() 154 pSession->adapter = loc_eng_data.adapter; in loc_eng_ni_request_handler() 157 ((GpsNiNotification*)notif)->notification_id = pSession->reqID; in loc_eng_ni_request_handler() 176 … pSession->respTimeLeft = 5 + (notif->timeout != 0 ? notif->timeout : LOC_NI_NO_RESPONSE_TIME); in loc_eng_ni_request_handler() 177 …LOC_LOGI("Automatically sends 'no response' in %d seconds (to clear status)\n", pSession->respTime… in loc_eng_ni_request_handler() [all …]
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api_50001/ |
D | loc_eng_ni.cpp | 119 loc_eng_ni_session_s_type* pSession = NULL; in loc_eng_ni_request_handler() local 134 pSession = &loc_eng_ni_data_p->sessionEs; in loc_eng_ni_request_handler() 145 pSession = &loc_eng_ni_data_p->session; in loc_eng_ni_request_handler() 150 if (pSession) { in loc_eng_ni_request_handler() 152 pSession->rawRequest = (void*)passThrough; in loc_eng_ni_request_handler() 153 pSession->reqID = ++loc_eng_ni_data_p->reqIDCounter; in loc_eng_ni_request_handler() 154 pSession->adapter = loc_eng_data.adapter; in loc_eng_ni_request_handler() 157 ((GpsNiNotification*)notif)->notification_id = pSession->reqID; in loc_eng_ni_request_handler() 176 … pSession->respTimeLeft = 5 + (notif->timeout != 0 ? notif->timeout : LOC_NI_NO_RESPONSE_TIME); in loc_eng_ni_request_handler() 177 …LOC_LOGI("Automatically sends 'no response' in %d seconds (to clear status)\n", pSession->respTime… in loc_eng_ni_request_handler() [all …]
|
/hardware/qcom/gps/loc_api/libloc_api_50001/ |
D | loc_eng_ni.cpp | 119 loc_eng_ni_session_s_type* pSession = NULL; in loc_eng_ni_request_handler() local 134 pSession = &loc_eng_ni_data_p->sessionEs; in loc_eng_ni_request_handler() 145 pSession = &loc_eng_ni_data_p->session; in loc_eng_ni_request_handler() 150 if (pSession) { in loc_eng_ni_request_handler() 152 pSession->rawRequest = (void*)passThrough; in loc_eng_ni_request_handler() 153 pSession->reqID = ++loc_eng_ni_data_p->reqIDCounter; in loc_eng_ni_request_handler() 154 pSession->adapter = loc_eng_data.adapter; in loc_eng_ni_request_handler() 157 ((GpsNiNotification*)notif)->notification_id = pSession->reqID; in loc_eng_ni_request_handler() 176 … pSession->respTimeLeft = 5 + (notif->timeout != 0 ? notif->timeout : LOC_NI_NO_RESPONSE_TIME); in loc_eng_ni_request_handler() 177 …LOC_LOGI("Automatically sends 'no response' in %d seconds (to clear status)\n", pSession->respTime… in loc_eng_ni_request_handler() [all …]
|
/hardware/ti/omap4xxx/security/tf_daemon/ |
D | delegation_client.c | 875 static int runSession(TEEC_Context* pContext, TEEC_Session* pSession, TEEC_Operation* pOperation) in runSession() argument 903 nTeeError = TEEC_InvokeCommand(pSession, in runSession() 1107 static int createSession(TEEC_Context* pContext, TEEC_Session* pSession, TEEC_Operation* pOperation) in createSession() argument 1116 pSession, /* OUT session */ in createSession()
|
/hardware/ti/omap4-aah/security/tf_daemon/ |
D | delegation_client.c | 993 static int runSession(TEEC_Context* pContext, TEEC_Session* pSession, TEEC_Operation* pOperation) in runSession() argument 1021 nTeeError = TEEC_InvokeCommand(pSession, in runSession() 1273 static int createSession(TEEC_Context* pContext, TEEC_Session* pSession, TEEC_Operation* pOperation) in createSession() argument 1282 pSession, /* OUT session */ in createSession()
|