Lines Matching refs:offset
34 u64 *cur_index, int *offset, int *length) in get_block_length() argument
43 if (msblk->devblksize - *offset == 1) { in get_block_length()
44 *length = (unsigned char) bh->b_data[*offset]; in get_block_length()
50 *offset = 1; in get_block_length()
52 *length = (unsigned char) bh->b_data[*offset] | in get_block_length()
53 (unsigned char) bh->b_data[*offset + 1] << 8; in get_block_length()
54 *offset += 2; in get_block_length()
56 if (*offset == msblk->devblksize) { in get_block_length()
61 *offset = 0; in get_block_length()
83 int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data() local
96 bytes = -offset; in squashfs_read_data()
123 bh[0] = get_block_length(sb, &cur_index, &offset, &length); in squashfs_read_data()
128 bytes = msblk->devblksize - offset; in squashfs_read_data()
159 length = squashfs_decompress(msblk, bh, b, offset, length, in squashfs_read_data()
171 in = min(bytes, msblk->devblksize - offset); in squashfs_read_data()
180 memcpy(data + pg_offset, bh[k]->b_data + offset, in squashfs_read_data()
184 offset += avail; in squashfs_read_data()
186 offset = 0; in squashfs_read_data()