Lines Matching refs:stream
24 void *stream; member
31 struct squashfs_stream *stream; in squashfs_decompressor_create() local
40 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
41 stream->stream = msblk->decompressor->init(msblk, comp_opts); in squashfs_decompressor_create()
42 if (IS_ERR(stream->stream)) { in squashfs_decompressor_create()
43 err = PTR_ERR(stream->stream); in squashfs_decompressor_create()
46 local_lock_init(&stream->lock); in squashfs_decompressor_create()
54 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_create()
55 if (!IS_ERR_OR_NULL(stream->stream)) in squashfs_decompressor_create()
56 msblk->decompressor->free(stream->stream); in squashfs_decompressor_create()
65 (struct squashfs_stream __percpu *) msblk->stream; in squashfs_decompressor_destroy()
66 struct squashfs_stream *stream; in squashfs_decompressor_destroy() local
69 if (msblk->stream) { in squashfs_decompressor_destroy()
71 stream = per_cpu_ptr(percpu, cpu); in squashfs_decompressor_destroy()
72 msblk->decompressor->free(stream->stream); in squashfs_decompressor_destroy()
81 struct squashfs_stream *stream; in squashfs_decompress() local
84 local_lock(&msblk->stream->lock); in squashfs_decompress()
85 stream = this_cpu_ptr(msblk->stream); in squashfs_decompress()
87 res = msblk->decompressor->decompress(msblk, stream->stream, bio, in squashfs_decompress()
90 local_unlock(&msblk->stream->lock); in squashfs_decompress()