Home
last modified time | relevance | path

Searched refs:boot_data (Results 1 – 10 of 10) sorted by relevance

/trusted-firmware-m-latest/secure_fw/spm/core/
Dtfm_boot_data.c131 struct tfm_boot_data *boot_data; in tfm_core_validate_boot_data() local
133 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in tfm_core_validate_boot_data()
135 if (boot_data->header.tlv_magic == SHARED_DATA_TLV_INFO_MAGIC) { in tfm_core_validate_boot_data()
148 struct tfm_boot_data *boot_data; in tfm_core_get_boot_data_handler() local
179 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in tfm_core_get_boot_data_handler()
180 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in tfm_core_get_boot_data_handler()
189 boot_data = (struct tfm_boot_data *)buf_start; in tfm_core_get_boot_data_handler()
190 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in tfm_core_get_boot_data_handler()
191 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in tfm_core_get_boot_data_handler()
195 ptr = boot_data->data; in tfm_core_get_boot_data_handler()
[all …]
/trusted-firmware-m-latest/platform/ext/common/
Dboot_hal_bl1_1.c171 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local
178 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in boot_add_data_to_shared_area()
181 if ((boot_data->header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) || in boot_add_data_to_shared_area()
182 (boot_data->header.tlv_tot_len > BOOT_TFM_SHARED_DATA_SIZE)) { in boot_add_data_to_shared_area()
185 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in boot_add_data_to_shared_area()
186 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
190 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in boot_add_data_to_shared_area()
213 (UINT16_MAX - boot_data->header.tlv_tot_len)) { in boot_add_data_to_shared_area()
215 } else if ((SHARED_DATA_ENTRY_SIZE(size) + boot_data->header.tlv_tot_len) > in boot_add_data_to_shared_area()
226 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
Dboot_hal_bl1_2.c226 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local
233 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in boot_add_data_to_shared_area()
236 if ((boot_data->header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) || in boot_add_data_to_shared_area()
237 (boot_data->header.tlv_tot_len > BOOT_TFM_SHARED_DATA_SIZE)) { in boot_add_data_to_shared_area()
240 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in boot_add_data_to_shared_area()
241 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
245 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in boot_add_data_to_shared_area()
268 (UINT16_MAX - boot_data->header.tlv_tot_len)) { in boot_add_data_to_shared_area()
270 } else if ((SHARED_DATA_ENTRY_SIZE(size) + boot_data->header.tlv_tot_len) > in boot_add_data_to_shared_area()
281 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
Dboot_hal_bl2.c260 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local
267 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in boot_add_data_to_shared_area()
270 if ((boot_data->header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) || in boot_add_data_to_shared_area()
271 (boot_data->header.tlv_tot_len > BOOT_TFM_SHARED_DATA_SIZE)) { in boot_add_data_to_shared_area()
274 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in boot_add_data_to_shared_area()
275 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
279 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in boot_add_data_to_shared_area()
302 (UINT16_MAX - boot_data->header.tlv_tot_len)) { in boot_add_data_to_shared_area()
304 } else if ((SHARED_DATA_ENTRY_SIZE(size) + boot_data->header.tlv_tot_len) > in boot_add_data_to_shared_area()
315 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
/trusted-firmware-m-latest/secure_fw/partitions/initial_attestation/
Dattest_boot_data.c48 static struct attest_boot_data boot_data; variable
172 if (boot_data.header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) { in attest_get_tlv_by_module()
177 tlv_end = (uint8_t *)&boot_data + boot_data.header.tlv_tot_len; in attest_get_tlv_by_module()
180 tlv_curr = boot_data.data; in attest_get_tlv_by_module()
354 (struct tfm_boot_data *)&boot_data, in attest_boot_data_init()
Dtfm_attest.c27 struct tfm_boot_data *boot_data, in attest_get_boot_data() argument
33 tfm_res = tfm_core_get_boot_data(major_type, boot_data, len); in attest_get_boot_data()
Dattest.h58 struct tfm_boot_data *boot_data,
/trusted-firmware-m-latest/platform/ext/target/arm/rse/rdfremont/bl2/
Dboot_hal_bl2.c57 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local
64 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in boot_add_data_to_shared_area()
67 if ((boot_data->header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) || in boot_add_data_to_shared_area()
68 (boot_data->header.tlv_tot_len > BOOT_TFM_SHARED_DATA_SIZE)) { in boot_add_data_to_shared_area()
70 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in boot_add_data_to_shared_area()
71 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
75 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in boot_add_data_to_shared_area()
100 (UINT16_MAX - boot_data->header.tlv_tot_len)) { in boot_add_data_to_shared_area()
102 } else if ((SHARED_DATA_ENTRY_SIZE(size) + boot_data->header.tlv_tot_len) > in boot_add_data_to_shared_area()
113 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
/trusted-firmware-m-latest/platform/ext/target/cypress/psoc64/
Dtfm_hal_platform.c49 uint32_t *boot_data = (uint32_t*)BOOT_TFM_SHARED_DATA_BASE; in mock_tfm_shared_data() local
50 memcpy(boot_data, mock_data, sizeof(mock_data)); in mock_tfm_shared_data()
/trusted-firmware-m-latest/secure_fw/partitions/lib/runtime/include/
Dservice_api.h23 struct tfm_boot_data *boot_data,