Home
last modified time | relevance | path

Searched refs:po (Results 1 – 8 of 8) sorted by relevance

/optee_os/core/pta/
H A Dattestation.c220 struct tee_pobj *po = NULL; in sec_storage_obj_read() local
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()
251 tee_pobj_release(po); in sec_storage_obj_read()
266 struct tee_pobj *po = NULL; in sec_storage_obj_write() local
276 TEE_POBJ_USAGE_OPEN, fops, &po); in sec_storage_obj_write()
280 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write()
[all …]
/optee_os/core/tee/
H A Dtee_ree_fs.c707 static TEE_Result ree_fs_open(struct tee_pobj *po, size_t *size, in ree_fs_open() argument
720 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in ree_fs_open()
725 res = ree_fs_open_primitive(false, dfh.hash, 0, &po->uuid, &dfh, fh); in ree_fs_open()
747 struct tee_fs_fd *fdp, struct tee_pobj *po, in set_name() argument
754 res = tee_fs_dirfile_find(dirh, &po->uuid, po->obj_id, po->obj_id_len, in set_name()
768 res = tee_fs_dirfile_rename(dirh, &po->uuid, &fdp->dfh, in set_name()
769 po->obj_id, po->obj_id_len); in set_name()
795 static TEE_Result ree_fs_create(struct tee_pobj *po, bool overwrite, in ree_fs_create() argument
821 res = ree_fs_open_primitive(true, dfh.hash, 0, &po->uuid, &dfh, fh); in ree_fs_create()
851 res = set_name(dirh, fdp, po, overwrite); in ree_fs_create()
[all …]
H A Dtee_svc_storage.c176 struct tee_pobj *po = NULL; in syscall_storage_obj_open() local
199 &po); in syscall_storage_obj_open()
206 tee_pobj_release(po); in syscall_storage_obj_open()
213 o->pobj = po; in syscall_storage_obj_open()
326 struct tee_pobj *po = NULL; in syscall_storage_obj_create() local
352 fops, &po); in syscall_storage_obj_create()
381 attr_o->pobj = po; in syscall_storage_obj_create()
382 po->obj_info_usage = attr_o->info.objectUsage; in syscall_storage_obj_create()
401 o->pobj = po; in syscall_storage_obj_create()
409 po = NULL; /* o owns it from now on */ in syscall_storage_obj_create()
[all …]
H A Dtee_pobj.c153 void tee_pobj_create_final(struct tee_pobj *po) in tee_pobj_create_final() argument
156 po->temporary = false; in tee_pobj_create_final()
157 po->creating = false; in tee_pobj_create_final()
H A Dtee_rpmb_fs.c1969 static TEE_Result create_filename(void *buf, size_t blen, struct tee_pobj *po, in create_filename() argument
1975 + TEE_B2HS_HSBUF_SIZE(sizeof(TEE_UUID) + po->obj_id_len) in create_filename()
1986 pos += tee_b2hs((uint8_t *)&po->uuid, &file[pos], in create_filename()
1993 tee_b2hs(po->obj_id, file + pos, po->obj_id_len, hslen - pos); in create_filename()
2013 static struct rpmb_file_handle *alloc_file_handle(struct tee_pobj *po, in alloc_file_handle() argument
2022 if (po) in alloc_file_handle()
2023 create_filename(fh->filename, sizeof(fh->filename), po, in alloc_file_handle()
2680 static TEE_Result rpmb_fs_remove(struct tee_pobj *po) in rpmb_fs_remove() argument
2683 struct rpmb_file_handle *fh = alloc_file_handle(po, po->temporary); in rpmb_fs_remove()
3019 static TEE_Result rpmb_fs_open(struct tee_pobj *po, size_t *size, in rpmb_fs_open() argument
[all …]
H A Dtadb.c217 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, in tadb_open()
/optee_os/core/include/tee/
H A Dtee_fs.h34 TEE_Result (*open)(struct tee_pobj *po, size_t *size,
36 TEE_Result (*create)(struct tee_pobj *po, bool overwrite,
49 TEE_Result (*remove)(struct tee_pobj *po);
/optee_os/core/arch/arm/kernel/
H A Dstmm_sp.c681 struct tee_pobj *po = NULL; in sec_storage_obj_read() local
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()
715 tee_pobj_release(po); in sec_storage_obj_read()
734 struct tee_pobj *po = NULL; in sec_storage_obj_write() local
746 TEE_POBJ_USAGE_OPEN, fops, &po); in sec_storage_obj_write()
750 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write()
[all …]