Home
last modified time | relevance | path

Searched refs:fh (Results 1 – 13 of 13) sorted by relevance

/optee_os-3.20.0/core/include/tee/
A Dtee_fs.h33 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 Dfs_dirfile.h39 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 Dtee_obj.h24 struct tee_file_handle *fh; member
/optee_os-3.20.0/core/tee/
A Dtee_rpmb_fs.c1975 if (!fh) in alloc_file_handle()
2354 memcpy(fh->fat_entry.filename, fh->filename, in rpmb_fs_open_internal()
2413 size, fh->fat_entry.fek, fh->uuid); in rpmb_fs_read()
2486 fh->fat_entry.fek, fh->uuid); in update_write_helper()
2552 size, fh->fat_entry.fek, fh->uuid); in rpmb_fs_write_primitive()
2619 if (!fh) in rpmb_fs_remove()
2758 fh->fat_entry.fek, fh->uuid); in rpmb_fs_truncate()
2765 newsize, fh->fat_entry.fek, fh->uuid); in rpmb_fs_truncate()
2960 if (!fh) in rpmb_fs_open()
2989 if (!fh) in rpmb_fs_create()
[all …]
A Dtee_ree_fs.c397 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 Dtee_obj.c40 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 Dfs_dirfile.c16 struct tee_file_handle *fh; member
103 res = dirh->fops->read(dirh->fh, sizeof(struct dirfile_entry) * idx, in read_dent()
116 res = dirh->fops->write(dirh->fh, sizeof(*dent) * n, in write_dent()
136 res = fops->open(create, hash, NULL, NULL, &dirh->fh); in tee_fs_dirfile_open()
180 dirh->fops->close(dirh->fh); in tee_fs_dirfile_close()
189 return dirh->fops->commit_writes(dirh->fh, hash); in tee_fs_dirfile_commit_writes()
A Dtee_svc_storage.c96 assert(!o->fh); in tee_svc_storage_read_head()
97 res = fops->open(o->pobj, &size, &o->fh); in tee_svc_storage_read_head()
103 res = fops->read(o->fh, 0, &head, &bytes); in tee_svc_storage_read_head()
139 res = fops->read(o->fh, sizeof(struct tee_svc_storage_head), in tee_svc_storage_read_head()
299 attr_size, data, len, &o->fh); in tee_svc_storage_init_file()
416 fops->close(&o->fh); in syscall_storage_obj_create()
678 o->pobj->fops->close(&o->fh); in syscall_storage_next_enum()
730 res = o->pobj->fops->read(o->fh, pos_tmp, data, &bytes); in syscall_storage_obj_read()
786 res = o->pobj->fops->write(o->fh, pos_tmp, data, len); in syscall_storage_obj_write()
838 res = o->pobj->fops->truncate(o->fh, off); in syscall_storage_obj_trunc()
A Dtadb.c32 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-3.20.0/core/kernel/
A Dree_fs_ta.c91 struct tee_file_handle *fh = NULL; in check_update_version() local
108 res = ops->open(&pobj, NULL, &fh); in check_update_version()
113 res = ops->create(&pobj, false, NULL, 0, NULL, 0, NULL, 0, &fh); in check_update_version()
117 res = ops->write(fh, 0, &db_hdr, sizeof(db_hdr)); in check_update_version()
123 res = ops->read(fh, 0, &db_hdr, &len); in check_update_version()
135 res = ops->read(fh, sizeof(db_hdr) + (i * len), &db_entry, in check_update_version()
158 res = ops->write(fh, sizeof(db_hdr) + (i * len), in check_update_version()
167 res = ops->write(fh, sizeof(db_hdr) + (db_hdr.nb_entries * len), in check_update_version()
173 res = ops->write(fh, 0, &db_hdr, sizeof(db_hdr)); in check_update_version()
179 ops->close(&fh); in check_update_version()
/optee_os-3.20.0/core/pta/
A Dattestation.c213 struct tee_file_handle *fh = NULL; in sec_storage_obj_read() local
230 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read()
235 res = po->fops->read(fh, offset, data, &read_len); in sec_storage_obj_read()
243 po->fops->close(&fh); in sec_storage_obj_read()
258 struct tee_file_handle *fh = NULL; in sec_storage_obj_write() local
274 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write()
277 &fh); in sec_storage_obj_write()
279 res = po->fops->write(fh, offset, data, len); in sec_storage_obj_write()
280 po->fops->close(&fh); in sec_storage_obj_write()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dstmm_sp.c644 struct tee_file_handle *fh = NULL; in sec_storage_obj_read() local
671 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read()
676 res = po->fops->read(fh, offset, data, &read_len); in sec_storage_obj_read()
684 po->fops->close(&fh); in sec_storage_obj_read()
704 struct tee_file_handle *fh = NULL; in sec_storage_obj_write() local
730 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write()
733 &fh); in sec_storage_obj_write()
735 res = po->fops->write(fh, offset, data, len); in sec_storage_obj_write()
736 po->fops->close(&fh); in sec_storage_obj_write()
/optee_os-3.20.0/core/drivers/crypto/se050/core/
A Dstorage.c41 ret = o->pobj->fops->read(o->fh, o->info.dataPosition, data, &len); in crypto_storage_obj_del()

Completed in 25 milliseconds