Lines Matching refs:stream
25 void *stream; member
32 struct squashfs_stream *stream; in squashfs_decompressor_create() local
35 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
36 if (stream == NULL) in squashfs_decompressor_create()
39 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
40 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
41 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
46 mutex_init(&stream->mutex); in squashfs_decompressor_create()
47 return stream; in squashfs_decompressor_create()
50 kfree(stream); in squashfs_decompressor_create()
56 struct squashfs_stream *stream = msblk->stream; in squashfs_decompressor_destroy() local
58 if (stream) { in squashfs_decompressor_destroy()
59 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
60 kfree(stream); in squashfs_decompressor_destroy()
68 struct squashfs_stream *stream = msblk->stream; in squashfs_decompress() local
70 mutex_lock(&stream->mutex); in squashfs_decompress()
71 res = msblk->decompressor->decompress(msblk, stream->stream, bh, b, in squashfs_decompress()
73 mutex_unlock(&stream->mutex); in squashfs_decompress()