Lines Matching refs:operation
331 TEEC_Operation *operation, in teec_pre_process_operation() argument
344 if (!operation) { in teec_pre_process_operation()
353 param_type = TEEC_PARAM_TYPE_GET(operation->paramTypes, n); in teec_pre_process_operation()
362 params[n].a = operation->params[n].value.a; in teec_pre_process_operation()
363 params[n].b = operation->params[n].value.b; in teec_pre_process_operation()
369 &operation->params[n].tmpref, params + n, in teec_pre_process_operation()
376 &operation->params[n].memref, in teec_pre_process_operation()
385 &operation->params[n].memref, params + n); in teec_pre_process_operation()
452 static void teec_post_process_operation(TEEC_Operation *operation, in teec_post_process_operation() argument
458 if (!operation) in teec_post_process_operation()
464 param_type = TEEC_PARAM_TYPE_GET(operation->paramTypes, n); in teec_post_process_operation()
470 operation->params[n].value.a = params[n].a; in teec_post_process_operation()
471 operation->params[n].value.b = params[n].b; in teec_post_process_operation()
477 &operation->params[n].tmpref, params + n, in teec_post_process_operation()
481 teec_post_process_whole(&operation->params[n].memref, in teec_post_process_operation()
488 &operation->params[n].memref, params + n); in teec_post_process_operation()
495 static void teec_free_temp_refs(TEEC_Operation *operation, in teec_free_temp_refs() argument
500 if (!operation) in teec_free_temp_refs()
504 switch (TEEC_PARAM_TYPE_GET(operation->paramTypes, n)) { in teec_free_temp_refs()
597 TEEC_Operation *operation, uint32_t *ret_origin) in TEEC_OpenSession() argument
635 res = teec_pre_process_operation(ctx, operation, params, shm); in TEEC_OpenSession()
654 teec_post_process_operation(operation, params, shm); in TEEC_OpenSession()
657 teec_free_temp_refs(operation, shm); in TEEC_OpenSession()
679 TEEC_Operation *operation, uint32_t *error_origin) in TEEC_InvokeCommand() argument
718 if (operation) { in TEEC_InvokeCommand()
720 operation->session = session; in TEEC_InvokeCommand()
724 res = teec_pre_process_operation(session->ctx, operation, params, shm); in TEEC_InvokeCommand()
740 teec_post_process_operation(operation, params, shm); in TEEC_InvokeCommand()
745 teec_free_temp_refs(operation, shm); in TEEC_InvokeCommand()
752 void TEEC_RequestCancellation(TEEC_Operation *operation) in TEEC_RequestCancellation() argument
759 if (!operation) in TEEC_RequestCancellation()
763 session = operation->session; in TEEC_RequestCancellation()