Lines Matching refs:info

152 	o->info.dataSize = size - sizeof(head) - head.attr_size;  in tee_svc_storage_read_head()
153 o->info.keySize = head.keySize; in tee_svc_storage_read_head()
154 o->info.objectUsage = head.objectUsage; in tee_svc_storage_read_head()
155 o->info.objectType = head.objectType; in tee_svc_storage_read_head()
213 o->info.handleFlags = TEE_HANDLE_FLAG_PERSISTENT | in syscall_storage_obj_open()
260 res = tee_obj_set_type(o, attr_o->info.objectType, in tee_svc_storage_init_file()
261 attr_o->info.maxKeySize); in tee_svc_storage_init_file()
268 o->info.objectUsage = attr_o->info.objectUsage; in tee_svc_storage_init_file()
269 o->info.keySize = attr_o->info.keySize; in tee_svc_storage_init_file()
291 head.keySize = o->info.keySize; in tee_svc_storage_init_file()
292 head.maxKeySize = o->info.maxKeySize; in tee_svc_storage_init_file()
293 head.objectUsage = o->info.objectUsage; in tee_svc_storage_init_file()
294 head.objectType = o->info.objectType; in tee_svc_storage_init_file()
301 o->info.dataSize = len; in tee_svc_storage_init_file()
370 o->info.handleFlags = TEE_HANDLE_FLAG_PERSISTENT | in syscall_storage_obj_create()
379 if (!(attr_o->info.handleFlags & TEE_HANDLE_FLAG_INITIALIZED)) { in syscall_storage_obj_create()
432 if (!(o->info.handleFlags & TEE_DATA_FLAG_ACCESS_WRITE_META)) in syscall_storage_obj_del()
439 len = o->info.dataSize; in syscall_storage_obj_del()
444 res = o->pobj->fops->read(o->fh, o->info.dataPosition, in syscall_storage_obj_del()
476 if (!(o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT)) { in syscall_storage_obj_rename()
481 if (!(o->info.handleFlags & TEE_DATA_FLAG_ACCESS_WRITE_META)) { in syscall_storage_obj_rename()
604 TEE_ObjectInfo *info, void *obj_id, uint64_t *len) in syscall_storage_next_enum() argument
620 (uaddr_t)info, sizeof(TEE_ObjectInfo)); in syscall_storage_next_enum()
649 o->info.handleFlags = o->pobj->flags | TEE_HANDLE_FLAG_PERSISTENT | in syscall_storage_next_enum()
656 memcpy(info, &o->info, sizeof(TEE_ObjectInfo)); in syscall_storage_next_enum()
689 if (!(o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT)) { in syscall_storage_obj_read()
694 if (!(o->info.handleFlags & TEE_DATA_FLAG_ACCESS_READ)) { in syscall_storage_obj_read()
700 if (ADD_OVERFLOW(o->info.dataPosition, len, &pos_tmp)) { in syscall_storage_obj_read()
712 if (ADD_OVERFLOW(o->ds_pos, o->info.dataPosition, &pos_tmp)) { in syscall_storage_obj_read()
725 o->info.dataPosition += bytes; in syscall_storage_obj_read()
745 if (!(o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT)) { in syscall_storage_obj_write()
750 if (!(o->info.handleFlags & TEE_DATA_FLAG_ACCESS_WRITE)) { in syscall_storage_obj_write()
756 if (ADD_OVERFLOW(o->info.dataPosition, len, &pos_tmp)) { in syscall_storage_obj_write()
767 if (ADD_OVERFLOW(o->ds_pos, o->info.dataPosition, &pos_tmp)) { in syscall_storage_obj_write()
775 o->info.dataPosition += len; in syscall_storage_obj_write()
776 if (o->info.dataPosition > o->info.dataSize) in syscall_storage_obj_write()
777 o->info.dataSize = o->info.dataPosition; in syscall_storage_obj_write()
795 if (!(o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT)) { in syscall_storage_obj_trunc()
800 if (!(o->info.handleFlags & TEE_DATA_FLAG_ACCESS_WRITE)) { in syscall_storage_obj_trunc()
821 o->info.dataSize = len; in syscall_storage_obj_trunc()
848 if (!(o->info.handleFlags & TEE_HANDLE_FLAG_PERSISTENT)) in syscall_storage_obj_seek()
856 if (ADD_OVERFLOW(o->info.dataPosition, offset, &new_pos)) in syscall_storage_obj_seek()
860 if (ADD_OVERFLOW(o->info.dataSize, offset, &new_pos)) in syscall_storage_obj_seek()
875 o->info.dataPosition = new_pos; in syscall_storage_obj_seek()