/openbmc/linux/drivers/tee/optee/ |
H A D | supp.c | 16 size_t num_params; member 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() 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() 284 *num_params = req->num_params + num_meta; in optee_supp_recv() 292 size_t num_params, in supp_pop_req() argument 302 if (!num_params) in supp_pop_req() [all …]
|
H A D | rpc.c | 19 if (arg->num_params != 1) in handle_rpc_func_cmd_get_time() 52 if (arg->num_params != ARRAY_SIZE(attr)) { in handle_rpc_func_cmd_i2c_transfer() 57 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_func_cmd_i2c_transfer() 64 if (optee->ops->from_msg_param(optee, params, arg->num_params, in handle_rpc_func_cmd_i2c_transfer() 68 for (i = 0; i < arg->num_params; i++) { in handle_rpc_func_cmd_i2c_transfer() 109 arg->num_params, params)) in handle_rpc_func_cmd_i2c_transfer() 133 if (arg->num_params != 1) in handle_rpc_func_cmd_wq() 163 if (arg->num_params != 1) in handle_rpc_func_cmd_wait() 188 params = kmalloc_array(arg->num_params, sizeof(struct tee_param), in handle_rpc_supp_cmd() 195 if (optee->ops->from_msg_param(optee, params, arg->num_params, in handle_rpc_supp_cmd() [all …]
|
H A D | call.c | 182 size_t num_params, in optee_get_msg_arg() argument 196 if (num_params > MAX_ARG_PARAM_COUNT) in optee_get_msg_arg() 241 ma->num_params = num_params; in optee_get_msg_arg() 295 msg_arg = optee_get_msg_arg(ctx, arg->num_params + 2, in optee_open_session() 321 arg->num_params, param); in optee_open_session() 346 if (optee->ops->from_msg_param(optee, param, arg->num_params, in optee_open_session() 421 msg_arg = optee_get_msg_arg(ctx, arg->num_params, in optee_invoke_func() 430 rc = optee->ops->to_msg_param(optee, msg_arg->params, arg->num_params, in optee_invoke_func() 440 if (optee->ops->from_msg_param(optee, param, arg->num_params, in optee_invoke_func()
|
H A D | optee_private.h | 160 size_t num_params, const struct tee_param *params); 162 size_t num_params, 238 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, 245 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params, 247 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params, 312 size_t num_params,
|
H A D | optee_msg.h | 216 u32 num_params; member 230 #define OPTEE_MSG_GET_ARG_SIZE(num_params) \ argument 232 sizeof(struct optee_msg_param) * (num_params))
|
H A D | ffa_abi.c | 156 struct tee_param *params, size_t num_params, in optee_ffa_from_msg_param() argument 161 for (n = 0; n < num_params; n++) { in optee_ffa_from_msg_param() 229 size_t num_params, in optee_ffa_to_msg_param() argument 234 for (n = 0; n < num_params; n++) { in optee_ffa_to_msg_param() 432 if (arg->num_params != 1 || in handle_ffa_rpc_func_cmd_shm_alloc() 472 if (arg->num_params != 1 || in handle_ffa_rpc_func_cmd_shm_free() 640 rpc_arg_offs = OPTEE_MSG_GET_ARG_SIZE(arg->num_params); in optee_ffa_do_call_with_arg()
|
H A D | device.c | 35 inv_arg.num_params = 4; in get_devices() 125 sess_arg.num_params = 0; in __optee_enumerate_devices()
|
H A D | smc_abi.c | 138 size_t num_params, in optee_from_msg_param() argument 144 for (n = 0; n < num_params; n++) { in optee_from_msg_param() 229 size_t num_params, const struct tee_param *params) in optee_to_msg_param() argument 234 for (n = 0; n < num_params; n++) { in optee_to_msg_param() 497 msg_arg->num_params = 1; in optee_shm_register() 548 msg_arg->num_params = 1; in optee_shm_unregister() 656 if (arg->num_params != 1 || in handle_rpc_func_cmd_shm_free() 688 if (!arg->num_params || in handle_rpc_func_cmd_shm_alloc() 694 for (n = 1; n < arg->num_params; n++) { in handle_rpc_func_cmd_shm_alloc() 905 rpc_arg_offs = OPTEE_MSG_GET_ARG_SIZE(arg->num_params); in optee_smc_do_call_with_arg()
|
/openbmc/u-boot/drivers/tee/ |
H A D | sandbox.c | 34 if (n >= num_params) in get_attr() 47 if (p[n] != get_attr(n, num_params, params)) in check_params() 50 for (; n < num_params; n++) in check_params() 51 if (get_attr(n, num_params, params)) in check_params() 73 num_params, params); in ta_avb_open_session() 89 num_params, params); in ta_avb_invoke_func() 109 num_params, params); in ta_avb_invoke_func() 131 num_params, params); in ta_avb_invoke_func() 143 num_params, params); in ta_avb_invoke_func() 228 arg->ret = ta->open_session(num_params, params); in sandbox_tee_open_session() [all …]
|
/openbmc/linux/drivers/tee/ |
H A D | tee_core.c | 357 size_t num_params, in params_from_user() argument 362 for (n = 0; n < num_params; n++) { in params_from_user() 440 for (n = 0; n < num_params; n++) { in params_to_user() 493 if (arg.num_params) { in tee_ioctl_open_session() 571 if (arg.num_params) { in tee_ioctl_invoke() 640 for (n = 0; n < num_params; n++) { in params_to_supp() 685 u32 num_params; in tee_ioctl_supp_recv() local 699 if (get_user(num_params, &uarg->num_params)) in tee_ioctl_supp_recv() 718 put_user(num_params, &uarg->num_params)) { in tee_ioctl_supp_recv() 782 u32 num_params; in tee_ioctl_supp_send() local [all …]
|
/openbmc/u-boot/drivers/tee/optee/ |
H A D | core.c | 140 static int get_msg_arg(struct udevice *dev, uint num_params, in get_msg_arg() argument 147 OPTEE_MSG_GET_ARG_SIZE(num_params), TEE_SHM_ALLOC, in get_msg_arg() 153 memset(ma, 0, OPTEE_MSG_GET_ARG_SIZE(num_params)); in get_msg_arg() 154 ma->num_params = num_params; in get_msg_arg() 165 for (n = 0; n < num_params; n++) { in to_msg_param() 205 for (n = 0; n < num_params; n++) { in from_msg_param() 351 uint num_params, struct tee_param *params) in optee_open_session() argument 357 rc = get_msg_arg(dev, num_params + 2, &shm, &msg_arg); in optee_open_session() 402 uint num_params, struct tee_param *params) in optee_invoke_func() argument 408 rc = get_msg_arg(dev, num_params, &shm, &msg_arg); in optee_invoke_func() [all …]
|
H A D | optee_msg.h | 202 u32 num_params; member 216 #define OPTEE_MSG_GET_ARG_SIZE(num_params) \ argument 218 sizeof(struct optee_msg_param) * (num_params))
|
H A D | supplicant.c | 26 if (arg->num_params != 1 || in cmd_shm_alloc() 62 if (arg->num_params != 1 || in cmd_shm_free()
|
/openbmc/linux/include/uapi/linux/ |
H A D | tee.h | 241 __u32 num_params; member 272 __u32 num_params; member 327 __u32 num_params; member 348 __u32 num_params; member
|
/openbmc/u-boot/board/xes/xpedite550x/ |
H A D | ddr.c | 73 u32 num_params = sizeof(board_specific_parameters[ctrl_num]) / in fsl_ddr_board_options() local 105 for (i = 0; i < num_params; i++) { in fsl_ddr_board_options() 116 if (i == num_params) { in fsl_ddr_board_options()
|
/openbmc/u-boot/arch/arm/mach-omap2/omap3/ |
H A D | board.c | 350 u32 i, num_params = *parameters; in omap3_emu_romcode_call() local 357 for (i = 0; i < num_params; i++) { in omap3_emu_romcode_call() 371 emu_romcode_params.num_params = 1; in omap3_set_aux_cr_secure() 421 emu_romcode_params.num_params = 1; in omap3_invalidate_l2_cache_secure()
|
/openbmc/linux/sound/soc/sof/ |
H A D | sof-client-probes-ipc3.c | 103 void **params, size_t *num_params) in ipc3_probes_info() argument 112 *num_params = 0; in ipc3_probes_info() 137 *num_params = reply->num_elems; in ipc3_probes_info()
|
/openbmc/linux/security/keys/trusted-keys/ |
H A D | trusted_tee.c | 82 inv_arg.num_params = 4; in trusted_tee_seal() 129 inv_arg.num_params = 4; in trusted_tee_unseal() 175 inv_arg.num_params = 4; in trusted_tee_get_random() 220 sess_arg.num_params = 0; in trusted_key_probe()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-optee.c | 65 inv_arg.num_params = 4; in optee_rtc_readtime() 114 inv_arg.num_params = 4; in optee_rtc_settime() 145 inv_arg.num_params = 4; in optee_rtc_readoffset() 170 inv_arg.num_params = 4; in optee_rtc_setoffset() 201 inv_arg.num_params = 4; in optee_rtc_read_info()
|
/openbmc/linux/drivers/tee/amdtee/ |
H A 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()
|
/openbmc/linux/tools/testing/selftests/powerpc/include/ |
H A D | basic_asm.h | 74 #define STACK_FRAME_LOCAL(num_params, var) \ argument 75 __STACK_FRAME_LOCAL(num_params, var)
|
/openbmc/linux/drivers/char/hw_random/ |
H A 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()
|
/openbmc/linux/drivers/nvmem/ |
H A D | stm32-bsec-optee-ta.c | 79 sess_arg.num_params = 0; in stm32_bsec_ta_open_session() 159 arg.num_params = 2; in stm32_bsec_optee_ta_read() 227 arg.num_params = 2; in stm32_bsec_optee_ta_write()
|
/openbmc/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_ioctl.c | 568 uint32_t num_params, i, param, value; in virtio_gpu_context_init_ioctl() local 576 num_params = args->num_params; in virtio_gpu_context_init_ioctl() 577 len = num_params * sizeof(struct drm_virtgpu_context_set_param); in virtio_gpu_context_init_ioctl() 583 if (num_params > 3) in virtio_gpu_context_init_ioctl() 598 for (i = 0; i < num_params; i++) { in virtio_gpu_context_init_ioctl()
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | optee.c | 196 arg.num_params = 1; in get_capabilities() 236 arg.num_params = 1; in get_channel() 261 .num_params = 1, in invoke_process_smt_channel() 284 .num_params = 3, in invoke_process_msg_channel()
|