Lines Matching refs:session

110 static TEE_Result alloc_resources(void *session, uint32_t param_types,  in alloc_resources()  argument
124 DMSG("Session %p: get ciphering resources", session); in alloc_resources()
125 sess = (struct aes_cipher *)session; in alloc_resources()
225 static TEE_Result set_aes_key(void *session, uint32_t param_types, in set_aes_key() argument
240 DMSG("Session %p: load key material", session); in set_aes_key()
241 sess = (struct aes_cipher *)session; in set_aes_key()
295 static TEE_Result reset_aes_iv(void *session, uint32_t param_types, in reset_aes_iv() argument
308 DMSG("Session %p: reset initial vector", session); in reset_aes_iv()
309 sess = (struct aes_cipher *)session; in reset_aes_iv()
329 static TEE_Result cipher_buffer(void *session, uint32_t param_types, in cipher_buffer() argument
340 DMSG("Session %p: cipher buffer", session); in cipher_buffer()
341 sess = (struct aes_cipher *)session; in cipher_buffer()
377 void __unused **session) in TA_OpenSessionEntryPoint() argument
393 *session = (void *)sess; in TA_OpenSessionEntryPoint()
394 DMSG("Session %p: newly allocated", *session); in TA_OpenSessionEntryPoint()
399 void TA_CloseSessionEntryPoint(void *session) in TA_CloseSessionEntryPoint() argument
404 DMSG("Session %p: release session", session); in TA_CloseSessionEntryPoint()
405 sess = (struct aes_cipher *)session; in TA_CloseSessionEntryPoint()
415 TEE_Result TA_InvokeCommandEntryPoint(void *session, in TA_InvokeCommandEntryPoint() argument
422 return alloc_resources(session, param_types, params); in TA_InvokeCommandEntryPoint()
424 return set_aes_key(session, param_types, params); in TA_InvokeCommandEntryPoint()
426 return reset_aes_iv(session, param_types, params); in TA_InvokeCommandEntryPoint()
428 return cipher_buffer(session, param_types, params); in TA_InvokeCommandEntryPoint()