Home
last modified time | relevance | path

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

123456789

/optee_os/core/lib/zlib/
A Dzutil.c35 uLong flags; in zlibCompileFlags() local
37 flags = 0; in zlibCompileFlags()
63 flags += 1 << 8; in zlibCompileFlags()
66 flags += 1 << 9; in zlibCompileFlags()
69 flags += 1 << 10; in zlibCompileFlags()
72 flags += 1 << 12; in zlibCompileFlags()
75 flags += 1 << 13; in zlibCompileFlags()
78 flags += 1L << 16; in zlibCompileFlags()
81 flags += 1L << 17; in zlibCompileFlags()
84 flags += 1L << 20; in zlibCompileFlags()
[all …]
/optee_os/lib/libutils/ext/
A Dsnprintk.c290 flags = 0; in kprintf()
308 flags |= ALT; in kprintf()
322 flags |= LADJUST; in kprintf()
346 flags |= ZEROPAD; in kprintf()
361 flags |= MAXINT; in kprintf()
372 flags |= QUADINT; in kprintf()
375 flags |= PTRINT; in kprintf()
378 flags |= SIZEINT; in kprintf()
386 flags |= LONGINT; in kprintf()
414 flags |= LONGINT; in kprintf()
[all …]
/optee_os/core/kernel/
A Duser_access.c16 static TEE_Result check_access(uint32_t flags, vaddr_t va, size_t len) in check_access() argument
20 return vm_check_access_rights(to_user_mode_ctx(s->ctx), flags, va, len); in check_access()
25 uint32_t flags = TEE_MEMORY_ACCESS_READ | TEE_MEMORY_ACCESS_ANY_OWNER; in copy_from_user() local
26 TEE_Result res = check_access(flags, (vaddr_t)uaddr, len); in copy_from_user()
36 uint32_t flags = TEE_MEMORY_ACCESS_WRITE | TEE_MEMORY_ACCESS_ANY_OWNER; in copy_to_user() local
37 TEE_Result res = check_access(flags, (vaddr_t)uaddr, len); in copy_to_user()
47 uint32_t flags = TEE_MEMORY_ACCESS_READ; in copy_from_user_private() local
48 TEE_Result res = check_access(flags, (vaddr_t)uaddr, len); in copy_from_user_private()
58 uint32_t flags = TEE_MEMORY_ACCESS_WRITE; in copy_to_user_private() local
59 TEE_Result res = check_access(flags, (vaddr_t)uaddr, len); in copy_to_user_private()
A Dldelf_syscalls.c30 size_t pad_end, unsigned long flags) in ldelf_syscall_map_zi() argument
40 if (flags & ~LDELF_MAP_FLAG_SHAREABLE) in ldelf_syscall_map_zi()
43 if (flags & LDELF_MAP_FLAG_SHAREABLE) in ldelf_syscall_map_zi()
263 unsigned long flags) in ldelf_syscall_map_bin() argument
289 if ((flags & accept_flags) != flags) in ldelf_syscall_map_bin()
304 if (flags & LDELF_MAP_FLAG_WRITEABLE) in ldelf_syscall_map_bin()
308 if (flags & LDELF_MAP_FLAG_BTI) in ldelf_syscall_map_bin()
449 unsigned long flags) in ldelf_syscall_set_prot() argument
462 if ((flags & accept_flags) != flags) in ldelf_syscall_set_prot()
464 if (flags & LDELF_MAP_FLAG_WRITEABLE) in ldelf_syscall_set_prot()
[all …]
A Duser_mode_ctx.c13 char flags[7] = { '\0', }; in user_mode_ctx_print_mappings() local
22 mattr_perm_to_str(flags, sizeof(flags), r->attr); in user_mode_ctx_print_mappings()
26 flags); in user_mode_ctx_print_mappings()
A Dinterrupt.c59 else if (!(h->flags & ITRF_SHARED)) in itr_handle()
71 uint32_t flags, void *data, in itr_alloc_add_type_prio() argument
79 hdl->flags = flags; in itr_alloc_add_type_prio()
104 assert((hdl->flags & ITRF_SHARED) && in itr_add_type_prio()
105 (h->flags & ITRF_SHARED)); in itr_add_type_prio()
/optee_os/core/pta/
A Ddevice.c23 static void add_ta(uint32_t flags, const TEE_UUID *uuid, uint8_t *buf, in add_ta() argument
26 if ((flags & TA_FLAG_DEVICE_ENUM) && in add_ta()
27 (flags & TA_FLAG_DEVICE_ENUM_SUPP)) { in add_ta()
32 if (flags & rflags) { in add_ta()
63 add_ta(ta->flags, &ta->uuid, buf, blen, &pos, rflags); in get_devices()
67 add_ta(eta->flags, &eta->uuid, buf, blen, &pos, in get_devices()
96 .flags = PTA_DEFAULT_FLAGS,
/optee_os/core/arch/arm/plat-stm32mp1/drivers/
A Dstm32mp1_pmic.c88 uint8_t flags; member
112 regu_cfg.flags |= REGU_BO_FLAG_ENABLE_REGU; in dt_get_regu_boot_on_config()
123 regu_cfg.flags |= REGU_BO_FLAG_PULL_DOWN; in dt_get_regu_boot_on_config()
131 regu_cfg.flags |= REGU_BO_FLAG_MASK_RESET; in dt_get_regu_boot_on_config()
144 regu_cfg.flags |= REGU_BO_FLAG_SET_VOLTAGE; in dt_get_regu_boot_on_config()
172 if (regu_cfg->flags & REGU_BO_FLAG_PULL_DOWN) in stm32mp_pmic_apply_boot_on_config()
176 if (regu_cfg->flags & REGU_BO_FLAG_MASK_RESET) in stm32mp_pmic_apply_boot_on_config()
187 uint8_t flags; member
264 regu_cfg->flags |= REGU_LP_FLAG_LOAD_PWRCTRL; in dt_get_regu_low_power_config()
289 regu_cfg->flags |= REGU_LP_FLAG_SET_VOLTAGE; in dt_get_regu_low_power_config()
[all …]
/optee_os/ta/pkcs11/src/
A Dtoken_capabilities.c33 uint32_t flags; member
45 .flags = (_flags), \
53 .flags = (_flags), \
177 uint32_t flags) in mechanism_flags_complies_pkcs11() argument
185 if (flags & ~pkcs11_modes[n].flags) in mechanism_flags_complies_pkcs11()
188 flags, pkcs11_modes[n].flags); in mechanism_flags_complies_pkcs11()
190 return (flags & ~pkcs11_modes[n].flags) == 0; in mechanism_flags_complies_pkcs11()
293 if (token_mechanism[n].flags) in tee_malloc_mechanism_list()
306 if (token_mechanism[n].flags) { in tee_malloc_mechanism_list()
322 uint32_t flags = token_mechanism[n].flags; in mechanism_supported_flags() local
[all …]
A Dpkcs11_token.c311 .flags = PKCS11_CKFS_TOKEN_PRESENT, in entry_ck_slot_info()
404 info.flags = token->db_main->flags; in entry_ck_token_info()
598 uint32_t flags = 0; in entry_ck_open_session() local
613 rc = serialargs_get(&ctrlargs, &flags, sizeof(flags)); in entry_ck_open_session()
778 .flags = PKCS11_CKFSS_SERIAL_SESSION, in entry_ck_session_info()
796 info.flags |= PKCS11_CKFSS_RW_SESSION; in entry_ck_session_info()
879 token->db_main->flags &= in entry_ck_token_initialize()
1023 token->db_main->flags &= ~flags_clear; in set_pin()
1024 token->db_main->flags |= flags_set; in set_pin()
1240 if (!(session->token->db_main->flags & in entry_ck_set_pin()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/dh/
A Ddh_export.c25 unsigned char flags[1]; in dh_export() local
35 flags[0] = 1; in dh_export()
38 LTC_ASN1_BIT_STRING, 1UL, flags, in dh_export()
46 flags[0] = 0; in dh_export()
49 LTC_ASN1_BIT_STRING, 1UL, flags, in dh_export()
A Ddh_import.c24 unsigned char flags[1]; in dh_import() local
39 LTC_ASN1_BIT_STRING, 1UL, &flags, in dh_import()
46 if (flags[0] == 1) { in dh_import()
50 LTC_ASN1_BIT_STRING, 1UL, flags, in dh_import()
62 else if (flags[0] == 0) { in dh_import()
66 LTC_ASN1_BIT_STRING, 1UL, flags, in dh_import()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_export.c31 unsigned char flags[1]; in ecc_export() local
47 flags[0] = 1; in ecc_export()
49 LTC_ASN1_BIT_STRING, 1UL, flags, in ecc_export()
56 flags[0] = 0; in ecc_export()
58 LTC_ASN1_BIT_STRING, 1UL, flags, in ecc_export()
A Decc_import.c43 unsigned char flags[1]; in ecc_import_ex() local
51 err = der_decode_sequence_multi(in, inlen, LTC_ASN1_BIT_STRING, 1UL, flags, in ecc_import_ex()
65 if (flags[0] == 1) { in ecc_import_ex()
69 LTC_ASN1_BIT_STRING, 1UL, flags, in ecc_import_ex()
77 } else if (flags[0] == 0) { in ecc_import_ex()
81 LTC_ASN1_BIT_STRING, 1UL, flags, in ecc_import_ex()
/optee_os/ldelf/
A Dsys.c39 TEE_Result sys_map_zi(size_t num_bytes, uint32_t flags, vaddr_t *va, in sys_map_zi() argument
42 return _ldelf_map_zi(va, num_bytes, pad_begin, pad_end, flags); in sys_map_zi()
60 TEE_Result sys_map_ta_bin(vaddr_t *va, size_t num_bytes, uint32_t flags, in sys_map_ta_bin() argument
65 pad_begin, pad_end, flags); in sys_map_ta_bin()
75 TEE_Result sys_set_prot(vaddr_t va, size_t num_bytes, uint32_t flags) in sys_set_prot() argument
77 return _ldelf_set_prot(va, num_bytes, flags); in sys_set_prot()
A Dta_elf.c501 seg->flags = flags; in add_segment()
639 prev_seg->flags |= seg->flags; in adjust_segments()
760 uint32_t flags = 0; in populate_segments() local
1284 uint32_t flags = 0; in ta_elf_finalize_mappings() local
1286 if (seg->flags & PF_W) in ta_elf_finalize_mappings()
1288 if (seg->flags & PF_X) in ta_elf_finalize_mappings()
1468 if (seg->flags & PF_R) in ta_elf_print_mappings()
1470 if (seg->flags & PF_W) in ta_elf_print_mappings()
1472 if (seg->flags & PF_X) in ta_elf_print_mappings()
1653 uint32_t flags; member
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_decode_sequence_multi.c30 …quence_va(const unsigned char *in, unsigned long inlen, va_list a1, va_list a2, unsigned int flags) in _der_decode_sequence_va() argument
132 err = der_decode_sequence_ex(in, inlen, list, x, flags); in _der_decode_sequence_va()
170 int der_decode_sequence_multi_ex(const unsigned char *in, unsigned long inlen, unsigned int flags, … in der_decode_sequence_multi_ex() argument
177 va_start(a1, flags); in der_decode_sequence_multi_ex()
178 va_start(a2, flags); in der_decode_sequence_multi_ex()
180 err = _der_decode_sequence_va(in, inlen, a1, a2, flags); in der_decode_sequence_multi_ex()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_import.c31 unsigned char flags[1]; in dsa_import() local
43 err = der_decode_sequence_multi(in, inlen, LTC_ASN1_BIT_STRING, 1UL, flags, in dsa_import()
48 if (flags[0] == 1) { in dsa_import()
50 LTC_ASN1_BIT_STRING, 1UL, flags, in dsa_import()
63 else if (flags[0] == 0) { in dsa_import()
65 LTC_ASN1_BIT_STRING, 1UL, flags, in dsa_import()
A Ddsa_export.c30 unsigned char flags[1]; in dsa_export() local
55 flags[0] = 1; in dsa_export()
57 LTC_ASN1_BIT_STRING, 1UL, flags, in dsa_export()
93 flags[0] = 0; in dsa_export()
95 LTC_ASN1_BIT_STRING, 1UL, flags, in dsa_export()
/optee_os/core/arch/arm/mm/
A Dtee_mm.c16 if (pool->flags & TEE_MM_POOL_NEX_MALLOC) in pmalloc()
24 if (pool->flags & TEE_MM_POOL_NEX_MALLOC) in pcalloc()
32 if (pool->flags & TEE_MM_POOL_NEX_MALLOC) in pfree()
39 uint8_t shift, uint32_t flags) in tee_mm_init() argument
56 pool->flags = flags; in tee_mm_init()
62 if (pool->flags & TEE_MM_POOL_HI_ALLOC) in tee_mm_init()
166 if (pool->flags & TEE_MM_POOL_HI_ALLOC) { in tee_mm_alloc()
179 if (pool->flags & TEE_MM_POOL_HI_ALLOC) { in tee_mm_alloc()
210 if (pool->flags & TEE_MM_POOL_HI_ALLOC) in tee_mm_alloc()
230 if (pool->flags & TEE_MM_POOL_HI_ALLOC) { in fit_in_gap()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
A Dpadlock.c45 static int flags = -1; in mbedtls_padlock_has_support() local
48 if( flags == -1 ) in mbedtls_padlock_has_support()
65 flags = edx; in mbedtls_padlock_has_support()
68 return( flags & feature ); in mbedtls_padlock_has_support()
A Dx509_crt.c86 uint32_t flags; member
2247 if( flags != 0 ) in mbedtls_x509_crt_verify_info()
2344 int flags = 0; in x509_crt_verifycrl() local
2349 return( flags ); in x509_crt_verifycrl()
2421 return( flags ); in x509_crt_verifycrl()
2828 uint32_t *flags; in x509_crt_verify_chain() local
2849 flags = &cur->flags; in x509_crt_verify_chain()
2864 cur->flags = 0; in x509_crt_verify_chain()
2866 flags = &cur->flags; in x509_crt_verify_chain()
3128 *flags = 0; in x509_crt_verify_restartable_ca_cb()
[all …]
/optee_os/core/include/mm/
A Dvm.h30 uint32_t prot, uint32_t flags, struct mobj *mobj,
40 size_t len, uint32_t prot, uint32_t flags, in vm_map() argument
43 return vm_map_pad(uctx, va, len, prot, flags, mobj, offs, 0, 0, 0); in vm_map()
50 uint32_t *flags);
97 uint32_t flags, uaddr_t uaddr, size_t len);
/optee_os/core/tee/
A Dtee_pobj.c61 uint32_t flags, enum tee_pobj_usage usage, in tee_pobj_get() argument
87 !(flags & TEE_DATA_FLAG_OVERWRITE))) { in tee_pobj_get()
91 res = tee_pobj_check_access((*obj)->flags, flags); in tee_pobj_get()
106 o->flags = flags; in tee_pobj_get()
/optee_os/core/mm/
A Dvm.c66 if (prev_reg->flags && (prev_reg->flags & f) != (reg->flags & f)) in select_va_in_range()
89 if (next_reg->flags && (next_reg->flags & f) != (reg->flags & f)) in select_va_in_range()
293 reg->flags = flags; in vm_map_pad()
402 r2->flags = r->flags; in split_vm_region()
491 r->flags != r_next->flags || in merge_vm_range()
516 return r0->flags == r->flags && r0->attr == r->attr && in cmp_region_for_remap()
644 return r0->flags == r->flags; in cmp_region_for_get_flags()
648 uint32_t *flags) in vm_get_flags() argument
662 *flags = r->flags; in vm_get_flags()
850 if (r->flags & VM_FLAG_EPHEMERAL) { in vm_clean_param()
[all …]

Completed in 33 milliseconds

123456789