/lib/zlib_dfltcc/ |
D | dfltcc_deflate.c | 16 z_streamp strm in dfltcc_can_deflate() argument 19 deflate_state *state = (deflate_state *)strm->state; in dfltcc_can_deflate() 42 void dfltcc_reset_deflate_state(z_streamp strm) { in dfltcc_reset_deflate_state() argument 43 deflate_state *state = (deflate_state *)strm->state; in dfltcc_reset_deflate_state() 60 z_streamp strm in dfltcc_gdht() argument 63 deflate_state *state = (deflate_state *)strm->state; in dfltcc_gdht() 65 size_t avail_in = strm->avail_in; in dfltcc_gdht() 69 &strm->next_in, &avail_in, NULL); in dfltcc_gdht() 73 z_streamp strm in dfltcc_cmpr() argument 76 deflate_state *state = (deflate_state *)strm->state; in dfltcc_cmpr() [all …]
|
D | dfltcc_inflate.c | 14 z_streamp strm in dfltcc_can_inflate() argument 17 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_can_inflate() 31 void dfltcc_reset_inflate_state(z_streamp strm) { in dfltcc_reset_inflate_state() argument 32 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_reset_inflate_state() 40 z_streamp strm in dfltcc_was_inflate_used() argument 43 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_was_inflate_used() 50 z_streamp strm in dfltcc_inflate_disable() argument 53 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_inflate_disable() 56 if (!dfltcc_can_inflate(strm)) in dfltcc_inflate_disable() 58 if (dfltcc_was_inflate_used(strm)) in dfltcc_inflate_disable() [all …]
|
D | dfltcc_inflate.h | 8 void dfltcc_reset_inflate_state(z_streamp strm); 9 int dfltcc_can_inflate(z_streamp strm); 15 dfltcc_inflate_action dfltcc_inflate(z_streamp strm, 17 #define INFLATE_RESET_HOOK(strm) \ argument 18 dfltcc_reset_inflate_state((strm)) 20 #define INFLATE_TYPEDO_HOOK(strm, flush) \ argument 21 if (dfltcc_can_inflate((strm))) { \ 25 action = dfltcc_inflate((strm), (flush), &ret); \ 33 #define INFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_inflate((strm))) argument 35 #define INFLATE_NEED_UPDATEWINDOW(strm) (!dfltcc_can_inflate((strm))) argument
|
D | dfltcc_deflate.h | 8 int dfltcc_can_deflate(z_streamp strm); 9 int dfltcc_deflate(z_streamp strm, 12 void dfltcc_reset_deflate_state(z_streamp strm); 14 #define DEFLATE_RESET_HOOK(strm) \ argument 15 dfltcc_reset_deflate_state((strm)) 19 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm))) argument
|
/lib/ |
D | decompress_inflate.c | 49 struct z_stream_s *strm; in __gunzip() local 76 strm = malloc(sizeof(*strm)); in __gunzip() 77 if (strm == NULL) { in __gunzip() 82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip() 89 if (strm->workspace == NULL) { in __gunzip() 112 strm->next_in = zbuf + 10; in __gunzip() 113 strm->avail_in = len - 10; in __gunzip() 122 if (strm->avail_in == 0) { in __gunzip() 126 --strm->avail_in; in __gunzip() 127 } while (*strm->next_in++); in __gunzip() [all …]
|
/lib/zlib_inflate/ |
D | inflate.c | 22 #define INFLATE_RESET_HOOK(strm) do {} while (0) argument 23 #define INFLATE_TYPEDO_HOOK(strm, flush) do {} while (0) argument 24 #define INFLATE_NEED_UPDATEWINDOW(strm) 1 argument 25 #define INFLATE_NEED_CHECKSUM(strm) 1 argument 33 int zlib_inflateReset(z_streamp strm) in zlib_inflateReset() argument 37 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; in zlib_inflateReset() 38 state = (struct inflate_state *)strm->state; in zlib_inflateReset() 39 strm->total_in = strm->total_out = state->total = 0; in zlib_inflateReset() 40 strm->msg = NULL; in zlib_inflateReset() 41 strm->adler = 1; /* to support ill-conceived Java test suite */ in zlib_inflateReset() [all …]
|
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 | inffast.c | 67 void inflate_fast(z_streamp strm, unsigned start) in inflate_fast() argument 96 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() 290 strm->msg = (char *)"invalid distance code"; in inflate_fast() [all …]
|
D | infutil.h | 37 #define WS(strm) ((struct inflate_workspace *)(strm->workspace)) argument
|
D | inffast.h | 11 void inflate_fast (z_streamp strm, unsigned start);
|
/lib/zlib_deflate/ |
D | deflate.c | 59 #define DEFLATE_RESET_HOOK(strm) do {} while (0) argument 60 #define DEFLATE_HOOK(strm, flush, bstate) 0 argument 61 #define DEFLATE_NEED_CHECKSUM(strm) 1 argument 78 static int read_buf (z_streamp strm, Byte *buf, unsigned size); 189 z_streamp strm, in zlib_deflateInit2() argument 207 if (strm == NULL) return Z_STREAM_ERROR; in zlib_deflateInit2() 209 strm->msg = NULL; in zlib_deflateInit2() 213 mem = (deflate_workspace *) strm->workspace; in zlib_deflateInit2() 248 strm->state = (struct internal_state *)s; in zlib_deflateInit2() 249 s->strm = strm; in zlib_deflateInit2() [all …]
|
D | defutil.h | 74 z_streamp strm; /* pointer back to this zlib stream */ member 420 z_streamp strm in flush_pending() argument 424 deflate_state *s = (deflate_state *) strm->state; in flush_pending() 428 if (len > strm->avail_out) len = strm->avail_out; in flush_pending() 431 if (strm->next_out != NULL) { in flush_pending() 432 memcpy(strm->next_out, s->pending_out, len); in flush_pending() 433 strm->next_out += len; in flush_pending() 436 strm->total_out += len; in flush_pending() 437 strm->avail_out -= len; in flush_pending()
|