Lines Matching defs:optee
34 * (optee->rpc_param_count).
135 void optee_shm_arg_cache_init(struct optee *optee, u32 flags)
137 INIT_LIST_HEAD(&optee->shm_arg_cache.shm_args);
138 mutex_init(&optee->shm_arg_cache.mutex);
139 optee->shm_arg_cache.flags = flags;
142 void optee_shm_arg_cache_uninit(struct optee *optee)
144 struct list_head *head = &optee->shm_arg_cache.shm_args;
147 mutex_destroy(&optee->shm_arg_cache.mutex);
187 struct optee *optee = tee_get_drvdata(ctx->teedev);
188 size_t sz = optee_msg_arg_size(optee->rpc_param_count);
199 if (optee->shm_arg_cache.flags & OPTEE_SHM_ARG_SHARED)
204 mutex_lock(&optee->shm_arg_cache.mutex);
205 list_for_each_entry(entry, &optee->shm_arg_cache.shm_args, list_node) {
220 if (optee->shm_arg_cache.flags & OPTEE_SHM_ARG_ALLOC_PRIV)
230 list_add(&entry->list_node, &optee->shm_arg_cache.shm_args);
246 mutex_unlock(&optee->shm_arg_cache.mutex);
261 struct optee *optee = tee_get_drvdata(ctx->teedev);
262 size_t sz = optee_msg_arg_size(optee->rpc_param_count);
271 mutex_lock(&optee->shm_arg_cache.mutex);
277 mutex_unlock(&optee->shm_arg_cache.mutex);
284 struct optee *optee = tee_get_drvdata(ctx->teedev);
320 rc = optee->ops->to_msg_param(optee, msg_arg->params + 2,
331 if (optee->ops->do_call_with_arg(ctx, shm, offs)) {
346 if (optee->ops->from_msg_param(optee, param, arg->num_params,
365 struct optee *optee = tee_get_drvdata(ctx->teedev);
377 optee->ops->do_call_with_arg(ctx, shm, offs);
405 struct optee *optee = tee_get_drvdata(ctx->teedev);
430 rc = optee->ops->to_msg_param(optee, msg_arg->params, arg->num_params,
435 if (optee->ops->do_call_with_arg(ctx, shm, offs)) {
440 if (optee->ops->from_msg_param(optee, param, arg->num_params,
455 struct optee *optee = tee_get_drvdata(ctx->teedev);
477 optee->ops->do_call_with_arg(ctx, shm, offs);