Lines Matching refs:optee
136 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_do_call_with_arg() local
145 optee_cq_wait_init(&optee->call_queue, &w); in optee_do_call_with_arg()
149 optee->invoke_fn(param.a0, param.a1, param.a2, param.a3, in optee_do_call_with_arg()
158 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_do_call_with_arg()
176 optee_cq_wait_final(&optee->call_queue, &w); in optee_do_call_with_arg()
397 void optee_enable_shm_cache(struct optee *optee) in optee_enable_shm_cache() argument
402 optee_cq_wait_init(&optee->call_queue, &w); in optee_enable_shm_cache()
406 optee->invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, in optee_enable_shm_cache()
410 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_enable_shm_cache()
412 optee_cq_wait_final(&optee->call_queue, &w); in optee_enable_shm_cache()
420 void optee_disable_shm_cache(struct optee *optee) in optee_disable_shm_cache() argument
425 optee_cq_wait_init(&optee->call_queue, &w); in optee_disable_shm_cache()
432 optee->invoke_fn(OPTEE_SMC_DISABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, in optee_disable_shm_cache()
443 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_disable_shm_cache()
446 optee_cq_wait_final(&optee->call_queue, &w); in optee_disable_shm_cache()