Home
last modified time | relevance | path

Searched refs:zs (Results 1 – 25 of 40) sorted by relevance

12

/NextBSD/usr.bin/gzip/
HDzuncompress.c43 #define tab_prefixof(i) (zs->zs_codetab[i])
44 #define tab_suffixof(i) ((char_type *)(zs->zs_htab))[i]
128 static code_int getcode(struct s_zstate *zs);
164 zclose(void *zs) in zclose() argument
166 free(zs); in zclose()
174 struct s_zstate *zs; in zdopen() local
176 if ((zs = calloc(1, sizeof(struct s_zstate))) == NULL) in zdopen()
179 zs->zs_state = S_START; in zdopen()
182 zs->zs_hsize = HSIZE; /* For dynamic table sizing. */ in zdopen()
183 zs->zs_free_ent = 0; /* First unused entry. */ in zdopen()
[all …]
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
HDdmu_zfetch.c128 dmu_zfetch_stream_remove(zfetch_t *zf, zstream_t *zs) in dmu_zfetch_stream_remove() argument
131 list_remove(&zf->zf_stream, zs); in dmu_zfetch_stream_remove()
132 mutex_destroy(&zs->zs_lock); in dmu_zfetch_stream_remove()
133 kmem_free(zs, sizeof (*zs)); in dmu_zfetch_stream_remove()
143 zstream_t *zs; in dmu_zfetch_fini() local
148 while ((zs = list_head(&zf->zf_stream)) != NULL) in dmu_zfetch_fini()
149 dmu_zfetch_stream_remove(zf, zs); in dmu_zfetch_fini()
174 for (zstream_t *zs = list_head(&zf->zf_stream); in dmu_zfetch_stream_create() local
175 zs != NULL; zs = zs_next) { in dmu_zfetch_stream_create()
176 zs_next = list_next(&zf->zf_stream, zs); in dmu_zfetch_stream_create()
[all …]
HDzap.c1231 zap_stats_ptrtbl(zap_t *zap, uint64_t *tbl, int len, zap_stats_t *zs) in zap_stats_ptrtbl() argument
1250 zap_leaf_stats(zap, l, zs); in zap_stats_ptrtbl()
1282 fzap_get_stats(zap_t *zap, zap_stats_t *zs) in fzap_get_stats() argument
1285 zs->zs_blocksize = 1ULL << bs; in fzap_get_stats()
1290 zs->zs_num_leafs = zap_f_phys(zap)->zap_num_leafs; in fzap_get_stats()
1291 zs->zs_num_entries = zap_f_phys(zap)->zap_num_entries; in fzap_get_stats()
1292 zs->zs_num_blocks = zap_f_phys(zap)->zap_freeblk; in fzap_get_stats()
1293 zs->zs_block_type = zap_f_phys(zap)->zap_block_type; in fzap_get_stats()
1294 zs->zs_magic = zap_f_phys(zap)->zap_magic; in fzap_get_stats()
1295 zs->zs_salt = zap_f_phys(zap)->zap_salt; in fzap_get_stats()
[all …]
HDtrim_map.c303 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()
HDzap_leaf.c842 zap_leaf_stats(zap_t *zap, zap_leaf_t *l, zap_stats_t *zs) in zap_leaf_stats() argument
849 zs->zs_leafs_with_2n_pointers[n]++; in zap_leaf_stats()
854 zs->zs_blocks_with_n5_entries[n]++; in zap_leaf_stats()
860 zs->zs_blocks_n_tenths_full[n]++; in zap_leaf_stats()
874 zs->zs_entries_using_n_chunks[n]++; in zap_leaf_stats()
882 zs->zs_buckets_with_n_entries[n]++; in zap_leaf_stats()
HDzap_micro.c1374 zap_get_stats(objset_t *os, uint64_t zapobj, zap_stats_t *zs) in zap_get_stats() argument
1383 bzero(zs, sizeof (zap_stats_t)); in zap_get_stats()
1386 zs->zs_blocksize = zap->zap_dbuf->db_size; in zap_get_stats()
1387 zs->zs_num_entries = zap->zap_m.zap_num_entries; in zap_get_stats()
1388 zs->zs_num_blocks = 1; in zap_get_stats()
1390 fzap_get_stats(zap, zs); in zap_get_stats()
/NextBSD/sys/cddl/contrib/opensolaris/uts/common/zmod/
HDzmod.c42 z_stream zs; in z_uncompress() local
45 bzero(&zs, sizeof (zs)); in z_uncompress()
46 zs.next_in = (uchar_t *)src; 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()
56 if ((err = inflateInit2(&zs, DEF_WBITS | 0x20)) != Z_OK) in z_uncompress()
59 if ((err = inflate(&zs, Z_FINISH)) != Z_STREAM_END) { in z_uncompress()
60 (void) inflateEnd(&zs); in z_uncompress()
64 *dstlen = zs.total_out; in z_uncompress()
[all …]
/NextBSD/usr.bin/compress/
HDzopen.c142 #define fp zs->zs_fp
143 #define zmode zs->zs_mode
144 #define state zs->zs_state
145 #define n_bits zs->zs_n_bits
146 #define maxbits zs->zs_maxbits
147 #define maxcode zs->zs_maxcode
148 #define maxmaxcode zs->zs_maxmaxcode
149 #define htab zs->zs_htab
150 #define codetab zs->zs_codetab
151 #define hsize zs->zs_hsize
[all …]
/NextBSD/gnu/usr.bin/rcs/lib/
HDpartime.c85 #define zs(t,s) {s, hr60(t)} macro
86 #define zd(t,s,d) zs(t, s), zs((t)+100, d)
89 zs(-1000, "hst"), /* Hawaii */
98 zs( 000, "utc"), /* Coordinated Universal */
99 zs( 000, "cut"), /* " */
100 zs( 000, "ut"), /* Universal */
101 zs( 000, "z"), /* Zulu (required by ISO 8601) */
103 zs( 000, "wet"), /* Western Europe */
104 zs( 100, "met"), /* Middle Europe */
105 zs( 100, "cet"), /* Central Europe */
[all …]
/NextBSD/usr.sbin/fifolog/lib/
HDfifolog_reader.c75 i = inflateInit(fr->ff->zs); in fifolog_reader_open()
213 q = fr->obuf + (fr->olen - fr->ff->zs->avail_out); in fifolog_reader_chop()
254 z_stream *zs; in fifolog_reader_process() local
257 zs = fr->ff->zs; in fifolog_reader_process()
269 zs->avail_in = fr->ff->recsize - 5; in fifolog_reader_process()
270 zs->next_in = fr->ff->recbuf + 5; in fifolog_reader_process()
272 zs->avail_in -= fr->ff->recbuf[fr->ff->recsize - 1]; in fifolog_reader_process()
274 zs->avail_in -= in fifolog_reader_process()
277 i = inflateReset(zs); in fifolog_reader_process()
279 zs->next_out = fr->obuf; in fifolog_reader_process()
[all …]
HDfifolog_write_poll.c70 assert(f->ff->zs->next_out + f->ff->zs->avail_out == \ in fifolog_write_assert()
164 i = deflateInit(f->ff->zs, (int)f->compression); in fifolog_write_open()
169 f->ff->zs->next_out = f->obuf + 9; in fifolog_write_open()
170 f->ff->zs->avail_out = f->obufsize - 9; in fifolog_write_open()
189 long h, l = f->ff->zs->next_out - f->obuf; in fifolog_write_output()
243 f->ff->zs->next_out = f->obuf + 5; in fifolog_write_output()
244 f->ff->zs->avail_out = f->obufsize - 5; in fifolog_write_output()
271 f->ff->zs->avail_in = f->ibufptr; in fifolog_write_gzip()
272 f->ff->zs->next_in = f->ibuf; in fifolog_write_gzip()
275 i = deflate(f->ff->zs, fl); in fifolog_write_gzip()
[all …]
HDfifolog_int.c128 f->zs = calloc(sizeof *f->zs, 1); in fifolog_int_open_i()
129 if (f->zs == NULL) in fifolog_int_open_i()
172 if (f->zs != NULL) in fifolog_int_close()
173 free(f->zs); in fifolog_int_close()
HDlibfifolog_int.h37 z_stream *zs; member
/NextBSD/sys/kern/
HDkern_ctf.c255 z_stream zs; in link_elf_ctf_get() local
265 bzero(&zs, sizeof(zs)); in link_elf_ctf_get()
266 zs.zalloc = z_alloc; in link_elf_ctf_get()
267 zs.zfree = z_free; in link_elf_ctf_get()
269 if (inflateInit(&zs) != Z_OK) { in link_elf_ctf_get()
274 zs.avail_in = shdr[i].sh_size - sizeof(ctf_hdr); in link_elf_ctf_get()
275 zs.next_in = ((uint8_t *) raw) + sizeof(ctf_hdr); in link_elf_ctf_get()
276 zs.avail_out = sz - sizeof(ctf_hdr); in link_elf_ctf_get()
277 zs.next_out = ((uint8_t *) ctftab) + sizeof(ctf_hdr); in link_elf_ctf_get()
278 ret = inflate(&zs, Z_FINISH); in link_elf_ctf_get()
[all …]
/NextBSD/contrib/ntp/libparse/
HDparsesolaris.c876 register struct zscom *zs; in init_zs_linemon() local
884 zs = ((struct asyncline *)q->q_ptr)->za_common; in init_zs_linemon()
885 if (!zs) in init_zs_linemon()
911 mutex_enter(zs->zs_excl); in init_zs_linemon()
915 szs->zsops = *zs->zs_ops; in init_zs_linemon()
917 szs->oldzsops = zs->zs_ops; in init_zs_linemon()
918 emergencyzs = zs->zs_ops; in init_zs_linemon()
920 zs->zs_ops = &szs->zsops; /* hook it up */ in init_zs_linemon()
925 zs->zs_xsint = (void (*) (struct zscom *))zs_xsisr; in init_zs_linemon()
927 mutex_exit(zs->zs_excl); in init_zs_linemon()
[all …]
HDparsestreams.c1022 register struct zscom *zs; in init_zs_linemon() local
1030 zs = ((struct zsaline *)(void *)q->q_ptr)->za_common; in init_zs_linemon()
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
1091 zs = ((struct zsaline *)(void *)q->q_ptr)->za_common; in close_zs_linemon()
1092 if (!zs) in close_zs_linemon()
[all …]
/NextBSD/lib/msun/src/
HDs_fma.c180 double xs, ys, zs, adj; in fma() local
202 zs = frexp(z, &ez); in fma()
236 zs = ldexp(zs, -spread); in fma()
238 zs = copysign(DBL_MIN, zs); in fma()
253 r = dd_add(xy.hi, zs); in fma()
263 volatile double vzs = zs; /* XXX gcc CSE bug workaround */ in fma()
HDs_fmal.c168 long double xs, ys, zs, adj; in fmal() local
190 zs = frexpl(z, &ez); in fmal()
224 zs = ldexpl(zs, -spread); in fmal()
226 zs = copysignl(LDBL_MIN, zs); in fmal()
241 r = dd_add(xy.hi, zs); in fmal()
251 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */ in fmal()
/NextBSD/contrib/gdtoa/
HDdmisc.c115 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;
/NextBSD/sys/geom/uncompress/
HDg_uncompress.c106 z_stream *zs; member
134 if (sc->zs) { in g_uncompress_softc_free()
135 inflateEnd(sc->zs); in g_uncompress_softc_free()
136 free(sc->zs, M_GEOM_UNCOMPRESS); in g_uncompress_softc_free()
137 sc->zs = 0; in g_uncompress_softc_free()
269 sc->zs->next_in = bp->bio_data + pos; in g_uncompress_done()
270 sc->zs->avail_in = len; in g_uncompress_done()
271 sc->zs->next_out = sc->last_buf; in g_uncompress_done()
272 sc->zs->avail_out = sc->blksz; in g_uncompress_done()
274 err = (inflate(sc->zs, Z_FINISH) != Z_STREAM_END) ? in g_uncompress_done()
[all …]
/NextBSD/sys/geom/uzip/
HDg_uzip.c229 z_stream zs; in g_uzip_done() local
256 zs.zalloc = z_alloc; in g_uzip_done()
257 zs.zfree = z_free; in g_uzip_done()
258 if (inflateInit(&zs) != Z_OK) { in g_uzip_done()
278 zs.next_in = data; in g_uzip_done()
279 zs.avail_in = len; in g_uzip_done()
280 zs.next_out = sc->last_buf; in g_uzip_done()
281 zs.avail_out = sc->blksz; in g_uzip_done()
283 if (inflate(&zs, Z_FINISH) != Z_STREAM_END) { in g_uzip_done()
286 inflateEnd(&zs); in g_uzip_done()
[all …]
/NextBSD/cddl/contrib/opensolaris/cmd/ztest/
HDztest.c204 (MAX(zs->zs_mirrors, 1) * (ztest_opts.zo_raidz_parity + 1) - 1)
769 ztest_kill(ztest_shared_t *zs) in ztest_kill() argument
771 zs->zs_alloc = metaslab_class_get_alloc(spa_normal_class(ztest_spa)); in ztest_kill()
772 zs->zs_space = metaslab_class_get_space(spa_normal_class(ztest_spa)); in ztest_kill()
2497 ztest_shared_t *zs = ztest_shared; in ztest_vdev_add_remove() local
2505 leaves = MAX(zs->zs_mirrors + zs->zs_splits, 1) * ztest_opts.zo_raidz; in ztest_vdev_add_remove()
2545 zs->zs_mirrors, 1); in ztest_vdev_add_remove()
2566 ztest_shared_t *zs = ztest_shared; in ztest_vdev_aux_add_remove() local
2595 zs->zs_vdev_aux = 0; in ztest_vdev_aux_add_remove()
2601 zs->zs_vdev_aux); in ztest_vdev_aux_add_remove()
[all …]
/NextBSD/contrib/bzip2/
HDbzlib.c266 #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 …]
/NextBSD/contrib/unbound/smallapp/
HDunbound-checkconf.c130 struct local_zones* zs; in localzonechecks() local
131 if(!(zs = local_zones_create())) in localzonechecks()
133 if(!local_zones_apply_cfg(zs, cfg)) in localzonechecks()
135 local_zones_delete(zs); in localzonechecks()
/NextBSD/cddl/contrib/opensolaris/cmd/zdb/
HDzdb.c289 zap_stats_t zs; in dump_zap_stats() local
291 error = zap_get_stats(os, object, &zs); in dump_zap_stats()
295 if (zs.zs_ptrtbl_len == 0) { in dump_zap_stats()
296 ASSERT(zs.zs_num_blocks == 1); in dump_zap_stats()
298 (u_longlong_t)zs.zs_blocksize, in dump_zap_stats()
299 (u_longlong_t)zs.zs_num_entries); in dump_zap_stats()
307 (u_longlong_t)zs.zs_ptrtbl_len); in dump_zap_stats()
309 (u_longlong_t)zs.zs_ptrtbl_zt_blk); in dump_zap_stats()
311 (u_longlong_t)zs.zs_ptrtbl_zt_numblks); in dump_zap_stats()
313 (u_longlong_t)zs.zs_ptrtbl_zt_shift); in dump_zap_stats()
[all …]

12