/trusted-firmware-a/plat/common/ |
A D | plat_spmd_manifest.c | 31 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 …]
|
/trusted-firmware-a/drivers/auth/mbedtls/ |
A D | mbedtls_crypto.c | 69 int rc; in verify_signature() local 79 if (rc != 0) { in verify_signature() 85 if (rc != 0) { in verify_signature() 94 if (rc != 0) { in verify_signature() 104 if (rc != 0) { in verify_signature() 118 if (rc != 0) { in verify_signature() 139 return rc; in verify_signature() 157 int rc; in verify_hash() local 301 return rc; in aes_gcm_decrypt() 313 int rc; in auth_decrypt() local [all …]
|
/trusted-firmware-a/plat/mediatek/common/lpm/ |
A D | mt_lp_rm.c | 27 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 …]
|
/trusted-firmware-a/lib/fconf/ |
A D | fconf_cot_getter.c | 192 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 D | fconf_dyn_cfg_getter.c | 61 int rc; in fconf_populate_dtb_registry() local 95 rc = fdt_read_uint64(dtb, child, "load-address", &val64); in fconf_populate_dtb_registry() 96 if (rc < 0) { in fconf_populate_dtb_registry() 98 return rc; in fconf_populate_dtb_registry() 102 rc = fdt_read_uint32(dtb, child, "max-size", &config_max_size); in fconf_populate_dtb_registry() 103 if (rc < 0) { in fconf_populate_dtb_registry() 105 return rc; in fconf_populate_dtb_registry() 108 rc = fdt_read_uint32(dtb, child, "id", &config_id); in fconf_populate_dtb_registry() 109 if (rc < 0) { in fconf_populate_dtb_registry() 111 return rc; in fconf_populate_dtb_registry()
|
/trusted-firmware-a/drivers/auth/ |
A D | auth_mod.c | 28 if (rc != 0) { \ 29 return rc; \ 101 int rc = 0; in auth_hash() local 107 return_if_error(rc); in auth_hash() 118 return rc; in auth_hash() 155 int rc = 0; in auth_signature() local 217 return rc; in auth_signature() 245 int rc = 0; in auth_nvctr() local 362 int rc, i; in auth_mod_verify_img() local 383 rc = 0; in auth_mod_verify_img() [all …]
|
/trusted-firmware-a/drivers/auth/cryptocell/713/ |
A D | cryptocell_crypto.c | 83 int rc, exp; in verify_signature() local 100 if (rc != 0) in verify_signature() 105 if (rc != 0) in verify_signature() 117 if (rc != 0) in verify_signature() 133 if (rc != 0) in verify_signature() 138 if (rc != 0) in verify_signature() 148 if (rc != 0) in verify_signature() 154 if (rc != 0) in verify_signature() 158 if (rc != 0) in verify_signature() 175 if (rc != 0) in verify_signature() [all …]
|
/trusted-firmware-a/lib/psci/ |
A D | psci_main.c | 29 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 …]
|
A D | psci_on.c | 62 int rc; in psci_cpu_on_start() local 100 rc = cpu_on_validate_state(psci_get_aff_info_state_by_idx(target_idx)); in psci_cpu_on_start() 101 if (rc != PSCI_E_SUCCESS) in psci_cpu_on_start() 146 rc = psci_plat_pm_ops->pwr_domain_on(target_cpu); in psci_cpu_on_start() 147 assert((rc == PSCI_E_SUCCESS) || (rc == PSCI_E_INTERN_FAIL)); in psci_cpu_on_start() 149 if (rc == PSCI_E_SUCCESS) in psci_cpu_on_start() 161 return rc; in psci_cpu_on_start()
|
/trusted-firmware-a/drivers/auth/cryptocell/712/ |
A D | cryptocell_crypto.c | 98 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 …]
|
/trusted-firmware-a/common/ |
A D | bl_common.c | 153 int rc; in load_image_flush() local 156 if (rc == 0) { in load_image_flush() 161 return rc; in load_image_flush() 174 int rc; in load_auth_image_recursive() local 179 if (rc == 0) { in load_auth_image_recursive() 181 if (rc != 0) { in load_auth_image_recursive() 182 return rc; in load_auth_image_recursive() 188 if (rc != 0) { in load_auth_image_recursive() 189 return rc; in load_auth_image_recursive() 196 if (rc != 0) { in load_auth_image_recursive() [all …]
|
/trusted-firmware-a/drivers/renesas/common/io/ |
A D | io_rcar.c | 309 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 …]
|
/trusted-firmware-a/plat/arm/common/fconf/ |
A D | fconf_nv_cntr_getter.c | 25 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, ®, NULL); in fconf_populate_nv_cntrs() 51 if (rc < 0) { in fconf_populate_nv_cntrs() 53 return rc; in fconf_populate_nv_cntrs()
|
/trusted-firmware-a/services/spd/opteed/ |
A D | opteed_pm.c | 31 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 …]
|
/trusted-firmware-a/services/spd/tspd/ |
A D | tspd_pm.c | 32 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 …]
|
/trusted-firmware-a/services/std_svc/spm_mm/ |
A D | spm_mm_main.c | 90 uint64_t rc; in spm_sp_synchronous_entry() local 111 return rc; in spm_sp_synchronous_entry() 137 uint64_t rc; in spm_init() local 146 rc = spm_sp_synchronous_entry(ctx); in spm_init() 147 assert(rc == 0); in spm_init() 153 return !rc; in spm_init() 189 uint64_t rc; in spm_mm_sp_call() local 204 rc = spm_sp_synchronous_entry(sp_ptr); in spm_mm_sp_call() 210 return rc; in spm_mm_sp_call() 220 uint64_t rc; in mm_communicate() local [all …]
|
/trusted-firmware-a/plat/arm/board/fvp/ |
A D | fvp_bl2_measured_boot.c | 35 int rc; in bl2_plat_mboot_init() local 37 rc = arm_get_tb_fw_info(&event_log_base, &bl1_event_log_size); in bl2_plat_mboot_init() 38 if (rc != 0) { in bl2_plat_mboot_init() 63 int rc; in bl2_plat_mboot_finish() local 73 rc = arm_set_nt_fw_info( in bl2_plat_mboot_finish() 78 if (rc != 0) { in bl2_plat_mboot_finish() 100 rc = arm_set_tos_fw_info((uintptr_t)event_log_base, in bl2_plat_mboot_finish() 102 if (rc != 0) { in bl2_plat_mboot_finish()
|
/trusted-firmware-a/plat/st/common/include/ |
A D | stm32mp_shres_helpers.h | 29 int rc = !*refcnt; in stm32mp_incr_shrefcnt() local 40 return rc; in stm32mp_incr_shrefcnt() 46 int rc = 0; in stm32mp_decr_shrefcnt() local 54 rc = !*refcnt; in stm32mp_decr_shrefcnt() 57 rc = (*refcnt == SHREFCNT_NONSECURE_FLAG) ? 1 : 0; in stm32mp_decr_shrefcnt() 61 return rc; in stm32mp_decr_shrefcnt()
|
/trusted-firmware-a/bl31/ |
A D | interrupt_mgmt.c | 125 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 …]
|
/trusted-firmware-a/services/spd/tlkd/ |
A D | tlkd_pm.c | 44 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()
|
/trusted-firmware-a/drivers/brcm/i2c/ |
A D | i2c.c | 345 int rc; in iproc_i2c_data_send() local 353 return rc; in iproc_i2c_data_send() 379 int rc; in iproc_i2c_data_recv() local 577 int rc; in i2c_probe() local 627 int rc; in i2c_recv_byte() local 642 return rc; in i2c_recv_byte() 662 int rc; in i2c_send_byte() local 676 return rc; in i2c_send_byte() 685 int rc; in i2c_read_byte() local 699 return rc; in i2c_read_byte() [all …]
|
/trusted-firmware-a/services/std_svc/spmd/ |
A D | spmd_pm.c | 85 uint64_t rc; in spmd_cpu_on_finish_handler() local 114 rc = spmd_spm_core_sync_entry(ctx); in spmd_cpu_on_finish_handler() 115 if (rc != 0ULL) { in spmd_cpu_on_finish_handler() 116 ERROR("%s failed (%" PRIu64 ") on CPU%u\n", __func__, rc, in spmd_cpu_on_finish_handler() 134 int64_t rc; in spmd_cpu_off_handler() local 142 rc = spmd_spm_core_sync_entry(ctx); in spmd_cpu_off_handler() 143 if (rc != 0ULL) { in spmd_cpu_off_handler() 144 ERROR("%s failed (%" PRIu64 ") on CPU%u\n", __func__, rc, linear_id); in spmd_cpu_off_handler()
|
/trusted-firmware-a/services/std_svc/rmmd/ |
A D | rmmd_main.c | 62 uint64_t rc; in rmmd_rmm_sync_entry() local 78 rc = rmmd_rmm_enter(&rmm_ctx->c_rt_ctx); in rmmd_rmm_sync_entry() 88 return rc; in rmmd_rmm_sync_entry() 95 __dead2 void rmmd_rmm_sync_exit(uint64_t rc) in rmmd_rmm_sync_exit() argument 107 rmmd_rmm_exit(ctx->c_rt_ctx, rc); in rmmd_rmm_sync_exit() 124 uint64_t rc; in rmm_init() local 134 rc = rmmd_rmm_sync_entry(ctx); in rmm_init() 135 if (rc != 0ULL) { in rmm_init() 269 int32_t rc; in rmmd_cpu_on_finish_handler() local 281 rc = rmmd_rmm_sync_entry(ctx); in rmmd_cpu_on_finish_handler() [all …]
|
/trusted-firmware-a/lib/pmf/ |
A D | pmf_smc.c | 26 int rc; in pmf_smc_handler() local 42 rc = pmf_get_timestamp_smc((unsigned int)x1, x2, in pmf_smc_handler() 44 SMC_RET3(handle, rc, (uint32_t)ts_value, in pmf_smc_handler() 55 rc = pmf_get_timestamp_smc((unsigned int)x1, x2, in pmf_smc_handler() 57 SMC_RET2(handle, rc, ts_value); in pmf_smc_handler()
|
/trusted-firmware-a/bl2u/ |
A D | bl2u_main.c | 34 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()
|