Lines Matching refs:num_params
64 size_t num_params; member
248 return arg->num_params == 1 && in check_param_input()
254 static uint32_t optee_call_supp(const struct device *dev, uint32_t func, size_t num_params, in optee_call_supp() argument
269 req->num_params = num_params; in optee_call_supp()
417 if (arg->num_params != 1 || in handle_cmd_get_time()
584 params = k_malloc(sizeof(*params) * arg->num_params); in handle_rpc_supp_cmd()
590 ret = msg_param_to_param(params, arg->num_params, arg->params); in handle_rpc_supp_cmd()
597 arg->ret = optee_call_supp(dev, arg->cmd, arg->num_params, params); in handle_rpc_supp_cmd()
599 ret = param_to_msg_param(params, arg->num_params, arg->params); in handle_rpc_supp_cmd()
744 marg->num_params = 0; in optee_close_session()
780 marg->num_params = num_param + 2; in optee_open_session()
844 marg->num_params = 0; in optee_cancel()
880 marg->num_params = num_param; in optee_invoke_func()
994 msg_arg->num_params = 1; in optee_shm_register()
1027 msg_arg->num_params = 1; in optee_shm_unregister()
1039 static int optee_suppl_recv(const struct device *dev, uint32_t *func, unsigned int *num_params, in optee_suppl_recv() argument
1057 if (*num_params < req->num_params) { in optee_suppl_recv()
1059 req->num_params); in optee_suppl_recv()
1077 *num_params = req->num_params; in optee_suppl_recv()
1078 memcpy(param, req->param, sizeof(struct tee_param) * req->num_params); in optee_suppl_recv()
1083 static int optee_suppl_send(const struct device *dev, unsigned int ret, unsigned int num_params, in optee_suppl_send() argument
1092 if (supp->current && num_params >= supp->current->num_params) { in optee_suppl_send()
1096 LOG_ERR("Invalid number of parameters, expected %lu got %u", req->num_params, in optee_suppl_send()
1097 num_params); in optee_suppl_send()
1106 for (n = 0; n < req->num_params; n++) { in optee_suppl_send()