Home
last modified time | relevance | path

Searched refs:strm (Results 1 – 25 of 35) sorted by relevance

12

/illumos-gate/usr/src/common/bzip2/
H A Dbzlib.c232 ( bz_stream* strm, in BZ_API()
242 if (strm == NULL || in BZ_API()
248 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ_API()
249 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ_API()
253 s->strm = strm; in BZ_API()
286 strm->state = s; in BZ_API()
287 strm->total_in_lo32 = 0; in BZ_API()
288 strm->total_in_hi32 = 0; in BZ_API()
289 strm->total_out_lo32 = 0; in BZ_API()
290 strm->total_out_hi32 = 0; in BZ_API()
[all …]
H A DSolaris.README.txt180 +int BZ_API(BZ2_bzCompressReset) ( bz_stream *strm )
182 + EState* s = strm->state;
187 + s->strm = strm;
200 + strm->state = s;
201 + strm->total_in_lo32 = 0;
202 + strm->total_in_hi32 = 0;
203 + strm->total_out_lo32 = 0;
204 + strm->total_out_hi32 = 0;
210 +int BZ_API(BZ2_bzDecompressReset) ( bz_stream* strm )
212 + DState* s = strm->state;
[all …]
H A Dbzlib.h106 bz_stream* strm,
117 bz_stream* strm
121 bz_stream* strm,
126 bz_stream* strm
130 bz_stream *strm,
136 bz_stream* strm
140 bz_stream* strm
144 bz_stream *strm
H A Dbzlib_private.h107 #define BZALLOC(nnn) (strm->bzalloc)(strm->opaque,(nnn),1)
108 #define BZFREE(ppp) (strm->bzfree)(strm->opaque,(ppp))
204 bz_stream* strm; member
355 bz_stream* strm; member
H A Ddecompress.c55 if (s->strm->avail_in == 0) RETURN(BZ_OK); \
59 (*((UChar*)(s->strm->next_in)))); \
61 s->strm->next_in++; \
62 s->strm->avail_in--; \
63 s->strm->total_in_lo32++; \
64 if (s->strm->total_in_lo32 == 0) \
65 s->strm->total_in_hi32++; \
112 bz_stream* strm = s->strm; in BZ2_decompress() local
/illumos-gate/usr/src/contrib/zlib/
H A Ddeflate.c74 local int deflateStateCheck OF((z_streamp strm));
86 local void flush_pending OF((z_streamp strm));
87 local unsigned read_buf OF((z_streamp strm, Bytef *buf, unsigned size));
229 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument
230 z_streamp strm; in deflateInit_()
235 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL,
241 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument
243 z_streamp strm; in deflateInit2_()
260 if (strm == Z_NULL) return Z_STREAM_ERROR;
262 strm->msg = Z_NULL;
[all …]
H A Dinflate.c95 local int inflateStateCheck OF((z_streamp strm));
97 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end,
105 local int inflateStateCheck(z_streamp strm) in inflateStateCheck() argument
108 if (strm == Z_NULL || in inflateStateCheck()
109 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) in inflateStateCheck()
111 state = (struct inflate_state FAR *)strm->state; in inflateStateCheck()
112 if (state == Z_NULL || state->strm != strm || in inflateStateCheck()
118 int ZEXPORT inflateResetKeep(z_streamp strm) in inflateResetKeep() argument
122 if (inflateStateCheck(strm)) return Z_STREAM_ERROR; in inflateResetKeep()
123 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep()
[all …]
H A Dinfback.c28 int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits, in inflateBackInit_() argument
36 if (strm == Z_NULL || window == Z_NULL || in inflateBackInit_()
39 strm->msg = Z_NULL; /* in case we return an error */ in inflateBackInit_()
40 if (strm->zalloc == (alloc_func)0) { in inflateBackInit_()
44 strm->zalloc = zcalloc; in inflateBackInit_()
45 strm->opaque = (voidpf)0; in inflateBackInit_()
48 if (strm->zfree == (free_func)0) in inflateBackInit_()
52 strm->zfree = zcfree; in inflateBackInit_()
54 state = (struct inflate_state FAR *)ZALLOC(strm, 1, in inflateBackInit_()
58 strm->state = (struct internal_state FAR *)state; in inflateBackInit_()
[all …]
H A Dzlib.h250 ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
363 ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
400 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
520 ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
610 ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
654 ZEXTERN int ZEXPORT deflateGetDictionary OF((z_streamp strm,
694 ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm));
705 ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
743 ZEXTERN int ZEXPORT deflateTune OF((z_streamp strm,
760 ZEXTERN uLong ZEXPORT deflateBound OF((z_streamp strm,
[all …]
H A Dinffast.c50 void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) in inflate_fast() argument
79 state = (struct inflate_state FAR *)strm->state; in inflate_fast()
80 in = strm->next_in; in inflate_fast()
81 last = in + (strm->avail_in - 5); in inflate_fast()
82 out = strm->next_out; in inflate_fast()
83 beg = out - (start - strm->avail_out); in inflate_fast()
84 end = out + (strm->avail_out - 257); in inflate_fast()
159 strm->msg = (char *)"invalid distance too far back"; in inflate_fast()
172 strm->msg = in inflate_fast()
269 strm->msg = (char *)"invalid distance code"; in inflate_fast()
[all …]
H A Dzutil.h59 #define ERR_RETURN(strm,err) \ argument
60 return (strm->msg = ERR_MSG(err), (err))
263 #define ZALLOC(strm, items, size) \ argument
264 (*((strm)->zalloc))((strm)->opaque, (items), (size))
265 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) argument
H A Dinffast.h11 void ZLIB_INTERNAL inflate_fast OF((z_streamp strm, unsigned start));
H A Dinflate.h83 z_streamp strm; /* pointer back to this zlib stream */ member
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Ddeflate.c66 z_stream strm; member
220 state->strm.zalloc = (alloc_func)z_alloc; in z_comp_alloc()
221 state->strm.zfree = (free_func)z_free; in z_comp_alloc()
223 if (deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, in z_comp_alloc()
246 (void) deflateEnd(&state->strm); in z_comp_free()
278 (void) deflateReset(&state->strm); in z_comp_init()
293 (void) deflateReset(&state->strm); in z_comp_reset()
423 state->strm.next_out = wptr; in z_compress()
424 state->strm.avail_out = wspace - (PPP_HDRLEN + 2); in z_compress()
426 state->strm.next_out = NULL; in z_compress()
[all …]
H A Dzlib.h543 ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
627 ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
657 ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
720 ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
799 ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
856 ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm));
868 ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm, int level, int strategy));
888 ZEXTERN int ZEXPORT deflateOutputPending OF((z_streamp strm));
932 ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
952 ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
[all …]
H A Dzlib.c108 #define ERR_RETURN(strm, err) \ argument
109 return (strm->msg = ERR_MSG(err), (err))
266 #define ZALLOC(strm, items, size) \ argument
267 (*((strm)->zalloc))((strm)->opaque, (items), (size))
268 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) argument
362 z_streamp strm; /* pointer back to this zlib stream */ member
717 local void flush_pending OF((z_streamp strm));
718 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size));
835 deflateInit_(strm, level, version, stream_size) in deflateInit_() argument
836 z_streamp strm; in deflateInit_()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c56 z_stream strm; member
151 state->strm.next_out = NULL;
152 state->strm.zalloc = (alloc_func) z_alloc;
153 state->strm.zfree = (free_func) z_free;
154 if (inflateInit2(&state->strm, -w_size) != Z_OK) {
170 inflateEnd(&state->strm);
195 inflateReset(&state->strm);
207 inflateReset(&state->strm);
259 state->strm.next_in = rptr;
260 state->strm.avail_in = mi + inlen - rptr;
[all …]
H A Dzlib.h251 extern int deflateInit OF((z_stream *strm, int level));
270 extern int deflate OF((z_stream *strm, int flush));
347 extern int deflateEnd OF((z_stream *strm));
359 extern int inflateInit OF((z_stream *strm));
373 extern int inflate OF((z_stream *strm, int flush));
424 extern int inflateEnd OF((z_stream *strm));
441 extern int deflateInit2 OF((z_stream *strm,
524 extern int deflateReset OF((z_stream *strm));
535 extern int inflateInit2 OF((z_stream *strm,
568 extern int inflateSync OF((z_stream *strm));
[all …]
H A Dzlib.c54 #define ERR_RETURN(strm,err) return (strm->msg=z_errmsg[1-err], err) argument
126 #define ZALLOC(strm, items, size) \ argument
127 (*((strm)->zalloc))((strm)->opaque, (items), (size))
128 #define ZFREE(strm, addr, size) \ argument
129 (*((strm)->zfree))((strm)->opaque, (voidpf)(addr), (size))
217 z_stream *strm; /* pointer back to this zlib stream */ member
536 local void flush_pending OF((z_stream *strm));
537 local int read_buf OF((z_stream *strm, charf *buf, unsigned size));
579 int deflateInit (strm, level) in deflateInit() argument
580 z_stream *strm; in deflateInit()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dratz.c575 #define inflateInit2(strm, windowBits) \ argument
576 inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream))
804 #define ZALLOC(strm, items, size) \ argument
805 (*((strm)->zalloc))((strm)->opaque, (items), (size))
806 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr)) argument
1305 z_streamp strm; /* pointer back to this zlib stream */ member
2064 void inflate_fast(strm, start) in inflate_fast() argument
2065 z_streamp strm; in inflate_fast()
2095 state = (struct inflate_state FAR *)strm->state;
2096 in = strm->next_in - OFF;
[all …]
/illumos-gate/usr/src/uts/common/zmod/
H A Dzlib_lint.c63 inflate(z_streamp strm, int flush) in inflate() argument
70 inflateInit2_(z_streamp strm, int window, const char *version, int size) in inflateInit2_() argument
77 inflateEnd(z_streamp strm) in inflateEnd() argument
84 inflateReset(z_streamp strm) in inflateReset() argument
/illumos-gate/usr/src/lib/libgen/common/
H A Dcopylist.c46 FILE *strm; in common_copylist() local
62 if ((strm = fopen(filenm, "rF")) == NULL) { in common_copylist()
65 for (p = ptr; p < ptr + size && (c = getc(strm)) != EOF; p++) { in common_copylist()
71 (void) fclose(strm); in common_copylist()
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_main.c108 FILE *strm = interactive ? stdout : stderr; in vmessage() local
119 if (vfprintf(strm, fmt, va) < 0 && interactive) in vmessage()
124 (void) fprintf(strm, ": %s.\n", strerror(errno)); in vmessage()
/illumos-gate/usr/src/cmd/savecore/
H A Dsavecore.c724 bz_stream strm; member
1007 if (s->strm.avail_out == 0) { in bz2decompress()
1008 s->strm.next_out = buf; in bz2decompress()
1009 s->strm.avail_out = size; in bz2decompress()
1011 while (s->strm.avail_in > 0) { in bz2decompress()
1012 rc = BZ2_bzDecompress(&s->strm); in bz2decompress()
1014 rc = BZ2_bzDecompressReset(&s->strm); in bz2decompress()
1022 if (s->strm.avail_out == 0) in bz2decompress()
1025 return (s->strm.avail_out == 0); in bz2decompress()
1042 rc = BZ2_bzDecompressInit(&s->strm, 0, 0); in bz2block()
[all …]
/illumos-gate/usr/src/cmd/bhyve/common/
H A Dpci_hda.c613 uint8_t strm = 0; in hda_stream_start() local
662 strm = (sdctl >> 20) & 0x0f; in hda_stream_start()
665 DPRINTF("strm: 0x%x, dir: 0x%x", strm, dir); in hda_stream_start()
667 sc->stream_map[dir][strm] = stream_ind; in hda_stream_start()
668 st->stream = strm; in hda_stream_start()
677 hda_notify_codecs(sc, 1, strm, dir); in hda_stream_start()
686 uint8_t strm = st->stream; in hda_stream_stop() local
689 DPRINTF("stream: 0x%x, strm: 0x%x, dir: 0x%x", stream_ind, strm, dir); in hda_stream_stop()
693 hda_notify_codecs(sc, 0, strm, dir); in hda_stream_stop()

12