Lines Matching full:optee

130 	struct optee *optee = tee_get_drvdata(ctx->teedev);  in optee_do_call_with_arg()  local
139 optee_cq_wait_init(&optee->call_queue, &w); in optee_do_call_with_arg()
144 optee->invoke_fn(param.a0, param.a1, param.a2, param.a3, in optee_do_call_with_arg()
154 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_do_call_with_arg()
173 optee_cq_wait_final(&optee->call_queue, &w); in optee_do_call_with_arg()
398 * @optee: main service struct
400 void optee_enable_shm_cache(struct optee *optee) in optee_enable_shm_cache() argument
405 optee_cq_wait_init(&optee->call_queue, &w); in optee_enable_shm_cache()
409 optee->invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, in optee_enable_shm_cache()
413 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_enable_shm_cache()
415 optee_cq_wait_final(&optee->call_queue, &w); in optee_enable_shm_cache()
421 * @optee: main service struct
425 static void __optee_disable_shm_cache(struct optee *optee, bool is_mapped) in __optee_disable_shm_cache() argument
430 optee_cq_wait_init(&optee->call_queue, &w); in __optee_disable_shm_cache()
437 optee->invoke_fn(OPTEE_SMC_DISABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, in __optee_disable_shm_cache()
455 optee_cq_wait_for_completion(&optee->call_queue, &w); in __optee_disable_shm_cache()
458 optee_cq_wait_final(&optee->call_queue, &w); in __optee_disable_shm_cache()
464 * @optee: main service struct
466 void optee_disable_shm_cache(struct optee *optee) in optee_disable_shm_cache() argument
468 return __optee_disable_shm_cache(optee, true); in optee_disable_shm_cache()
475 * @optee: main service struct
477 void optee_disable_unmapped_shm_cache(struct optee *optee) in optee_disable_unmapped_shm_cache() argument
479 return __optee_disable_shm_cache(optee, false); in optee_disable_unmapped_shm_cache()