/tf-a-ffa_el3_spmc/common/ |
A D | bl_common.c | 89 image_id, io_result); in load_image() 97 image_id, io_result); 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() 150 static int load_image_flush(unsigned int image_id, in load_image_flush() argument 155 rc = load_image(image_id, image_data); in load_image_flush() 178 rc = auth_mod_get_parent_id(image_id, &parent_id); in load_auth_image_recursive() 187 rc = load_image(image_id, image_data); in load_auth_image_recursive() 193 rc = auth_mod_verify_img(image_id, in load_auth_image_recursive() 228 return load_image_flush(image_id, image_data); in load_auth_image_internal() [all …]
|
A 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() 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() 344 if (node->image_id == BL32_IMAGE_ID) in bl31_params_parse_helper() [all …]
|
/tf-a-ffa_el3_spmc/bl1/ |
A D | bl1_fwu.c | 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() 151 if (bl1_fwu_loaded_ids[i] == image_id) { in bl1_fwu_remove_loaded_id() 186 (bl1_fwu_loaded_ids[i] == image_id)) in bl1_fwu_image_check_overlaps() 213 checked_desc->image_id, desc->image_id); in bl1_fwu_image_check_overlaps() 235 desc = bl1_plat_get_image_desc(image_id); in bl1_fwu_image_copy() 346 image_id); in bl1_fwu_image_copy() 480 result, image_id); in bl1_fwu_image_auth() 535 bl1_prepare_next_image(image_id); in bl1_fwu_image_execute() 538 sec_exec_image_id = image_id; in bl1_fwu_image_execute() [all …]
|
/tf-a-ffa_el3_spmc/lib/fconf/ |
A 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: %d\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 %d\n", image_id); in fconf_load_config() 45 image_id, config_image_info.image_base); in fconf_load_config()
|
/tf-a-ffa_el3_spmc/plat/arm/board/fvp/ |
A D | fvp_bl2_setup.c | 77 static int fvp_bl2_plat_handle_post_image_load(unsigned int image_id) in fvp_bl2_plat_handle_post_image_load() argument 80 get_bl_mem_params_node(image_id); in fvp_bl2_plat_handle_post_image_load() 90 info.image_size, image_id); in fvp_bl2_plat_handle_post_image_load() 93 "BL2: Failed to ", "record", image_id, err); in fvp_bl2_plat_handle_post_image_load() 98 err = arm_bl2_handle_post_image_load(image_id); in fvp_bl2_plat_handle_post_image_load() 101 "BL2: Failed to ", "handle", image_id, err); in fvp_bl2_plat_handle_post_image_load() 107 int arm_bl2_plat_handle_post_image_load(unsigned int image_id) in arm_bl2_plat_handle_post_image_load() argument 109 int err = fvp_bl2_plat_handle_post_image_load(image_id); in arm_bl2_plat_handle_post_image_load()
|
/tf-a-ffa_el3_spmc/plat/nxp/common/img_loadr/ |
A 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() 59 VERBOSE("BL2: Loading IMG %d\n", image_id); in load_img() 60 err = load_auth_image(image_id, &img_info.image_info); in load_img() 62 VERBOSE("Failed to load IMG %d\n", image_id); in load_img()
|
/tf-a-ffa_el3_spmc/bl1/tbbr/ |
A 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,
|
/tf-a-ffa_el3_spmc/plat/layerscape/common/ |
A D | ls_bl2_setup.c | 69 int ls_bl2_handle_post_image_load(unsigned int image_id) in ls_bl2_handle_post_image_load() argument 72 bl_mem_params_node_t *bl_mem_params = get_bl_mem_params_node(image_id); in ls_bl2_handle_post_image_load() 76 switch (image_id) { in ls_bl2_handle_post_image_load() 97 int bl2_plat_handle_post_image_load(unsigned int image_id) in bl2_plat_handle_post_image_load() argument 99 return ls_bl2_handle_post_image_load(image_id); in bl2_plat_handle_post_image_load()
|
/tf-a-ffa_el3_spmc/plat/arm/common/ |
A D | arm_bl2_setup.c | 176 int arm_bl2_handle_post_image_load(unsigned int image_id) in arm_bl2_handle_post_image_load() argument 179 bl_mem_params_node_t *bl_mem_params = get_bl_mem_params_node(image_id); in arm_bl2_handle_post_image_load() 186 switch (image_id) { in arm_bl2_handle_post_image_load() 234 int arm_bl2_plat_handle_post_image_load(unsigned int image_id) in arm_bl2_plat_handle_post_image_load() argument 238 if ((image_id >= (MAX_NUMBER_IDS - MAX_SP_IDS)) && in arm_bl2_plat_handle_post_image_load() 239 (image_id < MAX_NUMBER_IDS)) { in arm_bl2_plat_handle_post_image_load() 243 return arm_bl2_handle_post_image_load(image_id); in arm_bl2_plat_handle_post_image_load() 246 int bl2_plat_handle_post_image_load(unsigned int image_id) in bl2_plat_handle_post_image_load() argument 248 return arm_bl2_plat_handle_post_image_load(image_id); in bl2_plat_handle_post_image_load()
|
A 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()
|
A D | arm_bl1_fwu.c | 89 image_desc_t *bl1_plat_get_image_desc(unsigned int image_id) in bl1_plat_get_image_desc() argument 93 while (bl1_tbbr_image_descs[index].image_id != INVALID_IMAGE_ID) { in bl1_plat_get_image_desc() 94 if (bl1_tbbr_image_descs[index].image_id == image_id) in bl1_plat_get_image_desc()
|
/tf-a-ffa_el3_spmc/drivers/fwu/ |
A 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()
|
/tf-a-ffa_el3_spmc/plat/arm/common/aarch64/ |
A 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, 86 .image_id = HW_CONFIG_ID, 95 .image_id = SOC_FW_CONFIG_ID, 105 .image_id = BL32_IMAGE_ID, 124 .image_id = BL32_EXTRA1_IMAGE_ID, 142 .image_id = BL32_EXTRA2_IMAGE_ID, 158 .image_id = TOS_FW_CONFIG_ID, 169 .image_id = BL33_IMAGE_ID, [all …]
|
/tf-a-ffa_el3_spmc/plat/brcm/common/ |
A 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()
|
/tf-a-ffa_el3_spmc/plat/common/ |
A D | plat_bl1_common.c | 40 void bl1_plat_set_ep_info(unsigned int image_id, in bl1_plat_set_ep_info() argument 46 int bl1_plat_handle_pre_image_load(unsigned int image_id) in bl1_plat_handle_pre_image_load() argument 55 struct image_desc *bl1_plat_get_image_desc(unsigned int image_id) in bl1_plat_get_image_desc() argument 84 int bl1_plat_handle_post_image_load(unsigned int image_id) in bl1_plat_handle_post_image_load() argument 91 if (image_id != BL2_IMAGE_ID) in bl1_plat_handle_post_image_load()
|
/tf-a-ffa_el3_spmc/bl2/ |
A D | bl2_image_load_v2.c | 61 err = bl2_plat_handle_pre_image_load(bl2_node_info->image_id); in bl2_load_images() 69 INFO("BL2: Loading image id %d\n", bl2_node_info->image_id); in bl2_load_images() 70 err = load_auth_image(bl2_node_info->image_id, in bl2_load_images() 74 bl2_node_info->image_id, err); in bl2_load_images() 78 INFO("BL2: Skip loading image id %d\n", bl2_node_info->image_id); in bl2_load_images() 82 err = bl2_plat_handle_post_image_load(bl2_node_info->image_id); in bl2_load_images()
|
/tf-a-ffa_el3_spmc/plat/arm/board/juno/ |
A 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()
|
/tf-a-ffa_el3_spmc/plat/socionext/uniphier/ |
A 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()
|
A 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()
|
/tf-a-ffa_el3_spmc/plat/hisilicon/hikey/ |
A D | hikey_bl1_setup.c | 130 image_desc_t *bl1_plat_get_image_desc(unsigned int image_id) in bl1_plat_get_image_desc() argument 134 while (bl1_tbbr_image_descs[index].image_id != INVALID_IMAGE_ID) { in bl1_plat_get_image_desc() 135 if (bl1_tbbr_image_descs[index].image_id == image_id) in bl1_plat_get_image_desc() 144 void bl1_plat_set_ep_info(unsigned int image_id, in bl1_plat_set_ep_info() argument 149 if (image_id == BL2_IMAGE_ID) in bl1_plat_set_ep_info()
|
A D | hikey_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, 108 .image_id = BL32_EXTRA1_IMAGE_ID, 126 .image_id = BL32_EXTRA2_IMAGE_ID, 143 .image_id = BL33_IMAGE_ID,
|
/tf-a-ffa_el3_spmc/plat/marvell/armada/common/ |
A D | marvell_bl2_setup.c | 98 int marvell_bl2_handle_post_image_load(unsigned int image_id) in marvell_bl2_handle_post_image_load() argument 101 bl_mem_params_node_t *bl_mem_params = get_bl_mem_params_node(image_id); in marvell_bl2_handle_post_image_load() 109 switch (image_id) { in marvell_bl2_handle_post_image_load() 154 int bl2_plat_handle_post_image_load(unsigned int image_id) in bl2_plat_handle_post_image_load() argument 156 return marvell_bl2_handle_post_image_load(image_id); in bl2_plat_handle_post_image_load()
|
/tf-a-ffa_el3_spmc/plat/hisilicon/hikey960/ |
A 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, 108 .image_id = BL32_EXTRA1_IMAGE_ID, 126 .image_id = BL32_EXTRA2_IMAGE_ID, 143 .image_id = BL33_IMAGE_ID,
|
/tf-a-ffa_el3_spmc/plat/marvell/armada/common/aarch64/ |
A D | marvell_bl2_mem_params_desc.c | 26 .image_id = SCP_BL2_IMAGE_ID, 43 .image_id = BL31_IMAGE_ID, 63 .image_id = BL31_IMAGE_ID, 90 .image_id = BL32_IMAGE_ID, 110 .image_id = BL32_EXTRA1_IMAGE_ID, 129 .image_id = BL32_EXTRA2_IMAGE_ID, 146 .image_id = BL33_IMAGE_ID,
|
/tf-a-ffa_el3_spmc/plat/hisilicon/poplar/ |
A D | bl2_plat_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, 108 .image_id = BL32_EXTRA1_IMAGE_ID, 126 .image_id = BL32_EXTRA2_IMAGE_ID, 143 .image_id = BL33_IMAGE_ID,
|