/trusted-firmware-a-3.6.0-3.5.0/plat/common/ |
D | plat_spmd_manifest.c | 31 int rc; in manifest_parse_attribute() local 35 rc = fdt_read_uint32(fdt, node, "maj_ver", &attr->major_version); in manifest_parse_attribute() 36 if (rc != 0) { in manifest_parse_attribute() 39 return rc; in manifest_parse_attribute() 42 rc = fdt_read_uint32(fdt, node, "min_ver", &attr->minor_version); in manifest_parse_attribute() 43 if (rc != 0) { in manifest_parse_attribute() 46 return rc; in manifest_parse_attribute() 49 rc = fdt_read_uint32(fdt, node, "spmc_id", &val32); in manifest_parse_attribute() 50 if (rc != 0) { in manifest_parse_attribute() 52 return rc; in manifest_parse_attribute() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/auth/mbedtls/ |
D | mbedtls_crypto.c | 84 int rc; in verify_signature() local 93 rc = mbedtls_asn1_get_alg(&p, end, &sig_oid, &sig_params); in verify_signature() 94 if (rc != 0) { in verify_signature() 99 rc = mbedtls_x509_get_sig_alg(&sig_oid, &sig_params, &md_alg, &pk_alg, &sig_opts); in verify_signature() 100 if (rc != 0) { in verify_signature() 108 rc = mbedtls_pk_parse_subpubkey(&p, end, &pk); in verify_signature() 109 if (rc != 0) { in verify_signature() 110 rc = CRYPTO_ERR_SIGNATURE; in verify_signature() 118 rc = mbedtls_asn1_get_bitstring_null(&p, end, &signature.len); in verify_signature() 119 if ((rc != 0) || ((size_t)(end - p) != signature.len)) { in verify_signature() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/mediatek/common/lpm/ |
D | mt_lp_rm.c | 20 struct mt_resource_constraint *const *rc; in mt_lp_rm_register() local 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() 41 struct mt_resource_constraint const *rc = NULL; in mt_lp_rm_reset_constraint() local 47 rc = plat_mt_rm.plat_rm->consts[idx]; in mt_lp_rm_reset_constraint() 49 if ((rc == NULL) || (rc->reset == NULL)) { in mt_lp_rm_reset_constraint() 53 return rc->reset(cpuid, stateid); in mt_lp_rm_reset_constraint() 82 struct mt_resource_constraint const *rc; in mt_lp_rm_do_constraint() local 89 rc = rm->consts[constraint_id]; in mt_lp_rm_do_constraint() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/lib/fconf/ |
D | fconf_cot_getter.c | 194 int rc; in get_oid() local 196 rc = fdt_read_uint32(dtb, node, prop, &phandle); in get_oid() 197 if (rc < 0) { in get_oid() 198 return rc; in get_oid() 207 rc = fdtw_read_string(dtb, node, "oid", *oid, MAX_OID_NAME_LEN); in get_oid() 209 return rc; in get_oid() 229 int rc; in populate_and_set_auth_methods() local 243 rc = get_oid(dtb, node, "signing-key", &oid); in populate_and_set_auth_methods() 244 if (rc < 0) { in populate_and_set_auth_methods() 247 return rc; in populate_and_set_auth_methods() [all …]
|
D | fconf_dyn_cfg_getter.c | 78 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() 120 rc = fdt_read_uint32(dtb, child, "max-size", &config_max_size); 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() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/services/std_svc/drtm/ |
D | drtm_measurements.c | 42 int rc; in drtm_event_log_measure_and_record() local 53 rc = event_log_measure(data_base, data_size, hash_data); in drtm_event_log_measure_and_record() 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 100 rc = drtm_event_log_measure_and_record((uintptr_t)&drtm_null_data, in drtm_take_measurements() 104 CHECK_RC(rc, drtm_event_log_measure_and_record(DRTM_EVENT_ARM_DCE)); in drtm_take_measurements() 107 rc = drtm_event_log_measure_and_record((uintptr_t)&pcr_schema, in drtm_take_measurements() 111 CHECK_RC(rc, in drtm_take_measurements() 136 rc = drtm_event_log_measure_and_record((uintptr_t)drtm_event_arm_sep_data, in drtm_take_measurements() [all …]
|
D | drtm_remediation.c | 19 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()
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/auth/ |
D | auth_mod.c | 26 #define return_if_error(rc) \ argument 28 if (rc != 0) { \ 29 return rc; \ 100 int rc = 0; in auth_hash() local 104 rc = auth_get_param(param->hash, img_desc->parent, in auth_hash() 106 return_if_error(rc); in auth_hash() 109 rc = img_parser_get_auth_param(img_desc->img_type, param->data, in auth_hash() 111 return_if_error(rc); in auth_hash() 114 rc = crypto_mod_verify_hash(data_ptr, data_len, in auth_hash() 117 return rc; in auth_hash() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/auth/cryptocell/713/ |
D | cryptocell_crypto.c | 85 int rc, exp, expected_salt_len; in verify_signature() local 101 rc = mbedtls_asn1_get_alg(&p, end, &sig_oid, ¶ms); in verify_signature() 102 if (rc != 0) { in verify_signature() 107 rc = mbedtls_oid_get_sig_alg(&sig_oid, &md_alg, &pk_alg); in verify_signature() 108 if (rc != 0) { in verify_signature() 119 rc = mbedtls_x509_get_rsassa_pss_params(¶ms, &md_alg, in verify_signature() 122 if (rc != 0) { in verify_signature() 139 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature() 141 if (rc != 0) { in verify_signature() 146 rc = mbedtls_asn1_get_alg_null(&p, end, &alg_oid); in verify_signature() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/lib/psci/ |
D | psci_main.c | 29 int rc; in psci_cpu_on() local 33 rc = psci_validate_mpidr(target_cpu); in psci_cpu_on() 34 if (rc != PSCI_E_SUCCESS) in psci_cpu_on() 38 rc = psci_validate_entry_point(&ep, entrypoint, context_id); in psci_cpu_on() 39 if (rc != PSCI_E_SUCCESS) in psci_cpu_on() 40 return rc; in psci_cpu_on() 58 int rc; in psci_cpu_suspend() local 69 rc = psci_validate_power_state(power_state, &state_info); in psci_cpu_suspend() 70 if (rc != PSCI_E_SUCCESS) { in psci_cpu_suspend() 71 assert(rc == PSCI_E_INVALID_PARAMS); in psci_cpu_suspend() [all …]
|
D | psci_off.c | 46 int rc = PSCI_E_SUCCESS; in psci_do_cpu_off() local 67 rc = psci_plat_pm_ops->pwr_domain_off_early(&state_info); in psci_do_cpu_off() 68 if (rc == PSCI_E_DENIED) { in psci_do_cpu_off() 69 return rc; in psci_do_cpu_off() 95 rc = psci_spd_pm->svc_off(0); in psci_do_cpu_off() 96 if (rc != 0) in psci_do_cpu_off() 155 if (rc == PSCI_E_SUCCESS) { in psci_do_cpu_off() 194 return rc; in psci_do_cpu_off()
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/auth/cryptocell/712/ |
D | cryptocell_crypto.c | 98 int rc, exp, expected_salt_len; in verify_signature() local 111 rc = mbedtls_asn1_get_alg(&p, end, &sig_oid, ¶ms); in verify_signature() 112 if (rc != 0) { in verify_signature() 117 rc = mbedtls_oid_get_sig_alg(&sig_oid, &md_alg, &pk_alg); in verify_signature() 118 if (rc != 0) { in verify_signature() 129 rc = mbedtls_x509_get_rsassa_pss_params(¶ms, &md_alg, in verify_signature() 132 if (rc != 0) { in verify_signature() 148 rc = mbedtls_asn1_get_tag(&p, end, &len, in verify_signature() 150 if (rc != 0) { in verify_signature() 155 rc = mbedtls_asn1_get_alg_null(&p, end, &alg_oid); in verify_signature() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/arm/common/fconf/ |
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-3.6.0-3.5.0/plat/arm/board/fvp/ |
D | fvp_bl2_measured_boot.c | 94 int rc; in bl2_plat_mboot_init() local 96 rc = arm_get_tb_fw_info(&event_log_base, &bl1_event_log_size, in bl2_plat_mboot_init() 98 if (rc != 0) { in bl2_plat_mboot_init() 155 int rc = plat_get_nv_ctr(nv_ctr_oids[i], in fvp_populate_critical_data() local 157 if (rc != 0) { in fvp_populate_critical_data() 158 return rc; in fvp_populate_critical_data() 168 int rc = 0; in fvp_populate_and_measure_critical_data() local 177 rc = fvp_populate_critical_data(&populate_critical_data); in fvp_populate_and_measure_critical_data() 178 if (rc == 0) { in fvp_populate_and_measure_critical_data() 179 rc = plat_mboot_measure_critical_data(CRITICAL_DATA_ID, in fvp_populate_and_measure_critical_data() [all …]
|
D | fvp_common_measured_boot.c | 27 int rc = 0; in plat_mboot_measure_image() local 37 rc = err; in plat_mboot_measure_image() 47 rc = (rc == 0) ? err : -1; in plat_mboot_measure_image() 50 return rc; in plat_mboot_measure_image()
|
/trusted-firmware-a-3.6.0-3.5.0/plat/arm/common/trp/ |
D | arm_trp_setup.c | 48 int rc; in arm_trp_early_platform_setup() local 50 rc = arm_trp_process_manifest(manifest); in arm_trp_early_platform_setup() 51 if (rc != 0) { in arm_trp_early_platform_setup() 52 trp_boot_abort(rc); in arm_trp_early_platform_setup() 59 rc = console_pl011_register(PLAT_ARM_TRP_UART_BASE, in arm_trp_early_platform_setup() 63 if (rc == 0) { in arm_trp_early_platform_setup()
|
/trusted-firmware-a-3.6.0-3.5.0/drivers/renesas/common/io/ |
D | io_rcar.c | 309 int32_t rc; in load_bl33x() local 327 rc = file_to_offset(img[i], &offset, &cert, &noload, in load_bl33x() 329 if (rc != IO_SUCCESS) { in load_bl33x() 338 rc = io_open(rcar_handle, rcar_spec, &handle); in load_bl33x() 339 if (rc != IO_SUCCESS) { in load_bl33x() 340 WARN("%s: Failed to open FIP (%i)\n", __func__, rc); in load_bl33x() 345 rc = io_seek(handle, IO_SEEK_SET, offset); in load_bl33x() 346 if (rc != IO_SUCCESS) { in load_bl33x() 352 rc = check_load_area(dst, len); in load_bl33x() 353 if (rc != IO_SUCCESS) { in load_bl33x() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/services/std_svc/spm/el3_spmc/ |
D | spmc_pm.c | 47 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() 138 ERROR("%s failed (%lu) on CPU%u.\n", __func__, rc, linear_id); in spmc_send_pm_msg() 191 int32_t rc; in spmc_cpu_suspend_finish_handler() local 204 rc = spmc_send_pm_msg(FFA_PM_MSG_WB_REQ, FFA_WB_TYPE_NOTS2RAM); in spmc_cpu_suspend_finish_handler() [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/services/spd/tspd/ |
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-3.6.0-3.5.0/services/spd/tlkd/ |
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-3.6.0-3.5.0/bl2u/ |
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()
|
/trusted-firmware-a-3.6.0-3.5.0/services/std_svc/spm/spm_mm/ |
D | spm_mm_main.c | 91 uint64_t rc; in spm_sp_synchronous_entry() local 107 rc = spm_secure_partition_enter(&ctx->c_rt_ctx); in spm_sp_synchronous_entry() 112 return rc; in spm_sp_synchronous_entry() 119 __dead2 static void spm_sp_synchronous_exit(uint64_t rc) in spm_sp_synchronous_exit() argument 128 spm_secure_partition_exit(ctx->c_rt_ctx, rc); in spm_sp_synchronous_exit() 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 [all …]
|
/trusted-firmware-a-3.6.0-3.5.0/plat/arm/board/fvp/sp_min/ |
D | fvp_sp_min_setup.c | 60 int rc __unused; in sp_min_plat_arch_setup() 102 rc = mmap_add_dynamic_region((unsigned long long)hw_config_base_align, in sp_min_plat_arch_setup() 106 if (rc != 0) { in sp_min_plat_arch_setup() 107 ERROR("Error while mapping HW_CONFIG device tree (%d).\n", rc); in sp_min_plat_arch_setup() 115 rc = mmap_remove_dynamic_region(hw_config_base_align, mapped_size_align); in sp_min_plat_arch_setup() 116 if (rc != 0) { in sp_min_plat_arch_setup() 118 rc); in sp_min_plat_arch_setup()
|
/trusted-firmware-a-3.6.0-3.5.0/bl31/ |
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-3.6.0-3.5.0/drivers/measured_boot/rss/ |
D | rss_measured_boot.c | 65 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()
|