Lines Matching refs:block_list
301 unsigned int **block_list, long long *start, struct fragment **fragment,
313 unsigned int *block_list, long long start, struct fragment *fragment,
855 long long start_block, unsigned int offset, unsigned int *block_list, in create_inode() argument
912 size_t off = offsetof(struct squashfs_reg_inode_header, block_list); in create_inode()
920 SQUASHFS_SWAP_INTS(block_list, inode + off, offset); in create_inode()
926 TRACE("Block %d, size %d\n", i, block_list[i]); in create_inode()
931 size_t off = offsetof(struct squashfs_lreg_inode_header, block_list); in create_inode()
944 SQUASHFS_SWAP_INTS(block_list, inode + off, offset); in create_inode()
950 TRACE("Block %d, size %d\n", i, block_list[i]); in create_inode()
1782 unsigned int *block_list = block_listp; in add_file() local
1812 file = add_non_dup(file_size, file_bytes, block_list, start, frg, 0, 0, in add_file()
1841 unsigned int *block_list, long long start, struct fragment *fragment, in add_non_dup() argument
1852 dupl_ptr->block_list = block_list; in add_non_dup()
1917 unsigned int **block_list, long long *start, struct fragment **fragment, in duplicate() argument
1932 if(memcmp(*block_list, dupl_ptr->block_list, blocks * in duplicate()
1938 *block_list); in duplicate()
1945 dupl_ptr->bytes, dupl_ptr->block_list); in duplicate()
1957 ((*block_list)[block]); in duplicate()
2024 *block_list = dupl_ptr->block_list; in duplicate()
2035 return add_non_dup(file_size, bytes, *block_list, *start, *fragment, in duplicate()
2508 unsigned int *block_list = NULL; in write_file_process() local
2524 block_list = realloc(block_list, (block + 1) * in write_file_process()
2526 if(block_list == NULL) in write_file_process()
2528 block_list[block ++] = read_buffer->c_byte; in write_file_process()
2554 add_non_dup(read_size, file_bytes, block_list, start, fragment, in write_file_process()
2562 block, block_list, fragment, NULL, sparse); in write_file_process()
2565 free(block_list); in write_file_process()
2587 free(block_list); in write_file_process()
2602 unsigned int *block_list, *block_listp; in write_file_blocks_dup() local
2608 block_list = malloc(blocks * sizeof(unsigned int)); in write_file_blocks_dup()
2609 if(block_list == NULL) in write_file_blocks_dup()
2611 block_listp = block_list; in write_file_blocks_dup()
2625 block_list[block] = 0; in write_file_blocks_dup()
2630 block_list[block] = read_buffer->c_byte; in write_file_blocks_dup()
2706 free(block_list); in write_file_blocks_dup()
2729 free(block_list); in write_file_blocks_dup()
2741 unsigned int *block_list; in write_file_blocks() local
2752 block_list = malloc(blocks * sizeof(unsigned int)); in write_file_blocks()
2753 if(block_list == NULL) in write_file_blocks()
2762 block_list[block] = 0; in write_file_blocks()
2766 block_list[block] = read_buffer->c_byte; in write_file_blocks()
2791 add_non_dup(read_size, file_bytes, block_list, start, fragment, in write_file_blocks()
2810 blocks, block_list, fragment, NULL, sparse); in write_file_blocks()
2813 free(block_list); in write_file_blocks()
2835 free(block_list); in write_file_blocks()