/optee_os/core/include/mm/ |
A D | tee_mmu_types.h | 76 uint32_t attr; /* TEE_MATTR_* above */ member 84 uint16_t attr; /* TEE_MATTR_* above */ member 115 static inline void mattr_perm_to_str(char *str, size_t size, uint32_t attr) in mattr_perm_to_str() argument 120 str[0] = (attr & TEE_MATTR_UR) ? 'r' : '-'; in mattr_perm_to_str() 121 str[1] = (attr & TEE_MATTR_UW) ? 'w' : '-'; in mattr_perm_to_str() 122 str[2] = (attr & TEE_MATTR_UX) ? 'x' : '-'; in mattr_perm_to_str() 123 str[3] = (attr & TEE_MATTR_PR) ? 'R' : '-'; in mattr_perm_to_str() 124 str[4] = (attr & TEE_MATTR_PW) ? 'W' : '-'; in mattr_perm_to_str() 125 str[5] = (attr & TEE_MATTR_PX) ? 'X' : '-'; in mattr_perm_to_str()
|
/optee_os/core/arch/arm/mm/ |
A D | core_mmu_v7.c | 381 uint32_t a = attr; in mattr_to_desc() 531 paddr_t pa, uint32_t attr) in core_mmu_set_entry_primitive() argument 573 uint32_t attr; in core_mmu_entry_to_finer_grained() local 596 if (attr && secure != (bool)(attr & TEE_MATTR_SECURE)) in core_mmu_entry_to_finer_grained() 612 desc = mattr_to_desc(2, attr); in core_mmu_entry_to_finer_grained() 631 if (attr) in core_mmu_get_entry_primitive() 710 uint32_t attr = mattr_to_desc(1, mm->attr); in map_memarea_sections() local 720 attr = mattr_to_desc(1, mm->attr); in map_memarea_sections() 721 if (attr != INVALID_DESC) in map_memarea_sections() 726 assert(!attr || !ttb[idx] || ttb[idx] == (pa | attr)); in map_memarea_sections() [all …]
|
A D | tee_pager.c | 436 pa, attr); in tblidx_get_entry() 443 pa, attr); in tblidx_set_entry() 700 return attr; in get_region_mattr() 785 uint32_t attr = 0; in map_pgts() local 1218 uint32_t attr = 0; in tee_pager_unhide_page() local 1507 uint32_t attr = 0; in make_iv_available() local 1555 uint32_t attr = 0; in pager_get_page() local 1661 uint32_t attr = 0; in pager_update_permissions() local 1674 if (!(attr & TEE_MATTR_UR)) in pager_update_permissions() 1708 if (!(attr & TEE_MATTR_UW)) in pager_update_permissions() [all …]
|
A D | core_mmu.c | 740 uint32_t attr; in dump_xlat_table() local 747 if (attr & TEE_MATTR_TABLE) { in dump_xlat_table() 759 } else if (attr) { in dump_xlat_table() 763 attr & (TEE_MATTR_CACHE_CACHED << in dump_xlat_table() 1296 switch (attr) { in core_pbuf_is() 1339 return core_pbuf_is(attr, p, len); in core_vbuf_is() 1500 paddr_t pa, uint32_t attr) in core_mmu_set_entry() argument 1504 idx, pa, attr); in core_mmu_set_entry() 1508 paddr_t *pa, uint32_t *attr) in core_mmu_get_entry() argument 1512 idx, pa, attr); in core_mmu_get_entry() [all …]
|
A D | core_mmu_lpae.c | 130 #define MAIR_ATTR_SET(attr, index) (((uint64_t)attr) << ((index) << 3)) argument 353 static uint64_t mattr_to_desc(unsigned level, uint32_t attr) in mattr_to_desc() argument 356 uint32_t a = attr; in mattr_to_desc() 604 mm[n].va, mm[n].pa, mm[n].size, mm[n].attr); in core_init_mmu_prtn_tee() 1025 uint64_t attr; in core_mmu_entry_to_finer_grained() local 1053 new_table[i] = pa | attr | BLOCK_DESC; in core_mmu_entry_to_finer_grained() 1066 paddr_t pa, uint32_t attr) in core_mmu_set_entry_primitive() argument 1069 uint64_t desc = mattr_to_desc(level, attr); in core_mmu_set_entry_primitive() 1075 size_t idx, paddr_t *pa, uint32_t *attr) in core_mmu_get_entry_primitive() argument 1082 if (attr) in core_mmu_get_entry_primitive() [all …]
|
/optee_os/core/tee/ |
A D | tee_svc_cryp.c | 1015 if (!o->attr) in tee_obj_attr_free() 1033 if (!o->attr) in tee_obj_attr_clear() 1060 if (!o->attr) in tee_obj_attr_to_binary() 1068 void *attr = (uint8_t *)o->attr + ta->raw_offs; in tee_obj_attr_to_binary() local 1090 if (!o->attr) in tee_obj_attr_from_binary() 1098 void *attr = (uint8_t *)o->attr + ta->raw_offs; in tee_obj_attr_from_binary() local 1114 void *attr; in tee_obj_attr_copy_from() local 1129 attr = (uint8_t *)o->attr + ta->raw_offs; in tee_obj_attr_copy_from() 1177 attr = (uint8_t *)o->attr + ta->raw_offs; in tee_obj_attr_copy_from() 1227 if (o->attr) in tee_obj_set_type() [all …]
|
A D | entry_std.c | 99 uint32_t attr, struct param_mem *mem) in set_tmem_param() argument 116 if (attr & OPTEE_MSG_ATTR_NONCONTIG) { in set_tmem_param() 187 uint32_t attr; in copy_in_params() local 189 saved_attr[n] = READ_ONCE(params[n].attr); in copy_in_params() 195 switch (attr) { in copy_in_params() 202 pt[n] = TEE_PARAM_TYPE_VALUE_INPUT + attr - in copy_in_params() 215 pt[n] = TEE_PARAM_TYPE_MEMREF_INPUT + attr - in copy_in_params() 226 pt[n] = TEE_PARAM_TYPE_MEMREF_INPUT + attr - in copy_in_params() 237 pt[n] = TEE_PARAM_TYPE_MEMREF_INPUT + attr - in copy_in_params() 326 if (params[0].attr != req_attr || params[1].attr != req_attr) in get_open_session_meta() [all …]
|
A D | tee_svc_storage.c | 91 void *attr = NULL; in tee_svc_storage_read_head() local 130 attr = malloc(head.attr_size); in tee_svc_storage_read_head() 131 if (!attr) { in tee_svc_storage_read_head() 139 attr, &bytes); in tee_svc_storage_read_head() 159 free(attr); in tee_svc_storage_read_head() 256 void *attr = NULL; in tee_svc_storage_init_file() local 274 attr = malloc(attr_size); in tee_svc_storage_init_file() 275 if (!attr) in tee_svc_storage_init_file() 303 free(attr); in tee_svc_storage_init_file() 309 unsigned long attr, void *data, size_t len, in syscall_storage_obj_create() argument [all …]
|
/optee_os/core/mm/ |
A D | vm.c | 267 uint32_t attr = 0; in vm_map_pad() local 292 reg->attr = attr | prot; in vm_map_pad() 401 r2->attr = r->attr; in split_vm_region() 492 r->attr != r_next->attr) in merge_vm_range() 516 return r0->flags == r->flags && r0->attr == r->attr && in cmp_region_for_remap() 581 r->attr); in vm_remap() 723 r->attr |= prot; in vm_set_prot() 1038 reg->attr = 0; in vm_add_rwmem() 1175 if (attr) in tee_mmu_user_va2pa_attr() 1176 *attr = region->attr; in tee_mmu_user_va2pa_attr() [all …]
|
A D | mobj.c | 89 static bool mobj_phys_matches(struct mobj *mobj, enum buf_is_attr attr) in mobj_phys_matches() argument 96 switch (attr) { in mobj_phys_matches() 106 return attr == a; in mobj_phys_matches() 282 static bool mobj_mm_matches(struct mobj *mobj, enum buf_is_attr attr) in mobj_mm_matches() argument 284 return mobj_matches(to_mobj_mm(mobj)->parent_mobj, attr); in mobj_mm_matches() 393 static bool mobj_shm_matches(struct mobj *mobj __unused, enum buf_is_attr attr) in mobj_shm_matches() argument 395 return attr == CORE_MEM_NSEC_SHM || attr == CORE_MEM_NON_SEC; in mobj_shm_matches() 482 enum buf_is_attr attr) in mobj_seccpy_shm_matches() argument 486 return attr == CORE_MEM_SEC || attr == CORE_MEM_TEE_RAM; in mobj_seccpy_shm_matches() 600 enum buf_is_attr attr) in mobj_with_fobj_matches() argument [all …]
|
/optee_os/ta/pkcs11/src/ |
A D | serializer.c | 131 struct pkcs11_object_head attr = { }; in serialargs_alloc_get_attributes() local 136 rc = serialargs_get(args, &attr, sizeof(attr)); in serialargs_alloc_get_attributes() 140 rc = alloc_and_get(args, orig_next, &attr, sizeof(attr), &p, in serialargs_alloc_get_attributes() 141 attr.attrs_size); in serialargs_alloc_get_attributes()
|
A D | pkcs11_attributes.c | 200 void *attr = NULL; in pkcs11_import_object_boolprop() local 207 if (!attr) in pkcs11_import_object_boolprop() 210 attr = &bbool; in pkcs11_import_object_boolprop() 1586 char *attr = NULL; in parent_key_complies_allowed_processings() local 1603 attr += sizeof(uint32_t); in parent_key_complies_allowed_processings() 1850 switch (attr->id) { in attr_is_modifiable_any_key() 1865 switch (attr->id) { in attr_is_modifiable_secret_key() 1895 switch (attr->id) { in attr_is_modifiable_public_key() 1914 switch (attr->id) { in attr_is_modifiable_private_key() 1961 switch (attr->id) { in attr_is_modifiable_certificate() [all …]
|
A D | attributes.h | 117 void **attr, uint32_t *attr_size, size_t *count); 159 void *attr, uint32_t *attr_size); 204 uint32_t *attr) in get_u32_attribute() argument 207 enum pkcs11_rc rc = get_attribute(head, attribute, attr, &size); in get_u32_attribute()
|
A D | attributes.c | 105 void **attr, uint32_t *attr_size, size_t *count) in get_attribute_ptrs() argument 112 void **attr_ptr = attr; in get_attribute_ptrs() 130 if (attr) { in get_attribute_ptrs() 170 void *attr, uint32_t *attr_size) in get_attribute() argument 186 if (attr) in get_attribute() 187 TEE_MemMove(attr, attr_ptr, size); in get_attribute()
|
A D | sanitize_object.c | 51 struct pkcs11_attribute_head *attr, in read_attr_advance() argument 58 if (ADD_OVERFLOW(*pos, sizeof(*attr), &data_pos) || data_pos > blen) in read_attr_advance() 60 TEE_MemMove(attr, b + *pos, sizeof(*attr)); in read_attr_advance() 62 if (ADD_OVERFLOW(data_pos, attr->size, &next_pos) || next_pos > blen) in read_attr_advance()
|
/optee_os/core/arch/arm/kernel/ |
A D | thread_optee_smc.c | 345 param->attr = tpm->attr - THREAD_PARAM_ATTR_MEMREF_IN + in set_rmem() 367 param->attr = tpm->attr - THREAD_PARAM_ATTR_MEMREF_IN + in set_tmem() 417 switch (params[n].attr) { in get_rpc_arg() 419 arg->params[n].attr = OPTEE_MSG_ATTR_TYPE_NONE; in get_rpc_arg() 424 arg->params[n].attr = params[n].attr - in get_rpc_arg() 462 switch (params[n].attr) { in get_rpc_arg_res() 544 if (arg->params[0].attr != OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT && in get_rpc_alloc_res() 545 arg->params[0].attr != (OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | in get_rpc_alloc_res() 555 if (arg->params[0].attr == OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT) in get_rpc_alloc_res()
|
/optee_os/lib/libutee/ |
A D | tee_api_panic.c | 80 void __utee_check_attr_in_annotation(const TEE_Attribute *attr, size_t count) in __utee_check_attr_in_annotation() argument 83 check_access(ACCESS_R, (void *)attr, sizeof(*attr) * count)); in __utee_check_attr_in_annotation()
|
A D | tee_api_objects.c | 295 void TEE_InitRefAttribute(TEE_Attribute *attr, uint32_t attributeID, in TEE_InitRefAttribute() argument 298 __utee_check_out_annotation(attr, sizeof(*attr)); in TEE_InitRefAttribute() 302 attr->attributeID = attributeID; in TEE_InitRefAttribute() 303 attr->content.ref.buffer = (void *)buffer; in TEE_InitRefAttribute() 304 attr->content.ref.length = length; in TEE_InitRefAttribute() 307 void TEE_InitValueAttribute(TEE_Attribute *attr, uint32_t attributeID, in TEE_InitValueAttribute() argument 310 __utee_check_out_annotation(attr, sizeof(*attr)); in TEE_InitValueAttribute() 314 attr->attributeID = attributeID; in TEE_InitValueAttribute() 315 attr->content.value.a = a; in TEE_InitValueAttribute() 316 attr->content.value.b = b; in TEE_InitValueAttribute()
|
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/ |
A D | debug.h | 67 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) \ argument 68 mbedtls_debug_printf_ecdh( ssl, level, __FILE__, __LINE__, ecdh, attr ) 79 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) do { } while( 0 ) argument 304 mbedtls_debug_ecdh_attr attr );
|
/optee_os/out/arm/export-ta_arm64/include/mbedtls/ |
A D | debug.h | 67 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) \ argument 68 mbedtls_debug_printf_ecdh( ssl, level, __FILE__, __LINE__, ecdh, attr ) 79 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) do { } while( 0 ) argument 304 mbedtls_debug_ecdh_attr attr );
|
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/ |
A D | debug.h | 67 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) \ argument 68 mbedtls_debug_printf_ecdh( ssl, level, __FILE__, __LINE__, ecdh, attr ) 79 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) do { } while( 0 ) argument 304 mbedtls_debug_ecdh_attr attr );
|
/optee_os/out/arm/export-ta_arm32/include/mbedtls/ |
A D | debug.h | 67 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) \ argument 68 mbedtls_debug_printf_ecdh( ssl, level, __FILE__, __LINE__, ecdh, attr ) 79 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) do { } while( 0 ) argument 304 mbedtls_debug_ecdh_attr attr );
|
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | debug.h | 67 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) \ argument 68 mbedtls_debug_printf_ecdh( ssl, level, __FILE__, __LINE__, ecdh, attr ) 79 #define MBEDTLS_SSL_DEBUG_ECDH( level, ecdh, attr ) do { } while( 0 ) argument 304 mbedtls_debug_ecdh_attr attr );
|
/optee_os/core/drivers/ |
A D | tzc380.c | 180 void tzc_configure_region(uint8_t region, vaddr_t region_base, uint32_t attr) in tzc_configure_region() argument 195 tzc_write_region_attributes(tzc.base, region, attr); in tzc_configure_region() 198 attr & TZC_ATTR_SP_MASK); in tzc_configure_region() 221 int tzc_auto_configure(vaddr_t addr, vaddr_t size, uint32_t attr, in tzc_auto_configure() argument 254 attr); in tzc_auto_configure() 281 mask | attr); in tzc_auto_configure()
|
/optee_os/core/include/kernel/ |
A D | msg_param.h | 72 static inline bool msg_param_attr_is_tmem(uint64_t attr) in msg_param_attr_is_tmem() argument 74 switch (attr & OPTEE_MSG_ATTR_TYPE_MASK) { in msg_param_attr_is_tmem()
|