/optee_os/core/arch/arm/plat-sam/ |
A D | tz_matrix.h | 42 #define MATRIX_MEAR(n) (0x0160 + (n) * 4) argument 48 #define MATRIX_SSR(n) (0x0200 + (n) * 4) argument 50 #define MATRIX_SASSR(n) (0x0240 + (n) * 4) argument 52 #define MATRIX_SRTSR(n) (0x0280 + (n) * 4) argument 55 #define MATRIX_SPSELR(n) (0x02c0 + (n) * 4) argument 66 #define MATRIX_LANSECH(n, bit) ((bit) << n) argument 67 #define MATRIX_LANSECH_S(n) (0x00 << n) argument 68 #define MATRIX_LANSECH_NS(n) (0x01 << n) argument 70 #define MATRIX_RDNSECH_S(n) (0x00 << (n + 8)) argument 71 #define MATRIX_RDNSECH_NS(n) (0x01 << (n + 8)) argument [all …]
|
/optee_os/out/arm/ |
A D | conf.mk | 17 CFG_CORE_ASYNC_NOTIF=n 21 CFG_CORE_BTI=n 24 CFG_CORE_DUMP_OOM=n 87 CFG_DRIVERS_CLK=n 96 CFG_EMBED_DTB=n 107 CFG_HWRNG_PTA=n 114 CFG_LOCKDEP=n 135 CFG_RPMB_FS=n 148 CFG_SCMI_PTA=n 169 CFG_TA_BTI=n [all …]
|
/optee_os/out/arm/export-ta_arm32/host_include/ |
A D | conf.mk | 17 CFG_CORE_ASYNC_NOTIF=n 21 CFG_CORE_BTI=n 24 CFG_CORE_DUMP_OOM=n 87 CFG_DRIVERS_CLK=n 96 CFG_EMBED_DTB=n 107 CFG_HWRNG_PTA=n 114 CFG_LOCKDEP=n 135 CFG_RPMB_FS=n 148 CFG_SCMI_PTA=n 169 CFG_TA_BTI=n [all …]
|
/optee_os/out/arm/export-ta_arm64/host_include/ |
A D | conf.mk | 17 CFG_CORE_ASYNC_NOTIF=n 21 CFG_CORE_BTI=n 24 CFG_CORE_DUMP_OOM=n 87 CFG_DRIVERS_CLK=n 96 CFG_EMBED_DTB=n 107 CFG_HWRNG_PTA=n 114 CFG_LOCKDEP=n 135 CFG_RPMB_FS=n 148 CFG_SCMI_PTA=n 169 CFG_TA_BTI=n [all …]
|
/optee_os/lib/libutee/ |
A D | base64.c | 18 size_t n = 0; in _base64_enc() local 23 if (*blen < n) { in _base64_enc() 24 *blen = n; in _base64_enc() 28 for (n = 0; n < dlen; n += 3) { in _base64_enc() 31 igrp = d[n]; in _base64_enc() 35 igrp |= d[n + 1]; in _base64_enc() 62 size_t n = 0; in get_idx() local 64 for (n = 0; base64_table[n] != '\0'; n++) { in get_idx() 66 *idx = n; in get_idx() 76 size_t n = 0; in _base64_dec() local [all …]
|
A D | tee_api.c | 30 size_t n = 0; in copy_param() local 47 for (n = 0; n < TEE_NUM_PARAMS; n++) { in copy_param() 48 tmp_va[n] = NULL; in copy_param() 84 for (n = 0; n < TEE_NUM_PARAMS; n++) { in copy_param() 88 up->vals[n * 2] = params[n].value.a; in copy_param() 89 up->vals[n * 2 + 1] = params[n].value.b; in copy_param() 97 tmp_va[n] = tb; in copy_param() 122 size_t n; in update_out_param() local 125 for (n = 0; n < TEE_NUM_PARAMS; n++) { in update_out_param() 137 if (tmp_va[n]) in update_out_param() [all …]
|
/optee_os/core/lib/libtomcrypt/src/ciphers/ |
A D | kasumi.c | 143 int n; in kasumi_ecb_encrypt() local 152 for (n = 0; n <= 7; ) { in kasumi_ecb_encrypt() 179 for (n = 7; n >= 0; ) { in kasumi_ecb_decrypt() 212 for (n = 0; n < 8; n++ ) { in kasumi_setup() 213 ukey[n] = (((u16)key[2*n]) << 8) | key[2*n+1]; in kasumi_setup() 217 for (n = 0; n < 8; n++) { in kasumi_setup() 218 Kprime[n] = ukey[n] ^ C[n]; in kasumi_setup() 222 for(n = 0; n < 8; n++) { in kasumi_setup() 223 skey->kasumi.KLi1[n] = ROL16(ukey[n],1); in kasumi_setup() 224 skey->kasumi.KLi2[n] = Kprime[(n+2)&0x7]; in kasumi_setup() [all …]
|
A D | multi2.c | 55 int n, t; in setup() local 61 n = 0; in setup() 64 uk[n++] = p[0]; in setup() 66 uk[n++] = p[1]; in setup() 68 uk[n++] = p[0]; in setup() 70 uk[n++] = p[1]; in setup() 72 uk[n++] = p[0]; in setup() 74 uk[n++] = p[1]; in setup() 83 int n, t; in encrypt() local 95 int n, t; in decrypt() local [all …]
|
/optee_os/core/drivers/clk/sam/ |
A D | sama5d2_clk.c | 23 const char *n; member 64 { .n = "ddrck", .id = 2 }, 65 { .n = "lcdck", .id = 3 }, 66 { .n = "uhpck", .id = 6 }, 67 { .n = "udpck", .id = 7 }, 68 { .n = "pck0", .id = 8 }, 69 { .n = "pck1", .id = 9 }, 70 { .n = "pck2", .id = 10 }, 527 sam_clk->n, in pmc_setup() 543 sam_clk->n, in pmc_setup() [all …]
|
/optee_os/mk/ |
A D | config.mk | 157 CFG_RPMB_FS ?= n 204 CFG_RPMB_TESTKEY ?= n 345 CFG_EARLY_TA ?= n 371 CFG_WITH_PAGER ?= n 387 CFG_LOCKDEP ?= n 434 CFG_EMBED_DTB ?= n 435 CFG_DT ?= n 679 CFG_SCMI_PTA ?= n 705 CFG_HWRNG_PTA ?= n 728 CFG_DRIVERS_CLK ?= n [all …]
|
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/ |
A D | primitiveTypes.h | 63 #define indexWord( total, n ) (n) argument 66 #define indexMultiword( total, m, n ) (n) argument 67 #define indexMultiwordHi( total, n ) ((total) - (n)) argument 68 #define indexMultiwordLo( total, n ) 0 argument 69 #define indexMultiwordHiBut( total, n ) (n) argument 70 #define indexMultiwordLoBut( total, n ) 0 argument 74 #define indexWord( total, n ) ((total) - 1 - (n)) argument 78 #define indexMultiwordHi( total, n ) 0 argument 79 #define indexMultiwordLo( total, n ) ((total) - (n)) argument 80 #define indexMultiwordHiBut( total, n ) 0 argument [all …]
|
/optee_os/core/kernel/ |
A D | handle.c | 22 size_t n = 0; in handle_db_destroy() local 24 for (n = 0; n < db->max_ptrs; n++) in handle_db_destroy() 25 if (db->ptrs[n]) in handle_db_destroy() 36 size_t n = 0; in handle_db_is_empty() local 39 for (n = 0; n < db->max_ptrs; n++) { in handle_db_is_empty() 40 if (db->ptrs[n]) in handle_db_is_empty() 49 size_t n; in handle_get() local 57 for (n = 0; n < db->max_ptrs; n++) { in handle_get() 60 return n; in handle_get() 78 db->ptrs[n] = ptr; in handle_get() [all …]
|
A D | pseudo_ta.c | 60 size_t n; in copy_in_param() local 64 for (n = 0; n < TEE_NUM_PARAMS; n++) { in copy_in_param() 69 tee_param[n].value.a = param->u[n].val.a; in copy_in_param() 70 tee_param[n].value.b = param->u[n].val.b; in copy_in_param() 107 size_t n; in update_out_param() local 109 for (n = 0; n < TEE_NUM_PARAMS; n++) { in update_out_param() 113 param->u[n].val.a = tee_param[n].value.a; in update_out_param() 114 param->u[n].val.b = tee_param[n].value.b; in update_out_param() 118 param->u[n].mem.size = tee_param[n].memref.size; in update_out_param() 129 size_t n; in unmap_mapped_param() local [all …]
|
/optee_os/core/crypto/ |
A D | aes-gcm-sw.c | 41 size_t n = 0; in internal_aes_gcm_ghash_update() local 47 for (n = 0; n < num_blocks; n++) in internal_aes_gcm_ghash_update() 50 n * TEE_AES_BLOCK_SIZE); in internal_aes_gcm_ghash_update() 72 size_t n = 0; in encrypt_pl() local 75 for (n = 0; n < num_blocks; n++) { in encrypt_pl() 77 void *d = dst + n * TEE_AES_BLOCK_SIZE; in encrypt_pl() 82 for (n = 0; n < num_blocks; n++) { in encrypt_pl() 84 void *d = dst + n * TEE_AES_BLOCK_SIZE; in encrypt_pl() 111 size_t n = 0; in decrypt_pl() local 114 for (n = 0; n < num_blocks; n++) { in decrypt_pl() [all …]
|
/optee_os/core/drivers/ |
A D | ls_i2c.c | 102 unsigned int n = 0; in i2c_get_ibfd() local 112 for (n = 0; n < dpair_sz - 1; n++) in i2c_get_ibfd() 173 unsigned int n = 0; in i2c_bus_test_bus_busy() local 176 for (n = 0; n < I2C_NUM_RETRIES; n++) { in i2c_bus_test_bus_busy() 206 unsigned int n = 0; in i2c_transfer_complete() local 209 for (n = 0; n < I2C_NUM_RETRIES; n++) { in i2c_transfer_complete() 244 unsigned int n = 0; in i2c_read() local 262 for (n = 0; n < operation->length_in_bytes; n++) { in i2c_read() 310 for (n = 0; n < operation->length_in_bytes; n++) { in i2c_write() 390 n < operation_count; n++, operation++) { in i2c_bus_xfer() [all …]
|
A D | stm32_etzpc.c | 217 unsigned int n = 0; in etzpc_pm() local 224 for (n = 0; n < dev->num_per_sec; n++) { in etzpc_pm() 230 etzpc_lock_decprot(n); in etzpc_pm() 233 for (n = 0; n < dev->num_tzma; n++) { in etzpc_pm() 239 etzpc_lock_tzma(n); in etzpc_pm() 248 unsigned int n = 0; in init_pm() local 255 for (n = 0; n < dev->num_per_sec; n++) { in init_pm() 256 dev->periph_cfg[n] = (uint8_t)etzpc_get_decprot(n); in init_pm() 261 for (n = 0; n < dev->num_tzma; n++) { in init_pm() 262 dev->tzma_cfg[n] = (uint8_t)etzpc_get_tzma(n); in init_pm() [all …]
|
/optee_os/ta/pkcs11/src/ |
A D | token_capabilities.c | 149 size_t n = 0; in mechanism_string_id() local 151 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_string_id() 164 size_t n = 0; in mechanism_is_valid() local 166 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_valid() 179 size_t n = 0; in mechanism_flags_complies_pkcs11() local 183 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) { in mechanism_flags_complies_pkcs11() 200 size_t n = 0; in mechanism_is_one_shot_only() local 202 for (n = 0; n < ARRAY_SIZE(pkcs11_modes); n++) in mechanism_is_one_shot_only() 292 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) in tee_malloc_mechanism_list() 305 for (n = 0; n < ARRAY_SIZE(token_mechanism); n++) { in tee_malloc_mechanism_list() [all …]
|
A D | handle.c | 36 uint32_t n = 0; in handle_get() local 44 for (n = 1; n < db->max_ptrs; n++) { in handle_get() 45 if (!db->ptrs[n]) { in handle_get() 46 db->ptrs[n] = ptr; in handle_get() 47 return n; in handle_get() 66 db->ptrs[n] = ptr; in handle_get() 67 return n; in handle_get() 92 uint32_t n = 0; in handle_lookup_handle() local 95 for (n = 1; n < db->max_ptrs; n++) in handle_lookup_handle() 96 if (db->ptrs[n] == ptr) in handle_lookup_handle() [all …]
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | platform.c | 39 ((void) n); in platform_calloc_uninit() 104 ((void) n); in platform_snprintf_uninit() 112 int (*mbedtls_snprintf)( char * s, size_t n, 138 ret = vsnprintf( s, n, fmt, arg ); in mbedtls_platform_win32_vsnprintf() 139 if( ret < 0 || (size_t) ret == n ) in mbedtls_platform_win32_vsnprintf() 141 s[n-1] = '\0'; in mbedtls_platform_win32_vsnprintf() 159 ((void) n); in platform_vsnprintf_uninit() 286 size_t n; in mbedtls_platform_std_nv_seed_read() local 299 return( (int)n ); in mbedtls_platform_std_nv_seed_read() 305 size_t n; in mbedtls_platform_std_nv_seed_write() local [all …]
|
/optee_os/core/pta/tests/ |
A D | fs_htree.c | 192 for (n = 0; n < ARRAY_SIZE(b); n++) in write_block() 193 b[n] = val_from_bn_n_salt(bn, n, salt); in write_block() 208 for (n = 0; n < ARRAY_SIZE(b); n++) { in read_block() 212 n, b[n], val_from_bn_n_salt(bn, n, salt)); in read_block() 228 for (n = 0; n < num_blocks; n++) { in do_range() 245 for (n = 0; n < num_blocks; n++) { in do_range_backwards() 451 for (n = 0; n < num_blocks; n += 3) { in test_write_read() 485 n = 0; in test_corrupt_type() 532 n += n; in test_corrupt_type() 593 for (n = 0; n < num_blocks; n++) { in test_corrupt() [all …]
|
/optee_os/core/tee/ |
A D | tee_time_generic.c | 25 size_t n; in tee_time_ta_get_offs() local 27 for (n = 0; n < tee_time_num_offs; n++) { in tee_time_ta_get_offs() 28 if (memcmp(uuid, &tee_time_offs[n].uuid, sizeof(TEE_UUID)) in tee_time_ta_get_offs() 30 *offs = &tee_time_offs[n].offs; in tee_time_ta_get_offs() 31 *positive = tee_time_offs[n].positive; in tee_time_ta_get_offs() 41 size_t n; in tee_time_ta_set_offs() local 44 for (n = 0; n < tee_time_num_offs; n++) { in tee_time_ta_set_offs() 47 tee_time_offs[n].offs = *offs; in tee_time_ta_set_offs() 48 tee_time_offs[n].positive = positive; in tee_time_ta_set_offs() 53 n = tee_time_num_offs + 1; in tee_time_ta_set_offs() [all …]
|
A D | entry_std.c | 178 size_t n; in copy_in_params() local 186 for (n = 0; n < num_params; n++) { in copy_in_params() 189 saved_attr[n] = READ_ONCE(params[n].attr); in copy_in_params() 255 size_t n; in cleanup_shm_refs() local 257 for (n = 0; n < num_params; n++) { in cleanup_shm_refs() 278 size_t n; in copy_out_param() local 280 for (n = 0; n < num_params; n++) { in copy_out_param() 287 params[n].u.tmem.size = ta_param->u[n].mem.size; in copy_out_param() 291 params[n].u.rmem.size = ta_param->u[n].mem.size; in copy_out_param() 299 params[n].u.value.a = ta_param->u[n].val.a; in copy_out_param() [all …]
|
/optee_os/core/arch/arm/kernel/ |
A D | thread_optee_smc.c | 236 for (n = 0; n < CFG_NUM_THREADS; n++) { in thread_disable_prealloc_rpc_cache() 246 for (n = 0; n < CFG_NUM_THREADS; n++) { in thread_disable_prealloc_rpc_cache() 277 for (n = 0; n < CFG_NUM_THREADS; n++) { in thread_enable_prealloc_rpc_cache() 416 for (size_t n = 0; n < num_params; n++) { in get_rpc_arg() local 424 arg->params[n].attr = params[n].attr - in get_rpc_arg() 427 arg->params[n].u.value.a = params[n].u.value.a; in get_rpc_arg() 428 arg->params[n].u.value.b = params[n].u.value.b; in get_rpc_arg() 429 arg->params[n].u.value.c = params[n].u.value.c; in get_rpc_arg() 437 if (!set_tmem(arg->params + n, params + n)) in get_rpc_arg() 441 if (!set_rmem(arg->params + n, params + n)) in get_rpc_arg() [all …]
|
A D | thread.c | 183 for (n = 0; n < ARRAY_SIZE(name); n++) { \ in init_canaries() 212 for (n = 0; n < ARRAY_SIZE(stack_tmp); n++) { in thread_check_canaries() 221 for (n = 0; n < ARRAY_SIZE(stack_abt); n++) { in thread_check_canaries() 231 for (n = 0; n < ARRAY_SIZE(stack_thread); n++) { in thread_check_canaries() 345 for (n = 0; n < CFG_TEE_CORE_NB_CORE; n++) { in print_stack_limits() 350 for (n = 0; n < CFG_TEE_CORE_NB_CORE; n++) { in print_stack_limits() 355 for (n = 0; n < CFG_NUM_THREADS; n++) { in print_stack_limits() 550 for (n = 0; n < CFG_NUM_THREADS; n++) { in __thread_alloc_and_run() 1005 for (n = 0; n < CFG_NUM_THREADS; n++) { in init_thread_stacks() 1041 for (n = 0; n < CFG_NUM_THREADS; n++) { in init_thread_stacks() [all …]
|
/optee_os/scripts/ |
A D | gen_ldelf_hex.py | 31 def round_up(n, m): argument 32 if n == 0: 35 return (((n - 1) // m) + 1) * m 48 n = 0 80 n = n + 1 82 n = 0 91 n = n + 1 92 n = 0 99 if pad_size[n]: 101 data += bytearray(pad_size[n]) [all …]
|