| /optee_os/core/tee/ |
| H A D | tee_pobj.c | 79 TEE_Result tee_pobj_get(TEE_UUID *uuid, void *obj_id, uint32_t obj_id_len, in tee_pobj_get() argument 93 (memcmp(obj_id, o->obj_id, obj_id_len) == 0) && in tee_pobj_get() 133 o->obj_id = malloc(obj_id_len); in tee_pobj_get() 134 if (o->obj_id == NULL) { in tee_pobj_get() 139 memcpy(o->obj_id, obj_id, obj_id_len); in tee_pobj_get() 170 free(obj->obj_id); in tee_pobj_release() 178 TEE_Result tee_pobj_rename(struct tee_pobj *obj, void *obj_id, in tee_pobj_rename() argument 184 if (obj == NULL || obj_id == NULL) in tee_pobj_rename() 198 memcpy(new_obj_id, obj_id, obj_id_len); in tee_pobj_rename() 201 free(obj->obj_id); in tee_pobj_rename() [all …]
|
| H A D | tee_obj.c | 20 TEE_Result tee_obj_get(struct user_ta_ctx *utc, vaddr_t obj_id, in tee_obj_get() argument 26 if (obj_id == (vaddr_t)o) { in tee_obj_get()
|
| H A D | tee_svc_storage.c | 459 if (o->pobj == NULL || o->pobj->obj_id == NULL) in syscall_storage_obj_del() 505 if (o->pobj == NULL || o->pobj->obj_id == NULL) { in syscall_storage_obj_rename() 528 res = tee_pobj_rename(o->pobj, po->obj_id, po->obj_id_len); in syscall_storage_obj_rename() 624 void *obj_id, uint64_t *len) in syscall_storage_next_enum() argument 640 obj_id = memtag_strip_tag(obj_id); in syscall_storage_next_enum() 649 (uaddr_t)obj_id, TEE_OBJECT_ID_MAX_LEN); in syscall_storage_next_enum() 695 res = copy_to_user(obj_id, o->pobj->obj_id, o->pobj->obj_id_len); in syscall_storage_next_enum()
|
| H A D | tee_ree_fs.c | 720 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in ree_fs_open() 754 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in set_name() 769 po->obj_id, po->obj_id_len); in set_name() 918 res = tee_fs_dirfile_find(dirh, &new->uuid, new->obj_id, in ree_fs_rename() 925 res = tee_fs_dirfile_find(dirh, &old->uuid, old->obj_id, in ree_fs_rename() 930 res = tee_fs_dirfile_rename(dirh, &new->uuid, &dfh, new->obj_id, in ree_fs_rename() 967 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in ree_fs_remove() 982 assert(tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in ree_fs_remove()
|
| H A D | tadb.c | 218 .obj_id = (void *)tadb_obj_id, in tadb_open()
|
| H A D | tee_rpmb_fs.c | 1993 tee_b2hs(po->obj_id, file + pos, po->obj_id_len, hslen - pos); in create_filename()
|
| /optee_os/core/include/tee/ |
| H A D | tee_pobj.h | 18 void *obj_id; member 35 TEE_Result tee_pobj_get(TEE_UUID *uuid, void *obj_id, uint32_t obj_id_len, 44 TEE_Result tee_pobj_rename(struct tee_pobj *obj, void *obj_id,
|
| H A D | tee_obj.h | 29 TEE_Result tee_obj_get(struct user_ta_ctx *utc, vaddr_t obj_id,
|
| H A D | tee_svc_storage.h | 46 void *obj_id, uint64_t *len);
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | stmm_sp.c | 672 static TEE_Result sec_storage_obj_read(unsigned long storage_id, char *obj_id, in sec_storage_obj_read() argument 694 res = tee_pobj_get(&sess->ctx->uuid, obj_id, obj_id_len, flags, in sec_storage_obj_read() 724 static TEE_Result sec_storage_obj_write(unsigned long storage_id, char *obj_id, in sec_storage_obj_write() argument 745 res = tee_pobj_get(&sess->ctx->uuid, obj_id, obj_id_len, flags, in sec_storage_obj_write() 807 char obj_id[] = FILENAME; in stmm_handle_storage_service() local 808 size_t obj_id_len = strlen(obj_id); in stmm_handle_storage_service() 815 res = sec_storage_obj_read(TEE_STORAGE_PRIVATE_RPMB, obj_id, in stmm_handle_storage_service() 821 res = sec_storage_obj_write(TEE_STORAGE_PRIVATE_RPMB, obj_id, in stmm_handle_storage_service()
|
| /optee_os/core/pta/ |
| H A D | attestation.c | 212 const uint8_t *obj_id, in sec_storage_obj_read() argument 231 res = tee_pobj_get(uuid, (void *)obj_id, obj_id_len, flags, in sec_storage_obj_read() 257 const uint8_t *obj_id, in sec_storage_obj_write() argument 275 res = tee_pobj_get(uuid, (void *)obj_id, obj_id_len, flags, in sec_storage_obj_write()
|
| /optee_os/lib/libutee/include/ |
| H A D | utee_syscalls.h | 204 void *obj_id, uint64_t *len);
|
| /optee_os/core/kernel/ |
| H A D | ree_fs_ta.c | 99 .obj_id = (void *)db_name, in check_update_version()
|