Home
last modified time | relevance | path

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

/trusty/user/app/storage/storage_mock/
Dstorage_mock.c321 storage_off_t file_size, in storage_set_file_size() argument
323 if (file_size > FILE_BUFFER_MAX) { in storage_set_file_size()
334 if (file_size > file_info->size) { in storage_set_file_size()
336 size_t padding_size = file_size - file_info->size; in storage_set_file_size()
339 file_info->size = file_size; in storage_set_file_size()
/trusty/user/app/keymint/
Dsecure_deletion_secret_manager.rs166 let file_size = self.get_file_size()?; in find_empty_slot() localVariable
167 let end = cmp::min(end, file_size); in find_empty_slot()
308 let file_size = sdsf_file.get_file_size().map_err(|e| { in get_factory_reset_secret_impl() localVariable
317 if file_size == 0 { in get_factory_reset_secret_impl()
402 let file_size = match sdsf_file.get_file_size() { in read_slot_data() localVariable
403 Ok(file_size) => file_size, in read_slot_data()
409 if (key_slot_pos + SECRET_SIZE) > file_size { in read_slot_data()
414 file_size in read_slot_data()
623 let file_size = match sdsf_file.get_file_size() { in delete_secret() localVariable
627 if key_slot_end > file_size { in delete_secret()
/trusty/user/base/lib/storage/include/lib/storage/
Dstorage.h229 storage_off_t file_size,
/trusty/user/app/keymaster/
Dsecure_storage_manager.cpp778 uint64_t file_size; in DecodeFromFile() local
789 rc = storage_get_file_size(file.get_file_handle(), &file_size); in DecodeFromFile()
798 static_cast<size_t>(file_size), 0}; in DecodeFromFile()
940 uint64_t file_size; in LegacySecureStorageRead() local
946 rc = storage_get_file_size(file.get_file_handle(), &file_size); in LegacySecureStorageRead()
950 if (file_size > static_cast<uint64_t>(max_size)) { in LegacySecureStorageRead()
953 *size = static_cast<uint32_t>(file_size); in LegacySecureStorageRead()
954 rc = storage_read(file.get_file_handle(), 0, data, file_size); in LegacySecureStorageRead()
/trusty/user/base/lib/storage/
Dstorage.c579 storage_off_t file_size, in storage_set_file_size() argument
585 .size = file_size, in storage_set_file_size()
/trusty/kernel/lib/trusty/
Dtrusty_app.c1330 size_t file_size; in alloc_address_map() local
1354 file_size = prg_hdr->p_filesz; in alloc_address_map()
1355 while (file_size > 0) { in alloc_address_map()
1365 copy_size = MIN(file_size, PAGE_SIZE); in alloc_address_map()
1367 file_size -= copy_size; in alloc_address_map()
/trusty/user/app/storage/test/storage-unittest/
Dmain.c1336 size_t file_size = 64 * 2048; in TEST_F() local
1350 rc = WritePattern(handle, 0, file_size, blk, false); in TEST_F()
1351 ASSERT_EQ((int)file_size, rc); in TEST_F()
1370 size_t file_size = 32768; in TEST_F() local
1381 rc = WritePattern(handle, 0, file_size, blk, true); in TEST_F()
1382 ASSERT_EQ((int)file_size, rc); in TEST_F()
/trusty/user/app/storage/test/block_host_test/
Dblock_test.c1070 data_block_t file_size[tr_count]; in file_allocate_all_test() local
1084 file_size[i] = file[i].size; in file_allocate_all_test()
1116 assert(file_size[i] == file[i].size); in file_allocate_all_test()