Home
last modified time | relevance | path

Searched refs:fragment_table (Results 1 – 7 of 7) sorted by relevance

/external/squashfs-tools/squashfs-tools/
Dunsquash-2.c28 static squashfs_fragment_entry_2 *fragment_table; variable
59 fragment_table = malloc(bytes); in read_fragment_table_2()
60 if(fragment_table == NULL) in read_fragment_table_2()
92 expected, ((char *) fragment_table) + (i * in read_fragment_table_2()
107 (&fragment_table[i])); in read_fragment_table_2()
108 memcpy((char *) &fragment_table[i], (char *) &sfragment, in read_fragment_table_2()
122 squashfs_fragment_entry_2 *fragment_entry = &fragment_table[fragment]; in read_fragment_2()
Dunsquash-3.c28 static squashfs_fragment_entry_3 *fragment_table; variable
46 fragment_table = malloc(bytes); in read_fragment_table_3()
47 if(fragment_table == NULL) in read_fragment_table_3()
79 expected, ((char *) fragment_table) + (i * in read_fragment_table_3()
94 (&fragment_table[i])); in read_fragment_table_3()
95 memcpy((char *) &fragment_table[i], (char *) &sfragment, in read_fragment_table_3()
109 squashfs_fragment_entry_3 *fragment_entry = &fragment_table[fragment]; in read_fragment_3()
Dunsquash-4.c28 static struct squashfs_fragment_entry *fragment_table; variable
47 fragment_table = malloc(bytes); in read_fragment_table_4()
48 if(fragment_table == NULL) in read_fragment_table_4()
66 expected, ((char *) fragment_table) + (i * in read_fragment_table_4()
78 SQUASHFS_INSWAP_FRAGMENT_ENTRY(&fragment_table[i]); in read_fragment_table_4()
91 fragment_entry = &fragment_table[fragment]; in read_fragment_4()
Dread_fs.c751 struct squashfs_fragment_entry **fragment_table) in read_fragment_table() argument
765 *fragment_table = malloc(bytes); in read_fragment_table()
766 if(*fragment_table == NULL) in read_fragment_table()
775 free(*fragment_table); in read_fragment_table()
785 expected, ((unsigned char *) *fragment_table) + in read_fragment_table()
794 free(*fragment_table); in read_fragment_table()
800 SQUASHFS_INSWAP_FRAGMENT_ENTRY(&(*fragment_table)[i]); in read_fragment_table()
867 struct squashfs_fragment_entry **fragment_table, in read_filesystem() argument
887 if(read_fragment_table(fd, sBlk, fragment_table) == 0) in read_filesystem()
Dmksquashfs.h153 extern struct squashfs_fragment_entry *fragment_table;
Dmksquashfs.c221 struct squashfs_fragment_entry *fragment_table = NULL; variable
1445 disk_fragment = &fragment_table[index]; in get_fragment()
1562 size = SQUASHFS_COMPRESSED_SIZE_BLOCK(fragment_table[frg].size); in unlock_fragments()
1563 fragment_table[frg].start_block = bytes; in unlock_fragments()
1579 fragment_table[fragment].size = c_byte; in add_pending_fragment()
1593 fragment_table[fragment->block].unused = 0; in write_fragment()
1608 void *ft = realloc(fragment_table, (fragments + in allocate_fragment()
1612 fragment_table = ft; in allocate_fragment()
1735 "size %d\n", i, fragment_table[i].start_block, in write_fragment_table()
1736 fragment_table[i].size); in write_fragment_table()
[all …]
Dprocess_fragments.c172 disk_fragment = &fragment_table[index]; in get_fragment()