Home
last modified time | relevance | path

Searched refs:COMPILE_TIME_ASSERT (Results 1 – 25 of 42) sorted by relevance

12

/optee_os/core/arch/arm/sm/
H A Dsm.c67 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 Dcore_mmu_arch.h175 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 Dint_util.h26 #define COMPILE_TIME_ASSERT(expr) COMPILE_TIME_ASSERT1(expr, __COUNTER__) macro
/optee_os/lib/libutils/isoc/include/
H A Dassert.h50 #define COMPILE_TIME_ASSERT(x) \ macro
/optee_os/core/arch/arm/mm/
H A Dcore_mmu_lpae.c414 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 Dcore_mmu_v7.c378 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 Dcaam_blob.c75 COMPILE_TIME_ASSERT(sizeof(hwkey->data) <= sizeof(stored_key)); in tee_otp_get_hw_unique_key()
/optee_os/core/tee/
H A Dtee_supp_plugin_rpc.c38 COMPILE_TIME_ASSERT(sizeof(TEE_UUID) == sizeof(uuid_words)); in tee_invoke_supp_plugin_rpc()
H A Dtee_fs_key_manager.c142 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 Dsha1_accel.c71 COMPILE_TIME_ASSERT(sizeof(md->sha1.state[0]) == sizeof(uint32_t)); in sha1_compress_nblocks()
H A Dsha256_accel.c73 COMPILE_TIME_ASSERT(sizeof(md->sha256.state[0]) == sizeof(uint32_t)); in sha256_compress_nblocks()
H A Dsha512_accel.c41 COMPILE_TIME_ASSERT(sizeof(md->sha512.state[0]) == sizeof(uint64_t)); in sha512_compress_nblocks()
/optee_os/lib/libutils/ext/
H A Dmempool.c124 COMPILE_TIME_ASSERT(MEMPOOL_ALIGN >= __alignof__(struct mempool_item)); in mempool_alloc_pool()
/optee_os/lib/libmbedtls/core/
H A Dcmac.c79 COMPILE_TIME_ASSERT(TEE_AES_BLOCK_SIZE >= TEE_DES_BLOCK_SIZE); in mbed_cmac_final()
/optee_os/core/drivers/
H A Dpl061_gpio.c181 COMPILE_TIME_ASSERT(PLAT_PL061_MAX_GPIOS > 0); in pl061_init()
H A Datmel_shdwc.c178 COMPILE_TIME_ASSERT(CFG_TEE_CORE_NB_CORE == 1); in atmel_shdwc_probe()
/optee_os/core/pta/
H A Dsecstor_ta_mgmt.c94 COMPILE_TIME_ASSERT(sizeof(property.uuid) == sizeof(bs_ta.uuid)); in install_ta()
H A Dattestation.c41 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 Dplatform_sama5d2.c567 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 Dscall.c243 COMPILE_TIME_ASSERT(ARRAY_SIZE(ldelf_syscall_table) == in get_ldelf_syscall_func()
/optee_os/core/drivers/clk/sam/
H A Dsama5d2_clk.c350 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 Daes-gcm.c65 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 Dfs_htree.c38 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 Dentry.c127 COMPILE_TIME_ASSERT(TEE_NUM_PARAMS == 4); in TA_InvokeCommandEntryPoint()
/optee_os/core/mm/
H A Dpgt_cache.c391 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()

12