| /freebsd-12.1/usr.bin/gzip/ |
| H A D | zuncompress.c | 257 for (zs->u.r.zs_code = 255; zs->u.r.zs_code >= 0; zs->u.r.zs_code--) { in zread() 277 zs->u.r.zs_incode = zs->u.r.zs_code; in zread() 288 zs->u.r.zs_code = zs->u.r.zs_oldcode; in zread() 302 *zs->u.r.zs_stackp++ = zs->u.r.zs_finchar = tab_suffixof(zs->u.r.zs_code); in zread() 312 if ((zs->u.r.zs_code = zs->zs_free_ent) < zs->zs_maxmaxcode && in zread() 341 if (zs->zs_clear_flg > 0 || zs->u.r.zs_roffset >= zs->u.r.zs_size || in getcode() 342 zs->zs_free_ent > zs->zs_maxcode) { in getcode() 351 zs->zs_maxcode = zs->zs_maxmaxcode; in getcode() 362 zs->u.r.zs_size = fread(zs->u.r.zs_gbuf + i, 1, zs->zs_n_bits - i, zs->zs_fp); in getcode() 371 zs->u.r.zs_size = (zs->u.r.zs_size << 3) - (zs->zs_n_bits - 1); in getcode() [all …]
|
| /freebsd-12.1/sys/contrib/zstd/contrib/seekable_format/ |
| H A D | zstdseek_decompress.c | 175 memset(zs, 0, sizeof(*zs)); in ZSTD_seekable_create() 179 free(zs); in ZSTD_seekable_create() 183 return zs; in ZSTD_seekable_create() 191 free(zs); in ZSTD_seekable_free() 205 if (pos >= zs->seekTable.entries[zs->seekTable.tableLen].dOffset) { in ZSTD_seekable_offsetToFrameIndex() 362 zs->src = src; in ZSTD_seekable_initAdvanced() 384 CHECK_IO(zs->src.seek(zs->src.opaque, in ZSTD_seekable_decompress() 387 zs->in = (ZSTD_inBuffer){zs->inBuff, 0, 0}; in ZSTD_seekable_decompress() 404 toRead = ZSTD_decompressStream(zs->dstream, &outTmp, &zs->in); in ZSTD_seekable_decompress() 433 if (zs->in.pos == zs->in.size) { in ZSTD_seekable_decompress() [all …]
|
| H A D | zstd_seekable.h | 153 ZSTDLIB_API size_t ZSTD_seekable_free(ZSTD_seekable* zs); 156 ZSTDLIB_API size_t ZSTD_seekable_initBuff(ZSTD_seekable* zs, const void* src, size_t srcSize); 157 ZSTDLIB_API size_t ZSTD_seekable_initFile(ZSTD_seekable* zs, FILE* src); 158 ZSTDLIB_API size_t ZSTD_seekable_decompress(ZSTD_seekable* zs, void* dst, size_t dstSize, unsigned … 159 ZSTDLIB_API size_t ZSTD_seekable_decompressFrame(ZSTD_seekable* zs, void* dst, size_t dstSize, unsi… 163 ZSTDLIB_API unsigned ZSTD_seekable_getNumFrames(ZSTD_seekable* const zs); 164 ZSTDLIB_API unsigned long long ZSTD_seekable_getFrameCompressedOffset(ZSTD_seekable* const zs, unsi… 166 ZSTDLIB_API size_t ZSTD_seekable_getFrameCompressedSize(ZSTD_seekable* const zs, unsigned frameInde… 167 ZSTDLIB_API size_t ZSTD_seekable_getFrameDecompressedSize(ZSTD_seekable* const zs, unsigned frameIn… 168 ZSTDLIB_API unsigned ZSTD_seekable_offsetToFrameIndex(ZSTD_seekable* const zs, unsigned long long o… [all …]
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| H A D | dmu_zfetch.c | 137 kmem_free(zs, sizeof (*zs)); in dmu_zfetch_stream_remove() 147 zstream_t *zs; in dmu_zfetch_fini() local 179 zs != NULL; zs = zs_next) { in dmu_zfetch_stream_create() 204 zstream_t *zs = kmem_zalloc(sizeof (*zs), KM_SLEEP); in dmu_zfetch_stream_create() local 205 zs->zs_blkid = blkid; in dmu_zfetch_stream_create() 225 zstream_t *zs; in dmu_zfetch() local 259 for (zs = list_head(&zf->zf_stream); zs != NULL; in dmu_zfetch() 260 zs = list_next(&zf->zf_stream, zs)) { in dmu_zfetch() 261 if (blkid == zs->zs_blkid || blkid + 1 == zs->zs_blkid) { in dmu_zfetch() 284 if (zs == NULL) { in dmu_zfetch() [all …]
|
| H A D | zap.c | 1251 zap_leaf_stats(zap, l, zs); in zap_stats_ptrtbl() 1283 fzap_get_stats(zap_t *zap, zap_stats_t *zs) in fzap_get_stats() argument 1286 zs->zs_blocksize = 1ULL << bs; in fzap_get_stats() 1291 zs->zs_num_leafs = zap_f_phys(zap)->zap_num_leafs; in fzap_get_stats() 1293 zs->zs_num_blocks = zap_f_phys(zap)->zap_freeblk; in fzap_get_stats() 1294 zs->zs_block_type = zap_f_phys(zap)->zap_block_type; in fzap_get_stats() 1295 zs->zs_magic = zap_f_phys(zap)->zap_magic; in fzap_get_stats() 1296 zs->zs_salt = zap_f_phys(zap)->zap_salt; in fzap_get_stats() 1303 zs->zs_ptrtbl_blks_copied = in fzap_get_stats() 1312 1 << ZAP_EMBEDDED_PTRTBL_SHIFT(zap), zs); in fzap_get_stats() [all …]
|
| H A D | trim_map.c | 303 zio_t zsearch, *zs; in trim_map_free_locked() local 310 zs = avl_find(&tm->tm_inflight_writes, &zsearch, NULL); in trim_map_free_locked() 311 if (zs == NULL) { in trim_map_free_locked() 315 if (start < zs->io_offset) in trim_map_free_locked() 316 trim_map_free_locked(tm, start, zs->io_offset, txg); in trim_map_free_locked() 317 if (zs->io_offset + zs->io_size < end) in trim_map_free_locked() 318 trim_map_free_locked(tm, zs->io_offset + zs->io_size, end, txg); in trim_map_free_locked()
|
| H A D | zap_leaf.c | 809 zap_leaf_stats(zap_t *zap, zap_leaf_t *l, zap_stats_t *zs) in zap_leaf_stats() argument 814 zs->zs_leafs_with_2n_pointers[n]++; in zap_leaf_stats() 819 zs->zs_blocks_with_n5_entries[n]++; in zap_leaf_stats() 825 zs->zs_blocks_n_tenths_full[n]++; in zap_leaf_stats() 839 zs->zs_entries_using_n_chunks[n]++; in zap_leaf_stats() 847 zs->zs_buckets_with_n_entries[n]++; in zap_leaf_stats()
|
| /freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/zmod/ |
| H A D | zmod.c | 42 z_stream zs; in z_uncompress() local 45 bzero(&zs, sizeof (zs)); in z_uncompress() 47 zs.avail_in = srclen; in z_uncompress() 48 zs.next_out = dst; in z_uncompress() 49 zs.avail_out = *dstlen; in z_uncompress() 64 *dstlen = zs.total_out; in z_uncompress() 73 z_stream zs; in z_compress_level() local 76 bzero(&zs, sizeof (zs)); in z_compress_level() 78 zs.avail_in = srclen; in z_compress_level() 79 zs.next_out = dst; in z_compress_level() [all …]
|
| /freebsd-12.1/usr.bin/compress/ |
| H A D | zopen.c | 144 #define fp zs->zs_fp 241 struct s_zstate *zs; in zwrite() local 249 zs = cookie; in zwrite() 327 struct s_zstate *zs; in zclose() local 330 zs = cookie; in zclose() 334 free(zs); in zclose() 340 free(zs); in zclose() 345 free(zs); in zclose() 461 struct s_zstate *zs; in zread() local 467 zs = cookie; in zread() [all …]
|
| /freebsd-12.1/usr.sbin/fifolog/lib/ |
| H A D | fifolog_reader.c | 77 i = inflateInit(fr->ff->zs); in fifolog_reader_open() 256 z_stream *zs; in fifolog_reader_process() local 259 zs = fr->ff->zs; in fifolog_reader_process() 276 zs->avail_in -= in fifolog_reader_process() 279 i = inflateReset(zs); in fifolog_reader_process() 281 zs->next_out = fr->obuf; in fifolog_reader_process() 286 zs->next_in += 4; in fifolog_reader_process() 287 zs->avail_in -= 4; in fifolog_reader_process() 291 i = inflate(zs, 0); in fifolog_reader_process() 297 zs->avail_in, in fifolog_reader_process() [all …]
|
| H A D | fifolog_write_poll.c | 72 assert(f->ff->zs->next_out + f->ff->zs->avail_out == \ in fifolog_write_assert() 171 f->ff->zs->next_out = f->obuf + 9; in fifolog_write_open() 172 f->ff->zs->avail_out = f->obufsize - 9; in fifolog_write_open() 245 f->ff->zs->next_out = f->obuf + 5; in fifolog_write_output() 246 f->ff->zs->avail_out = f->obufsize - 5; in fifolog_write_output() 273 f->ff->zs->avail_in = f->ibufptr; in fifolog_write_gzip() 274 f->ff->zs->next_in = f->ibuf; in fifolog_write_gzip() 277 i = deflate(f->ff->zs, fl); in fifolog_write_gzip() 286 assert(f->ff->zs->avail_in == 0); in fifolog_write_gzip() 290 f->ff->zs->next_out = f->obuf + 9; in fifolog_write_gzip() [all …]
|
| H A D | fifolog_int.c | 130 f->zs = calloc(1, sizeof(*f->zs)); in fifolog_int_open_i() 131 if (f->zs == NULL) in fifolog_int_open_i() 174 if (f->zs != NULL) in fifolog_int_close() 175 free(f->zs); in fifolog_int_close()
|
| H A D | libfifolog_int.h | 39 z_stream *zs; member
|
| /freebsd-12.1/sys/geom/uzip/ |
| H A D | g_uzip_zlib.c | 46 z_stream zs; member 59 inflateEnd(&zp->zs); in g_uzip_zlib_free() 72 zp->zs.next_in = ibp; in g_uzip_zlib_decompress() 73 zp->zs.avail_in = ilen; in g_uzip_zlib_decompress() 74 zp->zs.next_out = obp; in g_uzip_zlib_decompress() 75 zp->zs.avail_out = zp->blksz; in g_uzip_zlib_decompress() 77 err = (inflate(&zp->zs, Z_FINISH) != Z_STREAM_END) ? 1 : 0; in g_uzip_zlib_decompress() 93 if (inflateReset(&zp->zs) != Z_OK) { in g_uzip_zlib_rewind() 113 zp->zs.zalloc = z_alloc; in g_uzip_zlib_ctor() 114 zp->zs.zfree = z_free; in g_uzip_zlib_ctor() [all …]
|
| /freebsd-12.1/sys/kern/ |
| H A D | kern_ctf.c | 261 z_stream zs; local 271 bzero(&zs, sizeof(zs)); 272 zs.zalloc = z_alloc; 273 zs.zfree = z_free; 275 if (inflateInit(&zs) != Z_OK) { 280 zs.avail_in = shdr[i].sh_size - sizeof(ctf_hdr); 281 zs.next_in = ((uint8_t *) raw) + sizeof(ctf_hdr); 282 zs.avail_out = sz - sizeof(ctf_hdr); 283 zs.next_out = ((uint8_t *) ctftab) + sizeof(ctf_hdr); 284 ret = inflate(&zs, Z_FINISH); [all …]
|
| /freebsd-12.1/contrib/ntp/libparse/ |
| H A D | parsesolaris.c | 876 register struct zscom *zs; in init_zs_linemon() local 885 if (!zs) in init_zs_linemon() 911 mutex_enter(zs->zs_excl); in init_zs_linemon() 927 mutex_exit(zs->zs_excl); in init_zs_linemon() 946 register struct zscom *zs; in close_zs_linemon() local 950 if (!zs) in close_zs_linemon() 961 mutex_enter(zs->zs_excl); in close_zs_linemon() 968 zs->zs_xsint = zs->zs_ops->zsop_xsint; in close_zs_linemon() 970 mutex_exit(zs->zs_excl); in close_zs_linemon() 988 struct zscom *zs in zs_xsisr() argument [all …]
|
| H A D | parsestreams.c | 1022 register struct zscom *zs; in init_zs_linemon() local 1031 if (!zs) in init_zs_linemon() 1063 szs->zsops = *zs->zs_ops; in init_zs_linemon() 1065 szs->oldzsops = zs->zs_ops; in init_zs_linemon() 1066 emergencyzs = zs->zs_ops; in init_zs_linemon() 1068 zsopinit(zs, &szs->zsops); /* hook it up */ in init_zs_linemon() 1088 register struct zscom *zs; in close_zs_linemon() local 1092 if (!zs) in close_zs_linemon() 1128 struct zscom *zs in zs_xsisr() argument 1292 return zsisr(zs); in zs_xsisr() [all …]
|
| /freebsd-12.1/lib/msun/src/ |
| H A D | s_fmal.c | 170 long double xs, ys, zs, adj; in fmal() local 192 zs = frexpl(z, &ez); in fmal() 226 zs = ldexpl(zs, -spread); in fmal() 228 zs = copysignl(LDBL_MIN, zs); in fmal() 243 r = dd_add(xy.hi, zs); in fmal() 253 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */ in fmal()
|
| H A D | s_fma.c | 182 double xs, ys, zs, adj; in fma() local 204 zs = frexp(z, &ez); in fma() 238 zs = ldexp(zs, -spread); in fma() 240 zs = copysign(DBL_MIN, zs); in fma() 255 r = dd_add(xy.hi, zs); in fma() 265 volatile double vzs = zs; /* XXX gcc CSE bug workaround */ in fma()
|
| /freebsd-12.1/contrib/gdtoa/ |
| H A D | dmisc.c | 115 ULong si, z, zs; local 149 zs = (si >> 16) * q + (ys >> 16); 150 carry = zs >> 16; 153 z = (*bx >> 16) - (zs & 0xffff) - borrow; 190 zs = (si >> 16) + (ys >> 16); 191 carry = zs >> 16; 194 z = (*bx >> 16) - (zs & 0xffff) - borrow;
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/ztest/ |
| H A D | ztest.c | 2937 ++zs->zs_splits; in ztest_split_pool() 2938 --zs->zs_mirrors; in ztest_split_pool() 5840 delta = zs->zs_thread_stop - zs->zs_thread_start + in ztest_deadman_thread() 5904 ztest_kill(zs); in ztest_thread() 6073 zs->zs_thread_stop = MIN(zs->zs_thread_stop, zs->zs_proc_stop); in ztest_run() 6074 zs->zs_thread_kill = zs->zs_thread_stop; in ztest_run() 6383 zs->zs_splits = 0; in ztest_init() 6591 ztest_init(zs); in ztest_run_init() 6656 ztest_run(zs); in main() 6693 if (zs->zs_proc_start + zi->zi_interval[0] > zs->zs_proc_stop) in main() [all …]
|
| /freebsd-12.1/contrib/bzip2/ |
| H A D | bzlib.c | 266 #define ADD_CHAR_TO_BLOCK(zs,zchh0) \ argument 270 if (zchh != zs->state_in_ch && \ 271 zs->state_in_len == 1) { \ 272 UChar ch = (UChar)(zs->state_in_ch); \ 273 BZ_UPDATE_CRC( zs->blockCRC, ch ); \ 274 zs->inUse[zs->state_in_ch] = True; \ 275 zs->block[zs->nblock] = (UChar)ch; \ 276 zs->nblock++; \ 277 zs->state_in_ch = zchh; \ 281 if (zchh != zs->state_in_ch || \ [all …]
|
| /freebsd-12.1/crypto/openssh/regress/unittests/sshkey/testdata/ |
| H A D | dsa_n_pw | 18 TR0PaEHDRNZqAX4YxqujnWrGKuRJhuz0eUvp7fZvbWHtiAMKV7368kkeUmkOHanb+TS+zs
|
| /freebsd-12.1/contrib/unbound/smallapp/ |
| H A D | unbound-checkconf.c | 189 struct local_zones* zs; in localzonechecks() local 190 if(!(zs = local_zones_create())) in localzonechecks() 192 if(!local_zones_apply_cfg(zs, cfg)) in localzonechecks() 194 local_zones_delete(zs); in localzonechecks()
|
| /freebsd-12.1/cddl/contrib/opensolaris/cmd/zdb/ |
| H A D | zdb.c | 335 zap_stats_t zs; in dump_zap_stats() local 341 if (zs.zs_ptrtbl_len == 0) { in dump_zap_stats() 342 ASSERT(zs.zs_num_blocks == 1); in dump_zap_stats() 344 (u_longlong_t)zs.zs_blocksize, in dump_zap_stats() 353 (u_longlong_t)zs.zs_ptrtbl_len); in dump_zap_stats() 366 (u_longlong_t)zs.zs_num_entries); in dump_zap_stats() 368 (u_longlong_t)zs.zs_num_leafs); in dump_zap_stats() 370 (u_longlong_t)zs.zs_num_blocks); in dump_zap_stats() 372 (u_longlong_t)zs.zs_block_type); in dump_zap_stats() 374 (u_longlong_t)zs.zs_magic); in dump_zap_stats() [all …]
|