/trusty/user/app/storage/ |
D | super.c | 144 uint32_t block_size; member 200 uint32_t block_size = tr->fs->super_dev->block_size; in update_super_block_internal() local 212 assert(block_size >= sizeof(struct super_block)); in update_super_block_internal() 272 super_rw->block_size = tr->fs->dev->block_size; in update_super_block_internal() 485 if (super->block_size != dev->block_size) { in super_block_valid() 486 pr_warn("bad block size 0x%x, expected 0x%zx\n", super->block_size, in super_block_valid() 487 dev->block_size); in super_block_valid() 945 assert(fs->super_dev->block_size >= sizeof(struct super_block)); in load_super_block() 1135 block_tree_init(tree, fs->dev->block_size, block_num_size, block_mac_size, in fs_file_tree_init() 1156 if (super_dev->block_size < sizeof(struct super_block)) { in fs_init() [all …]
|
D | client.c | 661 size_t block_size = get_file_block_size(session->tr.fs); in storage_file_read() local 707 block_num = offset / block_size; in storage_file_read() 710 block_offset = offset % block_size; in storage_file_read() 711 len = (block_offset + bytes_left > block_size) in storage_file_read() 712 ? block_size - block_offset in storage_file_read() 737 size_t block_size = get_file_block_size(session->tr.fs); in storage_create_gap() local 743 block_num = file->size / block_size; in storage_create_gap() 744 block_offset = file->size % block_size; in storage_create_gap() 762 memset(block_data + block_offset, 0, block_size - block_offset); in storage_create_gap() 781 size_t block_size = get_file_block_size(session->tr.fs); in storage_file_write() local [all …]
|
D | block_device.h | 58 size_t block_size; member
|
D | block_tree.h | 68 size_t block_size; member 190 size_t block_size,
|
D | block_cache_priv.h | 122 size_t block_size; member
|
D | block_map.h | 35 size_t block_size);
|
D | block_cache.c | 145 entry->block_size, entry->is_superblock); in block_cache_queue_write() 216 assert(data_size == dev->block_size); in block_cache_complete_read() 236 entry->block_size = data_size; in block_cache_complete_read() 242 entry->block_size); in block_cache_complete_read() 350 decrypt_size = entry->block_size; in block_cache_entry_decrypt() 398 encrypt_size = entry->block_size; in block_cache_entry_encrypt() 422 entry->block_size); in block_cache_entry_encrypt() 449 assert(entry->block_size <= sizeof(entry->data)); in block_cache_entry_clean() 721 assert(dev->block_size <= sizeof(entry->data)); in block_cache_lookup() 722 entry->block_size = dev->block_size; in block_cache_lookup() [all …]
|
D | block_device_tipc.c | 279 dev_rpmb->dev.block_size = BLOCK_SIZE_RPMB; in block_device_tipc_init_dev_rpmb() 295 dev_ns->dev.block_size = BLOCK_SIZE_MAIN; in block_device_tipc_init_dev_ns() 460 *sz = BLOCK_COUNT_MAIN * dev_ns->dev.block_size; in check_storage_size() 465 } else if (*sz < (dev_ns->dev.block_size * 8)) { in check_storage_size() 595 state->dev_ns.dev.block_count = sz / state->dev_ns.dev.block_size; in block_device_tipc_init() 611 state->dev_ns_tdp.dev.block_count = sz / state->dev_ns_tdp.dev.block_size; in block_device_tipc_init() 723 state->dev_ns_nsp.dev.block_count = sz / state->dev_ns_nsp.dev.block_size; in block_device_tipc_init()
|
D | block_map.c | 39 size_t block_size) { in block_map_init() argument 43 block_tree_init(&block_map->tree, block_size, block_num_size, in block_map_init()
|
D | block_tree.c | 108 size_t block_size, in block_tree_set_sizes() argument 112 size_t payload_size = block_size - sizeof(struct block_tree_node); in block_tree_set_sizes() 114 assert(payload_size < block_size); in block_tree_set_sizes() 128 tree->block_size = block_size; in block_tree_set_sizes() 162 assert(key_count * tree->key_size < tree->block_size); in block_tree_max_key_count() 528 assert(child_data < (void*)node_ro + tree->block_size); in block_tree_node_get_child_data() 1064 assert(tr->fs->dev->block_size >= tree->block_size); in block_tree_check() 1312 assert(tree->block_size <= tr->fs->dev->block_size); in block_tree_walk() 2027 memset(parent_node_rw, 0, path->tree->block_size); in block_tree_node_split() 3048 size_t block_size, in block_tree_init() argument [all …]
|
D | file.c | 103 tr->fs->dev->block_size); in file_block_map_init() 356 return fs->dev->block_size - sizeof(struct iv); in get_file_block_size() 659 assert(sizeof(*file_entry) <= tr->fs->dev->block_size); in file_tree_lookup() 1128 tr->fs->dev->block_size); in file_delete()
|
D | block_set.c | 633 block_tree_init(&set->block_tree, fs->dev->block_size, fs->block_num_size, in block_set_init()
|
/trusty/user/app/storage/test/block_host_test/ |
D | block_test.c | 184 assert(dev->block_size <= BLOCK_SIZE); in block_test_start_read() 186 block_cache_complete_read(dev, block, blocks[block].data, dev->block_size, in block_test_start_read() 312 block_tree_init(&checkpoint_files, tr->fs->dev->block_size, in check_fs_prepare() 484 size_t block_size = in block_tree_test_etc() local 487 if (block_size > tr->fs->dev->block_size) { in block_tree_test_etc() 489 order, block_size, tr->fs->dev->block_size); in block_tree_test_etc() 493 block_tree_init(&tree, block_size, key_size, child_size, child_size); in block_tree_test_etc() 1073 size_t file_block_size = master_tr->fs->dev->block_size - sizeof(struct iv); in file_allocate_all_test() 1176 size_t file_block_size = tr->fs->dev->block_size - sizeof(struct iv); in file_test_open() 2665 size_t file_block_size = tr->fs->dev->block_size - sizeof(struct iv); in fs_check_sparse_file_test() [all …]
|
/trusty/user/app/storage/test/storage_host_test/ |
D | storage_host_test.c | 98 size_t file_block_size = tr->fs->dev->block_size - sizeof(struct iv); in file_test_open()
|