/trusted-firmware-a-latest/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-latest/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-latest/lib/optee/ |
D | optee_utils.c | 19 static bool tee_validate_header(optee_header_t *header) in tee_validate_header() argument 21 if ((header->magic == TEE_MAGIC_NUM_OPTEE) && in tee_validate_header() 22 (header->version == 2u) && in tee_validate_header() 23 (header->nb_images > 0u) && in tee_validate_header() 24 (header->nb_images <= OPTEE_MAX_NUM_IMAGES)) { in tee_validate_header() 109 optee_header_t *header; in parse_optee_header() local 114 header = (optee_header_t *)header_ep->pc; in parse_optee_header() 115 assert(header); in parse_optee_header() 120 INFO(" magic=0x%x\n", header->magic); in parse_optee_header() 121 INFO(" version=0x%x\n", header->version); in parse_optee_header() [all …]
|
/trusted-firmware-a-latest/plat/arm/css/sgi/ras/ |
D | sgi_ras_sram.c | 46 mm_communicate_header_t *header; in sgi_ras_sram_intr_handler() local 74 header = (void *)PLAT_SPM_BUF_BASE; in sgi_ras_sram_intr_handler() 75 memset(header, 0, sizeof(*header)); in sgi_ras_sram_intr_handler() 76 memcpy(&header->data, &sram_info, sizeof(sram_info)); in sgi_ras_sram_intr_handler() 77 header->message_len = sizeof(sram_info); in sgi_ras_sram_intr_handler() 78 memcpy(&header->header_guid, (void *)&sram_ecc_event_guid, in sgi_ras_sram_intr_handler() 81 spm_mm_sp_call(MM_COMMUNICATE_AARCH64, (uint64_t)header, 0, in sgi_ras_sram_intr_handler()
|
D | sgi_ras_cpu.c | 151 mm_communicate_header_t *header; in sgi_ras_cpu_intr_handler() local 175 header = (void *) PLAT_SPM_BUF_BASE; in sgi_ras_cpu_intr_handler() 176 memset(header, 0, sizeof(*header)); in sgi_ras_cpu_intr_handler() 177 memcpy(&header->data, &cpu_info, sizeof(cpu_info)); in sgi_ras_cpu_intr_handler() 178 header->message_len = sizeof(cpu_info); in sgi_ras_cpu_intr_handler() 179 memcpy(&header->header_guid, (void *) &cpu_ecc_event_guid, in sgi_ras_cpu_intr_handler() 182 spm_mm_sp_call(MM_COMMUNICATE_AARCH64, (uint64_t)header, 0, in sgi_ras_cpu_intr_handler()
|
/trusted-firmware-a-latest/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-latest/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-latest/drivers/arm/rss/ |
D | rss_comms.c | 90 io_buf.msg.header.seq_num = seq_num, in psa_call() 92 io_buf.msg.header.client_id = 1U, in psa_call() 93 io_buf.msg.header.protocol_ver = select_protocol_version(in_vec, in_len, out_vec, out_len); in psa_call() 102 VERBOSE("protocol_ver=%u\n", io_buf.msg.header.protocol_ver); in psa_call() 103 VERBOSE("seq_num=%u\n", io_buf.msg.header.seq_num); in psa_call() 104 VERBOSE("client_id=%u\n", io_buf.msg.header.client_id); in psa_call() 129 VERBOSE("protocol_ver=%u\n", io_buf.reply.header.protocol_ver); in psa_call() 130 VERBOSE("seq_num=%u\n", io_buf.reply.header.seq_num); in psa_call() 131 VERBOSE("client_id=%u\n", io_buf.reply.header.client_id); in psa_call()
|
D | rss_comms_protocol.h | 31 struct serialized_rss_comms_header_t header; member 40 struct serialized_rss_comms_header_t header; member
|
D | rss_comms_protocol.c | 27 switch (msg->header.protocol_ver) { in rss_protocol_serialize_msg() 62 switch (reply->header.protocol_ver) { in rss_protocol_deserialize_reply()
|
/trusted-firmware-a-latest/lib/coreboot/ |
D | coreboot_table.c | 121 cb_header_t *header = base; in coreboot_table_setup() local 125 if (strncmp(header->signature, "LBIO", 4)) { in coreboot_table_setup() 130 coreboot_table_size = header->header_bytes + header->table_bytes; in coreboot_table_setup() 132 ptr = base + header->header_bytes; in coreboot_table_setup() 133 for (i = 0; i < header->table_entries; i++) { in coreboot_table_setup() 137 if (ptr - base >= header->header_bytes + header->table_bytes) { in coreboot_table_setup()
|
/trusted-firmware-a-latest/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-latest/drivers/partition/ |
D | partition.c | 99 gpt_header_t header; in load_gpt_header() local 110 result = io_read(image_handle, (uintptr_t)&header, in load_gpt_header() 118 if (memcmp(header.signature, GPT_SIGNATURE, in load_gpt_header() 119 sizeof(header.signature)) != 0) { in load_gpt_header() 129 header_crc = header.header_crc; in load_gpt_header() 130 header.header_crc = 0U; in load_gpt_header() 132 calc_crc = tf_crc32(0U, (uint8_t *)&header, sizeof(gpt_header_t)); in load_gpt_header() 139 header.header_crc = header_crc; in load_gpt_header() 142 list.entry_count = header.list_num; in load_gpt_header() 147 *part_lba = header.part_lba; in load_gpt_header()
|
/trusted-firmware-a-latest/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-latest/plat/st/stm32mp1/ |
D | stm32mp1.ld.S | 28 .header : { 30 KEEP(*(.header))
|
/trusted-firmware-a-latest/plat/st/stm32mp2/aarch64/ |
D | stm32mp2.ld.S | 28 .header : { 30 KEEP(*(.header))
|
/trusted-firmware-a-latest/tools/marvell/doimage/ |
D | doimage.c | 803 ext_header_t header; in format_sec_ext() local 818 header.type = EXT_TYPE_SECURITY; in format_sec_ext() 819 header.offset = 0; in format_sec_ext() 820 header.size = sizeof(sec_entry_t); in format_sec_ext() 821 header.reserved = 0; in format_sec_ext() 961 written = fwrite(&header, sizeof(ext_header_t), 1, out_fd); in format_sec_ext() 994 int finalize_secure_ext(header_t *header, in finalize_secure_ext() argument 1006 cur_ext < header->ext_count; cur_ext++) { in finalize_secure_ext() 1042 header->boot_image_size = final_image_sz; in finalize_secure_ext() 1043 header->boot_image_checksum = in finalize_secure_ext() [all …]
|
/trusted-firmware-a-latest/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-latest/plat/intel/soc/common/include/ |
D | socfpga_mailbox.h | 188 #define MBOX_CMD_MASK(header) ((header) & 0x7ff) argument 206 uint32_t header; member 232 int mailbox_read_response_async(uint32_t *job_id, uint32_t *header,
|
/trusted-firmware-a-latest/plat/intel/soc/common/soc/ |
D | socfpga_mailbox.c | 179 int mailbox_read_response_async(unsigned int *job_id, uint32_t *header, in mailbox_read_response_async() argument 192 mailbox_resp_ctr.payload->header) - in mailbox_read_response_async() 225 mailbox_resp_ctr.payload->header = resp_data; in mailbox_read_response_async() 237 if (header != 0) { in mailbox_read_response_async() 238 *header = mailbox_resp_ctr.payload->header; in mailbox_read_response_async() 242 ret_resp_len = MBOX_RESP_LEN(mailbox_resp_ctr.payload->header); in mailbox_read_response_async() 263 if (MBOX_RESP_ERR(mailbox_resp_ctr.payload->header) > 0U) { in mailbox_read_response_async() 265 mailbox_resp_ctr.payload->header); in mailbox_read_response_async() 266 return -MBOX_RESP_ERR(mailbox_resp_ctr.payload->header); in mailbox_read_response_async()
|
/trusted-firmware-a-latest/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
|