Lines Matching refs:stream
57 struct squashfs_lz4 *stream; in lz4_init() local
59 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in lz4_init()
60 if (stream == NULL) in lz4_init()
62 stream->input = vmalloc(block_size); in lz4_init()
63 if (stream->input == NULL) in lz4_init()
65 stream->output = vmalloc(block_size); in lz4_init()
66 if (stream->output == NULL) in lz4_init()
69 return stream; in lz4_init()
72 vfree(stream->input); in lz4_init()
74 kfree(stream); in lz4_init()
83 struct squashfs_lz4 *stream = strm; in lz4_free() local
85 if (stream) { in lz4_free()
86 vfree(stream->input); in lz4_free()
87 vfree(stream->output); in lz4_free()
89 kfree(stream); in lz4_free()
97 struct squashfs_lz4 *stream = strm; in lz4_uncompress() local
98 void *buff = stream->input, *data; in lz4_uncompress()
111 res = lz4_decompress_unknownoutputsize(stream->input, length, in lz4_uncompress()
112 stream->output, &dest_len); in lz4_uncompress()
118 buff = stream->output; in lz4_uncompress()