Searched refs:strm (Results 1 – 7 of 7) sorted by relevance
44 struct z_stream_s *strm; in __gunzip() local71 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 …]
13 struct z_stream_s *strm; in zlib_inflate_blob() local17 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 …]
23 int zlib_inflateReset(z_streamp strm) in zlib_inflateReset() argument27 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() argument52 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 …]
67 void inflate_fast(z_streamp strm, unsigned start) in inflate_fast() argument96 state = (struct inflate_state *)strm->state; in inflate_fast()97 in = strm->next_in; in inflate_fast()98 last = in + (strm->avail_in - 5); in inflate_fast()99 out = strm->next_out; in inflate_fast()100 beg = out - (start - strm->avail_out); in inflate_fast()101 end = out + (strm->avail_out - 257); in inflate_fast()172 strm->msg = (char *)"invalid distance too far back"; in inflate_fast()183 strm->msg = (char *)"invalid distance too far back"; in inflate_fast()291 strm->msg = (char *)"invalid distance code"; in inflate_fast()[all …]
11 void inflate_fast (z_streamp strm, unsigned start);
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() argument186 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 …]
72 z_streamp strm; /* pointer back to this zlib stream */ member