Searched refs:msg_arg (Results 1 – 2 of 2) sorted by relevance
288 struct optee_msg_arg *msg_arg; in optee_open_session() local295 msg_arg = optee_get_msg_arg(ctx, arg->num_params + 2, in optee_open_session()297 if (IS_ERR(msg_arg)) in optee_open_session()298 return PTR_ERR(msg_arg); in optee_open_session()300 msg_arg->cmd = OPTEE_MSG_CMD_OPEN_SESSION; in optee_open_session()301 msg_arg->cancel_id = arg->cancel_id; in optee_open_session()307 msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | in optee_open_session()309 msg_arg->params[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT | in optee_open_session()311 memcpy(&msg_arg->params[0].u.value, arg->uuid, sizeof(arg->uuid)); in optee_open_session()312 msg_arg->params[1].u.value.c = arg->clnt_login; in optee_open_session()[all …]
457 struct optee_msg_arg *msg_arg; in optee_shm_register() local487 msg_arg = tee_shm_get_va(shm_arg, 0); in optee_shm_register()488 if (IS_ERR(msg_arg)) { in optee_shm_register()489 rc = PTR_ERR(msg_arg); in optee_shm_register()496 memset(msg_arg, 0, OPTEE_MSG_GET_ARG_SIZE(1)); in optee_shm_register()497 msg_arg->num_params = 1; in optee_shm_register()498 msg_arg->cmd = OPTEE_MSG_CMD_REGISTER_SHM; in optee_shm_register()499 msg_arg->params->attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | in optee_shm_register()501 msg_arg->params->u.tmem.shm_ref = (unsigned long)shm; in optee_shm_register()502 msg_arg->params->u.tmem.size = tee_shm_get_size(shm); in optee_shm_register()[all …]