| /optee_os/core/arch/arm/sm/ |
| H A D | sm.c | 67 COMPILE_TIME_ASSERT(!(offsetof(struct sm_ctx, sec.r0) % 8)); in sm_from_nsec() 68 COMPILE_TIME_ASSERT(!(offsetof(struct sm_ctx, nsec.r0) % 8)); in sm_from_nsec() 69 COMPILE_TIME_ASSERT(!(sizeof(struct sm_ctx) % 8)); in sm_from_nsec()
|
| /optee_os/core/arch/arm/include/mm/ |
| H A D | core_mmu_arch.h | 175 COMPILE_TIME_ASSERT(sizeof(paddr_t) == sizeof(uint32_t)); in core_mmu_check_max_pa() 197 COMPILE_TIME_ASSERT(CFG_LPAE_ADDR_SPACE_BITS >= 32); in core_mmu_get_va_width() 198 COMPILE_TIME_ASSERT(CFG_LPAE_ADDR_SPACE_BITS <= 48); in core_mmu_get_va_width()
|
| /optee_os/lib/libutils/compiler-rt/lib/builtins/ |
| H A D | int_util.h | 26 #define COMPILE_TIME_ASSERT(expr) COMPILE_TIME_ASSERT1(expr, __COUNTER__) macro
|
| /optee_os/lib/libutils/isoc/include/ |
| H A D | assert.h | 50 #define COMPILE_TIME_ASSERT(x) \ macro
|
| /optee_os/core/arch/arm/mm/ |
| H A D | core_mmu_lpae.c | 414 COMPILE_TIME_ASSERT(ATTR_DEVICE_nGnRnE_INDEX == in desc_to_mattr() 416 COMPILE_TIME_ASSERT(ATTR_DEVICE_nGnRE_INDEX == TEE_MATTR_MEM_TYPE_DEV); in desc_to_mattr() 417 COMPILE_TIME_ASSERT(ATTR_IWBWA_OWBWA_NTR_INDEX == in desc_to_mattr() 419 COMPILE_TIME_ASSERT(ATTR_TAGGED_NORMAL_MEM_INDEX == in desc_to_mattr() 975 COMPILE_TIME_ASSERT(MAX_XLAT_TABLES < (1 << (8 * sizeof(l1_idx_t)))); in core_init_mmu_prtn_ta_core() 1038 COMPILE_TIME_ASSERT(CORE_MMU_BASE_TABLE_SHIFT == in core_init_mmu() 1041 COMPILE_TIME_ASSERT(CORE_MMU_BASE_TABLE_OFFSET == in core_init_mmu() 1079 COMPILE_TIME_ASSERT(CFG_LPAE_ADDR_SPACE_BITS > L1_XLAT_ADDRESS_SHIFT); in core_init_mmu() 1264 COMPILE_TIME_ASSERT(sizeof(uint64_t) * XLAT_TABLE_ENTRIES == PGT_SIZE); in core_mmu_create_user_map()
|
| H A D | core_mmu_v7.c | 378 COMPILE_TIME_ASSERT(ATTR_DEVICE_INDEX == TEE_MATTR_MEM_TYPE_DEV); in texcb_to_mattr() 379 COMPILE_TIME_ASSERT(ATTR_NORMAL_CACHED_INDEX == in texcb_to_mattr() 381 COMPILE_TIME_ASSERT(ATTR_STRONG_O_INDEX == in texcb_to_mattr() 383 COMPILE_TIME_ASSERT(ATTR_TAGGED_CACHED_INDEX == in texcb_to_mattr() 569 COMPILE_TIME_ASSERT(L2_TBL_SIZE == PGT_SIZE); in core_mmu_create_user_map()
|
| /optee_os/core/drivers/crypto/caam/blob/ |
| H A D | caam_blob.c | 75 COMPILE_TIME_ASSERT(sizeof(hwkey->data) <= sizeof(stored_key)); in tee_otp_get_hw_unique_key()
|
| /optee_os/core/tee/ |
| H A D | tee_supp_plugin_rpc.c | 38 COMPILE_TIME_ASSERT(sizeof(TEE_UUID) == sizeof(uuid_words)); in tee_invoke_supp_plugin_rpc()
|
| H A D | tee_fs_key_manager.c | 142 COMPILE_TIME_ASSERT(TEE_FS_KM_SSK_SIZE <= HUK_SUBKEY_MAX_LEN); in tee_fs_init_key_manager()
|
| /optee_os/core/lib/libtomcrypt/ |
| H A D | sha1_accel.c | 71 COMPILE_TIME_ASSERT(sizeof(md->sha1.state[0]) == sizeof(uint32_t)); in sha1_compress_nblocks()
|
| H A D | sha256_accel.c | 73 COMPILE_TIME_ASSERT(sizeof(md->sha256.state[0]) == sizeof(uint32_t)); in sha256_compress_nblocks()
|
| H A D | sha512_accel.c | 41 COMPILE_TIME_ASSERT(sizeof(md->sha512.state[0]) == sizeof(uint64_t)); in sha512_compress_nblocks()
|
| /optee_os/lib/libutils/ext/ |
| H A D | mempool.c | 124 COMPILE_TIME_ASSERT(MEMPOOL_ALIGN >= __alignof__(struct mempool_item)); in mempool_alloc_pool()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | cmac.c | 79 COMPILE_TIME_ASSERT(TEE_AES_BLOCK_SIZE >= TEE_DES_BLOCK_SIZE); in mbed_cmac_final()
|
| /optee_os/core/drivers/ |
| H A D | pl061_gpio.c | 181 COMPILE_TIME_ASSERT(PLAT_PL061_MAX_GPIOS > 0); in pl061_init()
|
| H A D | atmel_shdwc.c | 178 COMPILE_TIME_ASSERT(CFG_TEE_CORE_NB_CORE == 1); in atmel_shdwc_probe()
|
| /optee_os/core/pta/ |
| H A D | secstor_ta_mgmt.c | 94 COMPILE_TIME_ASSERT(sizeof(property.uuid) == sizeof(bs_ta.uuid)); in install_ta()
|
| H A D | attestation.c | 41 COMPILE_TIME_ASSERT(CFG_ATTESTATION_PTA_KEY_SIZE <= MAX_KEY_SIZE); in allocate_key() 70 COMPILE_TIME_ASSERT(CFG_ATTESTATION_PTA_KEY_SIZE >= in generate_key() 418 COMPILE_TIME_ASSERT(FILE_TAG_SIZE == TEE_SHA256_HASH_SIZE); in hash_binary()
|
| /optee_os/core/arch/arm/plat-sam/ |
| H A D | platform_sama5d2.c | 567 COMPILE_TIME_ASSERT(CFG_TZDRAM_START == AT91C_BASE_DDRCS); in matrix_configure_slave_h64mx() 568 COMPILE_TIME_ASSERT(CFG_TZDRAM_SIZE == 0x800000); in matrix_configure_slave_h64mx()
|
| /optee_os/core/kernel/ |
| H A D | scall.c | 243 COMPILE_TIME_ASSERT(ARRAY_SIZE(ldelf_syscall_table) == in get_ldelf_syscall_func()
|
| /optee_os/core/drivers/clk/sam/ |
| H A D | sama5d2_clk.c | 350 COMPILE_TIME_ASSERT(ARRAY_SIZE(sama5d2_systemck) == PARENT_SIZE); in pmc_setup() 351 COMPILE_TIME_ASSERT(PARENT_SIZE >= 6); in pmc_setup()
|
| /optee_os/core/crypto/ |
| H A D | aes-gcm.c | 65 COMPILE_TIME_ASSERT(sizeof(len_fields) == TEE_AES_BLOCK_SIZE); in ghash_update_lengths() 74 COMPILE_TIME_ASSERT(sizeof(state->ctr) == TEE_AES_BLOCK_SIZE); in __gcm_init()
|
| /optee_os/core/pta/tests/ |
| H A D | fs_htree.c | 38 COMPILE_TIME_ASSERT(TEST_BLOCK_SIZE > in test_get_offs_size() 40 COMPILE_TIME_ASSERT(TEST_BLOCK_SIZE > in test_get_offs_size()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | entry.c | 127 COMPILE_TIME_ASSERT(TEE_NUM_PARAMS == 4); in TA_InvokeCommandEntryPoint()
|
| /optee_os/core/mm/ |
| H A D | pgt_cache.c | 391 COMPILE_TIME_ASSERT(PGT_CACHE_SIZE % PGT_NUM_PGT_PER_PAGE == 0); in pgt_init() 392 COMPILE_TIME_ASSERT(PGT_SIZE * PGT_NUM_PGT_PER_PAGE == SMALL_PAGE_SIZE); in pgt_init()
|