/optee_os-3.20.0/core/tee/ |
A D | tee_ree_fs.c | 617 static TEE_Result ree_fs_open(struct tee_pobj *po, size_t *size, in ree_fs_open() argument 630 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in ree_fs_open() 657 struct tee_fs_fd *fdp, struct tee_pobj *po, in set_name() argument 664 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in set_name() 678 res = tee_fs_dirfile_rename(dirh, &po->uuid, &fdp->dfh, in set_name() 679 po->obj_id, po->obj_id_len); in set_name() 728 res = ree_fs_open_primitive(true, dfh.hash, &po->uuid, &dfh, fh); in ree_fs_create() 757 res = set_name(dirh, fdp, po, overwrite); in ree_fs_create() 858 static TEE_Result ree_fs_remove(struct tee_pobj *po) in ree_fs_remove() argument 869 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in ree_fs_remove() [all …]
|
A D | tee_svc_storage.c | 179 struct tee_pobj *po = NULL; in syscall_storage_obj_open() local 205 &po); in syscall_storage_obj_open() 211 tee_pobj_release(po); in syscall_storage_obj_open() 218 o->pobj = po; in syscall_storage_obj_open() 325 struct tee_pobj *po = NULL; in syscall_storage_obj_create() local 349 fops, &po); in syscall_storage_obj_create() 378 o->pobj = po; in syscall_storage_obj_create() 414 fops->remove(po); in syscall_storage_obj_create() 419 if (po) in syscall_storage_obj_create() 420 tee_pobj_release(po); in syscall_storage_obj_create() [all …]
|
A D | tee_pobj.c | 134 void tee_pobj_create_final(struct tee_pobj *po) in tee_pobj_create_final() argument 137 po->temporary = false; in tee_pobj_create_final() 138 po->creating = false; in tee_pobj_create_final()
|
A D | tee_rpmb_fs.c | 1942 pos += tee_b2hs((uint8_t *)&po->uuid, &file[pos], in create_filename() 1949 tee_b2hs(po->obj_id, file + pos, po->obj_id_len, hslen - pos); in create_filename() 1978 if (po) in alloc_file_handle() 2617 struct rpmb_file_handle *fh = alloc_file_handle(po, po->temporary); in rpmb_fs_remove() 2958 struct rpmb_file_handle *fh = alloc_file_handle(po, po->temporary); in rpmb_fs_open() 2965 res = rpmb_fs_open_internal(fh, &po->uuid, false); in rpmb_fs_open() 2987 struct rpmb_file_handle *fh = alloc_file_handle(po, po->temporary); in rpmb_fs_create() 2993 res = rpmb_fs_open_internal(fh, &po->uuid, true); in rpmb_fs_create() 3017 if (po->temporary) { in rpmb_fs_create() 3023 po->temporary = false; in rpmb_fs_create() [all …]
|
A D | tadb.c | 217 struct tee_pobj po = { in tadb_open() local 227 res = db->ops->open(&po, NULL, &db->fh); in tadb_open() 229 res = db->ops->create(&po, false, NULL, 0, NULL, 0, NULL, 0, in tadb_open()
|
/optee_os-3.20.0/core/pta/ |
A D | attestation.c | 214 struct tee_pobj *po = NULL; in sec_storage_obj_read() local 226 &po); in sec_storage_obj_read() 230 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read() 238 po->fops->remove(po); in sec_storage_obj_read() 243 po->fops->close(&fh); in sec_storage_obj_read() 245 tee_pobj_release(po); in sec_storage_obj_read() 270 fops, &po); in sec_storage_obj_write() 274 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write() 276 res = po->fops->create(po, false, NULL, 0, NULL, 0, NULL, 0, in sec_storage_obj_write() 280 po->fops->close(&fh); in sec_storage_obj_write() [all …]
|
/optee_os-3.20.0/core/include/tee/ |
A D | tee_fs.h | 32 TEE_Result (*open)(struct tee_pobj *po, size_t *size, 34 TEE_Result (*create)(struct tee_pobj *po, bool overwrite, 46 TEE_Result (*remove)(struct tee_pobj *po);
|
/optee_os-3.20.0/core/arch/arm/kernel/ |
A D | stmm_sp.c | 646 struct tee_pobj *po = NULL; in sec_storage_obj_read() local 667 false, fops, &po); in sec_storage_obj_read() 671 res = po->fops->open(po, &file_size, &fh); in sec_storage_obj_read() 679 po->fops->remove(po); in sec_storage_obj_read() 684 po->fops->close(&fh); in sec_storage_obj_read() 687 tee_pobj_release(po); in sec_storage_obj_read() 726 false, fops, &po); in sec_storage_obj_write() 730 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write() 732 res = po->fops->create(po, false, NULL, 0, NULL, 0, NULL, 0, in sec_storage_obj_write() 736 po->fops->close(&fh); in sec_storage_obj_write() [all …]
|