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