Searched refs:boot_data (Results 1 – 9 of 9) 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 …]
179 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local186 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()
210 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local217 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()
255 struct tfm_boot_data *boot_data; in boot_add_data_to_shared_area() local262 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()
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,
47 uint32_t *boot_data = (uint32_t*)BOOT_TFM_SHARED_DATA_BASE; in mock_tfm_shared_data() local48 memcpy(boot_data, mock_data, sizeof(mock_data)); in mock_tfm_shared_data()
23 struct tfm_boot_data *boot_data,