| /optee_os/core/tee/ |
| H A D | tee_rpmb_fs.c | 1955 static void dump_fh(struct rpmb_file_handle *fh) in dump_fh() argument 1957 DMSG("fh->filename=%s", fh->filename); in dump_fh() 1958 DMSG("fh->rpmb_fat_address=%u", fh->rpmb_fat_address); in dump_fh() 1959 DMSG("fh->fat_entry.start_address=%u", fh->fat_entry.start_address); in dump_fh() 1960 DMSG("fh->fat_entry.data_size=%u", fh->fat_entry.data_size); in dump_fh() 1963 static void dump_fh(struct rpmb_file_handle *fh __unused) in dump_fh() 2016 struct rpmb_file_handle *fh = NULL; in alloc_file_handle() local 2018 fh = calloc(1, sizeof(struct rpmb_file_handle)); in alloc_file_handle() 2019 if (!fh) in alloc_file_handle() 2023 create_filename(fh->filename, sizeof(fh->filename), po, in alloc_file_handle() [all …]
|
| H A D | tee_ree_fs.c | 309 static TEE_Result ree_fs_read_primitive(struct tee_file_handle *fh, size_t pos, in ree_fs_read_primitive() argument 320 struct tee_fs_fd *fdp = (struct tee_fs_fd *)fh; in ree_fs_read_primitive() 382 static TEE_Result ree_fs_read(struct tee_file_handle *fh, size_t pos, in ree_fs_read() argument 388 res = ree_fs_read_primitive(fh, pos, buf_core, buf_user, len); in ree_fs_read() 394 static TEE_Result ree_fs_write_primitive(struct tee_file_handle *fh, size_t pos, in ree_fs_write_primitive() argument 399 struct tee_fs_fd *fdp = (struct tee_fs_fd *)fh; in ree_fs_write_primitive() 426 struct tee_file_handle **fh) in ree_fs_open_primitive() argument 454 *fh = (struct tee_file_handle *)fdp; in ree_fs_open_primitive() 468 static void ree_fs_close_primitive(struct tee_file_handle *fh) in ree_fs_close_primitive() argument 470 struct tee_fs_fd *fdp = (struct tee_fs_fd *)fh; in ree_fs_close_primitive() [all …]
|
| H A D | tee_obj.c | 39 o->pobj->fops->close(&o->fh); in tee_obj_close() 58 struct tee_file_handle *fh = NULL; in tee_obj_verify() local 63 res = fops->open(o->pobj, NULL, &fh); in tee_obj_verify() 70 fops->close(&fh); in tee_obj_verify()
|
| H A D | fs_dirfile.c | 16 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, dent, in write_dent() 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 D | tee_svc_storage.c | 93 assert(!o->fh); in tee_svc_storage_read_head() 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() 298 attr_size, NULL, data, len, &o->fh); in tee_svc_storage_init_file() 436 fops->close(&o->fh); in syscall_storage_obj_create() 705 o->pobj->fops->close(&o->fh); in syscall_storage_next_enum() 752 res = o->pobj->fops->read(o->fh, pos_tmp, NULL, data, &bytes); in syscall_storage_obj_read() 803 res = o->pobj->fops->write(o->fh, pos_tmp, NULL, data, len); in syscall_storage_obj_write() 824 return o->pobj->fops->write(o->fh, pos, &usage, NULL, sizeof(usage)); in tee_svc_storage_write_usage() [all …]
|
| H A D | tadb.c | 32 struct tee_file_handle *fh; member 197 TEE_Result res = db->ops->read(db->fh, idx * l, entry, NULL, &l); in read_ent() 210 return db->ops->write(db->fh, idx * l, entry, NULL, l); in write_ent() 227 res = db->ops->open(&po, NULL, &db->fh); in tadb_open() 230 NULL, NULL, 0, &db->fh); in tadb_open() 265 db->ops->close(&db->fh); in tadb_put()
|
| /optee_os/core/include/tee/ |
| H A D | tee_fs.h | 35 struct tee_file_handle **fh); 40 size_t data_size, struct tee_file_handle **fh); 41 void (*close)(struct tee_file_handle **fh); 42 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos, 44 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos, 50 TEE_Result (*truncate)(struct tee_file_handle *fh, size_t size); 64 struct tee_file_handle **fh);
|
| H A D | fs_dirfile.h | 40 struct tee_file_handle **fh); 41 void (*close)(struct tee_file_handle *fh); 42 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos, void *buf, 44 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos, 46 TEE_Result (*commit_writes)(struct tee_file_handle *fh, uint8_t *hash,
|
| H A D | tee_obj.h | 24 struct tee_file_handle *fh; member
|
| /optee_os/core/kernel/ |
| H A D | ree_fs_ta.c | 92 struct tee_file_handle *fh = NULL; in check_update_version() local 109 res = ops->open(&pobj, NULL, &fh); in check_update_version() 116 sizeof(db_hdr), &fh); in check_update_version() 122 res = ops->read(fh, 0, &db_hdr, NULL, &len); in check_update_version() 131 res = ops->write(fh, 0, &db_hdr, NULL, sizeof(db_hdr)); in check_update_version() 143 res = ops->read(fh, sizeof(db_hdr) + (i * len), &db_entry, in check_update_version() 166 res = ops->write(fh, sizeof(db_hdr) + (i * len), in check_update_version() 175 res = ops->write(fh, sizeof(db_hdr) + (db_hdr.nb_entries * len), in check_update_version() 181 res = ops->write(fh, 0, &db_hdr, NULL, sizeof(db_hdr)); in check_update_version() 187 ops->close(&fh); in check_update_version()
|
| /optee_os/core/pta/ |
| H A D | attestation.c | 219 struct tee_file_handle *fh = NULL; in sec_storage_obj_read() local 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() 249 po->fops->close(&fh); in sec_storage_obj_read() 264 struct tee_file_handle *fh = NULL; in sec_storage_obj_write() local 280 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write() 283 NULL, NULL, 0, &fh); in sec_storage_obj_write() 285 res = po->fops->write(fh, offset, data, NULL, len); in sec_storage_obj_write() 286 po->fops->close(&fh); in sec_storage_obj_write()
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | stmm_sp.c | 680 struct tee_file_handle *fh = NULL; in sec_storage_obj_read() local 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() 712 po->fops->close(&fh); in sec_storage_obj_read() 732 struct tee_file_handle *fh = NULL; in sec_storage_obj_write() local 750 res = po->fops->open(po, NULL, &fh); in sec_storage_obj_write() 753 NULL, NULL, 0, &fh); in sec_storage_obj_write() 755 res = po->fops->write(fh, offset, NULL, data, len); in sec_storage_obj_write() 756 po->fops->close(&fh); in sec_storage_obj_write()
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | storage.c | 41 ret = o->pobj->fops->read(o->fh, o->info.dataPosition, in crypto_storage_obj_del()
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | aesni.c | 196 __m128i fh = _mm_slli_epi64(dx, 62); // d<<62:stuff in gcm_mix() local 198 __m128i hh = _mm_srli_si128(_mm_xor_si128(_mm_xor_si128(eh, fh), gh), 8); // 0:missing bits of d in gcm_mix()
|