Lines Matching refs:num_params
143 static int get_msg_arg(struct udevice *dev, uint num_params, in get_msg_arg() argument
150 OPTEE_MSG_GET_ARG_SIZE(num_params), TEE_SHM_ALLOC, in get_msg_arg()
156 memset(ma, 0, OPTEE_MSG_GET_ARG_SIZE(num_params)); in get_msg_arg()
157 ma->num_params = num_params; in get_msg_arg()
163 static int to_msg_param(struct optee_msg_param *msg_params, uint num_params, in to_msg_param() argument
168 for (n = 0; n < num_params; n++) { in to_msg_param()
202 static int from_msg_param(struct tee_param *params, uint num_params, in from_msg_param() argument
208 for (n = 0; n < num_params; n++) { in from_msg_param()
354 uint num_params, struct tee_param *params) in optee_open_session() argument
360 rc = get_msg_arg(dev, num_params + 2, &shm, &msg_arg); in optee_open_session()
377 rc = to_msg_param(msg_arg->params + 2, num_params, params); in optee_open_session()
387 if (from_msg_param(params, num_params, msg_arg->params + 2)) { in optee_open_session()
405 uint num_params, struct tee_param *params) in optee_invoke_func() argument
411 rc = get_msg_arg(dev, num_params, &shm, &msg_arg); in optee_invoke_func()
418 rc = to_msg_param(msg_arg->params, num_params, params); in optee_invoke_func()
428 if (from_msg_param(params, num_params, msg_arg->params)) { in optee_invoke_func()