Home
last modified time | relevance | path

Searched refs:strm (Results 1 – 19 of 19) sorted by relevance

/linux-4.1.27/fs/btrfs/
Dzlib.c36 z_stream strm; member
45 vfree(workspace->strm.workspace); in zlib_free_workspace()
61 workspace->strm.workspace = vmalloc(workspacesize); in zlib_alloc_workspace()
63 if (!workspace->strm.workspace || !workspace->buf) in zlib_alloc_workspace()
97 if (Z_OK != zlib_deflateInit(&workspace->strm, 3)) { in zlib_compress_pages()
103 workspace->strm.total_in = 0; in zlib_compress_pages()
104 workspace->strm.total_out = 0; in zlib_compress_pages()
118 workspace->strm.next_in = data_in; in zlib_compress_pages()
119 workspace->strm.next_out = cpage_out; in zlib_compress_pages()
120 workspace->strm.avail_out = PAGE_CACHE_SIZE; in zlib_compress_pages()
[all …]
/linux-4.1.27/lib/
Ddecompress_inflate.c44 struct z_stream_s *strm; in __gunzip() local
71 strm = malloc(sizeof(*strm)); in __gunzip()
72 if (strm == NULL) { in __gunzip()
77 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
79 if (strm->workspace == NULL) { in __gunzip()
102 strm->next_in = zbuf + 10; in __gunzip()
103 strm->avail_in = len - 10; in __gunzip()
112 if (strm->avail_in == 0) { in __gunzip()
116 --strm->avail_in; in __gunzip()
117 } while (*strm->next_in++); in __gunzip()
[all …]
/linux-4.1.27/lib/zlib_inflate/
Dinfutil.c13 struct z_stream_s *strm; in zlib_inflate_blob() local
17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob()
18 if (strm == NULL) in zlib_inflate_blob()
20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
21 if (strm->workspace == NULL) in zlib_inflate_blob()
27 strm->next_in = zbuf; in zlib_inflate_blob()
28 strm->avail_in = len; in zlib_inflate_blob()
29 strm->next_out = gunzip_buf; in zlib_inflate_blob()
30 strm->avail_out = sz; in zlib_inflate_blob()
32 rc = zlib_inflateInit2(strm, -MAX_WBITS); in zlib_inflate_blob()
[all …]
Dinflate.c23 int zlib_inflateReset(z_streamp strm) in zlib_inflateReset() argument
27 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset()
28 state = (struct inflate_state *)strm->state; in zlib_inflateReset()
29 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset()
30 strm->msg = NULL; in zlib_inflateReset()
31 strm->adler = 1; /* to support ill-conceived Java test suite */ in zlib_inflateReset()
48 int zlib_inflateInit2(z_streamp strm, int windowBits) in zlib_inflateInit2() argument
52 if (strm == NULL) return Z_STREAM_ERROR; in zlib_inflateInit2()
53 strm->msg = NULL; /* in case we return an error */ in zlib_inflateInit2()
55 state = &WS(strm)->inflate_state; in zlib_inflateInit2()
[all …]
Dinffast.c88 void inflate_fast(z_streamp strm, unsigned start) in inflate_fast() argument
117 state = (struct inflate_state *)strm->state; in inflate_fast()
118 in = strm->next_in - OFF; in inflate_fast()
119 last = in + (strm->avail_in - 5); in inflate_fast()
120 out = strm->next_out - OFF; in inflate_fast()
121 beg = out - (start - strm->avail_out); in inflate_fast()
122 end = out + (strm->avail_out - 257); in inflate_fast()
193 strm->msg = (char *)"invalid distance too far back"; in inflate_fast()
204 strm->msg = (char *)"invalid distance too far back"; in inflate_fast()
312 strm->msg = (char *)"invalid distance code"; in inflate_fast()
[all …]
Dinffast.h11 void inflate_fast (z_streamp strm, unsigned start);
/linux-4.1.27/drivers/net/ppp/
Dppp_deflate.c33 z_stream strm; member
68 zlib_deflateEnd(&state->strm); in z_comp_free()
69 vfree(state->strm.workspace); in z_comp_free()
108 state->strm.next_in = NULL; in z_comp_alloc()
110 state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); in z_comp_alloc()
111 if (state->strm.workspace == NULL) in z_comp_alloc()
114 if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, in z_comp_alloc()
157 zlib_deflateReset(&state->strm); in z_comp_init()
174 zlib_deflateReset(&state->strm); in z_comp_reset()
219 state->strm.next_out = wptr; in z_compress()
[all …]
/linux-4.1.27/tools/perf/util/
Dlzma.c30 lzma_stream strm = LZMA_STREAM_INIT; in lzma_decompress_to_file() local
44 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); in lzma_decompress_to_file()
51 strm.next_in = NULL; in lzma_decompress_to_file()
52 strm.avail_in = 0; in lzma_decompress_to_file()
53 strm.next_out = buf_out; in lzma_decompress_to_file()
54 strm.avail_out = sizeof(buf_out); in lzma_decompress_to_file()
57 if (strm.avail_in == 0 && !feof(infile)) { in lzma_decompress_to_file()
58 strm.next_in = buf_in; in lzma_decompress_to_file()
59 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); in lzma_decompress_to_file()
70 ret = lzma_code(&strm, action); in lzma_decompress_to_file()
[all …]
/linux-4.1.27/lib/zlib_deflate/
Ddeflate.c75 static void flush_pending (z_streamp strm);
76 static int read_buf (z_streamp strm, Byte *buf, unsigned size);
168 z_streamp strm, in zlib_deflateInit2() argument
186 if (strm == NULL) return Z_STREAM_ERROR; in zlib_deflateInit2()
188 strm->msg = NULL; in zlib_deflateInit2()
192 mem = (deflate_workspace *) strm->workspace; in zlib_deflateInit2()
219 strm->state = (struct internal_state *)s; in zlib_deflateInit2()
220 s->strm = strm; in zlib_deflateInit2()
249 return zlib_deflateReset(strm); in zlib_deflateInit2()
254 z_streamp strm in zlib_deflateReset() argument
[all …]
Ddefutil.h72 z_streamp strm; /* pointer back to this zlib stream */ member
/linux-4.1.27/include/linux/
Dzlib.h217 extern int zlib_deflate (z_streamp strm, int flush);
295 extern int zlib_deflateEnd (z_streamp strm);
337 extern int zlib_inflate (z_streamp strm, int flush);
436 extern int zlib_inflateEnd (z_streamp strm);
497 extern int zlib_deflateReset (z_streamp strm);
555 extern int zlib_inflateReset (z_streamp strm);
565 extern int zlib_inflateIncomp (z_stream *strm);
574 #define zlib_deflateInit(strm, level) \ argument
575 zlib_deflateInit2((strm), (level), Z_DEFLATED, MAX_WBITS, \
577 #define zlib_inflateInit(strm) \ argument
[all …]
/linux-4.1.27/fs/
Dbinfmt_flat.c189 z_stream strm; in decompress_exec() local
195 memset(&strm, 0, sizeof(strm)); in decompress_exec()
196 strm.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in decompress_exec()
197 if (strm.workspace == NULL) { in decompress_exec()
212 strm.next_in = buf; in decompress_exec()
213 strm.avail_in = ret; in decompress_exec()
214 strm.total_in = 0; in decompress_exec()
268 strm.next_in += ret; in decompress_exec()
269 strm.avail_in -= ret; in decompress_exec()
271 strm.next_out = dst; in decompress_exec()
[all …]
/linux-4.1.27/fs/squashfs/
Dzlib_wrapper.c55 static void zlib_free(void *strm) in zlib_free() argument
57 z_stream *stream = strm; in zlib_free()
65 static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm, in zlib_uncompress() argument
70 z_stream *stream = strm; in zlib_uncompress()
Dlzo_wrapper.c66 static void lzo_free(void *strm) in lzo_free() argument
68 struct squashfs_lzo *stream = strm; in lzo_free()
78 static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, in lzo_uncompress() argument
82 struct squashfs_lzo *stream = strm; in lzo_uncompress()
Dlz4_wrapper.c81 static void lz4_free(void *strm) in lz4_free() argument
83 struct squashfs_lz4 *stream = strm; in lz4_free()
93 static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, in lz4_uncompress() argument
97 struct squashfs_lz4 *stream = strm; in lz4_uncompress()
Dxz_wrapper.c121 static void squashfs_xz_free(void *strm) in squashfs_xz_free() argument
123 struct squashfs_xz *stream = strm; in squashfs_xz_free()
132 static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void *strm, in squashfs_xz_uncompress() argument
138 struct squashfs_xz *stream = strm; in squashfs_xz_uncompress()
/linux-4.1.27/tools/build/feature/
Dtest-lzma.c5 lzma_stream strm = LZMA_STREAM_INIT; in main() local
8 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); in main()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_main.c6514 bp->strm = kmalloc(sizeof(*bp->strm), GFP_KERNEL); in bnx2x_gunzip_init()
6515 if (bp->strm == NULL) in bnx2x_gunzip_init()
6518 bp->strm->workspace = vmalloc(zlib_inflate_workspacesize()); in bnx2x_gunzip_init()
6519 if (bp->strm->workspace == NULL) in bnx2x_gunzip_init()
6525 kfree(bp->strm); in bnx2x_gunzip_init()
6526 bp->strm = NULL; in bnx2x_gunzip_init()
6540 if (bp->strm) { in bnx2x_gunzip_end()
6541 vfree(bp->strm->workspace); in bnx2x_gunzip_end()
6542 kfree(bp->strm); in bnx2x_gunzip_end()
6543 bp->strm = NULL; in bnx2x_gunzip_end()
[all …]
Dbnx2x.h1791 struct z_stream_s *strm; member