Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 112) sorted by relevance

12345

/arm-trusted-firmware-2.8.0/plat/common/
A Dplat_spmd_manifest.c31 int rc; in manifest_parse_attribute() local
36 if (rc != 0) { in manifest_parse_attribute()
39 return rc; in manifest_parse_attribute()
43 if (rc != 0) { in manifest_parse_attribute()
46 return rc; in manifest_parse_attribute()
50 if (rc != 0) { in manifest_parse_attribute()
52 return rc; in manifest_parse_attribute()
58 if (rc != 0) { in manifest_parse_attribute()
156 return rc; in plat_spm_core_manifest_load()
181 rc = manifest_parse_root(manifest, pm_addr, rc); in plat_spm_core_manifest_load()
[all …]
/arm-trusted-firmware-2.8.0/plat/mediatek/common/lpm/
A Dmt_lp_rm.c27 for (i = 0U, rc = rm->consts; *rc != NULL; i++, rc++) { in mt_lp_rm_register()
28 if ((*rc)->init != NULL) { in mt_lp_rm_register()
29 (*rc)->init(); in mt_lp_rm_register()
48 rc = plat_mt_rm.plat_rm->consts[idx]; in mt_lp_rm_reset_constraint()
50 if ((rc == NULL) || (rc->reset == NULL)) { in mt_lp_rm_reset_constraint()
54 return rc->reset(cpuid, stateid); in mt_lp_rm_reset_constraint()
76 for (i = idx, rc = (rm->consts + idx); *rc != NULL; i++, rc++) { in mt_lp_rm_find_and_run_constraint()
77 if (((*rc)->is_valid != NULL) && in mt_lp_rm_find_and_run_constraint()
79 if (((*rc)->run != NULL) && in mt_lp_rm_find_and_run_constraint()
100 for (rc = rm->consts; *rc != NULL; rc++) { in mt_lp_rm_do_update()
[all …]
/arm-trusted-firmware-2.8.0/drivers/auth/mbedtls/
A Dmbedtls_crypto.c83 int rc; in verify_signature() local
93 if (rc != 0) { in verify_signature()
99 if (rc != 0) { in verify_signature()
108 if (rc != 0) { in verify_signature()
118 if (rc != 0) { in verify_signature()
132 if (rc != 0) { in verify_signature()
153 return rc; in verify_signature()
171 int rc; in verify_hash() local
343 return rc; in aes_gcm_decrypt()
355 int rc; in auth_decrypt() local
[all …]
/arm-trusted-firmware-2.8.0/services/std_svc/drtm/
A Ddrtm_measurements.c42 int rc; in drtm_event_log_measure_and_record() local
54 if (rc != 0) { in drtm_event_log_measure_and_record()
55 return rc; in drtm_event_log_measure_and_record()
82 int rc; in drtm_take_measurements() local
111 CHECK_RC(rc, in drtm_take_measurements()
151 CHECK_RC(rc, in drtm_take_measurements()
164 CHECK_RC(rc, in drtm_take_measurements()
172 if (rc) { in drtm_take_measurements()
174 __func__, rc); in drtm_take_measurements()
184 CHECK_RC(rc, mmap_remove_dynamic_region); in drtm_take_measurements()
[all …]
A Ddrtm_remediation.c19 int rc; in drtm_set_error() local
21 rc = plat_set_drtm_error(x1); in drtm_set_error()
23 if (rc != 0) { in drtm_set_error()
33 int rc; in drtm_get_error() local
35 rc = plat_get_drtm_error(&error_code); in drtm_get_error()
37 if (rc != 0) { in drtm_get_error()
46 int rc = plat_set_drtm_error(err_code); in drtm_enter_remediation() local
48 if (rc != 0) { in drtm_enter_remediation()
50 __func__, rc); in drtm_enter_remediation()
/arm-trusted-firmware-2.8.0/lib/fconf/
A Dfconf_cot_getter.c192 int rc; in get_oid() local
196 return rc; in get_oid()
207 return rc; in get_oid()
227 int rc; in populate_and_set_auth_methods() local
323 int rc; in set_desc_data() local
365 return rc; in set_desc_data()
378 int rc; in populate_manifest_descs() local
413 int rc; in populate_image_descs() local
449 int rc; in fconf_populate_cot_descs() local
478 rc); in fconf_populate_cot_descs()
[all …]
A Dfconf_dyn_cfg_getter.c78 int rc; in fconf_populate_dtb_registry() local
113 rc = fdt_read_uint64(dtb, child, "load-address", &val64); in fconf_populate_dtb_registry()
114 if (rc < 0) { in fconf_populate_dtb_registry()
116 return rc; in fconf_populate_dtb_registry()
121 if (rc < 0) { in fconf_populate_dtb_registry()
123 return rc; in fconf_populate_dtb_registry()
126 rc = fdt_read_uint32(dtb, child, "id", &config_id); in fconf_populate_dtb_registry()
127 if (rc < 0) { in fconf_populate_dtb_registry()
129 return rc; in fconf_populate_dtb_registry()
137 rc = fdt_read_uint64(dtb, child, "ns-load-address", &val64); in fconf_populate_dtb_registry()
[all …]
/arm-trusted-firmware-2.8.0/drivers/auth/
A Dauth_mod.c28 if (rc != 0) { \
29 return rc; \
102 int rc = 0; in auth_hash() local
108 return_if_error(rc); in auth_hash()
119 return rc; in auth_hash()
156 int rc = 0; in auth_signature() local
222 return rc; in auth_signature()
250 int rc = 0; in auth_nvctr() local
373 int rc, i; in auth_mod_verify_img() local
394 rc = 0; in auth_mod_verify_img()
[all …]
/arm-trusted-firmware-2.8.0/drivers/auth/cryptocell/713/
A Dcryptocell_crypto.c85 int rc, exp; in verify_signature() local
102 if (rc != 0) in verify_signature()
107 if (rc != 0) in verify_signature()
119 if (rc != 0) in verify_signature()
135 if (rc != 0) in verify_signature()
140 if (rc != 0) in verify_signature()
150 if (rc != 0) in verify_signature()
156 if (rc != 0) in verify_signature()
160 if (rc != 0) in verify_signature()
177 if (rc != 0) in verify_signature()
[all …]
/arm-trusted-firmware-2.8.0/drivers/auth/cryptocell/712/
A Dcryptocell_crypto.c98 int rc, exp; in verify_signature() local
113 if (rc != 0) in verify_signature()
118 if (rc != 0) in verify_signature()
130 if (rc != 0) in verify_signature()
145 if (rc != 0) in verify_signature()
150 if (rc != 0) in verify_signature()
160 if (rc != 0) in verify_signature()
165 if (rc != 0) in verify_signature()
169 if (rc != 0) in verify_signature()
187 if (rc != 0) in verify_signature()
[all …]
/arm-trusted-firmware-2.8.0/lib/psci/
A Dpsci_main.c29 int rc; in psci_cpu_on() local
40 return rc; in psci_cpu_on()
58 int rc; in psci_cpu_suspend() local
68 return rc; in psci_cpu_suspend()
156 int rc; in psci_system_suspend() local
200 int rc; in psci_cpu_off() local
216 return rc; in psci_cpu_off()
259 int rc; in psci_migrate() local
297 int rc; in psci_migrate_info_up_cpu() local
313 int rc; in psci_node_hw_state() local
[all …]
/arm-trusted-firmware-2.8.0/plat/arm/board/fvp/
A Dfvp_bl2_measured_boot.c88 int rc; in bl2_plat_mboot_init() local
91 if (rc != 0) { in bl2_plat_mboot_init()
149 if (rc != 0) { in fvp_populate_critical_data()
150 return rc; in fvp_populate_critical_data()
160 int rc = 0; in fvp_populate_and_measure_critical_data() local
170 if (rc == 0) { in fvp_populate_and_measure_critical_data()
177 return rc; in fvp_populate_and_measure_critical_data()
182 int rc; in bl2_plat_mboot_finish() local
191 if (rc != 0) { in bl2_plat_mboot_finish()
202 if (rc != 0) { in bl2_plat_mboot_finish()
[all …]
A Dfvp_common_measured_boot.c32 int rc = 0; in plat_mboot_measure_image() local
41 rc = err; in plat_mboot_measure_image()
51 rc = (rc == 0) ? err : -1; in plat_mboot_measure_image()
54 return rc; in plat_mboot_measure_image()
/arm-trusted-firmware-2.8.0/plat/arm/common/fconf/
A Dfconf_nv_cntr_getter.c25 int rc, node, child; in fconf_populate_nv_cntrs() local
42 rc = fdt_read_uint32(dtb, child, "id", &id); in fconf_populate_nv_cntrs()
43 if (rc < 0) { in fconf_populate_nv_cntrs()
45 return rc; in fconf_populate_nv_cntrs()
50 rc = fdt_get_reg_props_by_index(dtb, child, 0, &reg, NULL); in fconf_populate_nv_cntrs()
51 if (rc < 0) { in fconf_populate_nv_cntrs()
53 return rc; in fconf_populate_nv_cntrs()
/arm-trusted-firmware-2.8.0/plat/arm/common/trp/
A Darm_trp_setup.c45 int rc; in arm_trp_early_platform_setup() local
47 rc = arm_trp_process_manifest(manifest); in arm_trp_early_platform_setup()
48 if (rc != 0) { in arm_trp_early_platform_setup()
49 trp_boot_abort(rc); in arm_trp_early_platform_setup()
56 rc = console_pl011_register(PLAT_ARM_TRP_UART_BASE, in arm_trp_early_platform_setup()
60 if (rc == 0) { in arm_trp_early_platform_setup()
/arm-trusted-firmware-2.8.0/drivers/renesas/common/io/
A Dio_rcar.c309 int32_t rc; in load_bl33x() local
367 if (rc != 0) { in load_bl33x()
387 int32_t rc; in rcar_dev_init() local
392 if (rc != IO_SUCCESS) { in rcar_dev_init()
402 if (rc != IO_SUCCESS) { in rcar_dev_init()
422 if (rc != IO_SUCCESS) { in rcar_dev_init()
445 rc = IO_FAIL; in rcar_dev_init()
471 rc = IO_FAIL; in rcar_dev_init()
476 return rc; in rcar_dev_init()
486 int32_t rc; in rcar_file_open() local
[all …]
/arm-trusted-firmware-2.8.0/services/std_svc/spm/el3_spmc/
A Dspmc_pm.c47 uint64_t rc; in spmc_cpu_on_finish_handler() local
89 rc = spmc_sp_synchronous_entry(ec); in spmc_cpu_on_finish_handler()
90 if (rc != 0ULL) { in spmc_cpu_on_finish_handler()
91 ERROR("%s failed (%lu) on CPU%u\n", __func__, rc, linear_id); in spmc_cpu_on_finish_handler()
110 uint64_t rc; in spmc_send_pm_msg() local
136 rc = spmc_sp_synchronous_entry(ec); in spmc_send_pm_msg()
137 if (rc != 0ULL) { in spmc_send_pm_msg()
191 int32_t rc; in spmc_cpu_suspend_finish_handler() local
205 if (rc < 0) { in spmc_cpu_suspend_finish_handler()
221 int32_t rc; in spmc_cpu_suspend_handler() local
[all …]
/arm-trusted-firmware-2.8.0/services/spd/opteed/
A Dopteed_pm.c31 int32_t rc = 0; in opteed_cpu_off_handler() local
40 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_cpu_off_handler()
46 if (rc != 0) in opteed_cpu_off_handler()
64 int32_t rc = 0; in opteed_cpu_suspend_handler() local
76 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_cpu_suspend_handler()
82 if (rc != 0) in opteed_cpu_suspend_handler()
97 int32_t rc = 0; in opteed_cpu_on_finish_handler() local
113 rc = opteed_synchronous_sp_entry(optee_ctx); in opteed_cpu_on_finish_handler()
119 if (rc != 0) in opteed_cpu_on_finish_handler()
133 int32_t rc = 0; in opteed_cpu_suspend_finish_handler() local
[all …]
/arm-trusted-firmware-2.8.0/services/spd/tspd/
A Dtspd_pm.c32 int32_t rc = 0; in tspd_cpu_off_handler() local
47 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_off_handler()
53 if (rc != 0) in tspd_cpu_off_handler()
71 int32_t rc = 0; in tspd_cpu_suspend_handler() local
86 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_suspend_handler()
92 if (rc) in tspd_cpu_suspend_handler()
107 int32_t rc = 0; in tspd_cpu_on_finish_handler() local
132 rc = tspd_synchronous_sp_entry(tsp_ctx); in tspd_cpu_on_finish_handler()
138 if (rc != 0) in tspd_cpu_on_finish_handler()
152 int32_t rc = 0; in tspd_cpu_suspend_finish_handler() local
[all …]
/arm-trusted-firmware-2.8.0/services/spd/tlkd/
A Dtlkd_pm.c44 int32_t rc = 0; in cpu_suspend_handler() local
58 rc = tlkd_synchronous_sp_entry(&tlk_ctx); in cpu_suspend_handler()
64 if (rc != 0) in cpu_suspend_handler()
76 int32_t rc = 0; in cpu_resume_handler() local
91 rc = tlkd_synchronous_sp_entry(&tlk_ctx); in cpu_resume_handler()
97 if (rc != 0) in cpu_resume_handler()
/arm-trusted-firmware-2.8.0/bl2u/
A Dbl2u_main.c34 int rc; in bl2u_main() local
36 rc = bl2u_plat_handle_scp_bl2u(); in bl2u_main()
37 if (rc != 0) { in bl2u_main()
38 ERROR("Failed to load SCP_BL2U (%i)\n", rc); in bl2u_main()
/arm-trusted-firmware-2.8.0/services/std_svc/spm/spm_mm/
A Dspm_mm_main.c91 uint64_t rc; in spm_sp_synchronous_entry() local
112 return rc; in spm_sp_synchronous_entry()
138 uint64_t rc; in spm_init() local
147 rc = spm_sp_synchronous_entry(ctx); in spm_init()
148 assert(rc == 0); in spm_init()
154 return !rc; in spm_init()
190 uint64_t rc; in spm_mm_sp_call() local
213 rc = spm_sp_synchronous_entry(sp_ptr); in spm_mm_sp_call()
227 return rc; in spm_mm_sp_call()
237 uint64_t rc; in mm_communicate() local
[all …]
/arm-trusted-firmware-2.8.0/plat/arm/board/fvp/sp_min/
A Dfvp_sp_min_setup.c60 int rc __unused; in sp_min_plat_arch_setup()
101 rc = mmap_add_dynamic_region((unsigned long long)hw_config_base_align, in sp_min_plat_arch_setup()
105 if (rc != 0) { in sp_min_plat_arch_setup()
106 ERROR("Error while mapping HW_CONFIG device tree (%d).\n", rc); in sp_min_plat_arch_setup()
114 rc = mmap_remove_dynamic_region(hw_config_base_align, mapped_size_align); in sp_min_plat_arch_setup()
115 if (rc != 0) { in sp_min_plat_arch_setup()
117 rc); in sp_min_plat_arch_setup()
/arm-trusted-firmware-2.8.0/bl31/
A Dinterrupt_mgmt.c125 int32_t rc; in set_routing_model() local
127 rc = validate_interrupt_type(type); in set_routing_model()
128 if (rc != 0) in set_routing_model()
129 return rc; in set_routing_model()
131 rc = validate_routing_model(type, flags); in set_routing_model()
132 if (rc != 0) in set_routing_model()
133 return rc; in set_routing_model()
191 int32_t rc; in register_interrupt_type_handler() local
205 rc = set_routing_model(type, flags); in register_interrupt_type_handler()
206 if (rc != 0) in register_interrupt_type_handler()
[all …]
/arm-trusted-firmware-2.8.0/drivers/measured_boot/rss/
A Drss_measured_boot.c65 int rc; in rss_mboot_measure_and_record() local
81 rc = crypto_mod_calc_hash(CRYPTO_MD_ID, in rss_mboot_measure_and_record()
83 if (rc != 0) { in rss_mboot_measure_and_record()
84 return rc; in rss_mboot_measure_and_record()
112 int rc; in rss_mboot_set_signer_id() local
126 rc = crypto_mod_calc_hash(CRYPTO_MD_ID, (void *)pk_ptr, in rss_mboot_set_signer_id()
128 if (rc != 0) { in rss_mboot_set_signer_id()
129 return rc; in rss_mboot_set_signer_id()

Completed in 57 milliseconds

12345