Lines Matching refs:stream
45 struct squashfs_lzo *stream = kzalloc(sizeof(*stream), GFP_KERNEL); in lzo_init() local
46 if (stream == NULL) in lzo_init()
48 stream->input = vmalloc(block_size); in lzo_init()
49 if (stream->input == NULL) in lzo_init()
51 stream->output = vmalloc(block_size); in lzo_init()
52 if (stream->output == NULL) in lzo_init()
55 return stream; in lzo_init()
58 vfree(stream->input); in lzo_init()
61 kfree(stream); in lzo_init()
68 struct squashfs_lzo *stream = strm; in lzo_free() local
70 if (stream) { in lzo_free()
71 vfree(stream->input); in lzo_free()
72 vfree(stream->output); in lzo_free()
74 kfree(stream); in lzo_free()
82 struct squashfs_lzo *stream = strm; in lzo_uncompress() local
83 void *buff = stream->input, *data; in lzo_uncompress()
96 res = lzo1x_decompress_safe(stream->input, (size_t)length, in lzo_uncompress()
97 stream->output, &out_len); in lzo_uncompress()
103 buff = stream->output; in lzo_uncompress()