Home
last modified time | relevance | path

Searched refs:image_id (Results 1 – 25 of 138) sorted by relevance

123456

/trusted-firmware-a/common/
A Dbl_common.c89 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()
214 rc = plat_mboot_measure_image(image_id, image_data); in load_auth_image_recursive()
[all …]
A Ddesc_image_load.c53 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 …]
/trusted-firmware-a/bl1/
A Dbl1_fwu.c126 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 …]
/trusted-firmware-a/lib/fconf/
A Dfconf.c17 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()
/trusted-firmware-a/plat/arm/board/fvp_r/
A Dfvp_r_bl1_main.c39 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/plat/nxp/common/img_loadr/
A Dload_img.c31 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()
/trusted-firmware-a/plat/arm/common/aarch64/
A Darm_bl2_mem_params_desc.c24 .image_id = SCP_BL2_IMAGE_ID,
41 .image_id = BL31_IMAGE_ID,
61 .image_id = BL31_IMAGE_ID,
88 .image_id = HW_CONFIG_ID,
97 .image_id = SOC_FW_CONFIG_ID,
108 .image_id = RMM_IMAGE_ID,
123 .image_id = BL32_IMAGE_ID,
146 .image_id = BL32_EXTRA1_IMAGE_ID,
180 .image_id = TOS_FW_CONFIG_ID,
191 .image_id = BL33_IMAGE_ID,
[all …]
/trusted-firmware-a/bl1/tbbr/
A Dtbbr_img_desc.c14 .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/drivers/fwu/
A Dfwu.c75 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/plat/brcm/common/
A Dbrcm_bl2_setup.c143 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/plat/st/stm32mp1/
A Dplat_bl2_mem_params_desc.c24 .image_id = FW_CONFIG_ID,
40 .image_id = BL32_IMAGE_ID,
59 .image_id = BL32_EXTRA1_IMAGE_ID,
73 .image_id = BL32_EXTRA2_IMAGE_ID,
88 .image_id = HW_CONFIG_ID,
101 .image_id = TOS_FW_CONFIG_ID,
114 .image_id = BL33_IMAGE_ID,
/trusted-firmware-a/plat/layerscape/common/
A Dls_bl2_setup.c69 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()
/trusted-firmware-a/plat/arm/common/
A Darm_bl2_setup.c249 int arm_bl2_handle_post_image_load(unsigned int image_id) in arm_bl2_handle_post_image_load() argument
252 bl_mem_params_node_t *bl_mem_params = get_bl_mem_params_node(image_id); in arm_bl2_handle_post_image_load()
259 switch (image_id) { in arm_bl2_handle_post_image_load()
307 int arm_bl2_plat_handle_post_image_load(unsigned int image_id) in arm_bl2_plat_handle_post_image_load() argument
311 if ((image_id >= (MAX_NUMBER_IDS - MAX_SP_IDS)) && in arm_bl2_plat_handle_post_image_load()
312 (image_id < MAX_NUMBER_IDS)) { in arm_bl2_plat_handle_post_image_load()
316 return arm_bl2_handle_post_image_load(image_id); in arm_bl2_plat_handle_post_image_load()
319 int bl2_plat_handle_post_image_load(unsigned int image_id) in bl2_plat_handle_post_image_load() argument
321 return arm_bl2_plat_handle_post_image_load(image_id); in bl2_plat_handle_post_image_load()
A Darm_io_storage.c110 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/plat/common/
A Dplat_bl1_common.c37 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/bl2/
A Dbl2_image_load_v2.c61 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()
/trusted-firmware-a/plat/hisilicon/hikey/
A Dhikey_bl1_setup.c132 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()
A Dhikey_bl2_mem_params_desc.c25 .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,
/trusted-firmware-a/plat/socionext/uniphier/
A Duniphier_bl2_setup.c129 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 Duniphier_image_desc.c24 .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/include/plat/common/
A Dplatform.h61 int plat_get_image_source(unsigned int image_id,
126 int plat_mboot_measure_image(unsigned int image_id, image_info_t *image_data);
128 static inline int plat_mboot_measure_image(unsigned int image_id __unused, in plat_mboot_measure_image()
172 void bl1_plat_set_ep_info(unsigned int image_id,
179 struct image_desc *bl1_plat_get_image_desc(unsigned int image_id);
191 int bl1_plat_handle_pre_image_load(unsigned int image_id);
192 int bl1_plat_handle_post_image_load(unsigned int image_id);
218 int bl2_plat_handle_pre_image_load(unsigned int image_id);
219 int bl2_plat_handle_post_image_load(unsigned int image_id);
379 int plat_fwu_set_metadata_image_source(unsigned int image_id,
/trusted-firmware-a/plat/hisilicon/hikey960/
A Dhikey960_bl2_mem_params_desc.c25 .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,
/trusted-firmware-a/plat/hisilicon/poplar/
A Dbl2_plat_mem_params_desc.c25 .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,
/trusted-firmware-a/plat/marvell/armada/common/aarch64/
A Dmarvell_bl2_mem_params_desc.c26 .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,
/trusted-firmware-a/bl1/aarch64/
A Dbl1_context_mgmt.c39 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()

Completed in 20 milliseconds

123456