/trusted-firmware-a-3.7.0/common/ |
D | bl_common.c | 70 static int load_image(unsigned int image_id, image_info_t *image_data) in load_image() argument 86 io_result = plat_get_image_source(image_id, &dev_handle, &image_spec); in load_image() 89 image_id, io_result); in load_image() 97 image_id, io_result); in load_image() 101 INFO("Loading image id=%u at address 0x%lx\n", image_id, image_base); in load_image() 107 image_id, io_result); in load_image() 113 WARN("Image id=%u size out of bounds\n", image_id); in load_image() 128 WARN("Failed to load image id=%u (%i)\n", image_id, io_result); in load_image() 132 INFO("Image id=%u loaded: 0x%lx - 0x%lx\n", image_id, image_base, in load_image() 151 static int load_auth_image_recursive(unsigned int image_id, in load_auth_image_recursive() argument [all …]
|
D | desc_image_load.c | 53 int get_bl_params_node_index(unsigned int image_id) in get_bl_params_node_index() argument 56 assert(image_id != INVALID_IMAGE_ID); in get_bl_params_node_index() 59 if (bl_mem_params_desc_ptr[index].image_id == image_id) in get_bl_params_node_index() 71 bl_mem_params_node_t *get_bl_mem_params_node(unsigned int image_id) in get_bl_mem_params_node() argument 74 assert(image_id != INVALID_IMAGE_ID); in get_bl_mem_params_node() 76 index = get_bl_params_node_index(image_id); in get_bl_mem_params_node() 108 bl_node_info->image_id = bl_mem_params_desc_ptr[index].image_id; in get_bl_load_info_from_mem_params_desc() 177 bl_current_exec_node->image_id = desc_ptr->image_id; in get_next_bl_params_from_mem_params_desc() 237 switch (params_node->image_id) { in populate_next_bl_params_config() 277 if (params_node->image_id == BL32_IMAGE_ID) { in populate_next_bl_params_config() [all …]
|
/trusted-firmware-a-3.7.0/bl1/ |
D | bl1_fwu.c | 29 static int bl1_fwu_image_copy(unsigned int image_id, 34 static int bl1_fwu_image_auth(unsigned int image_id, 38 static int bl1_fwu_image_execute(unsigned int image_id, 46 static int bl1_fwu_image_reset(unsigned int image_id, 120 static int bl1_fwu_add_loaded_id(unsigned int image_id) in bl1_fwu_add_loaded_id() argument 126 if (bl1_fwu_loaded_ids[i] == image_id) in bl1_fwu_add_loaded_id() 133 bl1_fwu_loaded_ids[i] = image_id; in bl1_fwu_add_loaded_id() 145 static int bl1_fwu_remove_loaded_id(unsigned int image_id) in bl1_fwu_remove_loaded_id() argument 151 if (bl1_fwu_loaded_ids[i] == image_id) { in bl1_fwu_remove_loaded_id() 164 static int bl1_fwu_image_check_overlaps(unsigned int image_id) in bl1_fwu_image_check_overlaps() argument [all …]
|
/trusted-firmware-a-3.7.0/lib/fconf/ |
D | fconf.c | 17 int fconf_load_config(unsigned int image_id) in fconf_load_config() argument 22 assert((image_id == FW_CONFIG_ID) || (image_id == TB_FW_CONFIG_ID)); in fconf_load_config() 31 config_info = FCONF_GET_PROPERTY(dyn_cfg, dtb, image_id); in fconf_load_config() 37 VERBOSE("FCONF: Loading config with image ID: %u\n", image_id); in fconf_load_config() 38 err = load_auth_image(image_id, &config_image_info); in fconf_load_config() 40 VERBOSE("Failed to load config %u\n", image_id); in fconf_load_config() 45 image_id, config_image_info.image_base); in fconf_load_config()
|
/trusted-firmware-a-3.7.0/plat/arm/board/fvp/ |
D | fvp_common_measured_boot.c | 19 int plat_mboot_measure_image(unsigned int image_id, image_info_t *image_data) in plat_mboot_measure_image() argument 27 image_id, in plat_mboot_measure_image() 31 "Failed to ", "record in event log", image_id, err); in plat_mboot_measure_image() 39 image_id); in plat_mboot_measure_image() 42 "Failed to ", "record in RSS", image_id, err); in plat_mboot_measure_image()
|
/trusted-firmware-a-3.7.0/plat/arm/board/fvp_r/ |
D | fvp_r_bl1_main.c | 39 unsigned int image_id; in bl1_transfer_bl33() local 42 image_id = bl1_plat_get_next_image_id(); in bl1_transfer_bl33() 49 bl1_run_next_image(&bl1_plat_get_image_desc(image_id)->ep_info); in bl1_transfer_bl33() 118 void bl1_prepare_next_image(unsigned int image_id) in bl1_prepare_next_image() argument 137 desc = bl1_plat_get_image_desc(image_id); in bl1_prepare_next_image() 151 bl1_plat_set_ep_info(image_id, next_bl_ep); in bl1_prepare_next_image() 181 unsigned int image_id; in bl1_main() local 231 image_id = bl1_plat_get_next_image_id(); in bl1_main() 237 if (image_id == BL33_IMAGE_ID) { in bl1_main() 243 bl1_prepare_next_image(image_id); in bl1_main()
|
/trusted-firmware-a-3.7.0/plat/nxp/common/img_loadr/ |
D | load_img.c | 31 int load_img(unsigned int image_id, uintptr_t *image_base, in load_img() argument 37 .image_id = image_id, in load_img() 63 VERBOSE("BL2: Loading IMG %d\n", image_id); in load_img() 64 err = load_auth_image(image_id, &img_info.image_info); in load_img() 66 VERBOSE("Failed to load IMG %d\n", image_id); in load_img()
|
/trusted-firmware-a-3.7.0/bl1/tbbr/ |
D | tbbr_img_desc.c | 14 .image_id = FWU_CERT_ID, 24 .image_id = NS_BL1U_IMAGE_ID, 32 .image_id = SCP_BL2U_IMAGE_ID, 43 .image_id = BL2U_IMAGE_ID, 55 .image_id = NS_BL2U_IMAGE_ID, 63 .image_id = INVALID_IMAGE_ID,
|
/trusted-firmware-a-3.7.0/plat/arm/common/aarch64/ |
D | arm_bl2_mem_params_desc.c | 24 .image_id = SCP_BL2_IMAGE_ID, 41 .image_id = BL31_IMAGE_ID, 61 .image_id = BL31_IMAGE_ID, 88 .image_id = HW_CONFIG_ID, 98 .image_id = SOC_FW_CONFIG_ID, 109 .image_id = RMM_IMAGE_ID, 124 .image_id = BL32_IMAGE_ID, 148 .image_id = BL32_EXTRA1_IMAGE_ID, 167 .image_id = BL32_EXTRA2_IMAGE_ID, 183 .image_id = TOS_FW_CONFIG_ID, [all …]
|
/trusted-firmware-a-3.7.0/drivers/fwu/ |
D | fwu.c | 75 static int fwu_metadata_load(unsigned int image_id) in fwu_metadata_load() argument 81 assert((image_id == FWU_METADATA_IMAGE_ID) || in fwu_metadata_load() 82 (image_id == BKUP_FWU_METADATA_IMAGE_ID)); in fwu_metadata_load() 84 result = plat_fwu_set_metadata_image_source(image_id, in fwu_metadata_load() 89 image_id, result); in fwu_metadata_load() 96 image_id, result); in fwu_metadata_load() 104 WARN("Failed to read image id=%u (%i)\n", image_id, result); in fwu_metadata_load()
|
/trusted-firmware-a-3.7.0/plat/common/ |
D | plat_bl1_common.c | 37 void bl1_plat_set_ep_info(unsigned int image_id, in bl1_plat_set_ep_info() argument 43 int bl1_plat_handle_pre_image_load(unsigned int image_id) in bl1_plat_handle_pre_image_load() argument 52 struct image_desc *bl1_plat_get_image_desc(unsigned int image_id) in bl1_plat_get_image_desc() argument 81 int bl1_plat_handle_post_image_load(unsigned int image_id) in bl1_plat_handle_post_image_load() argument 88 if (image_id != BL2_IMAGE_ID) in bl1_plat_handle_post_image_load()
|
/trusted-firmware-a-3.7.0/plat/st/stm32mp1/ |
D | plat_bl2_mem_params_desc.c | 24 .image_id = FW_CONFIG_ID, 40 .image_id = BL32_IMAGE_ID, 59 .image_id = BL32_EXTRA1_IMAGE_ID, 74 .image_id = BL32_EXTRA2_IMAGE_ID, 90 .image_id = HW_CONFIG_ID, 103 .image_id = TOS_FW_CONFIG_ID, 116 .image_id = BL33_IMAGE_ID,
|
/trusted-firmware-a-3.7.0/plat/brcm/common/ |
D | brcm_bl2_setup.c | 143 int bcm_bl2_handle_post_image_load(unsigned int image_id) in bcm_bl2_handle_post_image_load() argument 147 bl_mem_params_node_t *bl_mem_params = get_bl_mem_params_node(image_id); in bcm_bl2_handle_post_image_load() 151 switch (image_id) { in bcm_bl2_handle_post_image_load() 182 int bcm_bl2_plat_handle_post_image_load(unsigned int image_id) in bcm_bl2_plat_handle_post_image_load() argument 184 return bcm_bl2_handle_post_image_load(image_id); in bcm_bl2_plat_handle_post_image_load() 187 int bl2_plat_handle_post_image_load(unsigned int image_id) in bl2_plat_handle_post_image_load() argument 189 return bcm_bl2_plat_handle_post_image_load(image_id); in bl2_plat_handle_post_image_load()
|
/trusted-firmware-a-3.7.0/plat/arm/common/ |
D | arm_io_storage.c | 110 unsigned int image_id __unused, in plat_arm_get_alt_image_source() 120 int plat_get_image_source(unsigned int image_id, uintptr_t *dev_handle, in plat_get_image_source() argument 126 policy = FCONF_GET_PROPERTY(arm, io_policies, image_id); in plat_get_image_source() 133 result = plat_arm_get_alt_image_source(image_id, dev_handle, in plat_get_image_source() 162 int arm_set_image_source(unsigned int image_id, const char *part_name, in arm_set_image_source() argument 174 image_id); in arm_set_image_source() 230 int plat_fwu_set_metadata_image_source(unsigned int image_id, in plat_fwu_set_metadata_image_source() argument 236 if (image_id == FWU_METADATA_IMAGE_ID) { in plat_fwu_set_metadata_image_source() 241 } else if (image_id == BKUP_FWU_METADATA_IMAGE_ID) { in plat_fwu_set_metadata_image_source()
|
/trusted-firmware-a-3.7.0/bl2/ |
D | bl2_image_load_v2.c | 60 err = bl2_plat_handle_pre_image_load(bl2_node_info->image_id); in bl2_load_images() 68 INFO("BL2: Loading image id %u\n", bl2_node_info->image_id); in bl2_load_images() 69 err = load_auth_image(bl2_node_info->image_id, in bl2_load_images() 73 bl2_node_info->image_id, err); in bl2_load_images() 77 INFO("BL2: Skip loading image id %u\n", bl2_node_info->image_id); in bl2_load_images() 81 err = bl2_plat_handle_post_image_load(bl2_node_info->image_id); in bl2_load_images()
|
/trusted-firmware-a-3.7.0/plat/arm/board/juno/ |
D | juno_bl2_setup.c | 23 int arm_bl2_plat_handle_post_image_load(unsigned int image_id) in arm_bl2_plat_handle_post_image_load() argument 25 int err = arm_bl2_handle_post_image_load(image_id); in arm_bl2_plat_handle_post_image_load() 27 if (!err && (image_id == BL32_IMAGE_ID)) { in arm_bl2_plat_handle_post_image_load() 28 bl_mem_params_node_t *bl_mem_params = get_bl_mem_params_node(image_id); in arm_bl2_plat_handle_post_image_load()
|
/trusted-firmware-a-3.7.0/plat/arm/board/tc/ |
D | tc_common_measured_boot.c | 15 int plat_mboot_measure_image(unsigned int image_id, image_info_t *image_data) in plat_mboot_measure_image() argument 23 image_id); in plat_mboot_measure_image() 26 "Failed to ", "record in RSS", image_id, err); in plat_mboot_measure_image()
|
/trusted-firmware-a-3.7.0/plat/hisilicon/hikey960/ |
D | hikey960_bl2_mem_params_desc.c | 25 .image_id = SCP_BL2_IMAGE_ID, 42 .image_id = BL31_IMAGE_ID, 62 .image_id = BL31_IMAGE_ID, 89 .image_id = BL32_IMAGE_ID, 109 .image_id = BL32_EXTRA1_IMAGE_ID, 128 .image_id = BL32_EXTRA2_IMAGE_ID, 145 .image_id = TOS_FW_CONFIG_ID, 161 .image_id = BL33_IMAGE_ID,
|
/trusted-firmware-a-3.7.0/plat/socionext/synquacer/ |
D | sq_image_desc.c | 16 .image_id = BL31_IMAGE_ID, 33 .image_id = BL32_IMAGE_ID, 50 .image_id = BL33_IMAGE_ID, 69 struct image_info *sq_get_image_info(unsigned int image_id) in REGISTER_BL_IMAGE_DESCS() 73 desc = get_bl_mem_params_node(image_id); in REGISTER_BL_IMAGE_DESCS()
|
/trusted-firmware-a-3.7.0/plat/socionext/uniphier/ |
D | uniphier_bl2_setup.c | 129 int bl2_plat_handle_pre_image_load(unsigned int image_id) in bl2_plat_handle_pre_image_load() argument 134 image_info = uniphier_get_image_info(image_id); in bl2_plat_handle_pre_image_load() 149 int bl2_plat_handle_post_image_load(unsigned int image_id) in bl2_plat_handle_post_image_load() argument 151 struct image_info *image_info = uniphier_get_image_info(image_id); in bl2_plat_handle_post_image_load() 156 ret = image_decompress(uniphier_get_image_info(image_id)); in bl2_plat_handle_post_image_load() 162 if (image_id == SCP_BL2_IMAGE_ID && uniphier_bl2_kick_scp) in bl2_plat_handle_post_image_load()
|
D | uniphier_image_desc.c | 24 .image_id = SCP_BL2_IMAGE_ID, 38 .image_id = BL31_IMAGE_ID, 60 .image_id = BL32_IMAGE_ID, 78 .image_id = BL33_IMAGE_ID, 112 struct image_info *uniphier_get_image_info(unsigned int image_id) in uniphier_get_image_info() argument 116 desc = get_bl_mem_params_node(image_id); in uniphier_get_image_info()
|
/trusted-firmware-a-3.7.0/plat/hisilicon/hikey/ |
D | hikey_bl1_setup.c | 132 image_desc_t *bl1_plat_get_image_desc(unsigned int image_id) in bl1_plat_get_image_desc() argument 136 while (bl1_tbbr_image_descs[index].image_id != INVALID_IMAGE_ID) { in bl1_plat_get_image_desc() 137 if (bl1_tbbr_image_descs[index].image_id == image_id) in bl1_plat_get_image_desc() 146 void bl1_plat_set_ep_info(unsigned int image_id, in bl1_plat_set_ep_info() argument 151 if (image_id == BL2_IMAGE_ID) in bl1_plat_set_ep_info()
|
/trusted-firmware-a-3.7.0/bl1/aarch64/ |
D | bl1_context_mgmt.c | 39 void bl1_prepare_next_image(unsigned int image_id) in bl1_prepare_next_image() argument 43 assert(image_id == BL2_IMAGE_ID); in bl1_prepare_next_image() 72 void bl1_prepare_next_image(unsigned int image_id) in bl1_prepare_next_image() argument 98 desc = bl1_plat_get_image_desc(image_id); in bl1_prepare_next_image() 120 bl1_plat_set_ep_info(image_id, next_bl_ep); in bl1_prepare_next_image()
|
/trusted-firmware-a-3.7.0/plat/qemu/common/ |
D | qemu_io_storage.c | 386 static const io_file_spec_t *get_io_file_spec(unsigned int image_id) in get_io_file_spec() argument 389 if (image_id >= SP_PKG1_ID && image_id <= SP_PKG8_ID) { in get_io_file_spec() 390 return &sp_pkgs[image_id - SP_PKG1_ID].sh_file_spec; in get_io_file_spec() 394 assert(image_id < ARRAY_SIZE(sh_file_spec)); in get_io_file_spec() 395 return &sh_file_spec[image_id]; in get_io_file_spec() 398 static const struct plat_io_policy *get_io_policy(unsigned int image_id) in get_io_policy() argument 401 if (image_id >= SP_PKG1_ID && image_id <= SP_PKG8_ID) { in get_io_policy() 402 return &sp_pkgs[image_id - SP_PKG1_ID].policy; in get_io_policy() 406 assert(image_id < ARRAY_SIZE(policies)); in get_io_policy() 407 return &policies[image_id]; in get_io_policy() [all …]
|
D | qemu_bl2_mem_params_desc.c | 14 .image_id = (id), \ 35 { .image_id = BL31_IMAGE_ID, 52 { .image_id = BL31_IMAGE_ID, 86 { .image_id = BL32_IMAGE_ID, 106 { .image_id = BL32_EXTRA1_IMAGE_ID, 124 { .image_id = BL32_EXTRA2_IMAGE_ID, 141 .image_id = TOS_FW_CONFIG_ID, 155 .image_id = TB_FW_CONFIG_ID, 182 { .image_id = BL33_IMAGE_ID,
|