/arm-trusted-firmware-2.8.0/plat/qemu/qemu/ |
A D | qemu_helpers.c | 55 return err; in qemu_set_tee_fw_info() 61 return err; in qemu_set_tee_fw_info() 64 return err; in qemu_set_tee_fw_info() 93 return err; in qemu_set_event_log_info() 105 return err; in qemu_set_event_log_info() 122 return err; in qemu_set_event_log_info() 128 return err; in qemu_set_event_log_info() 151 return err; in qemu_set_event_log_info() 179 return err; in qemu_set_tos_fw_info() 199 int err; in qemu_set_nt_fw_info() local [all …]
|
/arm-trusted-firmware-2.8.0/drivers/arm/mhu/ |
A D | mhu_wrapper_v2_x.c | 28 switch (err) { in error_mapping_to_mhu_error_t() 48 enum mhu_v2_x_error_t err; in signal_and_wait_for_clear() local 56 return err; in signal_and_wait_for_clear() 66 return err; in signal_and_wait_for_clear() 71 enum mhu_v2_x_error_t err; in wait_for_signal() local 84 return err; in wait_for_signal() 89 enum mhu_v2_x_error_t err; in clear_and_wait_for_next_signal() local 98 return err; in clear_and_wait_for_next_signal() 107 enum mhu_v2_x_error_t err; in mhu_init_sender() local 119 enum mhu_v2_x_error_t err; in mhu_init_receiver() local [all …]
|
/arm-trusted-firmware-2.8.0/lib/libfdt/ |
A D | fdt_empty_tree.c | 15 int err; in fdt_create_empty_tree() local 18 if (err) in fdt_create_empty_tree() 19 return err; in fdt_create_empty_tree() 22 if (err) in fdt_create_empty_tree() 23 return err; in fdt_create_empty_tree() 26 if (err) in fdt_create_empty_tree() 27 return err; in fdt_create_empty_tree() 30 if (err) in fdt_create_empty_tree() 31 return err; in fdt_create_empty_tree() 34 if (err) in fdt_create_empty_tree() [all …]
|
A D | fdt_rw.c | 74 int err; in fdt_splice_mem_rsv_() local 76 if (err) in fdt_splice_mem_rsv_() 87 int err; in fdt_splice_struct_() local 109 int err; in fdt_splice_string_() local 133 int err; in fdt_find_add_string_() local 145 if (err) in fdt_find_add_string_() 158 int err; in fdt_add_mem_rsv() local 164 if (err) in fdt_add_mem_rsv() 188 int err; in fdt_resize_property_() local 208 int err; in fdt_add_property_() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/imx8m/ |
A D | imx8m_dyn_cfg_helpers.c | 113 int err, node; in imx8m_set_event_log_info() local 116 if (err < 0) { in imx8m_set_event_log_info() 118 return err; in imx8m_set_event_log_info() 128 if (err < 0) { in imx8m_set_event_log_info() 130 return err; in imx8m_set_event_log_info() 146 return err; in imx8m_set_event_log_info() 152 return err; in imx8m_set_event_log_info() 158 return err; in imx8m_set_event_log_info() 167 return err; in imx8m_set_event_log_info() 183 int err; in imx8m_set_nt_fw_info() local [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/common/ |
A D | arm_dyn_cfg_helpers.c | 91 if (err < 0) { in arm_set_dtb_mbedtls_heap_info() 151 return err; in arm_set_event_log_info() 171 return err; in arm_set_event_log_info() 180 return err; in arm_set_event_log_info() 196 return err; in arm_set_event_log_info() 213 int err; in arm_set_tos_fw_info() local 234 return err; in arm_set_tos_fw_info() 256 int err; in arm_set_nt_fw_info() local 284 return err; in arm_set_nt_fw_info() 305 int err; in arm_set_tb_fw_info() local [all …]
|
A D | arm_bl1_setup.c | 156 int err = -1; in arm_bl1_platform_setup() local 173 err = fconf_load_config(FW_CONFIG_ID); in arm_bl1_platform_setup() 174 if (err < 0) { in arm_bl1_platform_setup() 175 ERROR("Loading of FW_CONFIG failed %d\n", err); in arm_bl1_platform_setup() 176 plat_error_handler(err); in arm_bl1_platform_setup() 186 if (err < 0) { in arm_bl1_platform_setup() 188 plat_error_handler(err); in arm_bl1_platform_setup() 191 err = fconf_load_config(TB_FW_CONFIG_ID); in arm_bl1_platform_setup() 192 if (err < 0) { in arm_bl1_platform_setup() 194 plat_error_handler(err); in arm_bl1_platform_setup() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/common/fconf/ |
A D | fconf_ethosn_getter.c | 45 int err; in fdt_node_get_iommus_stream_id() local 49 if (err) { in fdt_node_get_iommus_stream_id() 50 return err; in fdt_node_get_iommus_stream_id() 88 if (err) { in fdt_node_populate_sub_allocators() 113 return err; in fdt_node_populate_sub_allocators() 128 int err; in fdt_node_populate_main_allocator() local 136 if (err) { in fdt_node_populate_main_allocator() 150 int err; in fdt_node_populate_asset_allocator() local 160 if (err) { in fdt_node_populate_asset_allocator() 179 int err; in fdt_node_populate_core() local [all …]
|
A D | fconf_sdei_getter.c | 26 int node, err; in fconf_populate_sdei_dyn_config() local 40 err = fdt_read_uint32(dtb, node, "private_event_count", in fconf_populate_sdei_dyn_config() 42 if (err < 0) { in fconf_populate_sdei_dyn_config() 45 return err; in fconf_populate_sdei_dyn_config() 58 if (err < 0) { in fconf_populate_sdei_dyn_config() 60 return err; in fconf_populate_sdei_dyn_config() 71 err = fdt_read_uint32(dtb, node, "shared_event_count", in fconf_populate_sdei_dyn_config() 73 if (err < 0) { in fconf_populate_sdei_dyn_config() 75 return err; in fconf_populate_sdei_dyn_config() 88 if (err < 0) { in fconf_populate_sdei_dyn_config() [all …]
|
A D | fconf_sec_intr_config.c | 31 int node, err; in fconf_populate_sec_intr_config() local 49 if (err < 0) { in fconf_populate_sec_intr_config() 51 return err; in fconf_populate_sec_intr_config() 61 err = fdt_read_uint32(hw_config_dtb, node, "g1s_intr_cnt", in fconf_populate_sec_intr_config() 63 if (err < 0) { in fconf_populate_sec_intr_config() 65 return err; in fconf_populate_sec_intr_config() 87 err = fdt_read_uint32_array(hw_config_dtb, node, "g0_intr_desc", in fconf_populate_sec_intr_config() 89 if (err < 0) { in fconf_populate_sec_intr_config() 91 return err; in fconf_populate_sec_intr_config() 97 if (err < 0) { in fconf_populate_sec_intr_config() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/board/arm_fpga/ |
A D | fpga_bl31_setup.c | 163 int node, err; in fpga_get_system_frequency() local 221 int node, err; in fpga_dtb_update_clock() local 231 if (err != 0) { in fpga_dtb_update_clock() 248 if (err < 0) { in fpga_dtb_update_clock() 262 int slen, err; in fpga_dtb_set_commandline() local 299 if (err != 0) { in fpga_dtb_set_commandline() 300 return err; in fpga_dtb_set_commandline() 310 int err; in fpga_prepare_dtb() local 313 if (err < 0) { in fpga_prepare_dtb() 335 if (err < 0) { in fpga_prepare_dtb() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/board/fvp/fconf/ |
A D | fconf_nt_config_getter.c | 19 int err; in fconf_populate_event_log_config() local 40 err = fdtw_read_cells(dtb, node, "tpm_event_log_sm_addr", 2, in fconf_populate_event_log_config() 42 if (err < 0) { in fconf_populate_event_log_config() 44 return err; in fconf_populate_event_log_config() 47 err = fdtw_read_cells(dtb, node, in fconf_populate_event_log_config() 49 if (err < 0) { in fconf_populate_event_log_config() 51 return err; in fconf_populate_event_log_config() 54 err = fdtw_read_cells(dtb, node, in fconf_populate_event_log_config() 56 if (err < 0) { in fconf_populate_event_log_config() 60 return err; in fconf_populate_event_log_config()
|
A D | fconf_hw_config_getter.c | 26 int err; in fconf_populate_gicv3_config() local 48 if (err < 0) { in fconf_populate_gicv3_config() 50 return err; in fconf_populate_gicv3_config() 55 if (err < 0) { in fconf_populate_gicv3_config() 61 return err; in fconf_populate_gicv3_config() 81 if (err < 0) { in fconf_populate_topology() 215 if (err < 0) { in fconf_populate_uart_config() 218 return err; in fconf_populate_uart_config() 243 if (err < 0) { in fconf_populate_uart_config() 245 return err; in fconf_populate_uart_config() [all …]
|
/arm-trusted-firmware-2.8.0/services/std_svc/rmmd/ |
A D | rmmd_attest.c | 90 int err; in rmmd_attest_get_platform_token() local 94 if (err != 0) { in rmmd_attest_get_platform_token() 95 return err; in rmmd_attest_get_platform_token() 115 if (err != 0) { in rmmd_attest_get_platform_token() 117 err = E_RMM_UNK; in rmmd_attest_get_platform_token() 122 return err; in rmmd_attest_get_platform_token() 128 int err; in rmmd_attest_get_signing_key() local 131 if (err != 0) { in rmmd_attest_get_signing_key() 132 return err; in rmmd_attest_get_signing_key() 145 if (err != 0) { in rmmd_attest_get_signing_key() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/board/fvp/ |
A D | fvp_common_measured_boot.c | 31 int err; in plat_mboot_measure_image() local 35 err = event_log_measure_and_record(image_data->image_base, in plat_mboot_measure_image() 38 if (err != 0) { in plat_mboot_measure_image() 40 "Failed to ", "record in event log", image_id, err); in plat_mboot_measure_image() 41 rc = err; in plat_mboot_measure_image() 45 err = rss_mboot_measure_and_record(image_data->image_base, in plat_mboot_measure_image() 48 if (err != 0) { in plat_mboot_measure_image() 50 "Failed to ", "record in RSS", image_id, err); in plat_mboot_measure_image() 51 rc = (rc == 0) ? err : -1; in plat_mboot_measure_image()
|
/arm-trusted-firmware-2.8.0/plat/imx/imx8qm/ |
A D | imx8qm_bl31_setup.c | 195 if (err) in mx8_partition_resources() 204 if (err) in mx8_partition_resources() 213 if (err) in mx8_partition_resources() 219 if (err) in mx8_partition_resources() 226 if (err) in mx8_partition_resources() 234 if (err) in mx8_partition_resources() 238 if (err) in mx8_partition_resources() 245 if (err) in mx8_partition_resources() 249 if (err) in mx8_partition_resources() 280 if (err) in mx8_partition_resources() [all …]
|
/arm-trusted-firmware-2.8.0/lib/fconf/ |
A D | fconf_tbbr_getter.c | 18 int err; in fconf_populate_tbbr_dyn_config() local 36 err = fdt_read_uint32(dtb, node, "disable_auth", in fconf_populate_tbbr_dyn_config() 38 if (err < 0) { in fconf_populate_tbbr_dyn_config() 41 return err; in fconf_populate_tbbr_dyn_config() 58 err = fdt_read_uint64(dtb, node, "mbedtls_heap_addr", &val64); in fconf_populate_tbbr_dyn_config() 59 if (err < 0) { in fconf_populate_tbbr_dyn_config() 62 return err; in fconf_populate_tbbr_dyn_config() 66 err = fdt_read_uint32(dtb, node, "mbedtls_heap_size", &val32); in fconf_populate_tbbr_dyn_config() 67 if (err < 0) { in fconf_populate_tbbr_dyn_config() 70 return err; in fconf_populate_tbbr_dyn_config()
|
/arm-trusted-firmware-2.8.0/bl2/ |
A D | bl2_image_load_v2.c | 31 int err; in bl2_load_images() local 60 err = bl2_plat_handle_pre_image_load(bl2_node_info->image_id); in bl2_load_images() 61 if (err != 0) { in bl2_load_images() 62 ERROR("BL2: Failure in pre image load handling (%i)\n", err); in bl2_load_images() 63 plat_error_handler(err); in bl2_load_images() 69 err = load_auth_image(bl2_node_info->image_id, in bl2_load_images() 71 if (err != 0) { in bl2_load_images() 73 bl2_node_info->image_id, err); in bl2_load_images() 74 plat_error_handler(err); in bl2_load_images() 82 if (err != 0) { in bl2_load_images() [all …]
|
/arm-trusted-firmware-2.8.0/plat/imx/imx8qx/ |
A D | imx8qx_bl31_setup.c | 196 if (err) in imx8_partition_resources() 201 if (err) in imx8_partition_resources() 205 if (err) in imx8_partition_resources() 212 if (err) in imx8_partition_resources() 219 if (err) in imx8_partition_resources() 226 if (err) in imx8_partition_resources() 240 if (err) in imx8_partition_resources() 257 if (err) in imx8_partition_resources() 261 if (err) in imx8_partition_resources() 265 if (err) in imx8_partition_resources() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/board/tc/ |
A D | tc_common_measured_boot.c | 23 int err; in plat_mboot_measure_image() local 26 err = rss_mboot_measure_and_record(image_data->image_base, in plat_mboot_measure_image() 29 if (err != 0) { in plat_mboot_measure_image() 31 "Failed to ", "record in RSS", image_id, err); in plat_mboot_measure_image() 34 return err; in plat_mboot_measure_image()
|
/arm-trusted-firmware-2.8.0/plat/nxp/common/img_loadr/ |
A D | load_img.c | 34 int err = 0; in load_img() local 52 err = mmap_add_dynamic_region(img_info.image_info.image_base, in load_img() 56 if (err != 0) { in load_img() 58 return err; in load_img() 64 err = load_auth_image(image_id, &img_info.image_info); in load_img() 65 if (err != 0) { in load_img() 67 return err; in load_img() 82 return err; in load_img()
|
/arm-trusted-firmware-2.8.0/common/ |
A D | uuid.c | 75 int err; in read_uuid() local 85 err = read_hex(dest, uuid, 8); in read_uuid() 90 err |= ((*uuid == '-') ? 0 : -1); in read_uuid() 94 err |= read_hex(dest, uuid, 4); in read_uuid() 99 err |= ((*uuid == '-') ? 0 : -1); in read_uuid() 103 err |= read_hex(dest, uuid, 4); in read_uuid() 108 err |= ((*uuid == '-') ? 0 : -1); in read_uuid() 112 err |= read_hex(dest, uuid, 4); in read_uuid() 117 err |= ((*uuid == '-') ? 0 : -1); in read_uuid() 121 err |= read_hex(dest, uuid, 12); in read_uuid() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/board/morello/ |
A D | morello_image_load.c | 71 int nodeoffset, err; in plat_morello_append_config_node() local 97 err = fdt_setprop_u64(fdt, nodeoffset, "remote-ddr-size", in plat_morello_append_config_node() 99 if (err < 0) { in plat_morello_append_config_node() 104 err = fdt_setprop_u32(fdt, nodeoffset, "remote-chip-count", in plat_morello_append_config_node() 106 if (err < 0) { in plat_morello_append_config_node() 111 err = fdt_setprop_u32(fdt, nodeoffset, "multichip-mode", in plat_morello_append_config_node() 113 if (err < 0) { in plat_morello_append_config_node() 118 err = fdt_setprop_u32(fdt, nodeoffset, "scc-config", in plat_morello_append_config_node() 120 if (err < 0) { in plat_morello_append_config_node() 129 err = fdt_setprop_u64(fdt, nodeoffset, "local-ddr-size", in plat_morello_append_config_node() [all …]
|
/arm-trusted-firmware-2.8.0/plat/arm/board/n1sdp/ |
A D | n1sdp_image_load.c | 48 int nodeoffset, err; in plat_n1sdp_append_config_node() local 70 err = fdt_setprop_u32(fdt, nodeoffset, "multichip-mode", in plat_n1sdp_append_config_node() 72 if (err < 0) { in plat_n1sdp_append_config_node() 77 err = fdt_setprop_u32(fdt, nodeoffset, "secondary-chip-count", in plat_n1sdp_append_config_node() 79 if (err < 0) { in plat_n1sdp_append_config_node() 84 err = fdt_setprop_u32(fdt, nodeoffset, "local-ddr-size", in plat_n1sdp_append_config_node() 86 if (err < 0) { in plat_n1sdp_append_config_node() 91 err = fdt_setprop_u32(fdt, nodeoffset, "remote-ddr-size", in plat_n1sdp_append_config_node() 93 if (err < 0) { in plat_n1sdp_append_config_node()
|
/arm-trusted-firmware-2.8.0/plat/arm/board/fvp_r/ |
A D | fvp_r_bl1_main.c | 62 int err; in bl1_load_bl33() local 72 err = bl1_plat_handle_pre_image_load(BL33_IMAGE_ID); in bl1_load_bl33() 73 if (err != 0) { in bl1_load_bl33() 74 ERROR("Failure in pre image load handling of BL33 (%d)\n", err); in bl1_load_bl33() 75 plat_error_handler(err); in bl1_load_bl33() 78 err = load_auth_image(BL33_IMAGE_ID, info); in bl1_load_bl33() 79 if (err != 0) { in bl1_load_bl33() 81 plat_error_handler(err); in bl1_load_bl33() 85 err = bl1_plat_handle_post_image_load(BL33_IMAGE_ID); in bl1_load_bl33() 86 if (err != 0) { in bl1_load_bl33() [all …]
|