Lines Matching refs:num_params

141 static int get_value(size_t num_params, struct tee_ioctl_param *params,  in get_value()  argument
144 if (idx >= num_params) in get_value()
214 static int get_param(size_t num_params, struct tee_ioctl_param *params, in get_param() argument
221 if (idx >= num_params) in get_param()
275 static uint32_t load_ta(size_t num_params, struct tee_ioctl_param *params) in load_ta() argument
286 if (num_params != 2 || get_value(num_params, params, 0, &val_cmd) || in load_ta()
287 get_param(num_params, params, 1, &shm_ta)) in load_ta()
377 static uint32_t process_alloc(struct thread_arg *arg, size_t num_params, in process_alloc() argument
383 if (num_params != 1 || get_value(num_params, params, 0, &val)) in process_alloc()
401 static uint32_t process_free(size_t num_params, struct tee_ioctl_param *params) in process_free() argument
407 if (num_params != 1 || get_value(num_params, params, 0, &val)) in process_free()
490 static uint32_t process_rpmb(size_t num_params, struct tee_ioctl_param *params) in process_rpmb() argument
498 if (get_param(num_params, params, 0, &req) || in process_rpmb()
499 get_param(num_params, params, 1, &rsp)) in process_rpmb()
529 (__u64)request->send.num_params; in write_response()
538 size_t *num_params, struct tee_ioctl_param **params, in find_params() argument
547 for (n = 0; n < request->recv.num_params; n++) in find_params()
552 *num_params = request->recv.num_params - n; in find_params()
557 for (; n < request->recv.num_params; n++) { in find_params()
598 size_t num_params = 0; in process_one_request() local
608 request.recv.num_params = RPC_NUM_PARAMS; in process_one_request()
619 if (!find_params(&request, &func, &num_params, &params, &num_meta)) in process_one_request()
627 ret = load_ta(num_params, params); in process_one_request()
630 ret = tee_supp_fs_process(num_params, params); in process_one_request()
633 ret = process_rpmb(num_params, params); in process_one_request()
636 ret = process_alloc(arg, num_params, params); in process_one_request()
639 ret = process_free(num_params, params); in process_one_request()
642 ret = prof_process(num_params, params, "gmon-"); in process_one_request()
645 ret = tee_socket_process(num_params, params); in process_one_request()
648 ret = prof_process(num_params, params, "ftrace-"); in process_one_request()
651 ret = plugin_process(num_params, params); in process_one_request()