Home
last modified time | relevance | path

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

1234

/trusted-firmware-a/drivers/arm/css/sds/
A Dsds.c39 if (GET_SDS_HEADER_ID(header) == 0) in sds_struct_is_valid()
63 uintptr_t header; in validate_sds_struct_headers() local
78 header += GET_SDS_HEADER_STRUCT_SIZE(header) + SDS_HEADER_SIZE; in validate_sds_struct_headers()
92 assert(header); in get_struct_header()
110 *header = NULL; in get_struct_header()
121 struct_header_t *header = NULL; in sds_struct_exists() local
126 assert(header); in sds_struct_exists()
144 struct_header_t *header = NULL; in sds_struct_read() local
154 assert(header); in sds_struct_read()
190 struct_header_t *header = NULL; in sds_struct_write() local
[all …]
/trusted-firmware-a/drivers/renesas/common/console/
A Drcar_printf.c41 loghead_t header; member
58 t_log->header.index = 0U; in rcar_set_log_data()
59 t_log->header.size = 0U; 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()
70 t_log->header.index = 0U; in rcar_set_log_data()
85 if (t_log->header.head != RCAR_LOG_HEAD) { in rcar_log_init()
101 t_log->header.head = RCAR_LOG_HEAD; in rcar_log_init()
102 t_log->header.index = 0U; in rcar_log_init()
[all …]
/trusted-firmware-a/lib/optee/
A Doptee_utils.c56 (header->version == 2u) && in tee_validate_header()
57 (header->nb_images > 0u) && 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()
156 INFO(" arch=0x%x\n", header->arch); in parse_optee_header()
177 if (!tee_validate_header(header)) { in parse_optee_header()
192 &header->optee_image_list[num]); in parse_optee_header()
196 &header->optee_image_list[num]); in parse_optee_header()
[all …]
/trusted-firmware-a/plat/st/common/
A Dstm32mp_auth.c32 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()
56 if (auth_ops->check_key(header->ecc_pubk, NULL) != BOOT_API_RETURN_OK) { in stm32mp_auth_image()
64 ret = stm32_hash_update((uint8_t *)&header->header_version, in stm32mp_auth_image()
73 header->image_length, image_hash); in stm32mp_auth_image()
80 if (auth_ops->verify_signature(image_hash, header->ecc_pubk, in stm32mp_auth_image()
81 header->image_signature, in stm32mp_auth_image()
[all …]
A Dstm32mp_common.c82 int stm32mp_check_header(boot_api_image_header_t *header, uintptr_t buffer) in stm32mp_check_header() argument
93 if (header->magic != BOOT_API_IMAGE_HEADER_MAGIC_NB) { in stm32mp_check_header()
98 if ((header->header_version & HEADER_VERSION_MAJOR_MASK) != in stm32mp_check_header()
104 for (i = 0U; i < header->image_length; i++) { in stm32mp_check_header()
108 if (header->payload_checksum != img_checksum) { in stm32mp_check_header()
110 header->payload_checksum); in stm32mp_check_header()
A Dstm32cubeprogrammer_usb.c45 static bool is_valid_header(fip_toc_header_t *header) in is_valid_header() argument
47 if ((header->name == TOC_HEADER_NAME) && (header->serial_number != 0U)) { in is_valid_header()
/trusted-firmware-a/drivers/io/
A Dio_encrypted.c46 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()
208 header.iv_len, header.tag, in enc_file_read()
[all …]
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()
/trusted-firmware-a/drivers/st/io/
A Dio_stm32image.c170 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()
201 header->magic = 0; in stm32image_partition_size()
224 header->magic = 0; in stm32image_partition_size()
237 *length = header->image_length; in stm32image_partition_size()
251 boot_api_image_header_t *header = in stm32image_partition_read() local
299 if ((header->load_address != 0U) && in stm32image_partition_read()
300 (header->load_address != buffer)) { in stm32image_partition_read()
332 header->magic = 0; in stm32image_partition_read()
[all …]
/trusted-firmware-a/tools/encrypt_fw/src/
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()
/trusted-firmware-a/plat/arm/css/sgi/
A Dsgi_ras.c119 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/lib/coreboot/
A Dcoreboot_table.c113 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/tools/conventional-changelog-tf-a/templates/
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 }}
A Dnote-section.hbs1 {{ header }}
11 …{{#tf-a-mdlist 0}}{{> tf-a-note-section root=@root header=(tf-a-concat "**" title "**") }}{{/tf-a-…
A Dcommit-section.hbs2 {{ header }}
13 …{{#tf-a-mdlist 0}}{{> tf-a-commit-section root=@root header=(tf-a-concat "**" title "**") }}{{/tf-…
/trusted-firmware-a/tools/marvell/doimage/
A Ddoimage.c808 ext_header_t header; in format_sec_ext() local
824 header.offset = 0; in format_sec_ext()
826 header.reserved = 0; in format_sec_ext()
1367 ext_header_t header; in format_bin_ext() local
1391 header.offset = 0; in format_bin_ext()
1393 header.reserved = 0; in format_bin_ext()
1458 header->uart_cfg = 0; in update_uart()
1459 header->baudrate = 0; in update_uart()
1478 header_t *header; in write_prolog() local
1507 header->aux_flags = 0; in write_prolog()
[all …]
/trusted-firmware-a/drivers/measured_boot/event_log/
A Devent_print.c42 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/drivers/ufs/
A Dufs.c240 utrd->header = base; in get_utrd()
249 hd = (utrd_header_t *)utrd->header; in get_utrd()
273 utrd->header & UINT32_MAX); in ufs_prepare_cmd()
277 hd = (utrd_header_t *)utrd->header; in ufs_prepare_cmd()
372 hd = (utrd_header_t *)utrd->header; in ufs_prepare_query()
376 utrd->header & UINT32_MAX); in ufs_prepare_query()
429 utrd->header & UINT32_MAX); in ufs_prepare_nop_out()
433 hd = (utrd_header_t *)utrd->header; in ufs_prepare_nop_out()
474 hd = (utrd_header_t *)utrd->header; in ufs_check_resp()
500 hd = (utrd_header_t *)utrd->header; in dump_upiu()
[all …]
/trusted-firmware-a/docs/resources/diagrams/plantuml/
A Dfip-secure-partitions.puml79 <i>header</i>
89 <i>header</i>
103 <i>header</i>
115 <i>header</i>
/trusted-firmware-a/plat/st/stm32mp1/
A Dstm32mp1.ld.S28 .header : {
30 KEEP(*(.header))
/trusted-firmware-a/drivers/partition/
A Dpartition.c83 gpt_header_t header; in load_gpt_header() local
91 result = io_read(image_handle, (uintptr_t)&header, in load_gpt_header()
96 if (memcmp(header.signature, GPT_SIGNATURE, in load_gpt_header()
97 sizeof(header.signature)) != 0) { in load_gpt_header()
102 list.entry_count = header.list_num; in load_gpt_header()
/trusted-firmware-a/include/export/
A DREADME31 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
/trusted-firmware-a/docs/build/TF-A_2.5/_sources/plat/nxp/
A Dnxp-ls-tbbr.rst.txt49 - To generate CSF header, path of CST repository needs to be specified as CST_DIR
51 - CSF header is embedded to each of the BL2 image.
92 - CSF header is embedded to each of the BL31, BL32 and BL33 image.
94 - To generate CSF header, path of CST repository needs to be specified as CST_DIR
96 - Default input files for CSF header generation is added in this repo.
133 - Compilation Steps with build option for generic image processing filters to prepend CSF header:
134 -- Generic image processing filters to prepend CSF header
/trusted-firmware-a/docs/plat/nxp/
A Dnxp-ls-tbbr.rst49 - To generate CSF header, path of CST repository needs to be specified as CST_DIR
51 - CSF header is embedded to each of the BL2 image.
92 - CSF header is embedded to each of the BL31, BL32 and BL33 image.
94 - To generate CSF header, path of CST repository needs to be specified as CST_DIR
96 - Default input files for CSF header generation is added in this repo.
133 - Compilation Steps with build option for generic image processing filters to prepend CSF header:
134 -- Generic image processing filters to prepend CSF header
/trusted-firmware-a/drivers/renesas/common/io/
A Dio_rcar.c383 static uint64_t header[64] __aligned(FLASH_TRANS_SIZE_UNIT) = {0UL}; in rcar_dev_init() local
427 rc = io_read(handle, (uintptr_t) &header, sizeof(header), &cnt); in rcar_dev_init()
434 inv_dcache_range((uint64_t) header, sizeof(header)); in rcar_dev_init()
437 rcar_image_number = header[0]; in rcar_dev_init()
439 rcar_image_header[i] = header[i * 2 + 1]; in rcar_dev_init()
440 rcar_image_header_prttn[i] = header[i * 2 + 2]; in rcar_dev_init()

Completed in 23 milliseconds

1234