Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 105) sorted by relevance

12345

/trusted-firmware-a/lib/libfdt/
A Dfdt_empty_tree.c15 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 Dfdt_rw.c74 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 …]
A Dfdt_sw.c27 int err; \
29 return err; \
41 if (err) in fdt_sw_probe_memrsv_()
42 return err; in fdt_sw_probe_memrsv_()
51 int err; \
53 return err; \
67 if (err) in fdt_sw_probe_struct_()
68 return err; in fdt_sw_probe_struct_()
78 int err; \
212 if (err) in fdt_finish_reservemap()
[all …]
/trusted-firmware-a/plat/arm/common/
A Darm_dyn_cfg_helpers.c90 if (err < 0) { in arm_set_dtb_mbedtls_heap_info()
150 return err; in arm_set_event_log_info()
170 return err; in arm_set_event_log_info()
179 return err; in arm_set_event_log_info()
195 return err; in arm_set_event_log_info()
212 int err; in arm_set_tos_fw_info() local
233 return err; in arm_set_tos_fw_info()
255 int err; in arm_set_nt_fw_info() local
283 return err; in arm_set_nt_fw_info()
304 int err; in arm_set_tb_fw_info() local
[all …]
A Darm_bl1_setup.c155 int err = -1; in arm_bl1_platform_setup() local
172 err = fconf_load_config(FW_CONFIG_ID); in arm_bl1_platform_setup()
173 if (err < 0) { in arm_bl1_platform_setup()
174 ERROR("Loading of FW_CONFIG failed %d\n", err); in arm_bl1_platform_setup()
175 plat_error_handler(err); in arm_bl1_platform_setup()
185 if (err < 0) { in arm_bl1_platform_setup()
187 plat_error_handler(err); in arm_bl1_platform_setup()
190 err = fconf_load_config(TB_FW_CONFIG_ID); in arm_bl1_platform_setup()
191 if (err < 0) { in arm_bl1_platform_setup()
193 plat_error_handler(err); in arm_bl1_platform_setup()
[all …]
/trusted-firmware-a/plat/arm/board/arm_fpga/
A Dfpga_bl31_setup.c163 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 …]
/trusted-firmware-a/plat/imx/imx8qm/
A Dimx8qm_bl31_setup.c195 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 …]
/trusted-firmware-a/plat/arm/board/fvp/fconf/
A Dfconf_hw_config_getter.c26 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 …]
A Dfconf_nt_config_getter.c19 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()
/trusted-firmware-a/plat/arm/common/fconf/
A Dfconf_sdei_getter.c26 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 Dfconf_sec_intr_config.c31 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 …]
/trusted-firmware-a/plat/imx/imx8qx/
A Dimx8qx_bl31_setup.c196 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 …]
/trusted-firmware-a/bl2/
A Dbl2_image_load_v2.c32 int err; in bl2_load_images() local
61 err = bl2_plat_handle_pre_image_load(bl2_node_info->image_id); in bl2_load_images()
62 if (err != 0) { in bl2_load_images()
63 ERROR("BL2: Failure in pre image load handling (%i)\n", err); in bl2_load_images()
64 plat_error_handler(err); in bl2_load_images()
70 err = load_auth_image(bl2_node_info->image_id, in bl2_load_images()
72 if (err != 0) { in bl2_load_images()
74 bl2_node_info->image_id, err); in bl2_load_images()
75 plat_error_handler(err); in bl2_load_images()
83 if (err != 0) { in bl2_load_images()
[all …]
/trusted-firmware-a/lib/fconf/
A Dfconf_tbbr_getter.c18 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()
/trusted-firmware-a/common/
A Duuid.c75 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 …]
A Dfdt_fixup.c249 int err; in fdt_add_cpu() local
266 if (err < 0) { in fdt_add_cpu()
269 return err; in fdt_add_cpu()
273 if (err < 0) { in fdt_add_cpu()
276 return err; in fdt_add_cpu()
280 if (err < 0) { in fdt_add_cpu()
283 return err; in fdt_add_cpu()
290 return err; in fdt_add_cpu()
337 int err; in fdt_add_cpus_node() local
356 return err; in fdt_add_cpus_node()
[all …]
/trusted-firmware-a/drivers/nxp/sd/
A Dsd_mmc.c761 int err; in sd_switch_to_high_freq() local
774 return err; in sd_switch_to_high_freq()
779 return err; in sd_switch_to_high_freq()
786 return err; in sd_switch_to_high_freq()
790 return err; in sd_switch_to_high_freq()
845 return err; in sd_switch_to_high_freq()
928 int err; in get_cid_rca_csd() local
1254 int err; in esdhc_read_block() local
1284 return err; in esdhc_read_block()
1300 int err; in esdhc_write_block() local
[all …]
/trusted-firmware-a/drivers/renesas/common/iic_dvfs/
A Diic_dvfs.c148 (*err)++; in IIC_DVFS_FUNC()
149 if (*err > DVFS_RETRY_MAX) { in IIC_DVFS_FUNC()
177 (*err)++; in IIC_DVFS_FUNC()
179 if (*err > DVFS_RETRY_MAX) { in IIC_DVFS_FUNC()
517 uint32_t err = 0U; in RCAR_DVFS_API() local
527 result = dvfs_set_slave(&state, &err, slave); in RCAR_DVFS_API()
536 result = dvfs_stop(&state, &err); in RCAR_DVFS_API()
557 uint32_t err = 0U; in RCAR_DVFS_API() local
567 result = dvfs_set_slave(&state, &err, slave); in RCAR_DVFS_API()
573 result = dvfs_retransmit(&state, &err); in RCAR_DVFS_API()
[all …]
/trusted-firmware-a/plat/arm/board/fvp_r/
A Dfvp_r_bl1_main.c62 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 …]
/trusted-firmware-a/plat/qemu/common/
A Dqemu_spm.c87 int err; in dt_add_ns_buf_node() local
90 err = fdt_open_into(fdt, fdt, PLAT_QEMU_DT_MAX_SIZE); in dt_add_ns_buf_node()
91 if (err < 0) { in dt_add_ns_buf_node()
92 ERROR("Invalid Device Tree at %p: error %d\n", fdt, err); in dt_add_ns_buf_node()
93 return err; in dt_add_ns_buf_node()
102 err = fdt_get_reg_props_by_index(fdt, node, 0, &addr, &size); in dt_add_ns_buf_node()
103 if (err < 0) { in dt_add_ns_buf_node()
105 return err; in dt_add_ns_buf_node()
113 err = fdt_add_reserved_memory(fdt, "ns-buf-spm-mm", ns_buf_addr, in dt_add_ns_buf_node()
115 if (err < 0) { in dt_add_ns_buf_node()
[all …]
/trusted-firmware-a/plat/arm/css/sgi/
A Dsgi_image_load.c28 int nodeoffset, err; in plat_sgi_append_config_node() local
52 err = fdt_setprop_u32(fdt, nodeoffset, "platform-id", platid); in plat_sgi_append_config_node()
53 if (err < 0) { in plat_sgi_append_config_node()
59 err = fdt_setprop_u32(fdt, nodeoffset, "config-id", platcfg); in plat_sgi_append_config_node()
60 if (err < 0) { in plat_sgi_append_config_node()
66 err = fdt_setprop_u32(fdt, nodeoffset, "multi-chip-mode", platcfg); in plat_sgi_append_config_node()
67 if (err < 0) { in plat_sgi_append_config_node()
/trusted-firmware-a/bl1/
A Dbl1_main.c171 int err; in bl1_load_bl2() local
181 err = bl1_plat_handle_pre_image_load(BL2_IMAGE_ID); in bl1_load_bl2()
182 if (err != 0) { in bl1_load_bl2()
183 ERROR("Failure in pre image load handling of BL2 (%d)\n", err); in bl1_load_bl2()
184 plat_error_handler(err); in bl1_load_bl2()
187 err = load_auth_image(BL2_IMAGE_ID, info); in bl1_load_bl2()
188 if (err != 0) { in bl1_load_bl2()
190 plat_error_handler(err); in bl1_load_bl2()
194 err = bl1_plat_handle_post_image_load(BL2_IMAGE_ID); in bl1_load_bl2()
195 if (err != 0) { in bl1_load_bl2()
[all …]
/trusted-firmware-a/drivers/console/
A Dmulti_console.c89 int err = ERROR_NO_VALID_CONSOLE; in console_putc() local
95 if ((err == ERROR_NO_VALID_CONSOLE) || (ret < err)) in console_putc()
96 err = ret; in console_putc()
99 return err; in console_putc()
104 int err = ERROR_NO_VALID_CONSOLE; in console_getc() local
114 if (err != ERROR_NO_PENDING_CHAR) in console_getc()
115 err = ret; in console_getc()
117 } while (err == ERROR_NO_PENDING_CHAR); in console_getc()
119 return err; in console_getc()
/trusted-firmware-a/plat/nvidia/tegra/common/
A Dtegra_sip_calls.c42 int32_t err; in tegra_sip_handler() local
45 err = plat_sip_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); in tegra_sip_handler()
46 if (err == 0) { in tegra_sip_handler()
48 SMC_RET1(handle, (uint64_t)err); in tegra_sip_handler()
66 err = bl31_check_ns_address(x1, local_x2_32); in tegra_sip_handler()
67 if (err != 0) { in tegra_sip_handler()
68 SMC_RET1(handle, (uint64_t)err); in tegra_sip_handler()
/trusted-firmware-a/drivers/brcm/
A Dchimp.c174 int err; in bcm_chimp_reset_and_initial_setup() local
177 err = bcm_chimp_nitro_reset(); in bcm_chimp_reset_and_initial_setup()
178 if (err) in bcm_chimp_reset_and_initial_setup()
179 return err; in bcm_chimp_reset_and_initial_setup()
327 int err; in bcm_chimp_initiate_fastboot() local
339 if (err) in bcm_chimp_initiate_fastboot()
340 return err; in bcm_chimp_initiate_fastboot()
375 if (!err) { in bcm_chimp_initiate_fastboot()
381 err); in bcm_chimp_initiate_fastboot()
388 if (!err) { in bcm_chimp_initiate_fastboot()
[all …]

Completed in 51 milliseconds

12345