Home
last modified time | relevance | path

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

123456789

/optee_os-3.20.0/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 …]
/optee_os-3.20.0/scripts/
A Dts_bin_to_c.py66 elffile = ELFFile(f)
77 elffile = ELFFile(f)
97 f.write('\t\t')
101 f.write('\n')
103 f.write(' ')
134 f.write('};\n')
141 f.write('};\n')
160 f.write('\t\t\t')
170 f.write('}\n')
171 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(hex(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 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 Dprint_tee_hash.py27 raise RuntimeError(f'Symbol {name} not found')
36 print(f'[{start}(0x{start_addr:x}), {end}(0x{end_addr:x})]: '
37 f'{size} bytes')
53 print(f'{name}: {len(d)} bytes')
67 with open(sys.argv[argc - 1], 'rb') as f:
68 elf = ELFFile(f)
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:
234 f.write(urlopen(url).read())
236 return f.name
241 with open("MAINTAINERS", "r") as f:
[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-3.20.0/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 */
A Dfault_mitigation.h155 #define __FTMN_FUNC_BYTE(f, o, l) ((o) < (l) ? (uint8_t)(f)[(o)] : 0) argument
175 #define __FTMN_FUNC_HASH8(f, o, l) \ argument
183 #define __FTMN_FUNC_HASH2(f, l) \ argument
184 (__FTMN_FUNC_HASH4(f, 0, l) ^ \
188 #define __FTMN_FUNC_HASH(f, l) \ argument
192 #define __FTMN_FUNC_HASH(f, l) (unsigned long)__FTMN_FUNC_HASH2((f), (l)) argument
297 if (f->arg_pp) { in __ftmn_copy_linked_call_res()
298 assert(f->arg.hash == (f->my_hash ^ f->called_hash)); in __ftmn_copy_linked_call_res()
299 assert(&f->arg == *f->arg_pp); in __ftmn_copy_linked_call_res()
300 assert((f->arg.hash ^ f->arg.res) == res); in __ftmn_copy_linked_call_res()
[all …]
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/prngs/
A Drng_get_bytes.c22 FILE *f; in s_rng_nix()
26 f = fopen("/dev/urandom", "rb"); in s_rng_nix()
27 if (f == NULL) { in s_rng_nix()
28 f = fopen("/dev/random", "rb"); in s_rng_nix()
31 f = fopen("/dev/random", "rb"); in s_rng_nix()
34 if (f == NULL) { in s_rng_nix()
39 if (setvbuf(f, NULL, _IONBF, 0) != 0) { in s_rng_nix()
40 fclose(f); in s_rng_nix()
44 x = (unsigned long)fread(buf, 1, (size_t)len, f); in s_rng_nix()
45 fclose(f); in s_rng_nix()
/optee_os-3.20.0/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_lt.c47 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_lt() member
50 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_lt() member
55 uA.f = a; in extF80_lt()
58 uB.f = b; in extF80_lt()
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()
A DextF80_lt_quiet.c47 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_lt_quiet() member
50 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_lt_quiet() member
55 uA.f = a; in extF80_lt_quiet()
58 uB.f = b; in extF80_lt_quiet()
A DextF80_le_quiet.c47 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_le_quiet() member
50 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_le_quiet() member
55 uA.f = a; in extF80_le_quiet()
58 uB.f = b; in extF80_le_quiet()
A Df64_mulAdd.c52 uA.f = a; in f64_mulAdd()
54 uB.f = b; in f64_mulAdd()
56 uC.f = c; in f64_mulAdd()
A Df32_mulAdd.c52 uA.f = a; in f32_mulAdd()
54 uB.f = b; in f32_mulAdd()
56 uC.f = c; in f32_mulAdd()
A DextF80_sub.c46 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_sub() member
50 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_sub() member
60 uA.f = a; in extF80_sub()
64 uB.f = b; in extF80_sub()
A DextF80_add.c46 union { struct extFloat80M s; extFloat80_t f; } uA; in extF80_add() member
50 union { struct extFloat80M s; extFloat80_t f; } uB; in extF80_add() member
60 uA.f = a; in extF80_add()
64 uB.f = b; in extF80_add()
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/safer/
A Dsafer.c251 { unsigned char a, b, c, d, e, f, g, h, t; in s_safer_ecb_encrypt() local
261 e = pt[4]; f = pt[5]; g = pt[6]; h = pt[7]; in s_safer_ecb_encrypt()
269 e = EXP(e) + *++key; f = LOG(f) ^ *++key; in s_safer_ecb_encrypt()
271 PHT(a, b); PHT(c, d); PHT(e, f); PHT(g, h); in s_safer_ecb_encrypt()
274 t = b; b = e; e = c; c = t; t = d; d = f; f = g; g = t; in s_safer_ecb_encrypt()
280 ct[4] = e & 0xFF; ct[5] = f & 0xFF; in s_safer_ecb_encrypt()
305 { unsigned char a, b, c, d, e, f, g, h, t; in s_safer_ecb_decrypt() local
315 e = ct[4]; f = ct[5]; g = ct[6]; h = ct[7]; in s_safer_ecb_decrypt()
322 t = e; e = b; b = c; c = t; t = f; f = d; d = g; g = t; in s_safer_ecb_decrypt()
329 f = EXP(f) - *--key; e = LOG(e) ^ *--key; in s_safer_ecb_decrypt()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/
A Dserpent.c53 #define s_beforeS0(f) f(0,a,b,c,d,e) argument
54 #define s_afterS0(f) f(1,b,e,c,a,d) argument
55 #define s_afterS1(f) f(2,c,b,a,e,d) argument
56 #define s_afterS2(f) f(3,a,e,b,d,c) argument
57 #define s_afterS3(f) f(4,e,b,d,c,a) argument
58 #define s_afterS4(f) f(5,b,a,e,c,d) argument
59 #define s_afterS5(f) f(6,a,c,b,e,d) argument
60 #define s_afterS6(f) f(7,a,c,d,b,e) argument
61 #define s_afterS7(f) f(8,d,e,b,a,c) argument
64 #define s_beforeI7(f) f(8,a,b,c,d,e) argument
[all …]
/optee_os-3.20.0/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()
360 if (!f) { in ldelf_syscall_map_bin()
365 file = binh->f; in ldelf_syscall_map_bin()
370 fobj_put(f); in ldelf_syscall_map_bin()
[all …]

Completed in 37 milliseconds

123456789