| /optee_os/core/kernel/ |
| H A D | mutex.c | 16 void mutex_init(struct mutex *m) in mutex_init() 21 void mutex_init_recursive(struct recursive_mutex *m) in mutex_init_recursive() 26 static void __mutex_lock(struct mutex *m, const char *fname, int lineno) in __mutex_lock() 70 static void __mutex_lock_recursive(struct recursive_mutex *m, const char *fname, in __mutex_lock_recursive() 91 static void __mutex_unlock(struct mutex *m, const char *fname, int lineno) in __mutex_unlock() 112 static void __mutex_unlock_recursive(struct recursive_mutex *m, in __mutex_unlock_recursive() 128 static bool __mutex_trylock(struct mutex *m, const char *fname __unused, in __mutex_trylock() 151 static void __mutex_read_unlock(struct mutex *m, const char *fname, int lineno) in __mutex_read_unlock() 173 static void __mutex_read_lock(struct mutex *m, const char *fname, int lineno) in __mutex_read_lock() 215 static bool __mutex_read_trylock(struct mutex *m, const char *fname __unused, in __mutex_read_trylock() [all …]
|
| H A D | mutex_lockdep.c | 37 void mutex_lock_check(struct mutex *m) in mutex_lock_check() 47 void mutex_trylock_check(struct mutex *m) in mutex_trylock_check() 57 void mutex_unlock_check(struct mutex *m) in mutex_unlock_check() 67 void mutex_destroy_check(struct mutex *m) in mutex_destroy_check()
|
| /optee_os/core/include/kernel/ |
| H A D | mutex.h | 22 struct mutex m; /* used when lock_depth goes 0 -> 1 or 1 -> 0 */ member 41 #define mutex_unlock(m) mutex_unlock_debug((m), __FILE__, __LINE__) argument 44 #define mutex_lock(m) mutex_lock_debug((m), __FILE__, __LINE__) argument 47 #define mutex_trylock(m) mutex_trylock_debug((m), __FILE__, __LINE__) argument 50 #define mutex_read_unlock(m) mutex_read_unlock_debug((m), __FILE__, __LINE__) argument 53 #define mutex_read_lock(m) mutex_read_lock_debug((m), __FILE__, __LINE__) argument 56 #define mutex_read_trylock(m) mutex_read_trylock_debug((m), __FILE__, __LINE__) argument 60 #define mutex_unlock_recursive(m) mutex_unlock_recursive_debug((m), __FILE__, \ argument 65 #define mutex_lock_recursive(m) mutex_lock_recursive_debug((m), __FILE__, \ argument 81 struct mutex *m; member [all …]
|
| /optee_os/core/arch/arm/mm/ |
| H A D | mobj_ffa.c | 165 struct mobj_ffa_shm *m = NULL; in ffa_shm_new() local 190 struct mobj_ffa_prm *m = NULL; in ffa_prm_new() local 216 struct mobj_ffa *m = NULL; in mobj_ffa_sel1_spmc_new() local 396 struct mobj_ffa_shm *m = to_mobj_ffa_shm(&mf->mobj); in mobj_ffa_sel1_spmc_delete() local 466 static TEE_Result protect_mem(struct mobj_ffa_prm *m) in protect_mem() 474 static TEE_Result __maybe_unused restore_mem(struct mobj_ffa_prm *m) in restore_mem() 512 static void unmap_helper(struct mobj_ffa_shm *m) in unmap_helper() 744 struct mobj_ffa_shm *m = to_mobj_ffa_shm(mobj); in ffa_shm_get_pa() local 781 struct mobj_ffa_shm *m = to_mobj_ffa_shm(mobj); in ffa_shm_get_va() local 857 struct mobj_ffa_shm *m = to_mobj_ffa_shm(mobj); in ffa_shm_inc_map() local [all …]
|
| H A D | sp_mem.c | 48 struct mobj_sp *m = NULL; in sp_mem_new_mobj() local 107 struct mobj_sp *m = to_mobj_sp(mobj); in get_mem_type() local 116 struct mobj_sp *m = to_mobj_sp(mobj); in mobj_sp_matches() local
|
| /optee_os/core/mm/ |
| H A D | mobj.c | 248 struct mobj_shm *m = to_mobj_shm(mobj); in mobj_shm_get_va() local 260 struct mobj_shm *m = to_mobj_shm(mobj); in mobj_shm_get_pa() local 304 struct mobj_shm *m = to_mobj_shm(mobj); in mobj_shm_free() local 337 struct mobj_shm *m; in mobj_shm_alloc() local 368 struct mobj_with_fobj *m = NULL; in mobj_with_fobj_alloc() local 415 struct mobj_with_fobj *m = to_mobj_with_fobj(mobj); in mobj_with_fobj_free() local 430 struct mobj_with_fobj *m = to_mobj_with_fobj(mobj); in mobj_with_fobj_get_mem_type() local
|
| H A D | mobj_dyn_shm.c | 333 struct mobj_protmem *m = NULL; in check_protmem_conflict() local 420 struct mobj_protmem *m = NULL; in protmem_find_unlocked() local 434 struct mobj *m = NULL; in mobj_reg_shm_get_by_cookie() local 564 static TEE_Result protect_mem(struct mobj_protmem *m) in protect_mem() 575 static TEE_Result restore_mem(struct mobj_protmem *m) in restore_mem() 587 struct mobj_protmem *m = to_mobj_protmem(mobj); in mobj_protmem_get_pa() local 695 struct mobj_protmem *m = NULL; in mobj_protmem_alloc() local 795 struct mobj_protmem *m = NULL; in protmem_find_by_pa_unlocked() local
|
| H A D | core_mmu.c | 124 struct tee_mmap_region *m = NULL; in heap_realloc_memory_map() local 139 struct tee_mmap_region *m = NULL; in boot_mem_realloc_memory_map() local 392 struct core_mmu_phys_mem *m = *mem; in carve_out_phys_mem() local 478 struct core_mmu_phys_mem *m = start; in core_mmu_set_discovered_nsec_ddr() local 606 struct mobj *m = mobj_protmem_get_by_pa(pbuf, len); in pbuf_is_sdp_mem() local 1549 struct tee_mmap_region *m = NULL; in check_mem_map() local 2232 struct tee_mmap_region m = *mm; in maybe_remove_from_mem_map() local 2632 void *phys_to_virt(paddr_t pa, enum teecore_memtypes m, size_t len) in phys_to_virt()
|
| /optee_os/scripts/ |
| H A D | gen_ldelf_hex.py | 31 def round_up(n, m): argument
|
| /optee_os/core/lib/libtomcrypt/src/mac/pmac/ |
| H A D | pmac_init.c | 40 int poly, x, y, m, err; in pmac_init() local
|
| /optee_os/core/lib/libtomcrypt/src/encauth/ocb/ |
| H A D | ocb_init.c | 42 int poly, x, y, m, err; in ocb_init() local
|
| /optee_os/core/lib/libtomcrypt/src/modes/xts/ |
| H A D | xts_decrypt.c | 57 unsigned long i, m, mo, lim; in xts_decrypt() local
|
| H A D | xts_encrypt.c | 59 unsigned long i, m, mo, lim; in xts_encrypt() local
|
| /optee_os/core/lib/libtomcrypt/src/pk/ec25519/ |
| H A D | tweetnacl.c | 72 gf m,t; in pack25519() local 224 static LTC_INLINE int tweetnacl_crypto_hash_ctx(u8 *out,const u8 *m,u64 n,const u8 *ctx,u32 cs) in tweetnacl_crypto_hash_ctx() 237 static LTC_INLINE int tweetnacl_crypto_hash(u8 *out,const u8 *m,u64 n) in tweetnacl_crypto_hash() 384 int tweetnacl_crypto_sign(u8 *sm,u64 *smlen,const u8 *m,u64 mlen,const u8 *sk,const u8 *pk, const u… in tweetnacl_crypto_sign() 452 int tweetnacl_crypto_sign_open(int *stat, u8 *m,u64 *mlen,const u8 *sm,u64 smlen,const u8 *ctx,u64 … in tweetnacl_crypto_sign_open()
|
| /optee_os/lib/libutils/ext/ |
| H A D | base64.c | 79 size_t m = 0; in base64_dec() local
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | ecp.c | 1789 unsigned char w, const mbedtls_mpi *m) in ecp_comb_recode_core() 2126 const mbedtls_mpi *m, in ecp_comb_recode_scalar() 2170 const mbedtls_mpi *m, in ecp_mul_comb_after_precomp() 2294 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in ecp_mul_comb() 2550 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in ecp_mul_mxz() 2631 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in ecp_mul_restartable_internal() 2702 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in mbedtls_ecp_mul_restartable() 2717 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in mbedtls_ecp_mul() 2771 const mbedtls_mpi *m, in mbedtls_ecp_mul_shortcuts() 2806 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in mbedtls_ecp_muladd_restartable() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/encauth/ocb3/ |
| H A D | ocb3_init.c | 87 int poly, x, y, m, err; in ocb3_init() local
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/ |
| H A D | primitiveTypes.h | 66 #define indexMultiword( total, m, n ) (n) argument 77 #define indexMultiword( total, m, n ) ((total) - 1 - (m)) argument
|
| /optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
| H A D | ecc_verify_hash.c | 29 void *r, *s, *v, *w, *u1, *u2, *e, *p, *m, *a, *a_plus3; in ecc_verify_hash_ex() local
|
| H A D | ecc_recover_key.c | 31 void *p, *m, *a, *b; in ecc_recover_key() local
|
| /optee_os/core/lib/libtomcrypt/src/pk/ed25519/ |
| H A D | ed25519_verify.c | 18 unsigned char* m; in s_ed25519_verify() local
|
| /optee_os/core/crypto/ |
| H A D | aes-gcm.c | 37 size_t m; in ghash_update_pad_zero() local 268 TEE_OperationMode m, const uint8_t *src, in operation_final() 477 TEE_OperationMode m, in aes_gcm_update_payload()
|
| H A D | aes-gcm-sw.c | 134 TEE_OperationMode m, const void *src, in internal_aes_gcm_update_payload_blocks()
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | secure_partition.c | 708 struct mobj *m = NULL; in copy_and_map_fdt() local 781 struct mobj *m = NULL; in create_and_map_boot_info() local 942 struct mobj *m = NULL; in handle_fdt_load_relative_mem_regions() local 1007 struct mobj *m = NULL; in handle_fdt_dev_regions() local 1178 struct mobj *m = NULL; in handle_fdt_mem_regions() local 1337 struct mobj *m = NULL; in handle_tpm_event_log() local
|
| /optee_os/core/pta/tests/ |
| H A D | aes_perf.c | 138 unsigned int m = 0; in do_update() local
|