Lines Matching refs:stream
32 struct squashfs_lzo *stream = kzalloc(sizeof(*stream), GFP_KERNEL); in lzo_init() local
33 if (stream == NULL) in lzo_init()
35 stream->input = vmalloc(block_size); in lzo_init()
36 if (stream->input == NULL) in lzo_init()
38 stream->output = vmalloc(block_size); in lzo_init()
39 if (stream->output == NULL) in lzo_init()
42 return stream; in lzo_init()
45 vfree(stream->input); in lzo_init()
48 kfree(stream); in lzo_init()
55 struct squashfs_lzo *stream = strm; in lzo_free() local
57 if (stream) { in lzo_free()
58 vfree(stream->input); in lzo_free()
59 vfree(stream->output); in lzo_free()
61 kfree(stream); in lzo_free()
71 struct squashfs_lzo *stream = strm; in lzo_uncompress() local
72 void *buff = stream->input, *data; in lzo_uncompress()
86 res = lzo1x_decompress_safe(stream->input, (size_t)length, in lzo_uncompress()
87 stream->output, &out_len); in lzo_uncompress()
93 buff = stream->output; in lzo_uncompress()