Home
last modified time | relevance | path

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

/trusted-firmware-m-3.6.0/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-3.6.0/platform/ext/common/
Dboot_hal_bl1_1.c179 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local
186 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in boot_add_data_to_shared_area()
189 if ((boot_data->header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) || in boot_add_data_to_shared_area()
190 (boot_data->header.tlv_tot_len > BOOT_TFM_SHARED_DATA_SIZE)) { in boot_add_data_to_shared_area()
193 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in boot_add_data_to_shared_area()
194 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
198 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in boot_add_data_to_shared_area()
221 (UINT16_MAX - boot_data->header.tlv_tot_len)) { in boot_add_data_to_shared_area()
223 } else if ((SHARED_DATA_ENTRY_SIZE(size) + boot_data->header.tlv_tot_len) > in boot_add_data_to_shared_area()
234 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
Dboot_hal_bl1_2.c210 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local
217 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in boot_add_data_to_shared_area()
220 if ((boot_data->header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) || in boot_add_data_to_shared_area()
221 (boot_data->header.tlv_tot_len > BOOT_TFM_SHARED_DATA_SIZE)) { in boot_add_data_to_shared_area()
224 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in boot_add_data_to_shared_area()
225 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
229 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in boot_add_data_to_shared_area()
252 (UINT16_MAX - boot_data->header.tlv_tot_len)) { in boot_add_data_to_shared_area()
254 } else if ((SHARED_DATA_ENTRY_SIZE(size) + boot_data->header.tlv_tot_len) > in boot_add_data_to_shared_area()
265 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
Dboot_hal_bl2.c255 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local
262 boot_data = (struct tfm_boot_data *)BOOT_TFM_SHARED_DATA_BASE; in boot_add_data_to_shared_area()
265 if ((boot_data->header.tlv_magic != SHARED_DATA_TLV_INFO_MAGIC) || in boot_add_data_to_shared_area()
266 (boot_data->header.tlv_tot_len > BOOT_TFM_SHARED_DATA_SIZE)) { in boot_add_data_to_shared_area()
269 boot_data->header.tlv_magic = SHARED_DATA_TLV_INFO_MAGIC; in boot_add_data_to_shared_area()
270 boot_data->header.tlv_tot_len = SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
274 tlv_end = BOOT_TFM_SHARED_DATA_BASE + boot_data->header.tlv_tot_len; in boot_add_data_to_shared_area()
297 (UINT16_MAX - boot_data->header.tlv_tot_len)) { in boot_add_data_to_shared_area()
299 } else if ((SHARED_DATA_ENTRY_SIZE(size) + boot_data->header.tlv_tot_len) > in boot_add_data_to_shared_area()
310 boot_data->header.tlv_tot_len += SHARED_DATA_ENTRY_SIZE(size); in boot_add_data_to_shared_area()
/trusted-firmware-m-3.6.0/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-3.6.0/platform/ext/target/cypress/psoc64/
Dtfm_hal_platform.c47 uint32_t *boot_data = (uint32_t*)BOOT_TFM_SHARED_DATA_BASE; in mock_tfm_shared_data() local
48 memcpy(boot_data, mock_data, sizeof(mock_data)); in mock_tfm_shared_data()
/trusted-firmware-m-3.6.0/secure_fw/partitions/lib/runtime/include/
Dservice_api.h23 struct tfm_boot_data *boot_data,