Searched refs:msg_arg (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/tee/optee/ |
| H A D | smc_abi.c | 458 struct optee_msg_arg *msg_arg; in optee_shm_register() local 488 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 …]
|
| H A D | protmem.c | 222 struct optee_msg_arg *msg_arg; in get_protmem_config() local 236 msg_arg = optee_get_msg_arg(optee->ctx, ARRAY_SIZE(params), &entry, in get_protmem_config() 238 if (IS_ERR(msg_arg)) { in get_protmem_config() 239 rc = PTR_ERR(msg_arg); in get_protmem_config() 242 msg_arg->cmd = OPTEE_MSG_CMD_GET_PROTMEM_CONFIG; in get_protmem_config() 244 rc = optee->ops->to_msg_param(optee, msg_arg->params, in get_protmem_config() 252 if (msg_arg->ret && msg_arg->ret != TEEC_ERROR_SHORT_BUFFER) { in get_protmem_config() 258 msg_arg->params); in get_protmem_config() 262 if (!msg_arg->ret && mem_attrs && in get_protmem_config() 272 if (msg_arg->ret == TEEC_ERROR_SHORT_BUFFER) { in get_protmem_config()
|
| H A D | ffa_abi.c | 669 struct optee_msg_arg *msg_arg; in do_call_lend_protmem() local 674 msg_arg = optee_get_msg_arg(optee->ctx, 1, &entry, &shm, &offs); in do_call_lend_protmem() 675 if (IS_ERR(msg_arg)) in do_call_lend_protmem() 676 return PTR_ERR(msg_arg); in do_call_lend_protmem() 678 msg_arg->cmd = OPTEE_MSG_CMD_ASSIGN_PROTMEM; in do_call_lend_protmem() 679 msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in do_call_lend_protmem() 680 msg_arg->params[0].u.value.a = cookie; in do_call_lend_protmem() 681 msg_arg->params[0].u.value.b = use_case; in do_call_lend_protmem() 686 if (msg_arg->ret != TEEC_SUCCESS) { in do_call_lend_protmem()
|