| /OK3568_Linux_fs/kernel/lib/zlib_dfltcc/ |
| H A D | dfltcc_deflate.c | 14 z_streamp strm in dfltcc_can_deflate() argument 17 deflate_state *state = (deflate_state *)strm->state; in dfltcc_can_deflate() 41 z_streamp strm in dfltcc_gdht() argument 44 deflate_state *state = (deflate_state *)strm->state; in dfltcc_gdht() 46 size_t avail_in = avail_in = strm->avail_in; in dfltcc_gdht() 50 &strm->next_in, &avail_in, NULL); in dfltcc_gdht() 54 z_streamp strm in dfltcc_cmpr() argument 57 deflate_state *state = (deflate_state *)strm->state; in dfltcc_cmpr() 59 size_t avail_in = strm->avail_in; in dfltcc_cmpr() 60 size_t avail_out = strm->avail_out; in dfltcc_cmpr() [all …]
|
| H A 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() 36 z_streamp strm in dfltcc_was_inflate_used() argument 39 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_was_inflate_used() 46 z_streamp strm in dfltcc_inflate_disable() argument 49 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_inflate_disable() 52 if (!dfltcc_can_inflate(strm)) in dfltcc_inflate_disable() 54 if (dfltcc_was_inflate_used(strm)) in dfltcc_inflate_disable() 66 z_streamp strm in dfltcc_xpnd() argument 69 struct inflate_state *state = (struct inflate_state *)strm->state; in dfltcc_xpnd() [all …]
|
| H A D | dfltcc.h | 107 int dfltcc_can_deflate(z_streamp strm); 108 int dfltcc_deflate(z_streamp strm, 111 void dfltcc_reset(z_streamp strm, uInt size); 112 int dfltcc_can_inflate(z_streamp strm); 118 dfltcc_inflate_action dfltcc_inflate(z_streamp strm, 126 #define DEFLATE_RESET_HOOK(strm) \ argument 127 dfltcc_reset((strm), sizeof(deflate_state)) 131 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm))) argument 135 #define INFLATE_RESET_HOOK(strm) \ argument 136 dfltcc_reset((strm), sizeof(struct inflate_state)) [all …]
|
| /OK3568_Linux_fs/u-boot/lib/bzip2/ |
| H A D | bzlib.c | 200 ( bz_stream* strm, in BZ_API() 210 if (strm == NULL || in BZ_API() 216 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ_API() 217 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ_API() 221 s->strm = strm; in BZ_API() 254 strm->state = s; in BZ_API() 255 strm->total_in_lo32 = 0; in BZ_API() 256 strm->total_in_hi32 = 0; in BZ_API() 257 strm->total_out_lo32 = 0; in BZ_API() 258 strm->total_out_hi32 = 0; in BZ_API() [all …]
|
| /OK3568_Linux_fs/kernel/fs/btrfs/ |
| H A D | zlib.c | 27 z_stream strm; member 50 kvfree(workspace->strm.workspace); in zlib_free_workspace() 66 workspace->strm.workspace = kvmalloc(workspacesize, GFP_KERNEL); in zlib_alloc_workspace() 83 if (!workspace->strm.workspace || !workspace->buf) in zlib_alloc_workspace() 115 if (Z_OK != zlib_deflateInit(&workspace->strm, workspace->level)) { in zlib_compress_pages() 121 workspace->strm.total_in = 0; in zlib_compress_pages() 122 workspace->strm.total_out = 0; in zlib_compress_pages() 133 workspace->strm.next_in = workspace->buf; in zlib_compress_pages() 134 workspace->strm.avail_in = 0; in zlib_compress_pages() 135 workspace->strm.next_out = cpage_out; in zlib_compress_pages() [all …]
|
| /OK3568_Linux_fs/kernel/lib/zlib_inflate/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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() 291 strm->msg = (char *)"invalid distance code"; in inflate_fast() [all …]
|
| /OK3568_Linux_fs/u-boot/lib/zlib/ |
| H A D | deflate.c | 86 local void flush_pending OF((z_streamp strm)); 87 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 198 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument 199 z_streamp strm; in deflateInit_() 204 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, 210 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument 212 z_streamp strm; in deflateInit2_() 234 if (strm == Z_NULL) return Z_STREAM_ERROR; 236 strm->msg = Z_NULL; 237 if (strm->zalloc == (alloc_func)0) { [all …]
|
| H A D | inflate.c | 6 local int updatewindow OF((z_streamp strm, unsigned out)); 8 int ZEXPORT inflateReset(z_streamp strm) in inflateReset() argument 12 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateReset() 13 state = (struct inflate_state FAR *)strm->state; in inflateReset() 14 strm->total_in = strm->total_out = state->total = 0; in inflateReset() 15 strm->msg = Z_NULL; in inflateReset() 16 strm->adler = 1; /* to support ill-conceived Java test suite */ in inflateReset() 33 int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, in inflateInit2_() argument 41 if (strm == Z_NULL) return Z_STREAM_ERROR; in inflateInit2_() 42 strm->msg = Z_NULL; /* in case we return an error */ in inflateInit2_() [all …]
|
| H A D | inffast.c | 69 void inflate_fast(z_streamp strm, unsigned start) in inflate_fast() argument 99 state = (struct inflate_state FAR *)strm->state; in inflate_fast() 100 in = strm->next_in - OFF; in inflate_fast() 101 last = in + (strm->avail_in - 5); in inflate_fast() 102 if (in > last && strm->avail_in > 5) { in inflate_fast() 107 strm->avail_in = 0xffffffff - (uintptr_t)in; in inflate_fast() 108 last = in + (strm->avail_in - 5); in inflate_fast() 110 out = strm->next_out - OFF; in inflate_fast() 111 beg = out - (start - strm->avail_out); in inflate_fast() 112 end = out + (strm->avail_out - 257); in inflate_fast() [all …]
|
| H A D | zutil.h | 58 #define ERR_RETURN(strm,err) \ argument 59 return (strm->msg = (char*)ERR_MSG(err), (err)) 121 #define ZALLOC(strm, items, size) \ argument 122 (*((strm)->zalloc))((strm)->opaque, (items), (size)) 123 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr), 0) argument
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ppp/ |
| H A D | ppp_deflate.c | 30 z_stream strm; member 65 zlib_deflateEnd(&state->strm); in z_comp_free() 66 vfree(state->strm.workspace); in z_comp_free() 105 state->strm.next_in = NULL; in z_comp_alloc() 107 state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); in z_comp_alloc() 108 if (state->strm.workspace == NULL) in z_comp_alloc() 111 if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, in z_comp_alloc() 154 zlib_deflateReset(&state->strm); in z_comp_init() 171 zlib_deflateReset(&state->strm); in z_comp_reset() 216 state->strm.next_out = wptr; in z_compress() [all …]
|
| /OK3568_Linux_fs/kernel/lib/zlib_deflate/ |
| H A 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 …]
|
| H A D | defutil.h | 74 z_streamp strm; /* pointer back to this zlib stream */ member 420 z_streamp strm in flush_pending() argument 423 deflate_state *s = (deflate_state *) strm->state; in flush_pending() 426 if (len > strm->avail_out) len = strm->avail_out; in flush_pending() 429 if (strm->next_out != NULL) { in flush_pending() 430 memcpy(strm->next_out, s->pending_out, len); in flush_pending() 431 strm->next_out += len; in flush_pending() 434 strm->total_out += len; in flush_pending() 435 strm->avail_out -= len; in flush_pending()
|
| /OK3568_Linux_fs/kernel/tools/perf/util/ |
| H A D | lzma.c | 38 lzma_stream strm = LZMA_STREAM_INIT; in lzma_decompress_to_file() local 53 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); in lzma_decompress_to_file() 60 strm.next_in = NULL; in lzma_decompress_to_file() 61 strm.avail_in = 0; in lzma_decompress_to_file() 62 strm.next_out = buf_out; in lzma_decompress_to_file() 63 strm.avail_out = sizeof(buf_out); in lzma_decompress_to_file() 66 if (strm.avail_in == 0 && !feof(infile)) { in lzma_decompress_to_file() 67 strm.next_in = buf_in; in lzma_decompress_to_file() 68 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); in lzma_decompress_to_file() 79 ret = lzma_code(&strm, action); in lzma_decompress_to_file() [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/ |
| H A D | zlib.h | 246 ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); 353 ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); 392 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush)); 508 ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm)); 587 ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, 649 ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); 660 ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, 681 ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, 698 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, 713 ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm, [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/ |
| H A D | zlib.h | 246 ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); 353 ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); 392 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush)); 508 ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm)); 587 ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, 649 ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); 660 ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, 681 ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, 698 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, 713 ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm, [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/ |
| H A D | zlib.h | 246 ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); 353 ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); 392 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush)); 508 ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm)); 587 ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, 649 ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); 660 ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, 681 ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, 698 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, 713 ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm, [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/ |
| H A D | zlib.h | 246 ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); 353 ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); 392 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush)); 508 ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm)); 587 ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, 649 ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); 660 ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, 681 ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, 698 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm, 713 ZEXTERN int ZEXPORT deflatePending OF((z_streamp strm, [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | zlib.h | 223 extern int zlib_deflate (z_streamp strm, int flush); 301 extern int zlib_deflateEnd (z_streamp strm); 343 extern int zlib_inflate (z_streamp strm, int flush); 442 extern int zlib_inflateEnd (z_streamp strm); 503 extern int zlib_deflateReset (z_streamp strm); 561 extern int zlib_inflateReset (z_streamp strm); 571 extern int zlib_inflateIncomp (z_stream *strm); 580 #define zlib_deflateInit(strm, level) \ argument 581 zlib_deflateInit2((strm), (level), Z_DEFLATED, MAX_WBITS, \ 583 #define zlib_inflateInit(strm) \ argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/arm/kernel/ |
| H A D | head-inflate-data.c | 37 struct z_stream_s stream, *strm = &stream; in __inflate_kernel_data() local 47 strm->workspace = &state; in __inflate_kernel_data() 48 strm->next_in = in; in __inflate_kernel_data() 49 strm->avail_in = _edata_loc - __data_loc; /* upper bound */ in __inflate_kernel_data() 50 strm->next_out = _sdata; in __inflate_kernel_data() 51 strm->avail_out = _edata_loc - __data_loc; in __inflate_kernel_data() 52 zlib_inflateInit2(strm, -MAX_WBITS); in __inflate_kernel_data() 53 WS(strm)->inflate_state.wsize = 0; in __inflate_kernel_data() 54 WS(strm)->inflate_state.window = NULL; in __inflate_kernel_data() 55 rc = zlib_inflate(strm, Z_FINISH); in __inflate_kernel_data() [all …]
|
| /OK3568_Linux_fs/u-boot/include/u-boot/ |
| H A D | zlib.h | 518 ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush)); 519 ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level, 521 ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm)); 522 ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method, 526 ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm)); 527 ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, 530 ZEXTERN int ZEXPORT deflateSetHeader OF((z_streamp strm, 532 ZEXTERN int ZEXPORT deflatePrime OF((z_streamp strm, 535 ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, 538 ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm, [all …]
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | binfmt_flat.c | 201 z_stream strm; in decompress_exec() local 206 memset(&strm, 0, sizeof(strm)); in decompress_exec() 207 strm.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in decompress_exec() 208 if (!strm.workspace) in decompress_exec() 220 strm.next_in = buf; in decompress_exec() 221 strm.avail_in = ret; in decompress_exec() 222 strm.total_in = 0; in decompress_exec() 275 strm.next_in += ret; in decompress_exec() 276 strm.avail_in -= ret; in decompress_exec() 278 strm.next_out = dst; in decompress_exec() [all …]
|