Lines Matching refs:stream
23 void *stream; member
30 struct squashfs_stream *stream; in squashfs_decompressor_create() local
33 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
34 if (stream == NULL) in squashfs_decompressor_create()
37 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
38 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
39 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
44 mutex_init(&stream->mutex); in squashfs_decompressor_create()
45 return stream; in squashfs_decompressor_create()
48 kfree(stream); in squashfs_decompressor_create()
54 struct squashfs_stream *stream = msblk->stream; in squashfs_decompressor_destroy() local
56 if (stream) { in squashfs_decompressor_destroy()
57 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
58 kfree(stream); in squashfs_decompressor_destroy()
67 struct squashfs_stream *stream = msblk->stream; in squashfs_decompress() local
69 mutex_lock(&stream->mutex); in squashfs_decompress()
70 res = msblk->decompressor->decompress(msblk, stream->stream, bio, in squashfs_decompress()
72 mutex_unlock(&stream->mutex); in squashfs_decompress()