msg_arg 174 drivers/tee/optee/call.c struct optee_msg_arg **msg_arg, msg_arg 198 drivers/tee/optee/call.c *msg_arg = ma; msg_arg 215 drivers/tee/optee/call.c struct optee_msg_arg *msg_arg; msg_arg 220 drivers/tee/optee/call.c shm = get_msg_arg(ctx, arg->num_params + 2, &msg_arg, &msg_parg); msg_arg 224 drivers/tee/optee/call.c msg_arg->cmd = OPTEE_MSG_CMD_OPEN_SESSION; msg_arg 225 drivers/tee/optee/call.c msg_arg->cancel_id = arg->cancel_id; msg_arg 231 drivers/tee/optee/call.c msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | msg_arg 233 drivers/tee/optee/call.c msg_arg->params[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | msg_arg 235 drivers/tee/optee/call.c memcpy(&msg_arg->params[0].u.value, arg->uuid, sizeof(arg->uuid)); msg_arg 236 drivers/tee/optee/call.c memcpy(&msg_arg->params[1].u.value, arg->uuid, sizeof(arg->clnt_uuid)); msg_arg 237 drivers/tee/optee/call.c msg_arg->params[1].u.value.c = arg->clnt_login; msg_arg 239 drivers/tee/optee/call.c rc = optee_to_msg_param(msg_arg->params + 2, arg->num_params, param); msg_arg 250 drivers/tee/optee/call.c msg_arg->ret = TEEC_ERROR_COMMUNICATION; msg_arg 251 drivers/tee/optee/call.c msg_arg->ret_origin = TEEC_ORIGIN_COMMS; msg_arg 254 drivers/tee/optee/call.c if (msg_arg->ret == TEEC_SUCCESS) { msg_arg 256 drivers/tee/optee/call.c sess->session_id = msg_arg->session; msg_arg 264 drivers/tee/optee/call.c if (optee_from_msg_param(param, arg->num_params, msg_arg->params + 2)) { msg_arg 268 drivers/tee/optee/call.c optee_close_session(ctx, msg_arg->session); msg_arg 270 drivers/tee/optee/call.c arg->session = msg_arg->session; msg_arg 271 drivers/tee/optee/call.c arg->ret = msg_arg->ret; msg_arg 272 drivers/tee/optee/call.c arg->ret_origin = msg_arg->ret_origin; msg_arg 284 drivers/tee/optee/call.c struct optee_msg_arg *msg_arg; msg_arg 298 drivers/tee/optee/call.c shm = get_msg_arg(ctx, 0, &msg_arg, &msg_parg); msg_arg 302 drivers/tee/optee/call.c msg_arg->cmd = OPTEE_MSG_CMD_CLOSE_SESSION; msg_arg 303 drivers/tee/optee/call.c msg_arg->session = session; msg_arg 315 drivers/tee/optee/call.c struct optee_msg_arg *msg_arg; msg_arg 327 drivers/tee/optee/call.c shm = get_msg_arg(ctx, arg->num_params, &msg_arg, &msg_parg); msg_arg 330 drivers/tee/optee/call.c msg_arg->cmd = OPTEE_MSG_CMD_INVOKE_COMMAND; msg_arg 331 drivers/tee/optee/call.c msg_arg->func = arg->func; msg_arg 332 drivers/tee/optee/call.c msg_arg->session = arg->session; msg_arg 333 drivers/tee/optee/call.c msg_arg->cancel_id = arg->cancel_id; msg_arg 335 drivers/tee/optee/call.c rc = optee_to_msg_param(msg_arg->params, arg->num_params, param); msg_arg 340 drivers/tee/optee/call.c msg_arg->ret = TEEC_ERROR_COMMUNICATION; msg_arg 341 drivers/tee/optee/call.c msg_arg->ret_origin = TEEC_ORIGIN_COMMS; msg_arg 344 drivers/tee/optee/call.c if (optee_from_msg_param(param, arg->num_params, msg_arg->params)) { msg_arg 345 drivers/tee/optee/call.c msg_arg->ret = TEEC_ERROR_COMMUNICATION; msg_arg 346 drivers/tee/optee/call.c msg_arg->ret_origin = TEEC_ORIGIN_COMMS; msg_arg 349 drivers/tee/optee/call.c arg->ret = msg_arg->ret; msg_arg 350 drivers/tee/optee/call.c arg->ret_origin = msg_arg->ret_origin; msg_arg 360 drivers/tee/optee/call.c struct optee_msg_arg *msg_arg; msg_arg 371 drivers/tee/optee/call.c shm = get_msg_arg(ctx, 0, &msg_arg, &msg_parg); msg_arg 375 drivers/tee/optee/call.c msg_arg->cmd = OPTEE_MSG_CMD_CANCEL; msg_arg 376 drivers/tee/optee/call.c msg_arg->session = session; msg_arg 377 drivers/tee/optee/call.c msg_arg->cancel_id = cancel_id; msg_arg 577 drivers/tee/optee/call.c struct optee_msg_arg *msg_arg; msg_arg 593 drivers/tee/optee/call.c shm_arg = get_msg_arg(ctx, 1, &msg_arg, &msg_parg); msg_arg 602 drivers/tee/optee/call.c msg_arg->cmd = OPTEE_MSG_CMD_REGISTER_SHM; msg_arg 603 drivers/tee/optee/call.c msg_arg->params->attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | msg_arg 605 drivers/tee/optee/call.c msg_arg->params->u.tmem.shm_ref = (unsigned long)shm; msg_arg 606 drivers/tee/optee/call.c msg_arg->params->u.tmem.size = tee_shm_get_size(shm); msg_arg 611 drivers/tee/optee/call.c msg_arg->params->u.tmem.buf_ptr = virt_to_phys(pages_list) | msg_arg 615 drivers/tee/optee/call.c msg_arg->ret != TEEC_SUCCESS) msg_arg 627 drivers/tee/optee/call.c struct optee_msg_arg *msg_arg; msg_arg 631 drivers/tee/optee/call.c shm_arg = get_msg_arg(ctx, 1, &msg_arg, &msg_parg); msg_arg 635 drivers/tee/optee/call.c msg_arg->cmd = OPTEE_MSG_CMD_UNREGISTER_SHM; msg_arg 637 drivers/tee/optee/call.c msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_RMEM_INPUT; msg_arg 638 drivers/tee/optee/call.c msg_arg->params[0].u.rmem.shm_ref = (unsigned long)shm; msg_arg 641 drivers/tee/optee/call.c msg_arg->ret != TEEC_SUCCESS)