Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 120) sorted by relevance

12345

/optee_os/core/mm/
A Dvm.c127 e = r->va + r->size; in get_num_req_pgts()
181 r->va + r->size); in rem_um_region()
342 if (va >= r->va && va < r->va + r->size) in find_vm_region()
444 r = TAILQ_NEXT(r, link); in split_vm_range()
451 if (end_va != r->va + r->size) { in split_vm_range()
477 if (r->va + r->size < va) in merge_vm_range()
517 r0->mobj == r->mobj && rn->offset == r->offset + r->size; in cmp_region_for_remap()
548 for (r = r0; r; r = r_next) { in vm_remap()
598 for (r = r_first; r_last && r != r_last; r = r_next) { in vm_remap()
713 for (r = r0; r; r = TAILQ_NEXT(r, link)) { in vm_set_prot()
[all …]
/optee_os/core/pta/tests/
A Dmisc.c226 bool r; in self_test_division() local
240 if (!r) in self_test_division()
256 if (!r) in self_test_division()
278 if (!r) in self_test_division()
294 if (!r) in self_test_division()
312 bool r; in self_test_malloc() local
329 if (!r) in self_test_malloc()
346 if (!r) in self_test_malloc()
366 if (!r) in self_test_malloc()
387 if (!r) in self_test_malloc()
[all …]
/optee_os/out/arm/core/
A Dtee.symb_sizes20 000000000e1592d2 0000000000000800 r lenfix.1
47 000000000e157e38 0000000000000400 r Te4
48 000000000e157a38 0000000000000400 r Td4
49 000000000e157638 0000000000000400 r TE0
50 000000000e157238 0000000000000400 r TD0
106 000000000e156310 0000000000000280 r K
391 000000000e1570b8 0000000000000100 r SP8
392 000000000e156fb8 0000000000000100 r SP7
393 000000000e156eb8 0000000000000100 r SP6
400 000000000e158360 0000000000000100 r K
[all …]
/optee_os/core/arch/arm/mm/
A Dmobj_dyn_shm.c117 assert(r->mm); in reg_shm_unmap_helper()
119 core_mmu_unmap_pages(tee_mm_get_smem(r->mm), r->mm->size); in reg_shm_unmap_helper()
121 r->mm = NULL; in reg_shm_unmap_helper()
142 if (r->guarded && !r->releasing) { in mobj_reg_shm_free()
206 if (!r->mm) { in mobj_reg_shm_inc_map()
369 if (!r) in mobj_reg_shm_get_by_cookie()
388 if (!r || r->guarded || r->releasing) in mobj_reg_shm_release_by_cookie()
389 r = NULL; in mobj_reg_shm_release_by_cookie()
395 if (!r) in mobj_reg_shm_release_by_cookie()
417 r = NULL; in mobj_reg_shm_release_by_cookie()
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/
A Dxtea.c78 int r; in xtea_ecb_encrypt() local
86 for (r = 0; r < 32; r += 4) { in xtea_ecb_encrypt()
87 y = (y + ((((z<<4)^(z>>5)) + z) ^ skey->xtea.A[r])) & 0xFFFFFFFFUL; in xtea_ecb_encrypt()
88 z = (z + ((((y<<4)^(y>>5)) + y) ^ skey->xtea.B[r])) & 0xFFFFFFFFUL; in xtea_ecb_encrypt()
90 y = (y + ((((z<<4)^(z>>5)) + z) ^ skey->xtea.A[r+1])) & 0xFFFFFFFFUL; in xtea_ecb_encrypt()
91 z = (z + ((((y<<4)^(y>>5)) + y) ^ skey->xtea.B[r+1])) & 0xFFFFFFFFUL; in xtea_ecb_encrypt()
93 y = (y + ((((z<<4)^(z>>5)) + z) ^ skey->xtea.A[r+2])) & 0xFFFFFFFFUL; in xtea_ecb_encrypt()
114 int r; in xtea_ecb_decrypt() local
122 for (r = 31; r >= 0; r -= 4) { in xtea_ecb_decrypt()
123 z = (z - ((((y<<4)^(y>>5)) + y) ^ skey->xtea.B[r])) & 0xFFFFFFFFUL; in xtea_ecb_decrypt()
[all …]
A Danubis.c891 int N, R, i, pos, r; in _anubis_setup() local
934 for (r = 0; r <= R; r++) { in _anubis_setup()
982 if (r == R) { in _anubis_setup()
992 kappa[0] = inter[0] ^ rc[r]; in _anubis_setup()
1005 for (r = 1; r < R; r++) { in _anubis_setup()
1032 int i, pos, r; in anubis_crypt() local
1052 for (r = 1; r < R; r++) { in anubis_crypt()
1058 roundKey[r][0]; in anubis_crypt()
1064 roundKey[r][1]; in anubis_crypt()
1070 roundKey[r][2]; in anubis_crypt()
[all …]
A Dblowfish.c396 int r; in _blowfish_ecb_encrypt() local
417 for (r = 0; r < 16; ) { in _blowfish_ecb_encrypt()
418 L ^= skey->blowfish.K[r++]; R ^= F(L); in _blowfish_ecb_encrypt()
419 R ^= skey->blowfish.K[r++]; L ^= F(R); in _blowfish_ecb_encrypt()
420 L ^= skey->blowfish.K[r++]; R ^= F(L); in _blowfish_ecb_encrypt()
458 int r; in _blowfish_ecb_decrypt() local
483 for (r = 15; r > 0; ) { in _blowfish_ecb_decrypt()
484 L ^= F(R); R ^= skey->blowfish.K[r--]; in _blowfish_ecb_decrypt()
485 R ^= F(L); L ^= skey->blowfish.K[r--]; in _blowfish_ecb_decrypt()
486 L ^= F(R); R ^= skey->blowfish.K[r--]; in _blowfish_ecb_decrypt()
[all …]
A Drc5.c135 int r; in _rc5_ecb_encrypt() local
147 for (r = 0; r < skey->rc5.rounds; r += 2) { in _rc5_ecb_encrypt()
155 for (r = 0; r < skey->rc5.rounds; r++) { in _rc5_ecb_encrypt()
191 int r; in _rc5_ecb_decrypt() local
202 for (r = skey->rc5.rounds - 1; r >= 0; r -= 2) { in _rc5_ecb_decrypt()
210 for (r = skey->rc5.rounds - 1; r >= 0; r--) { in _rc5_ecb_decrypt()
/optee_os/core/drivers/clk/sam/
A Dsama5d2_clk.c76 struct clk_range r; member
80 .r = { .min = 0, .max = 83000000 },
84 .r = { .min = 0, .max = 83000000 },
94 .r = { .min = 0, .max = 83000000 },
98 .r = { .min = 0, .max = 83000000 },
102 .r = { .min = 0, .max = 83000000 },
106 .r = { .min = 0, .max = 83000000 },
110 .r = { .min = 0, .max = 83000000 },
114 .r = { .min = 0, .max = 83000000 },
238 struct clk_range r; member
[all …]
/optee_os/core/kernel/
A Duser_mode_ctx.c12 struct vm_region *r = NULL; in user_mode_ctx_print_mappings() local
16 TAILQ_FOREACH(r, &uctx->vm_info.regions, link) { in user_mode_ctx_print_mappings()
19 if (r->mobj) in user_mode_ctx_print_mappings()
20 mobj_get_pa(r->mobj, r->offset, 0, &pa); in user_mode_ctx_print_mappings()
22 mattr_perm_to_str(flags, sizeof(flags), r->attr); in user_mode_ctx_print_mappings()
25 n, PRIxVA_WIDTH, r->va, PRIxPA_WIDTH, pa, r->size, in user_mode_ctx_print_mappings()
A Drefcount.c10 bool refcount_inc(struct refcount *r) in refcount_inc() argument
13 unsigned int oval = atomic_load_uint(&r->val); in refcount_inc()
22 if (atomic_cas_uint(&r->val, &oval, nval)) in refcount_inc()
31 bool refcount_dec(struct refcount *r) in refcount_dec() argument
34 unsigned int oval = atomic_load_uint(&r->val); in refcount_dec()
40 if (atomic_cas_uint(&r->val, &oval, nval)) { in refcount_dec()
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305.c31 r0 = st->r[0]; in _poly1305_block()
32 r1 = st->r[1]; in _poly1305_block()
33 r2 = st->r[2]; in _poly1305_block()
34 r3 = st->r[3]; in _poly1305_block()
35 r4 = st->r[4]; in _poly1305_block()
97 LOAD32L(st->r[0], key + 0); st->r[0] = (st->r[0] ) & 0x3ffffff; in poly1305_init()
98 LOAD32L(st->r[1], key + 3); st->r[1] = (st->r[1] >> 2) & 0x3ffff03; in poly1305_init()
99 LOAD32L(st->r[2], key + 6); st->r[2] = (st->r[2] >> 4) & 0x3ffc0ff; in poly1305_init()
100 LOAD32L(st->r[3], key + 9); st->r[3] = (st->r[3] >> 6) & 0x3f03fff; in poly1305_init()
101 LOAD32L(st->r[4], key + 12); st->r[4] = (st->r[4] >> 8) & 0x00fffff; in poly1305_init()
[all …]
/optee_os/lib/libutils/isoc/
A Dqsort.c79 int d, r, swaptype, swap_cnt; in qsort() local
108 if (r == 0) { in qsort()
116 if (r == 0) { in qsort()
138 r = min(pa - (char *)a, pb - pa); in qsort()
139 vecswap(a, pb - r, r); in qsort()
141 vecswap(pb, pn - r, r); in qsort()
142 if ((r = pb - pa) > (int)es) in qsort()
143 qsort(a, r / es, es, cmp); in qsort()
144 if ((r = pd - pc) > (int)es) { in qsort()
146 a = pn - r; in qsort()
[all …]
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/
A Ds_approxRecipSqrt32_1.c58 uint_fast32_t r; in softfloat_approxRecipSqrt32_1() local
67 r = ((uint_fast32_t) r0<<16) + ((r0 * (uint_fast64_t) delta0)>>25); in softfloat_approxRecipSqrt32_1()
69 r += ((uint32_t) ((r>>1) + (r>>3) - ((uint_fast32_t) r0<<14)) in softfloat_approxRecipSqrt32_1()
72 if ( ! (r & 0x80000000) ) r = 0x80000000; in softfloat_approxRecipSqrt32_1()
73 return r; in softfloat_approxRecipSqrt32_1()
A Ds_approxRecip32_1.c57 uint_fast32_t r; in softfloat_approxRecip32_1() local
64 r = ((uint_fast32_t) r0<<16) + ((r0 * (uint_fast64_t) delta0)>>24); in softfloat_approxRecip32_1()
66 r += ((uint32_t) r * (uint_fast64_t) sqrDelta0)>>48; in softfloat_approxRecip32_1()
67 return r; in softfloat_approxRecip32_1()
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
A Dtweetnacl.c178 i64 x[80],r,i; in tweetnacl_crypto_scalarmult() local
378 sv reduce(u8 *r) in reduce() argument
383 modL(r,x); in reduce()
402 reduce(r); in tweetnacl_crypto_sign()
423 S(num,r[1]); in unpackneg()
438 M(r[0],t,den); in unpackneg()
440 S(chk,r[0]); in unpackneg()
442 if (neq25519(chk, num)) M(r[0],r[0],I); in unpackneg()
444 S(chk,r[0]); in unpackneg()
448 if (par25519(r[0]) == (p[31]>>7)) Z(r[0],gf0,r[0]); in unpackneg()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_sign_hash.c31 void *r, void *s, in dsa_sign_hash_raw() argument
39 LTC_ARGCHK(r != NULL); in dsa_sign_hash_raw()
81 …if ((err = mp_exptmod(key->g, k, key->p, r)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
82 …if ((err = mp_mod(r, key->q, r)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
84 …if (mp_iszero(r) == LTC_MP_YES) { goto retry; } in dsa_sign_hash_raw()
91 …if ((err = mp_mul(key->x, r, s)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
123 void *r, *s; in dsa_sign_hash() local
131 if (mp_init_multi(&r, &s, NULL) != CRYPT_OK) { in dsa_sign_hash()
135 if ((err = dsa_sign_hash_raw(in, inlen, r, s, prng, wprng, key)) != CRYPT_OK) { in dsa_sign_hash()
140 LTC_ASN1_INTEGER, 1UL, r, in dsa_sign_hash()
[all …]
A Ddsa_verify_hash.c30 int dsa_verify_hash_raw( void *r, void *s, in dsa_verify_hash_raw() argument
37 LTC_ARGCHK(r != NULL); in dsa_verify_hash_raw()
51 …if (mp_cmp_d(r, 0) != LTC_MP_GT || mp_cmp_d(s, 0) != LTC_MP_GT || mp_cmp(r, key->q) != LTC_MP_LT |… in dsa_verify_hash_raw()
67 …if ((err = mp_mulmod(r, w, key->q, u2)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
76 if (mp_cmp(r, v) == LTC_MP_EQ) { in dsa_verify_hash_raw()
101 void *r, *s; in dsa_verify_hash() local
108 if ((err = mp_init_multi(&r, &s, NULL)) != CRYPT_OK) { in dsa_verify_hash()
112 LTC_SET_ASN1(sig_seq, 0, LTC_ASN1_INTEGER, r, 1UL); in dsa_verify_hash()
126 err = dsa_verify_hash_raw(r, s, hash, hashlen, stat, key); in dsa_verify_hash()
129 mp_clear_multi(r, s, NULL); in dsa_verify_hash()
/optee_os/core/include/kernel/
A Drefcount.h55 bool refcount_inc(struct refcount *r);
57 bool refcount_dec(struct refcount *r);
59 static inline void refcount_set(struct refcount *r, unsigned int val) in refcount_set() argument
61 atomic_store_uint(&r->val, val); in refcount_set()
64 static inline unsigned int refcount_val(struct refcount *r) in refcount_val() argument
66 return atomic_load_uint(&r->val); in refcount_val()
/optee_os/lib/libmbedtls/mbedtls/library/
A Decdsa.c118 mbedtls_mpi_init( &ctx->r ); in ecdsa_restart_sig_init()
131 mbedtls_mpi_free( &ctx->r ); in ecdsa_restart_sig_free()
264 mbedtls_mpi *pk = &k, *pr = r; in ecdsa_sign_restartable()
286 pr = &rs_ctx->sig->r; in ecdsa_sign_restartable()
635 if( mbedtls_mpi_cmp_int( r, 1 ) < 0 || mbedtls_mpi_cmp_mpi( r, &grp->N ) >= 0 || in ecdsa_verify_restartable()
758 mbedtls_mpi r, s; in mbedtls_ecdsa_write_signature_restartable() local
764 mbedtls_mpi_init( &r ); in mbedtls_ecdsa_write_signature_restartable()
790 mbedtls_mpi_free( &r ); in mbedtls_ecdsa_write_signature_restartable()
856 mbedtls_mpi r, s; in mbedtls_ecdsa_read_signature_restartable() local
861 mbedtls_mpi_init( &r ); in mbedtls_ecdsa_read_signature_restartable()
[all …]
/optee_os/core/lib/libtomcrypt/src/stream/sosemanuk/
A Dsosemanuk.c220 st->kc[i ++] = r ## d0; \ in sosemanuk_setup()
221 st->kc[i ++] = r ## d1; \ in sosemanuk_setup()
222 st->kc[i ++] = r ## d2; \ in sosemanuk_setup()
223 st->kc[i ++] = r ## d3; \ in sosemanuk_setup()
359 KA(zc, r ## i0, r ## i1, r ## i2, r ## i3); \ in sosemanuk_setiv()
360 S(r ## i0, r ## i1, r ## i2, r ## i3, r ## i4); \ in sosemanuk_setiv()
361 SERPENT_LT(r ## o0, r ## o1, r ## o2, r ## o3); \ in sosemanuk_setiv()
369 KA(zc, r ## i0, r ## i1, r ## i2, r ## i3); \ in sosemanuk_setiv()
370 S(r ## i0, r ## i1, r ## i2, r ## i3, r ## i4); \ in sosemanuk_setiv()
371 SERPENT_LT(r ## o0, r ## o1, r ## o2, r ## o3); \ in sosemanuk_setiv()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_sign_hash.c39 void *r, *s, *e, *p, *b; in ecc_sign_hash_ex() local
56 if ((err = mp_init_multi(&r, &s, &e, &b, NULL)) != CRYPT_OK) { in ecc_sign_hash_ex()
86 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex()
100 if (mp_iszero(r) == LTC_MP_YES) { in ecc_sign_hash_ex()
128 LTC_ASN1_INTEGER, 1UL, r, in ecc_sign_hash_ex()
136 i = mp_unsigned_bin_size(r); in ecc_sign_hash_ex()
137 if ((err = mp_to_unsigned_bin(r, out + (pbytes - i))) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
151 i = mp_unsigned_bin_size(r); in ecc_sign_hash_ex()
152 if ((err = mp_to_unsigned_bin(r, out + 32 - i)) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
169 LTC_SSHDATA_MPINT, r, in ecc_sign_hash_ex()
[all …]
/optee_os/lib/libutils/isoc/arch/arm/
A Darm32_aeabi_ldivmod.c9 unsigned long long r; /* computed remainder */ member
23 qr->r = 0xFFFFFFFFFFFFFFFFULL; /* division by 0 */ in division_lqr()
41 qr->r = n; in division_lqr()
55 qr->r = -qr->r; in ul_div_qr()
74 asm_ulqr->v1 = qr.r; in __ul_divmod()
103 asm_lqr->v1 = qr.r; in __l_divmod()
A Darm32_aeabi_divmod.c23 unsigned r; /* computed remainder */ member
62 qr->r = 0xFFFFFFFF; /* division by 0 */ in division_qr()
81 qr->r = n; in division_qr()
94 qr->r = -qr->r; in uint_div_qr()
112 return ret_uidivmod_values(qr.q, qr.r); in __aeabi_uidivmod()
150 return ret_idivmod_values(qr.q, qr.r); in __aeabi_idivmod()
/optee_os/core/lib/libtomcrypt/
A Ddsa.c102 void *r, *s; in crypto_acipher_dsa_sign() local
137 ltc_res = mp_init_multi(&r, &s, NULL); in crypto_acipher_dsa_sign()
143 ltc_res = dsa_sign_hash_raw(msg, msg_len, r, s, NULL, in crypto_acipher_dsa_sign()
149 mp_to_unsigned_bin(r, (uint8_t *)sig + *sig_len/2 - in crypto_acipher_dsa_sign()
150 mp_unsigned_bin_size(r)); in crypto_acipher_dsa_sign()
158 mp_clear_multi(r, s, NULL); in crypto_acipher_dsa_sign()
170 void *r, *s; in crypto_acipher_dsa_verify() local
187 ltc_res = mp_init_multi(&r, &s, NULL); in crypto_acipher_dsa_verify()
192 mp_read_unsigned_bin(r, (uint8_t *)sig, sig_len/2); in crypto_acipher_dsa_verify()
194 ltc_res = dsa_verify_hash_raw(r, s, msg, msg_len, &ltc_stat, &ltc_key); in crypto_acipher_dsa_verify()
[all …]

Completed in 48 milliseconds

12345