Home
last modified time | relevance | path

Searched refs:fops (Results 1 – 9 of 9) sorted by relevance

/optee_os/core/tee/
H A Dtee_obj.c39 o->pobj->fops->close(&o->fh); in tee_obj_close()
57 const struct tee_file_operations *fops = o->pobj->fops; in tee_obj_verify() local
60 if (!fops) in tee_obj_verify()
63 res = fops->open(o->pobj, NULL, &fh); in tee_obj_verify()
66 fops->remove(o->pobj); in tee_obj_verify()
70 fops->close(&fh); in tee_obj_verify()
H A Dtee_svc_storage.c39 const struct tee_file_operations *fops; member
65 if (e->fops) in tee_svc_close_enum()
66 e->fops->closedir(e->dir); in tee_svc_close_enum()
69 e->fops = NULL; in tee_svc_close_enum()
78 o->pobj->fops->remove(o->pobj); in remove_corrupt_obj()
88 const struct tee_file_operations *fops = o->pobj->fops; in tee_svc_storage_read_head() local
94 res = fops->open(o->pobj, &size, &o->fh); in tee_svc_storage_read_head()
100 res = fops->read(o->fh, 0, &head, NULL, &bytes); in tee_svc_storage_read_head()
136 res = fops->read(o->fh, sizeof(struct tee_svc_storage_head), in tee_svc_storage_read_head()
171 const struct tee_file_operations *fops = in syscall_storage_obj_open() local
[all …]
H A Dfs_dirfile.c15 const struct tee_fs_dirfile_operations *fops; 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, dent, in write_dent()
125 const struct tee_fs_dirfile_operations *fops, in tee_fs_dirfile_open() argument
135 dirh->fops = fops; in tee_fs_dirfile_open()
136 res = fops->open(create, hash, min_counter, 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, counter); in tee_fs_dirfile_commit_writes()
H A Dtee_pobj.c81 const struct tee_file_operations *fops, in tee_pobj_get() argument
95 (fops == o->fops)) { in tee_pobj_get()
126 o->fops = fops; in tee_pobj_get()
/optee_os/core/pta/
H A Dattestation.c217 const struct tee_file_operations *fops = NULL; in sec_storage_obj_read() local
224 fops = tee_svc_storage_file_ops(storage_id); in sec_storage_obj_read()
225 if (!fops) in sec_storage_obj_read()
232 TEE_POBJ_USAGE_OPEN, fops, &po); in sec_storage_obj_read()
236 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read()
241 res = po->fops->read(fh, offset, data, NULL, &read_len); in sec_storage_obj_read()
244 po->fops->remove(po); in sec_storage_obj_read()
249 po->fops->close(&fh); in sec_storage_obj_read()
263 const struct tee_file_operations *fops = NULL; in sec_storage_obj_write() local
268 fops = tee_svc_storage_file_ops(storage_id); in sec_storage_obj_write()
[all …]
/optee_os/core/include/tee/
H A Dtee_pobj.h25 const struct tee_file_operations *fops; member
37 const struct tee_file_operations *fops,
H A Dfs_dirfile.h60 const struct tee_fs_dirfile_operations *fops,
/optee_os/core/arch/arm/kernel/
H A Dstmm_sp.c677 const struct tee_file_operations *fops = NULL; in sec_storage_obj_read() local
685 fops = tee_svc_storage_file_ops(storage_id); in sec_storage_obj_read()
686 if (!fops) in sec_storage_obj_read()
695 TEE_POBJ_USAGE_OPEN, fops, &po); in sec_storage_obj_read()
699 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read()
704 res = po->fops->read(fh, offset, NULL, data, &read_len); in sec_storage_obj_read()
707 po->fops->remove(po); in sec_storage_obj_read()
712 po->fops->close(&fh); in sec_storage_obj_read()
730 const struct tee_file_operations *fops = NULL; in sec_storage_obj_write() local
736 fops = tee_svc_storage_file_ops(storage_id); in sec_storage_obj_write()
[all …]
/optee_os/core/drivers/crypto/se050/core/
H A Dstorage.c41 ret = o->pobj->fops->read(o->fh, o->info.dataPosition, in crypto_storage_obj_del()