Searched refs:msg_arg (Results 1 – 2 of 2) sorted by relevance
370 struct optee_msg_arg *msg_arg; in optee_open_session() local377 msg_arg = optee_get_msg_arg(ctx, arg->num_params + 2, in optee_open_session()379 if (IS_ERR(msg_arg)) in optee_open_session()380 return PTR_ERR(msg_arg); in optee_open_session()382 msg_arg->cmd = OPTEE_MSG_CMD_OPEN_SESSION; in optee_open_session()383 msg_arg->cancel_id = arg->cancel_id; in optee_open_session()389 msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | in optee_open_session()391 msg_arg->params[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | in optee_open_session()393 memcpy(&msg_arg->params[0].u.value, arg->uuid, sizeof(arg->uuid)); in optee_open_session()394 msg_arg->params[1].u.value.c = arg->clnt_login; in optee_open_session()[all …]
458 struct optee_msg_arg *msg_arg; in optee_shm_register() local488 msg_arg = tee_shm_get_va(shm_arg, 0); in optee_shm_register()489 if (IS_ERR(msg_arg)) { in optee_shm_register()490 rc = PTR_ERR(msg_arg); in optee_shm_register()497 memset(msg_arg, 0, OPTEE_MSG_GET_ARG_SIZE(1)); in optee_shm_register()498 msg_arg->num_params = 1; in optee_shm_register()499 msg_arg->cmd = OPTEE_MSG_CMD_REGISTER_SHM; in optee_shm_register()500 msg_arg->params->attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | in optee_shm_register()502 msg_arg->params->u.tmem.shm_ref = (unsigned long)shm; in optee_shm_register()503 msg_arg->params->u.tmem.size = tee_shm_get_size(shm); in optee_shm_register()[all …]