Searched refs:strm (Results 1 – 7 of 7) sorted by relevance
/lib/ |
D | decompress_inflate.c | 42 struct z_stream_s *strm; in gunzip() local 69 strm = malloc(sizeof(*strm)); in gunzip() 70 if (strm == NULL) { in gunzip() 75 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in gunzip() 77 if (strm->workspace == NULL) { in gunzip() 100 strm->next_in = zbuf + 10; in gunzip() 101 strm->avail_in = len - 10; in gunzip() 110 if (strm->avail_in == 0) { in gunzip() 114 --strm->avail_in; in gunzip() 115 } while (*strm->next_in++); in gunzip() [all …]
|
/lib/zlib_inflate/ |
D | infutil.c | 13 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 …]
|
D | inflate.c | 23 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() 49 int zlib_inflatePrime(z_streamp strm, int bits, int value) 53 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; 54 state = (struct inflate_state *)strm->state; 63 int zlib_inflateInit2(z_streamp strm, int windowBits) in zlib_inflateInit2() argument [all …]
|
D | inffast.c | 88 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 …]
|
D | inffast.h | 11 void inflate_fast (z_streamp strm, unsigned start);
|
/lib/zlib_deflate/ |
D | deflate.c | 75 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() 255 z_streamp strm, [all …]
|
D | defutil.h | 72 z_streamp strm; /* pointer back to this zlib stream */ member
|