Searched refs:boot_data (Results 1 – 10 of 10) sorted by relevance
131 struct tfm_boot_data *boot_data; in tfm_core_validate_boot_data() local133 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() local179 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 …]
171 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local178 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()
226 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local233 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()
260 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local267 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()
48 static struct attest_boot_data boot_data; variable172 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()
27 struct tfm_boot_data *boot_data, in attest_get_boot_data() argument33 tfm_res = tfm_core_get_boot_data(major_type, boot_data, len); in attest_get_boot_data()
58 struct tfm_boot_data *boot_data,
57 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local64 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()
49 uint32_t *boot_data = (uint32_t*)BOOT_TFM_SHARED_DATA_BASE; in mock_tfm_shared_data() local50 memcpy(boot_data, mock_data, sizeof(mock_data)); in mock_tfm_shared_data()
23 struct tfm_boot_data *boot_data,