/trusted-firmware-a-3.4.0/drivers/arm/css/sds/ |
D | sds.c | 34 static int sds_struct_is_valid(uintptr_t header) in sds_struct_is_valid() argument 36 size_t struct_size = GET_SDS_HEADER_STRUCT_SIZE(header); in sds_struct_is_valid() 39 if (GET_SDS_HEADER_ID(header) == 0) in sds_struct_is_valid() 43 if (GET_SDS_HEADER_VERSION(header) == SDS_REGION_SCH_VERSION) in sds_struct_is_valid() 63 uintptr_t header; in validate_sds_struct_headers() local 70 header = sds_mem_base + SDS_REGION_DESC_SIZE; in validate_sds_struct_headers() 74 if (sds_struct_is_valid(header) != SDS_OK) { in validate_sds_struct_headers() 78 header += GET_SDS_HEADER_STRUCT_SIZE(header) + SDS_HEADER_SIZE; in validate_sds_struct_headers() 87 static int get_struct_header(uint32_t structure_id, struct_header_t **header) in get_struct_header() argument 92 assert(header); in get_struct_header() [all …]
|
/trusted-firmware-a-3.4.0/drivers/renesas/common/console/ |
D | rcar_printf.c | 41 loghead_t header; member 57 if (t_log->header.index >= (uint32_t) RCAR_BL31_LOG_MAX) { in rcar_set_log_data() 58 t_log->header.index = 0U; in rcar_set_log_data() 59 t_log->header.size = 0U; in rcar_set_log_data() 64 t_log->log_data[t_log->header.index] = (uint8_t) c; in rcar_set_log_data() 65 t_log->header.index++; in rcar_set_log_data() 66 if (t_log->header.size < t_log->header.index) { in rcar_set_log_data() 67 t_log->header.size = t_log->header.index; in rcar_set_log_data() 69 if (t_log->header.index >= (uint32_t) RCAR_BL31_LOG_MAX) { in rcar_set_log_data() 70 t_log->header.index = 0U; in rcar_set_log_data() [all …]
|
/trusted-firmware-a-3.4.0/lib/optee/ |
D | optee_utils.c | 53 static bool tee_validate_header(optee_header_t *header) in tee_validate_header() argument 55 if ((header->magic == TEE_MAGIC_NUM_OPTEE) && in tee_validate_header() 56 (header->version == 2u) && in tee_validate_header() 57 (header->nb_images > 0u) && in tee_validate_header() 58 (header->nb_images <= OPTEE_MAX_NUM_IMAGES)) { in tee_validate_header() 143 optee_header_t *header; in parse_optee_header() local 148 header = (optee_header_t *)header_ep->pc; in parse_optee_header() 149 assert(header); in parse_optee_header() 154 INFO(" magic=0x%x\n", header->magic); in parse_optee_header() 155 INFO(" version=0x%x\n", header->version); in parse_optee_header() [all …]
|
/trusted-firmware-a-3.4.0/plat/st/common/ |
D | stm32mp_auth.c | 32 int stm32mp_auth_image(boot_api_image_header_t *header, uintptr_t buffer) in stm32mp_auth_image() argument 36 uint32_t header_skip_cksum = sizeof(header->magic) + in stm32mp_auth_image() 37 sizeof(header->image_signature) + in stm32mp_auth_image() 38 sizeof(header->payload_checksum); in stm32mp_auth_image() 42 if (header->option_flags != 0U) { in stm32mp_auth_image() 61 if (auth_ops->check_key(header->ecc_pubk, NULL) != BOOT_API_RETURN_OK) { in stm32mp_auth_image() 69 ret = stm32_hash_update((uint8_t *)&header->header_version, in stm32mp_auth_image() 78 header->image_length, image_hash); in stm32mp_auth_image() 85 if (auth_ops->verify_signature(image_hash, header->ecc_pubk, in stm32mp_auth_image() 86 header->image_signature, in stm32mp_auth_image() [all …]
|
D | stm32mp_common.c | 89 int stm32mp_check_header(boot_api_image_header_t *header, uintptr_t buffer) in stm32mp_check_header() argument 100 if (header->magic != BOOT_API_IMAGE_HEADER_MAGIC_NB) { in stm32mp_check_header() 105 if ((header->header_version & HEADER_VERSION_MAJOR_MASK) != in stm32mp_check_header() 111 for (i = 0U; i < header->image_length; i++) { in stm32mp_check_header() 115 if (header->payload_checksum != img_checksum) { in stm32mp_check_header() 117 header->payload_checksum); in stm32mp_check_header()
|
/trusted-firmware-a-3.4.0/drivers/io/ |
D | io_encrypted.c | 44 static inline int is_valid_header(struct fw_enc_hdr *header) in is_valid_header() argument 46 if (header->magic == ENC_HEADER_MAGIC) in is_valid_header() 157 struct fw_enc_hdr header; in enc_file_read() local 168 result = io_read(backend_handle, (uintptr_t)&header, sizeof(header), in enc_file_read() 175 if (!is_valid_header(&header)) { in enc_file_read() 181 fw_enc_status = header.flags & FW_ENC_STATUS_FLAG_MASK; in enc_file_read() 183 if ((header.iv_len > ENC_MAX_IV_SIZE) || in enc_file_read() 184 (header.tag_len > ENC_MAX_TAG_SIZE)) { in enc_file_read() 205 result = crypto_mod_auth_decrypt(header.dec_algo, in enc_file_read() 207 key_len, key_flags, header.iv, in enc_file_read() [all …]
|
D | io_fip.c | 88 static inline int is_valid_header(fip_toc_header_t *header) in is_valid_header() argument 90 if ((header->name == TOC_HEADER_NAME) && (header->serial_number != 0)) { in is_valid_header() 221 fip_toc_header_t header; in fip_dev_init() local 248 result = io_read(backend_handle, (uintptr_t)&header, sizeof(header), in fip_dev_init() 251 if (!is_valid_header(&header)) { in fip_dev_init() 260 state->plat_toc_flag = (header.flags >> 32) & 0xffff; in fip_dev_init()
|
/trusted-firmware-a-3.4.0/plat/arm/css/sgi/ |
D | sgi_ras.c | 119 mm_communicate_header_t *header; in sgi_ras_intr_handler() local 146 header = (void *) PLAT_SPM_BUF_BASE; in sgi_ras_intr_handler() 147 memset(header, 0, sizeof(*header)); in sgi_ras_intr_handler() 148 memcpy(&header->data, &err_rec->aux_data, sizeof(err_rec->aux_data)); in sgi_ras_intr_handler() 149 header->message_len = sizeof(err_rec->aux_data); in sgi_ras_intr_handler() 150 memcpy(&header->header_guid, (void *) &dmc620_ecc_event_guid, in sgi_ras_intr_handler() 153 spm_mm_sp_call(MM_COMMUNICATE_AARCH64, (uint64_t)header, 0, in sgi_ras_intr_handler()
|
/trusted-firmware-a-3.4.0/tools/encrypt_fw/src/ |
D | encrypt.c | 32 struct fw_enc_hdr header; in gcm_encrypt() local 34 memset(&header, 0, sizeof(struct fw_enc_hdr)); in gcm_encrypt() 124 header.magic = ENC_HEADER_MAGIC; in gcm_encrypt() 125 header.flags |= fw_enc_status & FW_ENC_STATUS_FLAG_MASK; in gcm_encrypt() 126 header.dec_algo = KEY_ALG_GCM; in gcm_encrypt() 127 header.iv_len = IV_SIZE; in gcm_encrypt() 128 header.tag_len = TAG_SIZE; in gcm_encrypt() 129 memcpy(header.iv, iv, IV_SIZE); in gcm_encrypt() 130 memcpy(header.tag, tag, TAG_SIZE); in gcm_encrypt() 138 fwrite(&header, 1, sizeof(struct fw_enc_hdr), op_file); in gcm_encrypt()
|
/trusted-firmware-a-3.4.0/drivers/st/io/ |
D | io_stm32image.c | 170 boot_api_image_header_t *header = in stm32image_partition_size() local 186 header->magic = 0; in stm32image_partition_size() 188 while (header->magic == 0U) { in stm32image_partition_size() 195 result = io_read(backend_handle, (uintptr_t)header, in stm32image_partition_size() 201 header->magic = 0; in stm32image_partition_size() 204 if ((header->magic != BOOT_API_IMAGE_HEADER_MAGIC_NB) || in stm32image_partition_size() 205 (header->binary_type != current_part->binary_type) || in stm32image_partition_size() 206 (header->image_length >= stm32image_dev.device_size)) { in stm32image_partition_size() 224 header->magic = 0; in stm32image_partition_size() 234 if (header->image_length < stm32image_dev.lba_size) { in stm32image_partition_size() [all …]
|
/trusted-firmware-a-3.4.0/tools/conventional-changelog-tf-a/templates/ |
D | template.hbs | 1 {{> header }} 4 {{> tf-a-note-section root=@root header=(tf-a-concat "### ⚠ " title) topLevel=true }} 8 {{> tf-a-commit-section root=@root header=(tf-a-concat "### " title) topLevel=true }}
|
D | note-section.hbs | 1 {{ header }} 11 …{{#tf-a-mdlist 0}}{{> tf-a-note-section root=@root header=(tf-a-concat "**" title "**") }}{{/tf-a-…
|
D | commit-section.hbs | 2 {{ header }} 13 …{{#tf-a-mdlist 0}}{{> tf-a-commit-section root=@root header=(tf-a-concat "**" title "**") }}{{/tf-…
|
D | commit.hbs | 8 {{~ header }}
|
/trusted-firmware-a-3.4.0/lib/coreboot/ |
D | coreboot_table.c | 113 cb_header_t *header = base; in coreboot_table_setup() local 117 if (strncmp(header->signature, "LBIO", 4)) { in coreboot_table_setup() 122 ptr = base + header->header_bytes; in coreboot_table_setup() 123 for (i = 0; i < header->table_entries; i++) { in coreboot_table_setup() 127 if (ptr - base >= header->header_bytes + header->table_bytes) { in coreboot_table_setup()
|
/trusted-firmware-a-3.4.0/drivers/partition/ |
D | partition.c | 85 gpt_header_t header; in load_gpt_header() local 94 result = io_read(image_handle, (uintptr_t)&header, in load_gpt_header() 99 if (memcmp(header.signature, GPT_SIGNATURE, in load_gpt_header() 100 sizeof(header.signature)) != 0) { in load_gpt_header() 109 header_crc = header.header_crc; in load_gpt_header() 110 header.header_crc = 0U; in load_gpt_header() 112 calc_crc = tf_crc32(0U, (uint8_t *)&header, DEFAULT_GPT_HEADER_SIZE); in load_gpt_header() 119 header.header_crc = header_crc; in load_gpt_header() 122 list.entry_count = header.list_num; in load_gpt_header()
|
/trusted-firmware-a-3.4.0/drivers/measured_boot/event_log/ |
D | event_print.c | 42 LOG_EVENT(" PCRIndex : %u\n", event->header.pcr_index); in id_event_print() 43 assert(event->header.pcr_index == (uint32_t)PCR_0); in id_event_print() 45 LOG_EVENT(" EventType : %u\n", event->header.event_type); in id_event_print() 46 assert(event->header.event_type == EV_NO_ACTION); in id_event_print() 49 for (i = 0U; i < sizeof(event->header.digest); ++i) { in id_event_print() 50 uint8_t val = event->header.digest[i]; in id_event_print() 70 event_size = event->header.event_size; in id_event_print()
|
/trusted-firmware-a-3.4.0/tools/marvell/doimage/ |
D | doimage.c | 808 ext_header_t header; in format_sec_ext() local 823 header.type = EXT_TYPE_SECURITY; in format_sec_ext() 824 header.offset = 0; in format_sec_ext() 825 header.size = sizeof(sec_entry_t); in format_sec_ext() 826 header.reserved = 0; in format_sec_ext() 966 written = fwrite(&header, sizeof(ext_header_t), 1, out_fd); in format_sec_ext() 999 int finalize_secure_ext(header_t *header, in finalize_secure_ext() argument 1011 cur_ext < header->ext_count; cur_ext++) { in finalize_secure_ext() 1047 header->boot_image_size = final_image_sz; in finalize_secure_ext() 1048 header->boot_image_checksum = in finalize_secure_ext() [all …]
|
/trusted-firmware-a-3.4.0/plat/st/stm32mp1/ |
D | stm32mp1.ld.S | 28 .header : { 30 KEEP(*(.header))
|
/trusted-firmware-a-3.4.0/docs/resources/diagrams/plantuml/ |
D | fip-secure-partitions.puml | 79 <i>header</i> 89 <i>header</i> 103 <i>header</i> 115 <i>header</i>
|
/trusted-firmware-a-3.4.0/drivers/ufs/ |
D | ufs.c | 271 utrd->header = base; in get_utrd() 274 utrd->upiu = ALIGN_CDB(utrd->header + sizeof(utrd_header_t)); in get_utrd() 280 hd = (utrd_header_t *)utrd->header; in get_utrd() 304 utrd->header & UINT32_MAX); in ufs_prepare_cmd() 308 hd = (utrd_header_t *)utrd->header; in ufs_prepare_cmd() 390 flush_dcache_range((uintptr_t)utrd->header, UFS_DESC_SIZE); in ufs_prepare_cmd() 402 hd = (utrd_header_t *)utrd->header; in ufs_prepare_query() 406 utrd->header & UINT32_MAX); in ufs_prepare_query() 408 (utrd->header >> 32) & UINT32_MAX); in ufs_prepare_query() 448 flush_dcache_range((uintptr_t)utrd->header, UFS_DESC_SIZE); in ufs_prepare_query() [all …]
|
/trusted-firmware-a-3.4.0/plat/intel/soc/common/include/ |
D | socfpga_mailbox.h | 177 #define MBOX_CMD_MASK(header) ((header) & 0x7ff) argument 195 uint32_t header; member 221 int mailbox_read_response_async(uint32_t *job_id, uint32_t *header,
|
/trusted-firmware-a-3.4.0/plat/intel/soc/common/soc/ |
D | socfpga_mailbox.c | 176 int mailbox_read_response_async(unsigned int *job_id, uint32_t *header, in mailbox_read_response_async() argument 188 mailbox_resp_ctr.payload->header) - in mailbox_read_response_async() 221 mailbox_resp_ctr.payload->header = resp_data; in mailbox_read_response_async() 233 if (header != 0) { in mailbox_read_response_async() 234 *header = mailbox_resp_ctr.payload->header; in mailbox_read_response_async() 238 ret_resp_len = MBOX_RESP_LEN(mailbox_resp_ctr.payload->header); in mailbox_read_response_async() 253 if (MBOX_RESP_ERR(mailbox_resp_ctr.payload->header) > 0U) { in mailbox_read_response_async() 255 mailbox_resp_ctr.payload->header); in mailbox_read_response_async() 256 return -MBOX_RESP_ERR(mailbox_resp_ctr.payload->header); in mailbox_read_response_async()
|
/trusted-firmware-a-3.4.0/plat/st/common/include/ |
D | stm32mp_auth.h | 17 int stm32mp_auth_image(boot_api_image_header_t *header, uintptr_t buffer);
|
/trusted-firmware-a-3.4.0/include/export/ |
D | README | 31 should include a wrapper header that ensures the export header is included in 32 the right manner. (The wrapper header for include/export/x/y/z_exp.h should
|