Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 237) sorted by relevance

12345678910

/optee_os/core/mm/
A Dfile.c61 return f; in file_find_tag_unlocked()
78 free(f); in file_free()
111 if (f && !refcount_inc(&f->refc)) in file_get()
114 return f; in file_get()
148 if (f && refcount_inc(&f->refc)) in file_get_by_tag()
151 f = calloc(1, sizeof(*f)); in file_get_by_tag()
152 if (!f) in file_get_by_tag()
155 f->taglen = taglen; in file_get_by_tag()
164 return f; in file_get_by_tag()
169 if (f && refcount_dec(&f->refc)) { in file_put()
[all …]
A Dfobj.c689 f = calloc(1, sizeof(*f)); in fobj_locked_paged_alloc()
690 if (!f) in fobj_locked_paged_alloc()
695 return f; in fobj_locked_paged_alloc()
750 struct fobj_sec_mem *f = calloc(1, sizeof(*f)); in fobj_sec_mem_alloc() local
754 if (!f) in fobj_sec_mem_alloc()
761 if (!f->mm) in fobj_sec_mem_alloc()
773 return &f->fobj; in fobj_sec_mem_alloc()
775 tee_mm_free(f->mm); in fobj_sec_mem_alloc()
776 free(f); in fobj_sec_mem_alloc()
793 tee_mm_free(f->mm); in sec_mem_free()
[all …]
/optee_os/scripts/
A Dts_bin_to_c.py60 elffile = ELFFile(f)
71 elffile = ELFFile(f)
107 f = open(args.out, 'w')
116 f.write('\t\t')
120 f.write('\n')
122 f.write(' ')
123 f.write('};\n')
133 f.write('\t.uuid = {\n')
141 f.write('\t\t\t')
150 f.write('};\n')
[all …]
A Dbin_to_c.py46 f = open(args.out, 'w')
47 f.write('/* Generated from ' + args.bin + ' by ' +
49 f.write('#include <compiler.h>\n')
50 f.write('#include <stdint.h>\n')
54 f.write('__extension__ const uint8_t ' + args.vname + '[] ' +
59 f.write('\t\t')
63 f.write('0x' + '{:02x}'.format(bytes[i]) + ',')
66 f.write('\n')
68 f.write(' ')
69 f.write('};\n')
[all …]
A Dpem_to_pub_c.py30 with open(args.key, 'rb') as f:
31 data = f.read()
50 with open(args.out, 'w') as f:
51 f.write("#include <stdint.h>\n")
52 f.write("#include <stddef.h>\n\n")
53 f.write("const uint32_t " + args.prefix + "_exponent = " +
55 f.write("const uint8_t " + args.prefix + "_modulus[] = {\n")
59 f.write("0x" + '{0:02x}'.format(x) + ",")
62 f.write("\n")
64 f.write(" ")
[all …]
A Ddump_ta_header.py22 with open(sys.argv[1], 'rb') as f:
23 shdr = f.read(20)
26 print(f'Magic: 0x{magic:x} ', end='')
32 print(f'Image type: {img_type} ({img_type_name[img_type]})')
33 print(f'Image size: {img_size} bytes')
34 print(f'Signing algorithm: 0x{algo:x} ({algo_name[algo]})')
35 print(f'Digest length: {digest_len} bytes')
36 print(f'Signature length: {sig_len} bytes')
37 digest = f.read(digest_len)
A Dtee_bin_parser.py22 with open(args.inf, "rb") as f:
23 data = f.read(4)
27 data = f.read(1)
31 data = f.read(1)
35 data = f.read(2)
39 data = f.read(4)
43 data = f.read(4)
47 data = f.read(4)
51 data = f.read(4)
55 data = f.read(4)
A Dget_maintainer.py71 with open("MAINTAINERS", "r") as f:
75 for line in f:
108 f = None
110 f = open(patchset, "r")
113 for line in f:
138 with open(patch, "r") as f:
139 for line in f:
230 f.write(urlopen(url).read())
232 return f.name
237 with open("MAINTAINERS", "r") as f:
[all …]
A Dsign_encrypt.py192 data = f.read()
205 img = f.read()
256 f.write(shdr)
257 f.write(img_digest)
258 f.write(sig)
259 f.write(shdr_uuid)
260 f.write(shdr_version)
262 f.write(ehdr)
263 f.write(nonce)
264 f.write(tag)
[all …]
A Dupdate_changelog.py39 with open(filename, 'r+') as f:
40 current_content = f.read()
41 f.seek(0, 0)
42 f.write(text + '\n' + current_content)
43 f.flush()
/optee_os/core/include/mm/
A Dfile.h35 void file_lock(struct file *f);
44 bool file_trylock(struct file *f);
52 void file_unlock(struct file *f);
65 TEE_Result file_add_slice(struct file *f, struct fobj *fobj,
74 struct file *file_get(struct file *f);
95 void file_put(struct file *f);
106 struct file_slice *file_find_slice(struct file *f, unsigned int page_offset);
/optee_os/core/lib/libtomcrypt/src/prngs/
A Drng_get_bytes.c29 FILE *f; in _rng_nix()
33 f = fopen("/dev/urandom", "rb"); in _rng_nix()
34 if (f == NULL) { in _rng_nix()
35 f = fopen("/dev/random", "rb"); in _rng_nix()
38 f = fopen("/dev/random", "rb"); in _rng_nix()
41 if (f == NULL) { in _rng_nix()
46 if (setvbuf(f, NULL, _IONBF, 0) != 0) { in _rng_nix()
47 fclose(f); in _rng_nix()
51 x = (unsigned long)fread(buf, 1, (size_t)len, f); in _rng_nix()
52 fclose(f); in _rng_nix()
/optee_os/out/arm/export-ta_arm64/include/
A Darm64_bti.S17 .long 2f - 1f /* n_namesz */
18 .long 6f - 3f /* n_desc_sz */
24 .long 5f - 4f /* pr_datasz */
/optee_os/lib/libutils/ext/include/
A Darm64_bti.S17 .long 2f - 1f /* n_namesz */
18 .long 6f - 3f /* n_desc_sz */
24 .long 5f - 4f /* pr_datasz */
/optee_os/out/arm/export-ta_arm32/include/
A Darm64_bti.S17 .long 2f - 1f /* n_namesz */
18 .long 6f - 3f /* n_desc_sz */
24 .long 5f - 4f /* pr_datasz */
/optee_os/core/lib/libtomcrypt/src/ciphers/
A Dserpent.c60 #define _beforeS0(f) f(0,a,b,c,d,e) argument
61 #define _afterS0(f) f(1,b,e,c,a,d) argument
62 #define _afterS1(f) f(2,c,b,a,e,d) argument
63 #define _afterS2(f) f(3,a,e,b,d,c) argument
64 #define _afterS3(f) f(4,e,b,d,c,a) argument
65 #define _afterS4(f) f(5,b,a,e,c,d) argument
66 #define _afterS5(f) f(6,a,c,b,e,d) argument
67 #define _afterS6(f) f(7,a,c,d,b,e) argument
68 #define _afterS7(f) f(8,d,e,b,a,c) argument
71 #define _beforeI7(f) f(8,a,b,c,d,e) argument
[all …]
/optee_os/core/lib/libtomcrypt/src/ciphers/safer/
A Dsafer.c258 { unsigned char a, b, c, d, e, f, g, h, t; in _safer_ecb_encrypt() local
268 e = pt[4]; f = pt[5]; g = pt[6]; h = pt[7]; in _safer_ecb_encrypt()
276 e = EXP(e) + *++key; f = LOG(f) ^ *++key; in _safer_ecb_encrypt()
278 PHT(a, b); PHT(c, d); PHT(e, f); PHT(g, h); in _safer_ecb_encrypt()
281 t = b; b = e; e = c; c = t; t = d; d = f; f = g; g = t; in _safer_ecb_encrypt()
287 ct[4] = e & 0xFF; ct[5] = f & 0xFF; in _safer_ecb_encrypt()
312 { unsigned char a, b, c, d, e, f, g, h, t; in _safer_ecb_decrypt() local
322 e = ct[4]; f = ct[5]; g = ct[6]; h = ct[7]; in _safer_ecb_decrypt()
329 t = e; e = b; b = c; c = t; t = f; f = d; d = g; g = t; in _safer_ecb_decrypt()
336 f = EXP(f) - *--key; e = LOG(e) ^ *--key; in _safer_ecb_decrypt()
[all …]
/optee_os/core/kernel/
A Dldelf_syscalls.c24 struct file *f; member
35 struct fobj *f = NULL; in ldelf_syscall_map_zi() local
47 if (!f) in ldelf_syscall_map_zi()
50 fobj_put(f); in ldelf_syscall_map_zi()
94 file_put(binh->f); in bin_close()
177 if (!binh->f) in ldelf_syscall_open_bin()
324 file_lock(binh->f); in ldelf_syscall_map_bin()
359 if (!f) { in ldelf_syscall_map_bin()
364 file = binh->f; in ldelf_syscall_map_bin()
369 fobj_put(f); in ldelf_syscall_map_bin()
[all …]
/optee_os/out/arm/export-ta_arm32/scripts/
A Dsign_encrypt.py192 data = f.read()
205 img = f.read()
256 f.write(shdr)
257 f.write(img_digest)
258 f.write(sig)
259 f.write(shdr_uuid)
260 f.write(shdr_version)
262 f.write(ehdr)
263 f.write(nonce)
264 f.write(tag)
[all …]
/optee_os/out/arm/export-ta_arm64/scripts/
A Dsign_encrypt.py192 data = f.read()
205 img = f.read()
256 f.write(shdr)
257 f.write(img_digest)
258 f.write(sig)
259 f.write(shdr_uuid)
260 f.write(shdr_version)
262 f.write(ehdr)
263 f.write(nonce)
264 f.write(tag)
[all …]
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/
A DextF80_eq_signaling.c46 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_eq_signaling() member
49 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_eq_signaling() member
53 uA.f = a; in extF80_eq_signaling()
56 uB.f = b; in extF80_eq_signaling()
A DextF80_eq.c47 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_eq() member
50 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_eq() member
54 uA.f = a; in extF80_eq()
57 uB.f = b; in extF80_eq()
A DextF80_le.c47 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_le() member
50 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_le() member
55 uA.f = a; in extF80_le()
58 uB.f = b; in extF80_le()
/optee_os/lib/libmbedtls/mbedtls/library/
A Dhmac_drbg.c442 FILE *f; in mbedtls_hmac_drbg_write_seed_file() local
445 if( ( f = fopen( path, "wb" ) ) == NULL ) in mbedtls_hmac_drbg_write_seed_file()
460 fclose( f ); in mbedtls_hmac_drbg_write_seed_file()
469 FILE *f = NULL; in mbedtls_hmac_drbg_update_seed_file() local
477 n = fread( buf, 1, sizeof( buf ), f ); in mbedtls_hmac_drbg_update_seed_file()
478 if( fread( &c, 1, 1, f ) != 0 ) in mbedtls_hmac_drbg_update_seed_file()
483 if( n == 0 || ferror( f ) ) in mbedtls_hmac_drbg_update_seed_file()
488 fclose( f ); in mbedtls_hmac_drbg_update_seed_file()
489 f = NULL; in mbedtls_hmac_drbg_update_seed_file()
495 if( f != NULL ) in mbedtls_hmac_drbg_update_seed_file()
[all …]
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305.c176 ulong64 f; in poly1305_done() local
235 f = (ulong64)h0 + st->pad[0] ; h0 = (ulong32)f; in poly1305_done()
236 f = (ulong64)h1 + st->pad[1] + (f >> 32); h1 = (ulong32)f; in poly1305_done()
237 f = (ulong64)h2 + st->pad[2] + (f >> 32); h2 = (ulong32)f; in poly1305_done()
238 f = (ulong64)h3 + st->pad[3] + (f >> 32); h3 = (ulong32)f; in poly1305_done()

Completed in 23 milliseconds

12345678910