| /optee_os/core/drivers/clk/sam/ |
| H A D | at91_clk.h | 36 struct clk_range { 43 struct pmc_clk { 44 struct clk *clk; 48 struct pmc_data { 51 struct pmc_clk *chws; 53 struct pmc_clk *shws; 55 struct pmc_clk *phws; 57 struct pmc_clk *ghws; 59 struct pmc_clk *pchws; 61 struct pmc_clk hwtable[]; [all …]
|
| H A D | at91_master.c | 20 struct clk_master { 22 const struct clk_master_layout *layout; 23 const struct clk_master_charac *charac; 32 static bool clk_master_ready(struct clk_master *master) in clk_master_ready() 39 static TEE_Result clk_master_enable(struct clk *clk) in clk_master_enable() 41 struct clk_master *master = clk->priv; in clk_master_enable() 49 static unsigned long clk_master_div_get_rate(struct clk *clk, in clk_master_div_get_rate() 55 struct clk_master *master = clk->priv; in clk_master_div_get_rate() 56 const struct clk_master_layout *layout = master->layout; in clk_master_div_get_rate() 57 const struct clk_master_charac *charac = master->charac; in clk_master_div_get_rate() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | asm-defines.c | 19 DEFINE(SM_NSEC_CTX_R0, offsetof(struct sm_nsec_ctx, r0)); 20 DEFINE(SM_NSEC_CTX_R8, offsetof(struct sm_nsec_ctx, r8)); 21 DEFINE(SM_SEC_CTX_R0, offsetof(struct sm_sec_ctx, r0)); 22 DEFINE(SM_SEC_CTX_MON_LR, offsetof(struct sm_sec_ctx, mon_lr)); 23 DEFINE(SM_CTX_SEC_SIZE, sizeof(struct sm_sec_ctx)); 24 DEFINE(SM_CTX_SIZE, sizeof(struct sm_ctx)); 25 DEFINE(SM_CTX_NSEC, offsetof(struct sm_ctx, nsec)); 26 DEFINE(SM_CTX_SEC, offsetof(struct sm_ctx, sec)); 28 DEFINE(THREAD_SCALL_REG_R0, offsetof(struct thread_scall_regs, r0)); 29 DEFINE(THREAD_SCALL_REG_R5, offsetof(struct thread_scall_regs, r5)); [all …]
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | asm-defines.c | 17 /* struct thread_ctx */ 18 DEFINE(THREAD_CTX_KERN_SP, offsetof(struct thread_ctx, kern_sp)); 19 DEFINE(THREAD_CTX_STACK_VA_END, offsetof(struct thread_ctx, 21 DEFINE(THREAD_CTX_SIZE, sizeof(struct thread_ctx)); 23 /* struct thread_core_local */ 24 DEFINE(THREAD_CORE_LOCAL_SIZE, sizeof(struct thread_core_local)); 26 offsetof(struct thread_core_local, hart_id)); 28 offsetof(struct thread_core_local, hart_index)); 30 offsetof(struct thread_core_local, tmp_stack_va_end)); 32 offsetof(struct thread_core_local, curr_thread)); [all …]
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing.h | 13 struct pkcs11_client; 14 struct pkcs11_session; 15 struct pkcs11_object; 16 struct active_processing; 25 struct rsa_pss_processing_ctx { 40 struct rsa_oaep_processing_ctx { 58 struct rsa_aes_key_wrap_processing_ctx { 74 struct eddsa_processing_ctx { 84 enum pkcs11_rc entry_generate_secret(struct pkcs11_client *client, 87 enum pkcs11_rc entry_generate_key_pair(struct pkcs11_client *client, [all …]
|
| H A D | pkcs11_token.h | 39 struct pkcs11_client; 60 struct token_persistent_main { 84 struct token_persistent_objs { 99 struct ck_token { 103 struct object_list object_list; 105 struct token_persistent_main *db_main; 106 struct token_persistent_objs *db_objs; 144 struct active_processing { 164 struct pkcs11_find_objects { 183 struct pkcs11_session { [all …]
|
| H A D | object.h | 13 struct ck_token; 14 struct obj_attrs; 15 struct pkcs11_client; 16 struct pkcs11_session; 27 struct pkcs11_object { 29 struct obj_attrs *attributes; 32 struct ck_token *token; 39 struct pkcs11_object *pkcs11_handle2object(uint32_t client_handle, 40 struct pkcs11_session *session); 42 uint32_t pkcs11_object2handle(struct pkcs11_object *obj, [all …]
|
| /optee_os/core/include/crypto/ |
| H A D | crypto_impl.h | 15 * struct crypto_hash_ctx. 17 struct crypto_hash_ctx { 18 const struct crypto_hash_ops *ops; 21 struct crypto_hash_ops { 22 TEE_Result (*init)(struct crypto_hash_ctx *ctx); 23 TEE_Result (*update)(struct crypto_hash_ctx *ctx, const uint8_t *data, 25 TEE_Result (*final)(struct crypto_hash_ctx *ctx, uint8_t *digest, 27 void (*free_ctx)(struct crypto_hash_ctx *ctx); 28 void (*copy_state)(struct crypto_hash_ctx *dst_ctx, 29 struct crypto_hash_ctx *src_ctx); [all …]
|
| H A D | crypto.h | 86 TEE_Result crypto_storage_obj_del(struct tee_obj *obj); 94 struct bignum *crypto_bignum_allocate(size_t size_bits); 96 struct bignum *to); 97 size_t crypto_bignum_num_bytes(struct bignum *a); 98 size_t crypto_bignum_num_bits(struct bignum *a); 99 void crypto_bignum_bn2bin(const struct bignum *from, uint8_t *to); 100 void crypto_bignum_copy(struct bignum *to, const struct bignum *from); 101 void crypto_bignum_free(struct bignum **a); 102 void crypto_bignum_clear(struct bignum *a); 105 int32_t crypto_bignum_compare(struct bignum *a, struct bignum *b); [all …]
|
| /optee_os/core/drivers/clk/ |
| H A D | clk-stm32-core.h | 11 struct mux_cfg { 18 struct gate_cfg { 24 struct div_table_cfg { 29 struct div_cfg { 35 const struct div_table_cfg *table; 38 struct clk_stm32_priv { 41 struct clk **clk_refs; 42 const struct mux_cfg *muxes; 44 const struct gate_cfg *gates; 47 const struct div_cfg *div; [all …]
|
| H A D | clk-stm32-core.c | 25 static struct clk_stm32_priv *stm32_clock_data; 27 struct clk_stm32_priv *clk_stm32_get_priv(void) in clk_stm32_get_priv() 34 struct clk_stm32_priv *priv = clk_stm32_get_priv(); in clk_stm32_get_rcc_base() 42 struct clk_stm32_priv *priv = clk_stm32_get_priv(); in stm32_mux_get_parent() 43 const struct mux_cfg *mux = &priv->muxes[mux_id]; in stm32_mux_get_parent() 51 struct clk_stm32_priv *priv = clk_stm32_get_priv(); in stm32_mux_set_parent() 52 const struct mux_cfg *mux = &priv->muxes[mux_id]; in stm32_mux_set_parent() 67 struct clk_stm32_priv *priv = clk_stm32_get_priv(); in stm32_gate_endisable() 68 const struct gate_cfg *gate = &priv->gates[gate_id]; in stm32_gate_endisable() 92 struct clk_stm32_priv __maybe_unused *priv = clk_stm32_get_priv(); in stm32_gate_set_init_state() [all …]
|
| /optee_os/core/arch/arm/include/kernel/ |
| H A D | secure_partition.h | 23 struct sp_session { 24 struct ffa_rxtx rxtx; 30 struct ts_session ts_sess; 41 struct sp_ctx { 42 struct thread_ctx_regs sp_regs; 43 struct sp_session *open_session; 44 struct user_mode_ctx uctx; 45 struct ts_ctx ts_ctx; 48 struct sp_image { 49 struct embedded_ts image; [all …]
|
| /optee_os/core/include/kernel/ |
| H A D | mutex.h | 13 struct mutex { 14 unsigned spin_lock; /* used when operating on this struct */ 15 struct wait_queue wq; 21 struct recursive_mutex { 22 struct mutex m; /* used when lock_depth goes 0 -> 1 or 1 -> 0 */ 24 struct refcount lock_depth; 32 void mutex_init(struct mutex *m); 33 void mutex_destroy(struct mutex *m); 35 void mutex_init_recursive(struct recursive_mutex *m); 36 void mutex_destroy_recursive(struct recursive_mutex *m); [all …]
|
| H A D | ts_manager.h | 14 struct ts_ctx { 16 const struct ts_ops *ops; 19 struct thread_scall_regs; 20 struct ts_session { 22 struct ts_ctx *ctx; /* Generic TS context */ 24 struct sample_buf *sbuf; /* Profiling data (PC sampling) */ 27 struct ftrace_buf *fbuf; /* ftrace buffer */ 34 bool (*handle_scall)(struct thread_scall_regs *regs); 43 * struct ts_ops - Trusted Service operations 53 * @destroy(): freeing the struct ts_ctx removing all [all …]
|
| H A D | tee_ta_manager.h | 30 struct mobj; 32 struct param_val { 37 struct param_mem { 38 struct mobj *mobj; 43 struct tee_ta_param { 46 struct param_val val; 47 struct param_mem mem; 51 struct user_ta_ctx; 54 struct sample_buf { 68 struct tee_ta_ctx { [all …]
|
| H A D | transfer_list.h | 66 struct transfer_list_header { 80 * Note that struct transfer_list_entry also is dynamic in size 84 * struct transfer_list_entry entries[]; 88 struct transfer_list_entry { 104 struct transfer_list_header *transfer_list_map(paddr_t pa); 105 void transfer_list_unmap_sync(struct transfer_list_header *tl); 106 void transfer_list_unmap_nosync(struct transfer_list_header *tl); 108 void transfer_list_dump(struct transfer_list_header *tl); 109 struct transfer_list_header *transfer_list_init(paddr_t pa, size_t max_size); 111 struct transfer_list_header * [all …]
|
| /optee_os/core/drivers/crypto/crypto_api/include/ |
| H A D | drvcrypt_acipher.h | 27 struct drvcrypt_rsakey { 36 struct drvcrypt_rsa_mgf { 39 struct drvcrypt_buf seed; /* Seed to generate mask */ 40 struct drvcrypt_buf mask; /* Mask generated */ 46 struct drvcrypt_rsa_ssa { 50 struct drvcrypt_rsakey key; /* Public or Private Key */ 51 struct drvcrypt_buf message; /* Message to sign or signed */ 52 struct drvcrypt_buf signature; /* Signature of the message */ 56 TEE_Result (*mgf)(struct drvcrypt_rsa_mgf *mgf_data); 62 struct drvcrypt_rsa_ed { [all …]
|
| /optee_os/core/arch/arm/plat-k3/drivers/ |
| H A D | ti_sci_protocol.h | 37 * struct ti_sci_secure_msg_hdr - Secure Message Header for All messages 43 struct ti_sci_secure_msg_hdr { 49 * struct ti_sci_msg_hdr - Generic Message Header for All messages and responses 55 struct ti_sci_msg_hdr { 56 struct ti_sci_secure_msg_hdr sec_hdr; 71 * struct ti_sci_msg_version_req - Request for firmware version information 76 struct ti_sci_msg_req_version { 77 struct ti_sci_msg_hdr hdr; 81 * struct ti_sci_msg_resp_version - Response for firmware version information 96 struct ti_sci_msg_resp_version { [all …]
|
| /optee_os/lib/libutils/ext/ |
| H A D | ubsan.c | 23 struct source_location { 47 static bool was_already_reported(struct source_location *loc) in was_already_reported() 58 struct type_descriptor { 64 struct type_mismatch_data { 65 struct source_location loc; 66 struct type_descriptor *type; 71 struct overflow_data { 72 struct source_location loc; 73 struct type_descriptor *type; 76 struct shift_out_of_bounds_data { [all …]
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | shake.c | 13 struct shake_ctx { 14 struct crypto_hash_ctx ctx; 15 struct sha3_state sha3; 18 static struct shake_ctx *to_shake_ctx(struct crypto_hash_ctx *ctx) in to_shake_ctx() 20 return container_of(ctx, struct shake_ctx, ctx); in to_shake_ctx() 23 static TEE_Result do_shake_init(struct crypto_hash_ctx *ctx, unsigned int num) in do_shake_init() 25 struct shake_ctx *c = to_shake_ctx(ctx); in do_shake_init() 33 static TEE_Result do_sha3_update(struct crypto_hash_ctx *ctx, in do_sha3_update() 36 struct shake_ctx *c = to_shake_ctx(ctx); in do_sha3_update() 44 static TEE_Result do_shake_final(struct crypto_hash_ctx *ctx, in do_shake_final() [all …]
|
| /optee_os/core/mm/ |
| H A D | fobj.c | 28 struct rwp_aes_gcm_iv { 34 struct rwp_state { 40 * Note that this struct is padded to a size which is a power of 2, this 44 struct rwp_state_padded { 45 struct rwp_state state; 49 struct fobj_rwp_unpaged_iv { 51 struct rwp_state *state; 52 struct fobj fobj; 55 struct fobj_rwp_paged_iv { 57 struct fobj fobj; [all …]
|
| H A D | mobj.c | 24 struct mobj *mobj_tee_ram_rx; 25 struct mobj *mobj_tee_ram_rw; 31 struct mobj_phys { 32 struct mobj mobj; 40 static struct mobj_phys *to_mobj_phys(struct mobj *mobj); 42 static void *mobj_phys_get_va(struct mobj *mobj, size_t offset, size_t len) in mobj_phys_get_va() 44 struct mobj_phys *moph = to_mobj_phys(mobj); in mobj_phys_get_va() 52 static TEE_Result mobj_phys_get_pa(struct mobj *mobj, size_t offs, in mobj_phys_get_pa() 55 struct mobj_phys *moph = to_mobj_phys(mobj); in mobj_phys_get_pa() 75 static TEE_Result mobj_phys_get_mem_type(struct mobj *mobj, uint32_t *mem_type) in mobj_phys_get_mem_type() [all …]
|
| /optee_os/core/drivers/crypto/stm32/ |
| H A D | stm32_pka.h | 29 * struct stm32_pka_bn - Internal representation of binary number 34 struct stm32_pka_bn { 39 struct stm32_pka_point { 40 struct stm32_pka_bn x; 41 struct stm32_pka_bn y; 46 TEE_Result stm32_pka_compute_montgomery(const struct stm32_pka_bn *n, 48 struct stm32_pka_bn *r2modn); 49 TEE_Result stm32_pka_ecc_compute_montgomery(struct stm32_pka_bn *r2modn, 51 TEE_Result stm32_pka_is_point_on_curve(const struct stm32_pka_point *p, 52 const struct stm32_pka_bn *r2modn, [all …]
|
| /optee_os/core/include/mm/ |
| H A D | mobj.h | 26 struct mobj { 27 const struct mobj_ops *ops; 30 struct refcount refc; 33 struct mobj_ops { 34 void *(*get_va)(struct mobj *mobj, size_t offs, size_t len); 35 TEE_Result (*get_pa)(struct mobj *mobj, size_t offs, size_t granule, 37 size_t (*get_phys_offs)(struct mobj *mobj, size_t granule); 38 TEE_Result (*get_mem_type)(struct mobj *mobj, uint32_t *mt); 39 bool (*matches)(struct mobj *mobj, enum buf_is_attr attr); 40 void (*free)(struct mobj *mobj); [all …]
|
| /optee_os/core/include/tee/ |
| H A D | fs_htree.h | 28 /* Internal struct provided to let the rpc callbacks know the size if needed */ 29 struct tee_fs_htree_node_image { 30 /* Note that calc_node_hash() depends on hash first in struct */ 38 * This struct is not interpreted by the hash tree, it's up to the user of 41 struct tee_fs_htree_meta { 45 /* Internal struct needed by struct tee_fs_htree_image */ 46 struct tee_fs_htree_imeta { 47 struct tee_fs_htree_meta meta; 51 /* Internal struct provided to let the rpc callbacks know the size if needed */ 52 struct tee_fs_htree_image { [all …]
|