• Home
  • Raw
  • Download

Lines Matching refs:msblk

49 	struct squashfs_sb_info *msblk = sb->s_fs_info;  in get_block_length()  local
56 if (msblk->devblksize - *offset == 1) { in get_block_length()
85 struct squashfs_sb_info *msblk = sb->s_fs_info; in squashfs_read_data() local
87 int offset = index & ((1 << msblk->devblksize_log2) - 1); in squashfs_read_data()
88 u64 cur_index = index >> msblk->devblksize_log2; in squashfs_read_data()
92 bh = kcalloc((msblk->block_size >> msblk->devblksize_log2) + 1, in squashfs_read_data()
111 (index + length) > msblk->bytes_used) in squashfs_read_data()
118 bytes += msblk->devblksize; in squashfs_read_data()
125 if ((index + 2) > msblk->bytes_used) in squashfs_read_data()
133 bytes = msblk->devblksize - offset; in squashfs_read_data()
143 (index + length) > msblk->bytes_used) in squashfs_read_data()
150 bytes += msblk->devblksize; in squashfs_read_data()
162 mutex_lock(&msblk->read_data_mutex); in squashfs_read_data()
164 msblk->stream.avail_out = 0; in squashfs_read_data()
165 msblk->stream.avail_in = 0; in squashfs_read_data()
169 if (msblk->stream.avail_in == 0 && k < b) { in squashfs_read_data()
170 avail = min(bytes, msblk->devblksize - offset); in squashfs_read_data()
182 msblk->stream.next_in = bh[k]->b_data + offset; in squashfs_read_data()
183 msblk->stream.avail_in = avail; in squashfs_read_data()
187 if (msblk->stream.avail_out == 0) { in squashfs_read_data()
188 msblk->stream.next_out = buffer[page++]; in squashfs_read_data()
189 msblk->stream.avail_out = PAGE_CACHE_SIZE; in squashfs_read_data()
193 zlib_err = zlib_inflateInit(&msblk->stream); in squashfs_read_data()
204 zlib_err = zlib_inflate(&msblk->stream, Z_NO_FLUSH); in squashfs_read_data()
206 if (msblk->stream.avail_in == 0 && k < b) in squashfs_read_data()
214 msblk->stream.avail_in, in squashfs_read_data()
215 msblk->stream.avail_out); in squashfs_read_data()
219 zlib_err = zlib_inflateEnd(&msblk->stream); in squashfs_read_data()
225 length = msblk->stream.total_out; in squashfs_read_data()
226 mutex_unlock(&msblk->read_data_mutex); in squashfs_read_data()
240 in = min(bytes, msblk->devblksize - offset); in squashfs_read_data()
264 mutex_unlock(&msblk->read_data_mutex); in squashfs_read_data()