/optee_os/core/tee/ |
A D | tee_rpmb_fs.c | 1975 if (!fh) in alloc_file_handle() 2352 memcpy(fh->fat_entry.filename, fh->filename, in rpmb_fs_open_internal() 2411 size, fh->fat_entry.fek, fh->uuid); in rpmb_fs_read() 2484 fh->fat_entry.fek, fh->uuid); in update_write_helper() 2548 size, fh->fat_entry.fek, fh->uuid); in rpmb_fs_write_primitive() 2615 if (!fh) in rpmb_fs_remove() 2752 fh->fat_entry.fek, fh->uuid); in rpmb_fs_truncate() 2759 newsize, fh->fat_entry.fek, fh->uuid); in rpmb_fs_truncate() 2954 if (!fh) in rpmb_fs_open() 2983 if (!fh) in rpmb_fs_create() [all …]
|
A D | tee_ree_fs.c | 397 struct tee_file_handle **fh) in ree_fs_open_primitive() argument 618 struct tee_file_handle **fh) in ree_fs_open() argument 695 if (*fh) { in ree_fs_close() 698 ree_fs_close_primitive(*fh); in ree_fs_close() 699 *fh = NULL; in ree_fs_close() 709 struct tee_file_handle **fh) in ree_fs_create() argument 717 *fh = NULL; in ree_fs_create() 752 fdp = (struct tee_fs_fd *)*fh; in ree_fs_create() 761 if (*fh) { in ree_fs_create() 762 ree_fs_close_primitive(*fh); in ree_fs_create() [all …]
|
A D | tee_obj.c | 40 o->pobj->fops->close(&o->fh); in tee_obj_close() 59 struct tee_file_handle *fh = NULL; in tee_obj_verify() local 64 res = fops->open(o->pobj, NULL, &fh); in tee_obj_verify() 71 fops->close(&fh); in tee_obj_verify()
|
A D | fs_dirfile.c | 16 struct tee_file_handle *fh; member 89 res = dirh->fops->read(dirh->fh, sizeof(struct dirfile_entry) * idx, in read_dent() 102 res = dirh->fops->write(dirh->fh, sizeof(*dent) * n, in write_dent() 122 res = fops->open(create, hash, NULL, NULL, &dirh->fh); in tee_fs_dirfile_open() 166 dirh->fops->close(dirh->fh); in tee_fs_dirfile_close() 175 return dirh->fops->commit_writes(dirh->fh, hash); in tee_fs_dirfile_commit_writes()
|
A D | tee_svc_storage.c | 95 assert(!o->fh); in tee_svc_storage_read_head() 96 res = fops->open(o->pobj, &size, &o->fh); in tee_svc_storage_read_head() 102 res = fops->read(o->fh, 0, &head, &bytes); in tee_svc_storage_read_head() 138 res = fops->read(o->fh, sizeof(struct tee_svc_storage_head), in tee_svc_storage_read_head() 298 attr_size, data, len, &o->fh); in tee_svc_storage_init_file() 410 fops->close(&o->fh); in syscall_storage_obj_create() 444 res = o->pobj->fops->read(o->fh, o->info.dataPosition, in syscall_storage_obj_del() 665 o->pobj->fops->close(&o->fh); in syscall_storage_next_enum() 716 res = o->pobj->fops->read(o->fh, pos_tmp, data, &bytes); in syscall_storage_obj_read() 771 res = o->pobj->fops->write(o->fh, pos_tmp, data, len); in syscall_storage_obj_write() [all …]
|
A D | tadb.c | 32 struct tee_file_handle *fh; member 197 TEE_Result res = db->ops->read(db->fh, idx * l, entry, &l); in read_ent() 210 return db->ops->write(db->fh, idx * l, entry, l); in write_ent() 227 res = db->ops->open(&po, NULL, &db->fh); in tadb_open() 230 &db->fh); in tadb_open() 265 db->ops->close(&db->fh); in tadb_put()
|
/optee_os/core/include/tee/ |
A D | tee_fs.h | 33 struct tee_file_handle **fh); 38 struct tee_file_handle **fh); 39 void (*close)(struct tee_file_handle **fh); 40 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos, 42 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos, 47 TEE_Result (*truncate)(struct tee_file_handle *fh, size_t size); 61 struct tee_file_handle **fh);
|
A D | fs_dirfile.h | 39 struct tee_file_handle **fh); 40 void (*close)(struct tee_file_handle *fh); 41 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos, 43 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos, 45 TEE_Result (*commit_writes)(struct tee_file_handle *fh, uint8_t *hash);
|
A D | tee_obj.h | 24 struct tee_file_handle *fh; member
|
/optee_os/core/kernel/ |
A D | ree_fs_ta.c | 345 struct tee_file_handle *fh = NULL; in check_update_version() local 362 res = ops->open(&pobj, NULL, &fh); in check_update_version() 367 res = ops->create(&pobj, false, NULL, 0, NULL, 0, NULL, 0, &fh); in check_update_version() 371 res = ops->write(fh, 0, &db_hdr, sizeof(db_hdr)); in check_update_version() 377 res = ops->read(fh, 0, &db_hdr, &len); in check_update_version() 389 res = ops->read(fh, sizeof(db_hdr) + (i * len), &hdr_entry, in check_update_version() 410 res = ops->write(fh, sizeof(db_hdr) + (i * len), hdr, in check_update_version() 417 res = ops->write(fh, sizeof(db_hdr) + (db_hdr.nb_entries * len), in check_update_version() 423 res = ops->write(fh, 0, &db_hdr, sizeof(db_hdr)); in check_update_version() 429 ops->close(&fh); in check_update_version()
|
/optee_os/core/arch/arm/kernel/ |
A D | stmm_sp.c | 634 struct tee_file_handle *fh = NULL; in sec_storage_obj_read() local 661 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read() 666 res = po->fops->read(fh, offset, data, &read_len); in sec_storage_obj_read() 674 po->fops->close(&fh); in sec_storage_obj_read() 694 struct tee_file_handle *fh = NULL; in sec_storage_obj_write() local 720 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write() 723 &fh); in sec_storage_obj_write() 725 res = po->fops->write(fh, offset, data, len); in sec_storage_obj_write() 726 po->fops->close(&fh); in sec_storage_obj_write()
|