/linux-master/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_main.c | 6577 bp->strm = kmalloc(sizeof(*bp->strm), GFP_KERNEL); 6578 if (bp->strm == NULL) 6581 bp->strm->workspace = vmalloc(zlib_inflate_workspacesize()); 6582 if (bp->strm->workspace == NULL) 6588 kfree(bp->strm); 6589 bp->strm = NULL; 6603 if (bp->strm) { 6604 vfree(bp->strm->workspace); 6605 kfree(bp->strm); [all...] |
H A D | bnx2x.h | 1722 struct z_stream_s *strm; member in struct:bnx2x
|
/linux-master/fs/bcachefs/ |
H A D | compress.c | 145 static inline void zlib_set_workspace(z_stream *strm, void *workspace) argument 148 strm->workspace = workspace; 172 z_stream strm = { local 181 zlib_set_workspace(&strm, workspace); 182 zlib_inflateInit2(&strm, -MAX_WBITS); 183 ret = zlib_inflate(&strm, Z_FINISH); 326 z_stream strm = { local 333 zlib_set_workspace(&strm, workspace); 334 zlib_deflateInit2(&strm, 342 if (zlib_deflate(&strm, Z_FINIS [all...] |
/linux-master/sound/soc/sh/ |
H A D | rz-ssi.c | 96 int (*transfer)(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm); 187 static void rz_ssi_set_substream(struct rz_ssi_stream *strm, argument 190 struct rz_ssi_priv *ssi = strm->priv; 194 strm->substream = substream; 199 struct rz_ssi_stream *strm) 205 ret = strm->substream && strm->substream->runtime; 211 static void rz_ssi_stream_init(struct rz_ssi_stream *strm, argument 216 rz_ssi_set_substream(strm, substream); 217 strm 198 rz_ssi_stream_is_valid(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) argument 230 rz_ssi_stream_quit(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) argument 306 rz_ssi_start(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) argument 346 rz_ssi_stop(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) argument 387 rz_ssi_pointer_update(struct rz_ssi_stream *strm, int frames) argument 411 rz_ssi_pio_recv(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) argument 464 rz_ssi_pio_send(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) argument 515 struct rz_ssi_stream *strm = NULL; local 598 rz_ssi_dma_transfer(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm) argument 658 struct rz_ssi_stream *strm = (struct rz_ssi_stream *)data; local 728 struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); local 886 struct rz_ssi_stream *strm = rz_ssi_stream_get(ssi, substream); local [all...] |
/linux-master/fs/erofs/ |
H A D | decompressor_lzma.c | 25 struct z_erofs_lzma *strm; local 28 strm = z_erofs_lzma_head; 29 if (!strm) { 37 while (strm) { 38 struct z_erofs_lzma *n = strm->next; 40 if (strm->state) 41 xz_dec_microlzma_end(strm->state); 42 kfree(strm); 44 strm = n; 58 struct z_erofs_lzma *strm local 79 struct z_erofs_lzma *strm, *head = NULL; local 158 struct z_erofs_lzma *strm; local [all...] |
H A D | decompressor_deflate.c | 22 struct z_erofs_deflate *strm; local 25 strm = z_erofs_deflate_head; 26 if (!strm) { 33 while (strm) { 34 struct z_erofs_deflate *n = strm->next; 36 vfree(strm->z.workspace); 37 kfree(strm); 39 strm = n; 52 struct z_erofs_deflate *strm; local 54 strm 106 struct z_erofs_deflate *strm; local [all...] |
/linux-master/fs/btrfs/ |
H A D | zlib.c | 27 z_stream strm; member in struct:workspace 50 kvfree(workspace->strm.workspace); 66 workspace->strm.workspace = kvzalloc(workspacesize, GFP_KERNEL | __GFP_NOWARN); 83 if (!workspace->strm.workspace || !workspace->buf) 115 if (Z_OK != zlib_deflateInit(&workspace->strm, workspace->level)) { 121 workspace->strm.total_in = 0; 122 workspace->strm.total_out = 0; 133 workspace->strm.next_in = workspace->buf; 134 workspace->strm.avail_in = 0; 135 workspace->strm [all...] |
/linux-master/drivers/net/ppp/ |
H A D | ppp_deflate.c | 30 z_stream strm; member in struct:ppp_deflate_state 65 zlib_deflateEnd(&state->strm); 66 vfree(state->strm.workspace); 105 state->strm.next_in = NULL; 107 state->strm.workspace = vmalloc(zlib_deflate_workspacesize(-w_size, 8)); 108 if (state->strm.workspace == NULL) 111 if (zlib_deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, 154 zlib_deflateReset(&state->strm); 171 zlib_deflateReset(&state->strm); 216 state->strm [all...] |
/linux-master/tools/perf/util/ |
H A D | lzma.c | 38 lzma_stream strm = LZMA_STREAM_INIT; local 52 ret = lzma_stream_decoder(&strm, UINT64_MAX, LZMA_CONCATENATED); 58 strm.next_in = NULL; 59 strm.avail_in = 0; 60 strm.next_out = buf_out; 61 strm.avail_out = sizeof(buf_out); 64 if (strm.avail_in == 0 && !feof(infile)) { 65 strm.next_in = buf_in; 66 strm.avail_in = fread(buf_in, 1, sizeof(buf_in), infile); 77 ret = lzma_code(&strm, actio [all...] |
/linux-master/lib/ |
H A D | decompress_inflate.c | 49 struct z_stream_s *strm; local 76 strm = malloc(sizeof(*strm)); 77 if (strm == NULL) { 82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : 89 if (strm->workspace == NULL) { 112 strm->next_in = zbuf + 10; 113 strm->avail_in = len - 10; 122 if (strm->avail_in == 0) { 126 --strm [all...] |
/linux-master/arch/arm/kernel/ |
H A D | head-inflate-data.c | 34 struct z_stream_s stream, *strm = &stream; local 44 strm->workspace = &state; 45 strm->next_in = in; 46 strm->avail_in = _edata_loc - __data_loc; /* upper bound */ 47 strm->next_out = _sdata; 48 strm->avail_out = _edata_loc - __data_loc; 49 zlib_inflateInit2(strm, -MAX_WBITS); 50 WS(strm)->inflate_state.wsize = 0; 51 WS(strm)->inflate_state.window = NULL; 52 rc = zlib_inflate(strm, Z_FINIS [all...] |
/linux-master/lib/zlib_deflate/ |
H A D | defutil.h | 74 z_streamp strm; /* pointer back to this zlib stream */ member in struct:deflate_state 416 * to avoid allocating a large strm->next_out buffer and copying into it. 420 z_streamp strm 424 deflate_state *s = (deflate_state *) strm->state; 428 if (len > strm->avail_out) len = strm->avail_out; 431 if (strm->next_out != NULL) { 432 memcpy(strm->next_out, s->pending_out, len); 433 strm->next_out += len; 436 strm [all...] |
H A D | deflate.c | 59 #define DEFLATE_RESET_HOOK(strm) do {} while (0) 60 #define DEFLATE_HOOK(strm, flush, bstate) 0 61 #define DEFLATE_NEED_CHECKSUM(strm) 1 78 static int read_buf (z_streamp strm, Byte *buf, unsigned size); 189 z_streamp strm, 207 if (strm == NULL) return Z_STREAM_ERROR; 209 strm->msg = NULL; 213 mem = (deflate_workspace *) strm->workspace; 248 strm->state = (struct internal_state *)s; 249 s->strm 188 zlib_deflateInit2( z_streamp strm, int level, int method, int windowBits, int memLevel, int strategy ) argument 329 zlib_deflate( z_streamp strm, int flush ) argument 503 read_buf( z_streamp strm, Byte *buf, unsigned size ) argument [all...] |
/linux-master/lib/zlib_inflate/ |
H A D | inflate.c | 22 #define INFLATE_RESET_HOOK(strm) do {} while (0) 23 #define INFLATE_TYPEDO_HOOK(strm, flush) do {} while (0) 24 #define INFLATE_NEED_UPDATEWINDOW(strm) 1 25 #define INFLATE_NEED_CHECKSUM(strm) 1 33 int zlib_inflateReset(z_streamp strm) argument 37 if (strm == NULL || strm->state == NULL) return Z_STREAM_ERROR; 38 state = (struct inflate_state *)strm->state; 39 strm->total_in = strm 59 zlib_inflateInit2(z_streamp strm, int windowBits) argument 120 zlib_updatewindow(z_streamp strm, unsigned out) argument 165 zlib_inflateSyncPacket(z_streamp strm) argument 331 zlib_inflate(z_streamp strm, int flush) argument 770 zlib_inflateEnd(z_streamp strm) argument [all...] |
H A D | inffast.c | 41 strm->avail_in >= 6 42 strm->avail_out >= 258 43 start >= strm->avail_out 57 Therefore if strm->avail_in >= 6, then there is enough input to avoid 62 requires strm->avail_out >= 258 for each loop to avoid checking for 65 - @start: inflate()'s starting value for strm->avail_out 67 void inflate_fast(z_streamp strm, unsigned start) argument 70 const unsigned char *in; /* local strm->next_in */ 72 unsigned char *out; /* local strm->next_out */ 73 unsigned char *beg; /* inflate()'s initial strm [all...] |
/linux-master/lib/zlib_dfltcc/ |
H A 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) \ 15 dfltcc_reset_deflate_state((strm)) 19 #define DEFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_deflate((strm)))
|
H A D | dfltcc_inflate.c | 14 z_streamp strm 17 struct inflate_state *state = (struct inflate_state *)strm->state; 31 void dfltcc_reset_inflate_state(z_streamp strm) { argument 32 struct inflate_state *state = (struct inflate_state *)strm->state; 40 z_streamp strm 43 struct inflate_state *state = (struct inflate_state *)strm->state; 50 z_streamp strm 53 struct inflate_state *state = (struct inflate_state *)strm->state; 56 if (!dfltcc_can_inflate(strm)) 58 if (dfltcc_was_inflate_used(strm)) 87 dfltcc_inflate( z_streamp strm, int flush, int *ret ) argument [all...] |
H A 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) \ 18 dfltcc_reset_inflate_state((strm)) 20 #define INFLATE_TYPEDO_HOOK(strm, flush) \ 21 if (dfltcc_can_inflate((strm))) { \ 25 action = dfltcc_inflate((strm), (flush), &ret); \ 33 #define INFLATE_NEED_CHECKSUM(strm) (!dfltcc_can_inflate((strm))) [all...] |
H A D | dfltcc_deflate.c | 16 z_streamp strm 19 deflate_state *state = (deflate_state *)strm->state; 42 void dfltcc_reset_deflate_state(z_streamp strm) { argument 43 deflate_state *state = (deflate_state *)strm->state; 60 z_streamp strm 63 deflate_state *state = (deflate_state *)strm->state; 65 size_t avail_in = strm->avail_in; 69 &strm->next_in, &avail_in, NULL); 73 z_streamp strm 76 deflate_state *state = (deflate_state *)strm 92 send_eobs( z_streamp strm, const struct dfltcc_param_v0 *param ) argument 119 dfltcc_deflate( z_streamp strm, int flush, block_state *result ) argument [all...] |
/linux-master/fs/squashfs/ |
H A D | zstd_wrapper.c | 51 static void zstd_free(void *strm) argument 53 struct workspace *wksp = strm; 61 static int zstd_uncompress(struct squashfs_sb_info *msblk, void *strm, argument 65 struct workspace *wksp = strm;
|
H A D | zlib_wrapper.c | 42 static void zlib_free(void *strm) argument 44 z_stream *stream = strm; 52 static int zlib_uncompress(struct squashfs_sb_info *msblk, void *strm, argument 59 z_stream *stream = strm;
|
H A D | xz_wrapper.c | 108 static void squashfs_xz_free(void *strm) argument 110 struct squashfs_xz *stream = strm; 119 static int squashfs_xz_uncompress(struct squashfs_sb_info *msblk, void *strm, argument 126 struct squashfs_xz *stream = strm;
|
H A D | lzo_wrapper.c | 53 static void lzo_free(void *strm) argument 55 struct squashfs_lzo *stream = strm; 65 static int lzo_uncompress(struct squashfs_sb_info *msblk, void *strm, argument 71 struct squashfs_lzo *stream = strm;
|
H A D | lz4_wrapper.c | 79 static void lz4_free(void *strm) argument 81 struct squashfs_lz4 *stream = strm; 91 static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, argument 97 struct squashfs_lz4 *stream = strm;
|
/linux-master/fs/ |
H A D | binfmt_flat.c | 184 z_stream strm; local 189 memset(&strm, 0, sizeof(strm)); 190 strm.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); 191 if (!strm.workspace) 203 strm.next_in = buf; 204 strm.avail_in = ret; 205 strm.total_in = 0; 258 strm.next_in += ret; 259 strm [all...] |