/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | memory_buffer_alloc.c | 93 (size_t) hdr, (size_t) hdr->prev, (size_t) hdr->next, in debug_header() 94 hdr->alloc, hdr->size ); in debug_header() 154 if( hdr->prev != NULL && hdr->prev == hdr->next ) in verify_header() 162 if( hdr->prev_free != NULL && hdr->prev_free == hdr->next_free ) in verify_header() 428 hdr->prev->next = hdr->next; in buffer_alloc_free() 430 hdr = hdr->prev; in buffer_alloc_free() 433 hdr->next->prev = hdr; in buffer_alloc_free() 447 hdr->next = hdr->next->next; in buffer_alloc_free() 464 hdr->prev_free->next_free = hdr; in buffer_alloc_free() 469 hdr->next_free->prev_free = hdr; in buffer_alloc_free() [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-k3/drivers/ |
A D | ti_sci_protocol.h | 68 struct ti_sci_msg_hdr hdr; member 88 struct ti_sci_msg_hdr hdr; member 125 struct ti_sci_msg_hdr hdr; member 142 struct ti_sci_msg_hdr hdr; member 165 struct ti_sci_msg_hdr hdr; member 176 struct ti_sci_msg_hdr hdr; member 193 struct ti_sci_msg_hdr hdr; member 220 struct ti_sci_msg_hdr hdr; member 240 struct ti_sci_msg_hdr hdr; member 259 struct ti_sci_msg_hdr hdr; member [all …]
|
A D | ti_sci.c | 57 struct ti_sci_msg_hdr *hdr = NULL; in ti_sci_setup_xfer() local 62 rx_message_size < sizeof(*hdr) || in ti_sci_setup_xfer() 63 tx_message_size < sizeof(*hdr)) { in ti_sci_setup_xfer() 68 hdr = (struct ti_sci_msg_hdr *)tx_buf; in ti_sci_setup_xfer() 69 hdr->seq = ++message_sequence; in ti_sci_setup_xfer() 70 hdr->type = msg_type; in ti_sci_setup_xfer() 71 hdr->host = OPTEE_HOST_ID; in ti_sci_setup_xfer() 93 struct ti_sci_msg_hdr *hdr = NULL; in ti_sci_get_response() local 106 hdr = (struct ti_sci_msg_hdr *)msg->buf; in ti_sci_get_response() 109 if (hdr->seq == message_sequence) in ti_sci_get_response() [all …]
|
/optee_os-3.20.0/lib/libutils/isoc/ |
A D | bget_malloc.c | 584 if (hdr) { in gen_mdbg_malloc() 586 hdr++; in gen_mdbg_malloc() 603 if (hdr) { in gen_mdbg_free() 604 hdr--; in gen_mdbg_free() 631 hdr++; in gen_mdbg_calloc() 643 hdr--; in gen_mdbg_realloc_unlocked() 646 hdr = raw_realloc(hdr, sizeof(struct mdbg_hdr), in gen_mdbg_realloc_unlocked() 650 hdr++; in gen_mdbg_realloc_unlocked() 679 hdr++; in gen_mdbg_memalign() 690 assert(bget_buf_size(hdr) >= hdr->pl_size); in get_payload_start_size() [all …]
|
/optee_os-3.20.0/core/drivers/scmi-msg/ |
A D | shm_msg.c | 48 struct msg_header *hdr = NULL; in scmi_entry_msg() local 75 hdr = (struct msg_header *)in_buf; in scmi_entry_msg() 76 msg_header = READ_ONCE(hdr->message_header); in scmi_entry_msg() 84 memcpy(msg.in, hdr->payload, msg.in_size); in scmi_entry_msg() 87 hdr = (struct msg_header *)out_buf; in scmi_entry_msg() 89 msg.out = (char *)hdr->payload; in scmi_entry_msg() 95 hdr->message_header = msg_header; in scmi_entry_msg()
|
/optee_os-3.20.0/core/include/drivers/ |
A D | tpm2_cmd.h | 29 struct tpm2_cmd_hdr hdr; member 36 return TEE_U32_FROM_BIG_ENDIAN(cmd->hdr.size); in tpm2_cmd_len() 41 return TEE_U32_FROM_BIG_ENDIAN(cmd->hdr.code); in tpm2_cmd_code() 46 return TEE_U32_FROM_BIG_ENDIAN(cmd->hdr.code); in tpm2_ret_code()
|
/optee_os-3.20.0/ta/trusted_keys/ |
A D | entry.c | 99 struct tk_blob_hdr *hdr = (struct tk_blob_hdr *)out; in huk_ae_encrypt() local 104 hdr->reserved = 0; in huk_ae_encrypt() 106 memcpy(hdr->iv, iv, IV_SIZE); in huk_ae_encrypt() 108 res = TEE_AEInit(crypto_op, hdr->iv, IV_SIZE, TAG_SIZE * 8, 0, 0); in huk_ae_encrypt() 112 res = TEE_AEEncryptFinal(crypto_op, in, in_sz, hdr->enc_key, in huk_ae_encrypt() 113 &enc_key_len, hdr->tag, &tag_len); in huk_ae_encrypt() 117 if (ADD_OVERFLOW(enc_key_len, sizeof(*hdr), out_sz)) in huk_ae_encrypt() 127 struct tk_blob_hdr *hdr = (struct tk_blob_hdr *)in; in huk_ae_decrypt() local 131 if (SUB_OVERFLOW(in_sz, sizeof(*hdr), &enc_key_len)) in huk_ae_decrypt() 134 res = TEE_AEInit(crypto_op, hdr->iv, IV_SIZE, TAG_SIZE * 8, 0, 0); in huk_ae_decrypt() [all …]
|
/optee_os-3.20.0/core/drivers/crypto/se050/core/ |
A D | apdu.c | 13 uint8_t *hdr, size_t hdr_len, in crypto_se_do_apdu() argument 20 hdr, hdr_len, src_data, src_len, in crypto_se_do_apdu()
|
/optee_os-3.20.0/core/drivers/bnxt/ |
A D | bnxt_fw.c | 248 (const char *)hdr, in ape_hdr_crc_calc() 249 (uintptr_t)(&hdr->checksum) - (uintptr_t)hdr); in ape_hdr_crc_calc() 259 (const char *)((uintptr_t)hdr + APE_BIN_HDR_SIZE), in ape_hdr_crc_calc() 260 hdr->num_total_sections * APE_SECTION_HDR_SIZE); in ape_hdr_crc_calc() 265 static int ape_bin_hdr_valid(const struct ape_bin_hdr_s *hdr) in ape_bin_hdr_valid() argument 269 if (!hdr) { in ape_bin_hdr_valid() 274 if (hdr->signature != APE_BIN_HDR_SIGNATURE) { in ape_bin_hdr_valid() 279 if (hdr->num_total_sections > APE_IMG_MAX_SECTIONS) { in ape_bin_hdr_valid() 284 checksum = ape_hdr_crc_calc(hdr); in ape_bin_hdr_valid() 285 if (hdr->checksum != checksum) { in ape_bin_hdr_valid() [all …]
|
/optee_os-3.20.0/lib/libutee/ |
A D | tee_api_arith_mpi.c | 62 struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in copy_mpi_to_bigint() local 69 if (hdr->alloc_size < n) in copy_mpi_to_bigint() 72 hdr->nblimbs = n; in copy_mpi_to_bigint() 73 hdr->sign = mpi->s; in copy_mpi_to_bigint() 74 memcpy(hdr + 1, mpi->p, mpi->n * sizeof(mbedtls_mpi_uint)); in copy_mpi_to_bigint() 104 const struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in get_mpi() local 106 size_t n = hdr->nblimbs; in get_mpi() 113 mpi->s = hdr->sign; in get_mpi() 120 struct bigint_hdr *hdr = (struct bigint_hdr *)bigInt; in TEE_BigIntInit() local 123 hdr->sign = 1; in TEE_BigIntInit() [all …]
|
/optee_os-3.20.0/core/drivers/tpm2/ |
A D | tpm2_cmd.c | 23 put_unaligned_be16(&cmd->hdr.tag, tag); in tpm2_cmd_init_hdr() 24 put_unaligned_be32(&cmd->hdr.size, sizeof(struct tpm2_cmd_hdr)); in tpm2_cmd_init_hdr() 25 put_unaligned_be32(&cmd->hdr.code, cmd_code); in tpm2_cmd_init_hdr() 39 put_unaligned_be32(&cmd->hdr.size, cmd_len); in tpm2_cmd_add()
|
/optee_os-3.20.0/core/drivers/crypto/se050/adaptors/apis/ |
A D | apdu.c | 498 tlvHeader_t hdr = { in se050_scp03_send_rotate_cmd() local 499 .hdr = { in se050_scp03_send_rotate_cmd() 511 hdr.hdr[2] = cmd->cmd[0]; in se050_scp03_send_rotate_cmd() 512 st = DoAPDUTxRx_s_Case4(ctx, &hdr, cmd->cmd, cmd->cmd_len, in se050_scp03_send_rotate_cmd()
|
/optee_os-3.20.0/ta/arch/arm/ |
A D | link.mk | 59 link-ldflags += --eh-frame-hdr
|