Lines Matching defs:optee
128 struct optee *optee = tee_get_drvdata(ctx->teedev);
137 optee_cq_wait_init(&optee->call_queue, &w);
141 optee->invoke_fn(param.a0, param.a1, param.a2, param.a3,
150 optee_cq_wait_for_completion(&optee->call_queue, &w);
170 optee_cq_wait_final(&optee->call_queue, &w);
395 * @optee: main service struct
397 void optee_enable_shm_cache(struct optee *optee)
402 optee_cq_wait_init(&optee->call_queue, &w);
406 optee->invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0,
410 optee_cq_wait_for_completion(&optee->call_queue, &w);
412 optee_cq_wait_final(&optee->call_queue, &w);
418 * @optee: main service struct
422 static void __optee_disable_shm_cache(struct optee *optee, bool is_mapped)
427 optee_cq_wait_init(&optee->call_queue, &w);
434 optee->invoke_fn(OPTEE_SMC_DISABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0,
452 optee_cq_wait_for_completion(&optee->call_queue, &w);
455 optee_cq_wait_final(&optee->call_queue, &w);
461 * @optee: main service struct
463 void optee_disable_shm_cache(struct optee *optee)
465 return __optee_disable_shm_cache(optee, true);
472 * @optee: main service struct
474 void optee_disable_unmapped_shm_cache(struct optee *optee)
476 return __optee_disable_shm_cache(optee, false);