/drivers/tee/optee/ |
D | supp.c | 16 size_t num_params; member 76 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, in optee_supp_thrd_req() argument 99 req->num_params = num_params; in optee_supp_thrd_req() 153 int num_params, int *id) in supp_pop_entry() argument 170 if (num_params < req->num_params) { in supp_pop_entry() 185 static int supp_check_recv_params(size_t num_params, struct tee_param *params, in supp_check_recv_params() argument 190 if (!num_params) in supp_check_recv_params() 197 for (n = 0; n < num_params; n++) in supp_check_recv_params() 205 for (n = 0; n < num_params; n++) in supp_check_recv_params() 229 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params, in optee_supp_recv() argument [all …]
|
D | rpc.c | 37 if (arg->num_params != 1) in handle_rpc_func_cmd_get_time() 69 if (arg->num_params != ARRAY_SIZE(attr)) { in handle_rpc_func_cmd_i2c_transfer() 74 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_func_cmd_i2c_transfer() 81 if (optee_from_msg_param(params, arg->num_params, arg->params)) in handle_rpc_func_cmd_i2c_transfer() 84 for (i = 0; i < arg->num_params; i++) { in handle_rpc_func_cmd_i2c_transfer() 124 if (optee_to_msg_param(arg->params, arg->num_params, params)) in handle_rpc_func_cmd_i2c_transfer() 190 if (arg->num_params != 1) in handle_rpc_func_cmd_wq() 218 if (arg->num_params != 1) in handle_rpc_func_cmd_wait() 243 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_supp_cmd() 250 if (optee_from_msg_param(params, arg->num_params, arg->params)) { in handle_rpc_supp_cmd() [all …]
|
D | optee_private.h | 139 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, 148 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params, 150 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params, 176 int optee_from_msg_param(struct tee_param *params, size_t num_params, 178 int optee_to_msg_param(struct optee_msg_param *msg_params, size_t num_params,
|
D | call.c | 175 static struct tee_shm *get_msg_arg(struct tee_context *ctx, size_t num_params, in get_msg_arg() argument 183 shm = tee_shm_alloc(ctx, OPTEE_MSG_GET_ARG_SIZE(num_params), in get_msg_arg() 198 memset(ma, 0, OPTEE_MSG_GET_ARG_SIZE(num_params)); in get_msg_arg() 199 ma->num_params = num_params; in get_msg_arg() 223 shm = get_msg_arg(ctx, arg->num_params + 2, &msg_arg, &msg_parg); in optee_open_session() 247 rc = optee_to_msg_param(msg_arg->params + 2, arg->num_params, param); in optee_open_session() 272 if (optee_from_msg_param(param, arg->num_params, msg_arg->params + 2)) { in optee_open_session() 335 shm = get_msg_arg(ctx, arg->num_params, &msg_arg, &msg_parg); in optee_invoke_func() 343 rc = optee_to_msg_param(msg_arg->params, arg->num_params, param); in optee_invoke_func() 352 if (optee_from_msg_param(param, arg->num_params, msg_arg->params)) { in optee_invoke_func()
|
D | optee_msg.h | 201 u32 num_params; member 215 #define OPTEE_MSG_GET_ARG_SIZE(num_params) \ argument 217 sizeof(struct optee_msg_param) * (num_params))
|
D | device.c | 35 inv_arg.num_params = 4; in get_devices() 124 sess_arg.num_params = 0; in __optee_enumerate_devices()
|
D | core.c | 38 int optee_from_msg_param(struct tee_param *params, size_t num_params, in optee_from_msg_param() argument 46 for (n = 0; n < num_params; n++) { in optee_from_msg_param() 157 int optee_to_msg_param(struct optee_msg_param *msg_params, size_t num_params, in optee_to_msg_param() argument 163 for (n = 0; n < num_params; n++) { in optee_to_msg_param()
|
/drivers/tee/ |
D | tee_core.c | 363 size_t num_params, in params_from_user() argument 368 for (n = 0; n < num_params; n++) { in params_from_user() 442 size_t num_params, struct tee_param *params) in params_to_user() argument 446 for (n = 0; n < num_params; n++) { in params_to_user() 495 if (sizeof(arg) + TEE_IOCTL_PARAM_SIZE(arg.num_params) != buf.buf_len) in tee_ioctl_open_session() 498 if (arg.num_params) { in tee_ioctl_open_session() 499 params = kcalloc(arg.num_params, sizeof(struct tee_param), in tee_ioctl_open_session() 504 rc = params_from_user(ctx, params, arg.num_params, uparams); in tee_ioctl_open_session() 527 rc = params_to_user(uparams, arg.num_params, params); in tee_ioctl_open_session() 538 for (n = 0; n < arg.num_params; n++) in tee_ioctl_open_session() [all …]
|
/drivers/tee/amdtee/ |
D | call.c | 246 if (!arg || (!p && arg->num_params)) in handle_invoke_cmd() 256 ret = tee_params_to_amd_params(p, arg->num_params, &cmd.op); in handle_invoke_cmd() 272 ret = amd_params_to_tee_params(p, arg->num_params, &cmd.op); in handle_invoke_cmd() 357 if (!arg || !info || (!p && arg->num_params)) in handle_open_session() 367 ret = tee_params_to_amd_params(p, arg->num_params, &cmd.op); in handle_open_session() 382 ret = amd_params_to_tee_params(p, arg->num_params, &cmd.op); in handle_open_session()
|
/drivers/char/hw_random/ |
D | optee-rng.c | 88 inv_arg.num_params = 4; in get_optee_rng_data() 188 inv_arg.num_params = 4; in get_optee_rng_info() 231 sess_arg.num_params = 0; in optee_rng_probe()
|
/drivers/firmware/broadcom/ |
D | tee_bnxt_fw.c | 75 arg->num_params = MAX_TEE_PARAM_ARRY_MEMB; in prepare_args() 202 sess_arg.num_params = 0; in tee_bnxt_fw_probe()
|
/drivers/char/tpm/ |
D | tpm_ftpm_tee.c | 99 .num_params = 4, in ftpm_tee_tpm_op_send() 245 sess_arg.num_params = 0; in ftpm_tee_probe()
|
/drivers/net/wireless/ti/wl1251/ |
D | event.h | 64 u8 num_params; member
|
/drivers/pinctrl/ |
D | pinctrl-lantiq.h | 92 unsigned int num_params; member
|
D | pinctrl-lantiq.c | 102 for (i = 0; i < info->num_params; i++) { in ltq_pinctrl_dt_subnode_to_map()
|
D | pinctrl-falcon.c | 401 .num_params = ARRAY_SIZE(falcon_cfg_params),
|
D | pinctrl-xway.c | 1529 .num_params = ARRAY_SIZE(xway_cfg_params),
|
/drivers/gpu/drm/ |
D | drm_mipi_dsi.c | 661 size_t num_params, void *data, size_t size) in mipi_dsi_generic_read() argument 665 .tx_len = num_params, in mipi_dsi_generic_read() 671 switch (num_params) { in mipi_dsi_generic_read()
|
/drivers/nfc/nfcmrvl/ |
D | fw_dnld.c | 168 cmd.num_params = 1; in process_state_init() 197 cmd.num_params = 1; in process_state_set_ref_clock()
|
/drivers/net/ethernet/qlogic/qed/ |
D | qed_debug.c | 1216 bool dump, const char *name, u32 num_params) in qed_dump_section_hdr() argument 1218 return qed_dump_num_param(dump_buf, dump, name, num_params); in qed_dump_section_hdr() 1232 u8 num_params; in qed_dump_common_global_params() local 1235 num_params = NUM_COMMON_GLOBAL_PARAMS + num_specific_global_params + in qed_dump_common_global_params() 1238 dump, "global_params", num_params); in qed_dump_common_global_params() 1754 u8 num_params = 2 + in qed_grc_dump_regs_hdr() local 1759 dump, "grc_regs", num_params); in qed_grc_dump_regs_hdr() 2407 u8 num_params = 3; in qed_grc_dump_mem_hdr() local 2416 num_params++; in qed_grc_dump_mem_hdr() 2418 num_params++; in qed_grc_dump_mem_hdr() [all …]
|