Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 89) sorted by relevance

1234

/rk3399_ARM-atf/drivers/arm/css/sds/
H A Dsds.c29 static int sds_struct_is_valid(unsigned int region_id, uintptr_t header) in sds_struct_is_valid() argument
31 size_t struct_size = GET_SDS_HEADER_STRUCT_SIZE(header); in sds_struct_is_valid()
34 if (GET_SDS_HEADER_ID(header) == 0) { in sds_struct_is_valid()
39 if (GET_SDS_HEADER_VERSION(header) == SDS_REGION_SCH_VERSION) { in sds_struct_is_valid()
62 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(region_id, header) != SDS_OK) { in validate_sds_struct_headers()
78 header += GET_SDS_HEADER_STRUCT_SIZE(header) + SDS_HEADER_SIZE; in validate_sds_struct_headers()
88 struct_header_t **header) in get_struct_header() argument
94 assert(header); in get_struct_header()
[all …]
/rk3399_ARM-atf/drivers/renesas/common/console/
H A Drcar_printf.c41 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 …]
/rk3399_ARM-atf/lib/optee/
H A Doptee_utils.c19 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 …]
/rk3399_ARM-atf/plat/arm/board/neoverse_rd/common/ras/
H A Dnrd_ras_sram.c46 mm_communicate_header_t *header; in nrd_ras_sram_intr_handler() local
75 header = (void *)PLAT_SPM_BUF_BASE; in nrd_ras_sram_intr_handler()
76 memset(header, 0, sizeof(*header)); in nrd_ras_sram_intr_handler()
77 memcpy(&header->data, &sram_info, sizeof(sram_info)); in nrd_ras_sram_intr_handler()
78 header->message_len = sizeof(sram_info); in nrd_ras_sram_intr_handler()
79 memcpy(&header->header_guid, (void *)&sram_ecc_event_guid, in nrd_ras_sram_intr_handler()
82 spm_mm_sp_call(MM_COMMUNICATE_AARCH64, (uint64_t)header, 0, in nrd_ras_sram_intr_handler()
H A Dnrd_ras_cpu.c148 mm_communicate_header_t *header; in nrd_ras_cpu_intr_handler() local
172 header = (void *) PLAT_SPM_BUF_BASE; in nrd_ras_cpu_intr_handler()
173 memset(header, 0, sizeof(*header)); in nrd_ras_cpu_intr_handler()
174 memcpy(&header->data, &cpu_info, sizeof(cpu_info)); in nrd_ras_cpu_intr_handler()
175 header->message_len = sizeof(cpu_info); in nrd_ras_cpu_intr_handler()
176 memcpy(&header->header_guid, (void *) &cpu_ecc_event_guid, in nrd_ras_cpu_intr_handler()
179 spm_mm_sp_call(MM_COMMUNICATE_AARCH64, (uint64_t)header, 0, in nrd_ras_cpu_intr_handler()
/rk3399_ARM-atf/drivers/io/
H A Dio_encrypted.c44 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 …]
H A Dio_fip.c88 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()
/rk3399_ARM-atf/tools/encrypt_fw/src/
H A Dencrypt.c32 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()
/rk3399_ARM-atf/drivers/partition/
H A Dpartition.c92 gpt_header_t *header) in load_gpt_header() argument
104 result = io_read(image_handle, (uintptr_t)header, in load_gpt_header()
112 if (memcmp(header->signature, GPT_SIGNATURE, in load_gpt_header()
113 sizeof(header->signature)) != 0) { in load_gpt_header()
123 header_crc = header->header_crc; in load_gpt_header()
124 header->header_crc = 0U; in load_gpt_header()
126 calc_crc = tf_crc32(0U, (uint8_t *)header, sizeof(gpt_header_t)); in load_gpt_header()
133 header->header_crc = header_crc; in load_gpt_header()
136 list.entry_count = header->list_num; in load_gpt_header()
227 static int load_partition_gpt(uintptr_t image_handle, gpt_header_t header) in load_partition_gpt() argument
[all …]
/rk3399_ARM-atf/drivers/arm/rse/
H A Drse_comms.c91 io_buf.msg.header.seq_num = seq_num, in psa_call()
93 io_buf.msg.header.client_id = 1U, in psa_call()
94 io_buf.msg.header.protocol_ver = select_protocol_version(in_vec, in_len, out_vec, out_len); in psa_call()
103 VERBOSE("protocol_ver=%u\n", io_buf.msg.header.protocol_ver); in psa_call()
104 VERBOSE("seq_num=%u\n", io_buf.msg.header.seq_num); in psa_call()
105 VERBOSE("client_id=%u\n", io_buf.msg.header.client_id); in psa_call()
130 VERBOSE("protocol_ver=%u\n", io_buf.reply.header.protocol_ver); in psa_call()
131 VERBOSE("seq_num=%u\n", io_buf.reply.header.seq_num); in psa_call()
132 VERBOSE("client_id=%u\n", io_buf.reply.header.client_id); in psa_call()
H A Drse_comms_protocol.h31 struct serialized_rse_comms_header_t header; member
40 struct serialized_rse_comms_header_t header; member
H A Drse_comms_protocol.c27 switch (msg->header.protocol_ver) { in rse_protocol_serialize_msg()
62 switch (reply->header.protocol_ver) { in rse_protocol_deserialize_reply()
/rk3399_ARM-atf/drivers/tpm/
H A Dtpm2_cmds.c69 command_size = be32toh(buf->header.cmd_size); in tpm_update_buffer()
104 buf->header.cmd_size = htobe32(command_size + new_len); in tpm_update_buffer()
119 startup_cmd.header.tag = htobe16(TPM_ST_NO_SESSIONS); in tpm_startup()
120 startup_cmd.header.cmd_size = htobe32(sizeof(tpm_cmd_hdr)); in tpm_startup()
121 startup_cmd.header.cmd_code = htobe32(TPM_CMD_STARTUP); in tpm_startup()
133 tpm_rc = be32toh(startup_response.header.cmd_code); in tpm_startup()
156 pcr_extend_cmd.header.tag = htobe16(TPM_ST_SESSIONS); in tpm_pcr_extend()
157 pcr_extend_cmd.header.cmd_size = htobe32(sizeof(tpm_cmd_hdr)); in tpm_pcr_extend()
158 pcr_extend_cmd.header.cmd_code = htobe32(TPM_CMD_PCR_EXTEND); in tpm_pcr_extend()
215 tpm_rc = be32toh(pcr_extend_response.header.cmd_code); in tpm_pcr_extend()
H A Dtpm2_fifo_spi.c37 uint8_t header[4]; in tpm2_spi_start_transaction() local
57 header[0] = ((write) ? 0x00 : 0x80) | (len - 1); in tpm2_spi_start_transaction()
63 header[1] = CS_ASSERT_OFFSET; in tpm2_spi_start_transaction()
69 header[2] = tpm_reg >> 8; in tpm2_spi_start_transaction()
70 header[3] = tpm_reg; in tpm2_spi_start_transaction()
72 rc = tpm2_spi_transfer(header, header_response, 4); in tpm2_spi_start_transaction()
/rk3399_ARM-atf/lib/coreboot/
H A Dcoreboot_table.c121 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()
/rk3399_ARM-atf/tools/sptool/
H A Dhob.py171 self.header = HobGenericHeader(EFI_HOB_TYPE_GUID_EXTENSION, hob_length)
176 self.header.format_str + self.name.format_str + data_format_str
181 self.header.pack()
206 self.header = HobGenericHeader(EFI_HOB_TYPE_HANDOFF, hob_length)
212 self.free_memory_bottom = free_memory_base + self.header.hob_length
222 return self.header.pack() + struct_pack_with_endianness(
245 self.header = HobGenericHeader(EFI_HOB_TYPE_FV, hob_length)
246 self.format_str = self.header.format_str + self.data_format_str
251 return self.header.pack() + struct_pack_with_endianness(
264 self.header = HobGenericHeader(EFI_HOB_TYPE_END_OF_HOB_LIST, 0)
[all …]
/rk3399_ARM-atf/tools/conventional-changelog-tf-a/templates/
H A Dtemplate.hbs1 {{> 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 }}
H A Dnote-section.hbs1 {{ header }}
11 …{{#tf-a-mdlist 0}}{{> tf-a-note-section root=@root header=(tf-a-concat "**" title "**") }}{{/tf-a-…
H A Dcommit-section.hbs2 {{ header }}
13 …{{#tf-a-mdlist 0}}{{> tf-a-commit-section root=@root header=(tf-a-concat "**" title "**") }}{{/tf-…
/rk3399_ARM-atf/include/lib/hob/
H A Dhob.h51 struct efi_hob_generic_header header; member
66 struct efi_hob_generic_header header; member
78 struct efi_hob_generic_header header; member
89 struct efi_hob_generic_header header; member
/rk3399_ARM-atf/tools/marvell/doimage/
H A Ddoimage.c804 ext_header_t header; in format_sec_ext() local
819 header.type = EXT_TYPE_SECURITY; in format_sec_ext()
820 header.offset = 0; in format_sec_ext()
821 header.size = sizeof(sec_entry_t); in format_sec_ext()
822 header.reserved = 0; in format_sec_ext()
962 written = fwrite(&header, sizeof(ext_header_t), 1, out_fd); in format_sec_ext()
995 int finalize_secure_ext(header_t *header, in finalize_secure_ext() argument
1007 cur_ext < header->ext_count; cur_ext++) { in finalize_secure_ext()
1043 header->boot_image_size = final_image_sz; in finalize_secure_ext()
1044 header->boot_image_checksum = in finalize_secure_ext()
[all …]
/rk3399_ARM-atf/plat/st/stm32mp2/aarch64/
H A Dstm32mp2.ld.S28 .header : {
30 KEEP(*(.header))
/rk3399_ARM-atf/plat/st/stm32mp1/
H A Dstm32mp1.ld.S28 .header : {
30 KEEP(*(.header))
/rk3399_ARM-atf/docs/resources/diagrams/plantuml/
H A Dfip-secure-partitions.puml79 <i>header</i>
89 <i>header</i>
103 <i>header</i>
115 <i>header</i>
/rk3399_ARM-atf/plat/intel/soc/common/soc/
H A Dsocfpga_mailbox.c32 uint32_t *header, uint32_t *resp,
236 int mailbox_read_response_async(unsigned int *job_id, uint32_t *header, in mailbox_read_response_async() argument
244 (uint8_t *)job_id, header, in mailbox_read_response_async()
257 mailbox_resp_ctr.payload->header) - in mailbox_read_response_async()
289 mailbox_resp_ctr.payload->header = resp_data; in mailbox_read_response_async()
301 if (header != 0) { in mailbox_read_response_async()
302 *header = mailbox_resp_ctr.payload->header; in mailbox_read_response_async()
306 ret_resp_len = MBOX_RESP_LEN(mailbox_resp_ctr.payload->header); in mailbox_read_response_async()
327 if (MBOX_RESP_ERR(mailbox_resp_ctr.payload->header) > 0U) { in mailbox_read_response_async()
329 mailbox_resp_ctr.payload->header); in mailbox_read_response_async()
[all …]

1234