Home
last modified time | relevance | path

Searched refs:msg_arg (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/tee/optee/
Dcall.c288 struct optee_msg_arg *msg_arg; in optee_open_session() local
295 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 …]
Dsmc_abi.c437 struct optee_msg_arg *msg_arg; in optee_shm_register() local
467 msg_arg = tee_shm_get_va(shm_arg, 0); in optee_shm_register()
468 if (IS_ERR(msg_arg)) { in optee_shm_register()
469 rc = PTR_ERR(msg_arg); in optee_shm_register()
476 memset(msg_arg, 0, OPTEE_MSG_GET_ARG_SIZE(1)); in optee_shm_register()
477 msg_arg->num_params = 1; in optee_shm_register()
478 msg_arg->cmd = OPTEE_MSG_CMD_REGISTER_SHM; in optee_shm_register()
479 msg_arg->params->attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | in optee_shm_register()
481 msg_arg->params->u.tmem.shm_ref = (unsigned long)shm; in optee_shm_register()
482 msg_arg->params->u.tmem.size = tee_shm_get_size(shm); in optee_shm_register()
[all …]