Home
last modified time | relevance | path

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

/linux/drivers/tee/optee/
H A Dcall.c370 struct optee_msg_arg *msg_arg; in optee_open_session() local
377 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 …]
H A Dffa_abi.c655 struct optee_msg_arg *msg_arg; in do_call_lend_protmem() local
660 msg_arg = optee_get_msg_arg(optee->ctx, 1, &entry, &shm, &offs); in do_call_lend_protmem()
661 if (IS_ERR(msg_arg)) in do_call_lend_protmem()
662 return PTR_ERR(msg_arg); in do_call_lend_protmem()
664 msg_arg->cmd = OPTEE_MSG_CMD_ASSIGN_PROTMEM; in do_call_lend_protmem()
665 msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT; in do_call_lend_protmem()
666 msg_arg->params[0].u.value.a = cookie; in do_call_lend_protmem()
667 msg_arg->params[0].u.value.b = use_case; in do_call_lend_protmem()
672 if (msg_arg->ret != TEEC_SUCCESS) { in do_call_lend_protmem()