Lines Matching refs:length
45 u64 *cur_index, int *offset, int *length) in get_block_length() argument
55 *length = (unsigned char) bh->b_data[*offset]; in get_block_length()
60 *length |= (unsigned char) bh->b_data[0] << 8; in get_block_length()
63 *length = (unsigned char) bh->b_data[*offset] | in get_block_length()
90 int length, u64 *next_index, int srclength, int pages) in squashfs_read_data() argument
103 if (length) { in squashfs_read_data()
108 compressed = SQUASHFS_COMPRESSED_BLOCK(length); in squashfs_read_data()
109 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length); in squashfs_read_data()
111 *next_index = index + length; in squashfs_read_data()
114 index, compressed ? "" : "un", length, srclength); in squashfs_read_data()
116 if (length < 0 || length > srclength || in squashfs_read_data()
117 (index + length) > msblk->bytes_used) in squashfs_read_data()
120 for (b = 0; bytes < length; b++, cur_index++) { in squashfs_read_data()
134 bh[0] = get_block_length(sb, &cur_index, &offset, &length); in squashfs_read_data()
140 compressed = SQUASHFS_COMPRESSED(length); in squashfs_read_data()
141 length = SQUASHFS_COMPRESSED_SIZE(length); in squashfs_read_data()
143 *next_index = index + length + 2; in squashfs_read_data()
146 compressed ? "" : "un", length); in squashfs_read_data()
148 if (length < 0 || length > srclength || in squashfs_read_data()
149 (index + length) > msblk->bytes_used) in squashfs_read_data()
152 for (; bytes < length; b++) { in squashfs_read_data()
162 length = squashfs_decompress(msblk, buffer, bh, b, offset, in squashfs_read_data()
163 length, srclength, pages); in squashfs_read_data()
164 if (length < 0) in squashfs_read_data()
178 for (bytes = length; k < b; k++) { in squashfs_read_data()
200 return length; in squashfs_read_data()