Lines Matching defs:length
80 struct address_space *cache_mapping, u64 index, int length,
104 * Compare these to the original required index and length to
111 else if (idx == page_count - 1 && index + length != read_end)
189 static int squashfs_bio_read(struct super_block *sb, u64 index, int length,
196 const u64 read_end = round_up(index + length, msblk->devblksize);
236 length, read_start, read_end,
257 * filesystem), otherwise the length is obtained from the first two bytes of
258 * the metadata block. A bit in the length field indicates if the block
263 int squashfs_read_data(struct super_block *sb, u64 index, int length,
272 if (length) {
276 compressed = SQUASHFS_COMPRESSED_BLOCK(length);
277 length = SQUASHFS_COMPRESSED_SIZE_BLOCK(length);
279 index, compressed ? "" : "un", length, output->length);
300 /* Extract the length of the metadata block */
302 length = data[offset];
304 length |= data[offset + 1] << 8;
311 length |= data[0] << 8;
317 compressed = SQUASHFS_COMPRESSED(length);
318 length = SQUASHFS_COMPRESSED_SIZE(length);
322 compressed ? "" : "un", length);
324 if (length <= 0 || length > output->length ||
325 (index + length) > msblk->bytes_used) {
331 *next_index = index + length;
333 res = squashfs_bio_read(sb, index, length, &bio, &offset);
342 res = msblk->thread_ops->decompress(msblk, bio, offset, length, output);
344 res = copy_bio_to_actor(bio, output, offset, length);