Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 107) sorted by relevance

12345

/optee_os-3.20.0/core/arch/arm/plat-imx/registers/
A Dimx7-crm.h14 #define CCM_GPRx(idx) (((idx) * CCM_GRPx_OFFSET) + CCM_GPR0) argument
15 #define CCM_GPRx_SET(idx) (CCM_GPRx(idx) + 0x4) argument
16 #define CCM_GPRx_CLR(idx) (CCM_GPRx(idx) + 0x8) argument
17 #define CCM_GPRx_TOG(idx) (CCM_GPRx(idx) + 0xC) argument
25 #define CCM_PLL_CTRLx_SET(idx) (CCM_PLL_CTRLx(idx) + 0x4) argument
26 #define CCM_PLL_CTRLx_CLR(idx) (CCM_PLL_CTRLx(idx) + 0x8) argument
27 #define CCM_PLL_CTRLx_TOG(idx) (CCM_PLL_CTRLx(idx) + 0xC) argument
35 #define CCM_CCGRx_SET(idx) (CCM_CCGRx(idx) + 0x4) argument
36 #define CCM_CCGRx_CLR(idx) (CCM_CCGRx(idx) + 0x8) argument
37 #define CCM_CCGRx_TOG(idx) (CCM_CCGRx(idx) + 0xC) argument
[all …]
A Dimx8m-crm.h12 #define CCM_CCGRx(idx) (((idx) * CCM_CCGRx_OFFSET) + CCM_CCGR0) argument
13 #define CCM_CCGRx_SET(idx) (CCM_CCGRx(idx) + 0x4) argument
14 #define CCM_CCGRx_CLR(idx) (CCM_CCGRx(idx) + 0x8) argument
15 #define CCM_CCGRx_TOG(idx) (CCM_CCGRx(idx) + 0xC) argument
17 #define BS_CCM_CCGRx_SETTING(idx) ((idx) * 4) argument
18 #define BM_CCM_CCGRx_SETTING(idx) \ argument
20 #define CCM_CCGRx_DISABLE(idx) \ argument
22 #define CCM_CCGRx_RUN(idx) \ argument
23 BIT32(BS_CCM_CCGRx_SETTING(idx))
24 #define CCM_CCGRx_RUN_WAIT(idx) \ argument
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/utils/
A Dutils_sgt.c33 unsigned int idx = 0; in caam_sgt_cache_op() local
40 for (idx = 0; idx < insgt->number && rem_length; idx++) { in caam_sgt_cache_op()
51 unsigned int idx = 0; in caam_sgt_fill_table() local
55 for (idx = 0; idx < sgt->number - 1; idx++) { in caam_sgt_fill_table()
56 CAAM_SGT_ENTRY(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table()
61 CAAM_SGT_ENTRY_FINAL(&sgt->sgt[idx], sgt->buf[idx].paddr, in caam_sgt_fill_table()
63 sgt_entry_trace(idx, sgt); in caam_sgt_fill_table()
71 unsigned int idx = 0; in caam_sgt_derive() local
84 for (; idx < from->number && off >= from->buf[idx].length; idx++) in caam_sgt_derive()
87 st_idx = idx; in caam_sgt_derive()
[all …]
A Dutils_sgt_v1.c15 void sgt_entry_trace(unsigned int idx __maybe_unused, in sgt_entry_trace()
18 SGT_TRACE("SGT[%d] (%p)", idx, &sgt->sgt[idx]); in sgt_entry_trace()
19 SGT_TRACE("SGT[%d]->data = %p", idx, sgt->buf[idx].data); in sgt_entry_trace()
20 SGT_TRACE("SGT[%d]->length = %zu", idx, sgt->buf[idx].length); in sgt_entry_trace()
21 SGT_TRACE("SGT[%d]->paddr = 0x%" PRIxPA, idx, sgt->buf[idx].paddr); in sgt_entry_trace()
22 SGT_TRACE("SGT[%d]->ptr_ms = %" PRIx32, idx, sgt->sgt[idx].v1.ptr_ms); in sgt_entry_trace()
23 SGT_TRACE("SGT[%d]->ptr_ls = %" PRIx32, idx, sgt->sgt[idx].v1.ptr_ls); in sgt_entry_trace()
24 SGT_TRACE("SGT[%d]->len_f_e = %" PRIx32, idx, in sgt_entry_trace()
25 sgt->sgt[idx].v1.len_f_e); in sgt_entry_trace()
26 SGT_TRACE("SGT[%d]->offset = %" PRIx32, idx, sgt->sgt[idx].v1.offset); in sgt_entry_trace()
A Dutils_sgt_v2.c12 void sgt_entry_trace(unsigned int idx __maybe_unused, in sgt_entry_trace()
15 SGT_TRACE("SGT[%d] (%p)", idx, &sgt->sgt[idx]); in sgt_entry_trace()
16 SGT_TRACE("SGT[%d]->data = %p", idx, sgt->buf[idx].data); in sgt_entry_trace()
17 SGT_TRACE("SGT[%d]->length = %zu", idx, sgt->buf[idx].length); in sgt_entry_trace()
18 SGT_TRACE("SGT[%d]->paddr = 0x%" PRIxPA, idx, sgt->buf[idx].paddr); in sgt_entry_trace()
19 SGT_TRACE("SGT[%d]->w1 = %" PRIx64, idx, sgt->sgt[idx].v2.w1); in sgt_entry_trace()
20 SGT_TRACE("SGT[%d]->w2 = %" PRIx64, idx, sgt->sgt[idx].v2.w2); in sgt_entry_trace()
/optee_os-3.20.0/core/drivers/crypto/caam/cipher/
A Dcaam_cipher_xts.c22 size_t idx = 0; in do_galois_mult() local
26 for (idx = 0; idx < buf->length; idx++) { in do_galois_mult()
28 buf->data[idx] = (buf->data[idx] << 1) | tmp; in do_galois_mult()
57 for (idx = 0; idx < ctx->alg->size_block; idx++) in do_tweak_block()
58 tmp->orig.data[idx] = srcbuf->data[idx] ^ enc_tweak->data[idx]; in do_tweak_block()
68 for (idx = 0; idx < ctx->alg->size_block; idx++) in do_tweak_block()
69 dstbuf->data[idx] = tmp->orig.data[idx] ^ enc_tweak->data[idx]; in do_tweak_block()
88 size_t idx = 0; in caam_cipher_update_xts() local
220 for (idx = 0; idx < lastblk; idx++) { in caam_cipher_update_xts()
227 for (; idx < ctx->alg->size_block; idx++) in caam_cipher_update_xts()
[all …]
/optee_os-3.20.0/core/drivers/crypto/crypto_api/math/
A Dmodulus.c32 size_t min = 0, idx = 0; in drvcrypt_xor_mod_n() local
38 for (; idx < min; idx++) in drvcrypt_xor_mod_n()
39 data->result.data[idx] = in drvcrypt_xor_mod_n()
40 data->a.data[idx] ^ data->b.data[idx]; in drvcrypt_xor_mod_n()
45 memcpy(&data->result.data[idx], in drvcrypt_xor_mod_n()
46 &data->a.data[idx], in drvcrypt_xor_mod_n()
49 memcpy(&data->result.data[idx], in drvcrypt_xor_mod_n()
50 &data->b.data[idx], in drvcrypt_xor_mod_n()
53 memset(&data->result.data[idx], 0, in drvcrypt_xor_mod_n()
/optee_os-3.20.0/core/tee/
A Dfs_dirfile.c58 if (idx < dirh->nbits) in maybe_grow_files()
67 dirh->nbits = idx + 1; in maybe_grow_files()
77 bit_set(dirh->files, idx); in set_file()
84 if (idx < dirh->nbits) in clear_file()
90 if (idx < dirh->nbits) in test_file()
237 dfh->idx = n; in tee_fs_dirfile_find()
261 *idx = n; in find_empty_idx()
307 if (dfh->idx < 0) { in tee_fs_dirfile_rename()
317 dfh->idx = dfh2.idx; in tee_fs_dirfile_rename()
371 int i = *idx + 1; in tee_fs_dirfile_get_next()
[all …]
A Dtadb.c147 if (idx < db->nbits) in maybe_grow_files()
156 db->nbits = idx + 1; in maybe_grow_files()
177 if (idx < db->nbits) in clear_file()
316 size_t idx; in populate_files() local
336 for (idx = 0;; idx++) { in populate_files()
499 size_t idx; in find_ent() local
508 for (idx = 0;; idx++) { in find_ent()
525 *idx_ret = idx; in find_ent()
548 size_t idx; in tee_tadb_ta_close_and_commit() local
602 size_t idx; in tee_tadb_ta_delete() local
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/hal/imx_8q/registers/
A Dctrl_regs.h15 #define JRxDID_MS(idx) (JR0DID_MS + (idx) * (JRxDID_SIZE)) argument
16 #define JRxDID_LS(idx) (JR0DID_LS + (idx) * (JRxDID_SIZE)) argument
33 #define JRX_SMVBAR(idx) (0x0184 + (idx) * (8)) argument
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Ddebug.c141 size_t i, idx = 0; in mbedtls_debug_print_buf() local
156 idx = 0; in mbedtls_debug_print_buf()
174 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, "%04x: ", in mbedtls_debug_print_buf()
179 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %02x", in mbedtls_debug_print_buf()
187 idx += mbedtls_snprintf( str + idx, sizeof( str ) - idx, " " ); in mbedtls_debug_print_buf()
189 mbedtls_snprintf( str + idx, sizeof( str ) - idx, " %s\n", txt ); in mbedtls_debug_print_buf()
224 size_t idx = 0; in mbedtls_debug_print_mpi() local
244 idx = 3; in mbedtls_debug_print_mpi()
256 idx += 3; in mbedtls_debug_print_mpi()
267 if( idx != 0 ) in mbedtls_debug_print_mpi()
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/hal/imx_8ulp/registers/
A Dctrl_regs.h20 #define JRxDID_MS(idx) (JR0DID_MS + ((idx) * (JRxDID_SIZE))) argument
21 #define JRxDID_LS(idx) (JR0DID_LS + ((idx) * (JRxDID_SIZE))) argument
38 #define JRX_SMVBAR(idx) (0x0184 + (idx) * (8)) argument
/optee_os-3.20.0/core/arch/arm/plat-sam/
A Dmatrix.c488 if (idx > 3) in matrix_set_periph_world()
571 int idx = 0; in matrix_save_regs() local
573 for (idx = 0; idx < MATRIX_SPSELR_COUNT; idx++) in matrix_save_regs()
576 for (idx = 0; idx < MATRIX_SLAVE_COUNT; idx++) { in matrix_save_regs()
577 state->ssr[idx] = matrix_read(base, MATRIX_SSR(idx)); in matrix_save_regs()
578 state->srtsr[idx] = matrix_read(base, MATRIX_SRTSR(idx)); in matrix_save_regs()
579 state->sassr[idx] = matrix_read(base, MATRIX_SASSR(idx)); in matrix_save_regs()
594 int idx = 0; in matrix_restore_regs() local
598 for (idx = 0; idx < MATRIX_SPSELR_COUNT; idx++) in matrix_restore_regs()
601 for (idx = 0; idx < MATRIX_SLAVE_COUNT; idx++) { in matrix_restore_regs()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/f8/
A Df8_test_mode.c35 int err, idx; in f8_test_mode()
37 idx = find_cipher("aes"); in f8_test_mode()
38 if (idx == -1) { in f8_test_mode()
39 idx = find_cipher("rijndael"); in f8_test_mode()
40 if (idx == -1) return CRYPT_NOP; in f8_test_mode()
44 if ((err = f8_start(idx, IV, key, sizeof(key), salt, sizeof(salt), 0, &f8)) != CRYPT_OK) { in f8_test_mode()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c638 fp_cache[idx].g = NULL; in s_add_entry()
1224 int idx, err; in ltc_ecc_fp_mulmod() local
1231 idx = s_find_base(G); in ltc_ecc_fp_mulmod()
1234 if (idx == -1) { in ltc_ecc_fp_mulmod()
1236 idx = s_find_hole(); in ltc_ecc_fp_mulmod()
1238 if (idx >= 0) { in ltc_ecc_fp_mulmod()
1244 if (idx != -1) { in ltc_ecc_fp_mulmod()
1251 if (idx >= 0 && fp_cache[idx].lru_count == 2) { in ltc_ecc_fp_mulmod()
1269 if (idx >= 0 && fp_cache[idx].lru_count >= 2) { in ltc_ecc_fp_mulmod()
1328 int idx; in ltc_ecc_fp_add_point() local
[all …]
/optee_os-3.20.0/core/drivers/crypto/caam/
A Dcaam_pwr.c24 uint32_t idx = 0; in caam_pwr_add_backup() local
32 for (idx = 0; idx < nbentries; idx++) in caam_pwr_add_backup()
33 nbregs += regs[idx].nbregs; in caam_pwr_add_backup()
60 uint32_t idx = 0; in do_save_regs() local
67 for (idx = 0; idx < elem->nbentries; idx++, reg++) { in do_save_regs()
90 uint32_t idx = 0; in do_restore_regs() local
97 for (idx = 0; idx < elem->nbentries; idx++, reg++) { in do_restore_regs()
A Dcaam_rng.c73 unsigned int idx = 0; in do_allocate() local
85 for (idx = 0; idx < RNG_DATABUF_NB; idx++) { in do_allocate()
104 unsigned int idx = 0; in do_free() local
107 for (idx = 0; idx < RNG_DATABUF_NB; idx++) { in do_free()
218 unsigned int idx = 0; in do_check_data() local
222 for (idx = 0; idx < RNG_DATABUF_NB; idx++) { in do_check_data()
226 idx); in do_check_data()
247 for (idx = 0; idx < RNG_DATABUF_NB; idx++) { in do_check_data()
254 idx); in do_check_data()
340 unsigned int idx = 0; in caam_rng_init_data() local
[all …]
/optee_os-3.20.0/lib/libutee/
A Dbase64.c60 static bool get_idx(char ch, uint8_t *idx) in get_idx() argument
66 *idx = n; in get_idx()
77 uint8_t idx = 0; in _base64_dec() local
87 if (!get_idx(data[n], &idx)) in _base64_dec()
92 byte = idx << 2; in _base64_dec()
97 b[m] = byte | (idx >> 4); in _base64_dec()
99 byte = (idx & 0xf) << 4; in _base64_dec()
104 b[m] = byte | (idx >> 2); in _base64_dec()
106 byte = (idx & 0x3) << 6; in _base64_dec()
111 b[m] = byte | idx; in _base64_dec()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/crypt/
A Dcrypt_cipher_is_valid.c15 int cipher_is_valid(int idx) in cipher_is_valid() argument
18 if (idx < 0 || idx >= TAB_SIZE || cipher_descriptor[idx] == NULL) { in cipher_is_valid()
A Dcrypt_hash_is_valid.c15 int hash_is_valid(int idx) in hash_is_valid() argument
18 if (idx < 0 || idx >= TAB_SIZE || hash_descriptor[idx] == NULL) { in hash_is_valid()
A Dcrypt_prng_is_valid.c15 int prng_is_valid(int idx) in prng_is_valid() argument
18 if (idx < 0 || idx >= TAB_SIZE || prng_descriptor[idx] == NULL) { in prng_is_valid()
/optee_os-3.20.0/core/include/drivers/
A Dimx_mu.h12 #define IMX_MU_DATA_U32(mesg, idx) ((mesg)->data.u32[(idx)]) argument
13 #define IMX_MU_DATA_U16(mesg, idx) ((mesg)->data.u16[(idx)]) argument
14 #define IMX_MU_DATA_U8(mesg, idx) ((mesg)->data.u8[(idx)]) argument
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/gcm/
A Dgcm_test.c319 int idx, err; in gcm_test()
325 idx = find_cipher("aes"); in gcm_test()
326 if (idx == -1) { in gcm_test()
327 idx = find_cipher("rijndael"); in gcm_test()
328 if (idx == -1) { in gcm_test()
335 if ((err = gcm_init(&gcm, idx, tests[0].K, tests[0].keylen)) != CRYPT_OK) return err; in gcm_test()
343 if ((err = gcm_memory(idx, tests[x].K, tests[x].keylen, in gcm_test()
361 if ((err = gcm_memory(idx, tests[x].K, tests[x].keylen, in gcm_test()
387 err = gcm_memory(idx, key, sizeof(key), iv, sizeof(iv), NULL, 0, in gcm_test()
395 err = gcm_memory(idx, key, sizeof(key), iv, sizeof(iv), NULL, 0, in gcm_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_test.c64 int idx, err, x; in lrw_test()
68 idx = find_cipher("aes"); in lrw_test()
69 if (idx == -1) { in lrw_test()
70 idx = find_cipher("rijndael"); in lrw_test()
71 if (idx == -1) { in lrw_test()
78 … if ((err = lrw_start(idx, tests[x].IV, tests[x].key, 16, tests[x].tweak, 0, &lrw)) != CRYPT_OK) { in lrw_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/
A Dccm_test.c110 int err, idx; in ccm_test()
116 idx = find_cipher("aes"); in ccm_test()
117 if (idx == -1) { in ccm_test()
118 idx = find_cipher("rijndael"); in ccm_test()
119 if (idx == -1) { in ccm_test()
132 if ((err = ccm_memory(idx, in ccm_test()
143 if ((err = ccm_memory(idx, in ccm_test()
181 if ((err = ccm_memory(idx, in ccm_test()
218 if ((err = ccm_memory(idx, in ccm_test()
238 cipher_descriptor[idx]->done(&skey); in ccm_test()
[all …]

Completed in 39 milliseconds

12345