/external/autotest/client/tests/disktest/src/ |
D | disktest.c | 34 unsigned int start_block = 0; variable 120 block, start_block, start_block+blocks, in verify_block() 126 block, start_block, start_block+blocks, in verify_block() 155 block = start_block + (unsigned int)(random() % blocks); in write_file() 160 for (block = start_block; block < start_block + blocks; block++) in write_file() 199 block = start_block + (unsigned int)(random() % blocks); in verify_file() 206 for (block = start_block; block < start_block + blocks; block++) in verify_file() 234 for (block = start_block; block < start_block + blocks; block++) { in double_verify() 294 start_block = skip_mb * (1024 * 1024 / blocksize); in main() 334 …printf("Ininitializing block %d to %d in file %s (signature %08x)\n", start_block, start_block+blo… in main() [all …]
|
/external/squashfs-tools/squashfs-tools/ |
D | squashfs_compat.h | 69 unsigned int start_block; member 123 squashfs_block start_block; member 138 squashfs_block start_block; member 155 unsigned int start_block; member 169 unsigned int start_block; member 196 unsigned int start_block; member 201 long long start_block; member 307 SQUASHFS_SWAP((s)->start_block, d, 96, 64);\ 318 SQUASHFS_SWAP((s)->start_block, d, 128, 64);\ 331 SQUASHFS_SWAP((s)->start_block, d, 160, 32);\ [all …]
|
D | unsquash-3.c | 105 void read_fragment_3(unsigned int fragment, long long *start_block, int *size) in read_fragment_3() argument 110 *start_block = fragment_entry->start_block; in read_fragment_3() 115 struct inode *read_inode_3(unsigned int start_block, unsigned int offset) in read_inode_3() argument 118 long long start = sBlk.s.inode_table_start + start_block; in read_inode_3() 123 TRACE("read_inode: reading inode [%d:%d]\n", start_block, offset); in read_inode_3() 161 i.start = inode->start_block; in read_inode_3() 178 i.start = inode->start_block; in read_inode_3() 201 i.start = inode->start_block; in read_inode_3() 226 i.start = inode->start_block; in read_inode_3() 368 dirh.start_block, dire->offset, dire->type); in squashfs_opendir_3() [all …]
|
D | unsquash-4.c | 85 void read_fragment_4(unsigned int fragment, long long *start_block, int *size) in read_fragment_4() argument 92 *start_block = fragment_entry->start_block; in read_fragment_4() 97 struct inode *read_inode_4(unsigned int start_block, unsigned int offset) in read_inode_4() argument 100 long long start = sBlk.s.inode_table_start + start_block; in read_inode_4() 105 TRACE("read_inode: reading inode [%d:%d]\n", start_block, offset); in read_inode_4() 128 i.start = inode->start_block; in read_inode_4() 139 i.start = inode->start_block; in read_inode_4() 157 i.start = inode->start_block; in read_inode_4() 177 i.start = inode->start_block; in read_inode_4() 326 dirh.start_block, dire->offset, dire->type); in squashfs_opendir_4() [all …]
|
D | unsquash-2.c | 118 void read_fragment_2(unsigned int fragment, long long *start_block, int *size) in read_fragment_2() argument 123 *start_block = fragment_entry->start_block; in read_fragment_2() 128 struct inode *read_inode_2(unsigned int start_block, unsigned int offset) in read_inode_2() argument 131 long long start = sBlk.s.inode_table_start + start_block; in read_inode_2() 136 TRACE("read_inode: reading inode [%d:%d]\n", start_block, offset); in read_inode_2() 174 i.start = inode->start_block; in read_inode_2() 192 i.start = inode->start_block; in read_inode_2() 217 i.start = inode->start_block; in read_inode_2()
|
D | squashfs_fs.h | 305 unsigned int start_block; member 382 unsigned int start_block; member 396 squashfs_block start_block; member 413 unsigned int start_block; member 429 unsigned int start_block; member 460 unsigned int start_block; member 465 long long start_block; member
|
D | unsquash-1.c | 57 struct inode *read_inode_1(unsigned int start_block, unsigned int offset) in read_inode_1() argument 60 long long start = sBlk.s.inode_table_start + start_block; in read_inode_1() 65 TRACE("read_inode: reading inode [%d:%d]\n", start_block, offset); in read_inode_1() 125 i.start = inode->start_block; in read_inode_1() 144 i.start = inode->start_block; in read_inode_1() 290 dirh.start_block, dire->offset, dire->type); in squashfs_opendir_1() 300 dir->dirs[dir->dir_count].start_block = in squashfs_opendir_1() 301 dirh.start_block; in squashfs_opendir_1()
|
D | process_fragments.c | 105 long long start_block; in get_fragment() local 174 start_block = disk_fragment->start_block; in get_fragment() 184 res = read_filesystem(fd, start_block, size, data_buffer); in get_fragment() 201 res = read_filesystem(fd, start_block, size, buffer->data); in get_fragment()
|
D | read_fs.c | 205 directory_start_block = dir_inode->dir.start_block; in scan_inode_table() 212 directory_start_block = dir_inode->ldir.start_block; in scan_inode_table() 259 start = inode.start_block; in scan_inode_table() 314 start = inode.start_block; in scan_inode_table() 388 if(dir_inode.start_block < directory_start_block) in scan_inode_table() 405 if(dir_inode.start_block < directory_start_block) in scan_inode_table() 683 dirh.start_block, dire->offset, dire->type); in squashfs_readdir() 685 SQUASHFS_MKINODE(dirh.start_block, in squashfs_readdir() 910 *inode_dir_start_block = inode.dir.start_block; in read_filesystem() 916 *inode_dir_start_block = inode.ldir.start_block; in read_filesystem()
|
D | unsquashfs.h | 107 void (*read_fragment)(unsigned int fragment, long long *start_block, 112 struct inode *(*read_inode)(unsigned int start_block, 176 unsigned int start_block; member
|
D | squashfs_swap.h | 69 SWAP_FUNC(32, s, d, start_block, struct squashfs_dir_index);\ 144 SWAP_FUNC(32, s, d, start_block, struct squashfs_reg_inode_header);\ 157 SWAP_FUNC(64, s, d, start_block, struct squashfs_lreg_inode_header);\ 173 SWAP_FUNC(32, s, d, start_block, struct squashfs_dir_inode_header);\ 189 SWAP_FUNC(32, s, d, start_block, struct squashfs_ldir_inode_header);\ 205 SWAP_FUNC(32, s, d, start_block, struct squashfs_dir_header);\ 210 SWAP_FUNC(64, s, d, start_block, struct squashfs_fragment_entry);\
|
D | mksquashfs.c | 171 unsigned int start_block; member 898 static inline void write_block_map_entry(char *sub_path, unsigned long long start_block, unsigned l… in write_block_map_entry() argument 911 unsigned long long round_start = round_up_block(start_block); in write_block_map_entry() 912 unsigned long long round_end = round_up_block(start_block + total_size) - 1; in write_block_map_entry() 928 long long start_block, unsigned int offset, unsigned int *block_list, in create_inode() argument 943 start_block >= (1LL << 32) || in create_inode() 995 reg->start_block = start_block; in create_inode() 1002 start_block, offset, fragment->index, fragment->offset, in create_inode() 1012 write_block_map_entry(sub_path, start_block, total_size, mount_point, block_map_file); in create_inode() 1031 reg->start_block = start_block; in create_inode() [all …]
|
D | unsquashfs.c | 1235 int squashfs_readdir(struct dir *dir, char **name, unsigned int *start_block, in squashfs_readdir() argument 1242 *start_block = dir->dirs[dir->cur_entry].start_block; in squashfs_readdir() 1482 void pre_scan(char *parent_name, unsigned int start_block, unsigned int offset, in pre_scan() argument 1489 struct dir *dir = s_ops.squashfs_opendir(start_block, offset, &i); in pre_scan() 1494 while(squashfs_readdir(dir, &name, &start_block, &offset, &type)) { in pre_scan() 1500 name, start_block, offset, type); in pre_scan() 1510 pre_scan(parent_name, start_block, offset, new); in pre_scan() 1514 i = s_ops.read_inode(start_block, offset); in pre_scan() 1534 void dir_scan(char *parent_name, unsigned int start_block, unsigned int offset, in dir_scan() argument 1541 struct dir *dir = s_ops.squashfs_opendir(start_block, offset, &i); in dir_scan() [all …]
|
/external/squashfs-tools/kernel-2.4/include/linux/ |
D | squashfs_fs.h | 247 unsigned int start_block; member 284 squashfs_block_t start_block; member 294 squashfs_block_t start_block; member 306 unsigned int start_block; member 315 unsigned int start_block; member 342 unsigned int start_block; member 347 long long start_block; member 442 SQUASHFS_SWAP((s)->start_block, d, 96, 64);\ 453 SQUASHFS_SWAP((s)->start_block, d, 128, 64);\ 466 SQUASHFS_SWAP((s)->start_block, d, 160, 32);\ [all …]
|
D | squashfs_fs_i.h | 27 long long start_block; member
|
/external/squashfs-tools/kernel-2.4/fs/squashfs/ |
D | squashfs2_0.c | 102 long long start_block = in get_fragment_location_2() local 111 start_block, offset, in get_fragment_location_2() 112 sizeof(sfragment_entry), &start_block, in get_fragment_location_2() 118 start_block, offset, in get_fragment_location_2() 119 sizeof(fragment_entry), &start_block, in get_fragment_location_2() 123 *fragment_start_block = fragment_entry.start_block; in get_fragment_location_2() 231 SQUASHFS_I(i)->start_block = inodep->start_block; in squashfs_iget_2() 242 inodep->start_block, next_block, in squashfs_iget_2() 274 SQUASHFS_I(i)->start_block = inodep->start_block; in squashfs_iget_2() 281 offset, inodep->start_block, in squashfs_iget_2() [all …]
|
D | inode.c | 379 long long start_block = in get_fragment_location() local 388 start_block, offset, in get_fragment_location() 389 sizeof(sfragment_entry), &start_block, in get_fragment_location() 395 start_block, offset, in get_fragment_location() 396 sizeof(fragment_entry), &start_block, in get_fragment_location() 400 *fragment_start_block = fragment_entry.start_block; in get_fragment_location() 421 *s, long long start_block, in get_cached_fragment() argument 431 msblk->fragment[i].block != start_block; i++); in get_cached_fragment() 471 start_block, length, NULL))) { in get_cached_fragment() 473 "[%llx]\n", start_block); in get_cached_fragment() [all …]
|
/external/squashfs-tools/kernel/fs/squashfs/ |
D | squashfs_fs.h | 241 __le32 start_block; member 295 __le32 start_block; member 309 __le64 start_block; member 326 __le32 start_block; member 342 __le32 start_block; member 371 __le32 start_block; member 376 __le64 start_block; member
|
D | fragment.c | 56 u64 start_block = le64_to_cpu(msblk->fragment_index[block]); in squashfs_frag_lookup() local 60 size = squashfs_read_metadata(sb, &fragment_entry, &start_block, in squashfs_frag_lookup() 65 *fragment_block = le64_to_cpu(fragment_entry.start_block); in squashfs_frag_lookup()
|
D | id.c | 53 u64 start_block = le64_to_cpu(msblk->id_table[block]); in squashfs_get_id() local 57 err = squashfs_read_metadata(sb, &disk_id, &start_block, &offset, in squashfs_get_id()
|
D | cache.c | 371 u64 start_block, int length) in squashfs_get_fragment() argument 375 return squashfs_cache_get(sb, msblk->fragment_cache, start_block, in squashfs_get_fragment() 386 u64 start_block, int length) in squashfs_get_datablock() argument 390 return squashfs_cache_get(sb, msblk->read_page, start_block, length); in squashfs_get_datablock()
|
D | inode.c | 167 squashfs_i(inode)->start = le32_to_cpu(sqsh_ino->start_block); in squashfs_read_inode() 211 squashfs_i(inode)->start = le64_to_cpu(sqsh_ino->start_block); in squashfs_read_inode() 234 squashfs_i(inode)->start = le32_to_cpu(sqsh_ino->start_block); in squashfs_read_inode() 258 squashfs_i(inode)->start = le32_to_cpu(sqsh_ino->start_block); in squashfs_read_inode()
|
D | dir.c | 91 *next_block = le32_to_cpu(dir_index.start_block) + in get_dir_index_using_offset() 205 le32_to_cpu(dirh.start_block), in squashfs_readdir()
|
D | namei.c | 117 *next_block = le32_to_cpu(index->start_block) + in get_dir_index_using_name() 202 blk = le32_to_cpu(dirh.start_block); in squashfs_lookup()
|
/external/squashfs-tools/kernel/include/linux/ |
D | squashfs_fs.h | 240 __le32 start_block; member 294 __le32 start_block; member 308 __le64 start_block; member 325 __le32 start_block; member 341 __le32 start_block; member 370 __le32 start_block; member 375 __le64 start_block; member
|