Home
last modified time | relevance | path

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

123456

/netbsd-src/usr.bin/gzip/
H A Dzuncompress.c42 #define tab_prefixof(i) (zs->zs_codetab[i])
43 #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 …]
/netbsd-src/sys/arch/mvme68k/stand/sboot/
H A Dconsole.c42 struct zs_hw *zs = (struct zs_hw *)CONS_ZS_ADDR; variable
55 zs->ctl = 1; rr1 = zs->ctl; in consinit()
56 zs->ctl = 0; in consinit()
57 if ((rr1 & 0x1) == 1 && (zs->ctl & 0x4) == 4) in consinit()
60 zs->ctl = 9; in consinit()
61 zs->ctl = 0x00; /* clear interrupt */ in consinit()
62 zs->ctl = 4; in consinit()
63 zs->ctl = 0x44; /* 16x clk, 1 stop bit */ in consinit()
64 zs->ctl = 5; in consinit()
65 zs->ctl = 0xea; /* DTR on, 8 bit xmit, xmit on, RTS on */ in consinit()
[all …]
/netbsd-src/sys/arch/ews4800mips/stand/common/
H A Dcons_zs.c40 struct zs zs; variable
53 zs.csr = (volatile uint8_t *)csr; in zs_set_addr()
54 zs.data = (volatile uint8_t *)data; in zs_set_addr()
55 zs.clock = clock; in zs_set_addr()
63 #define ZS_WRITE_REG(zs, reg, val) \ argument
65 *zs.csr = reg; \
66 *zs.csr = val; \
73 ZS_WRITE_REG(zs, 9, 0); in zs_init()
74 ZS_WRITE_REG(zs, 9, ZSWR9_HARD_RESET); in zs_init()
76 ZS_WRITE_REG(zs, 4, ZSWR4_CLK_X16 | ZSWR4_ONESB | ZSWR4_EVENP); in zs_init()
[all …]
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Ddmu_zfetch.c132 dmu_zfetch_stream_remove(zfetch_t *zf, zstream_t *zs) in dmu_zfetch_stream_remove() argument
135 list_remove(&zf->zf_stream, zs); in dmu_zfetch_stream_remove()
136 mutex_destroy(&zs->zs_lock); in dmu_zfetch_stream_remove()
137 kmem_free(zs, sizeof (*zs)); in dmu_zfetch_stream_remove()
147 zstream_t *zs; in dmu_zfetch_fini() local
152 while ((zs = list_head(&zf->zf_stream)) != NULL) in dmu_zfetch_fini()
153 dmu_zfetch_stream_remove(zf, zs); in dmu_zfetch_fini()
178 for (zstream_t *zs = list_head(&zf->zf_stream); in dmu_zfetch_stream_create() local
179 zs != NULL; zs = zs_next) { in dmu_zfetch_stream_create()
180 zs_next = list_next(&zf->zf_stream, zs); in dmu_zfetch_stream_create()
[all …]
/netbsd-src/external/cddl/osnet/dist/uts/common/zmod/
H A Dzmod.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 …]
/netbsd-src/usr.bin/compress/
H A Dzopen.c143 #define fp zs->zs_fp
144 #define zmode zs->zs_mode
145 #define state zs->zs_state
146 #define n_bits zs->zs_n_bits
147 #define maxbits zs->zs_maxbits
148 #define maxcode zs->zs_maxcode
149 #define maxmaxcode zs->zs_maxmaxcode
150 #define htab zs->zs_htab
151 #define codetab zs->zs_codetab
152 #define hsize zs->zs_hsize
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dzlib.d241 etc.c.zlib.z_stream zs; variable
242 zs.next_in = cast(typeof(zs.next_in)) srcbuf.ptr;
243 zs.avail_in = to!uint(srcbuf.length);
244 err = etc.c.zlib.inflateInit2(&zs, winbits);
256 zs.next_out = cast(typeof(zs.next_out)) &destbuf[olddestlen];
257 zs.avail_out = to!uint(destlen - olddestlen);
260 err = etc.c.zlib.inflate(&zs, Z_NO_FLUSH);
268 destbuf.length = zs.total_out;
269 err = etc.c.zlib.inflateEnd(&zs);
275 etc.c.zlib.inflateEnd(&zs);
[all …]
/netbsd-src/common/dist/zlib/contrib/iostream2/
H A Dzstream.h115 inline int read(izstream& zs, T* x, Items items) { in read() argument
116 return ::gzread(zs.fp(), x, items*sizeof(T)); in read()
123 inline izstream& operator>(izstream& zs, T& x) {
124 ::gzread(zs.fp(), &x, sizeof(T));
125 return zs;
129 inline zstringlen::zstringlen(izstream& zs) { in zstringlen() argument
130 zs > val.byte; in zstringlen()
131 if (val.byte == 255) zs > val.word; in zstringlen()
138 inline izstream& operator>(izstream& zs, char* x) {
139 zstringlen len(zs);
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/zlib/contrib/iostream2/
H A Dzstream.h115 inline int read(izstream& zs, T* x, Items items) { in read() argument
116 return ::gzread(zs.fp(), x, items*sizeof(T)); in read()
123 inline izstream& operator>(izstream& zs, T& x) {
124 ::gzread(zs.fp(), &x, sizeof(T));
125 return zs;
129 inline zstringlen::zstringlen(izstream& zs) { in zstringlen() argument
130 zs > val.byte; in zstringlen()
131 if (val.byte == 255) zs > val.word; in zstringlen()
138 inline izstream& operator>(izstream& zs, char* x) {
139 zstringlen len(zs);
[all …]
/netbsd-src/external/gpl3/binutils/dist/zlib/contrib/iostream2/
H A Dzstream.h115 inline int read(izstream& zs, T* x, Items items) { in read() argument
116 return ::gzread(zs.fp(), x, items*sizeof(T)); in read()
123 inline izstream& operator>(izstream& zs, T& x) {
124 ::gzread(zs.fp(), &x, sizeof(T));
125 return zs;
129 inline zstringlen::zstringlen(izstream& zs) { in zstringlen() argument
130 zs > val.byte; in zstringlen()
131 if (val.byte == 255) zs > val.word; in zstringlen()
138 inline izstream& operator>(izstream& zs, char* x) {
139 zstringlen len(zs);
[all …]
/netbsd-src/external/gpl3/gdb/dist/zlib/contrib/iostream2/
H A Dzstream.h115 inline int read(izstream& zs, T* x, Items items) { in read() argument
116 return ::gzread(zs.fp(), x, items*sizeof(T)); in read()
123 inline izstream& operator>(izstream& zs, T& x) {
124 ::gzread(zs.fp(), &x, sizeof(T));
125 return zs;
129 inline zstringlen::zstringlen(izstream& zs) { in zstringlen() argument
130 zs > val.byte; in zstringlen()
131 if (val.byte == 255) zs > val.word; in zstringlen()
138 inline izstream& operator>(izstream& zs, char* x) {
139 zstringlen len(zs);
[all …]
/netbsd-src/external/gpl2/rcs/dist/src/
H A Dpartime.c87 #define zs(t,s) {s, hr60(t)} macro
88 #define zd(t,s,d) zs(t, s), zs((t)+100, d)
91 zs(-1000, "hst"), /* Hawaii */
100 zs( 000, "utc"), /* Coordinated Universal */
101 zs( 000, "cut"), /* " */
102 zs( 000, "ut"), /* Universal */
103 zs( 000, "z"), /* Zulu (required by ISO 8601) */
105 zs( 000, "wet"), /* Western Europe */
106 zs( 100, "met"), /* Middle Europe */
107 zs( 100, "cet"), /* Central Europe */
[all …]
/netbsd-src/external/bsd/libfido2/dist/src/
H A Dcompress.c48 z_stream zs; in rfc1951_inflate() local
52 memset(&zs, 0, sizeof(zs)); in rfc1951_inflate()
61 if ((z = inflateInit2(&zs, -MAX_WBITS)) != Z_OK) { in rfc1951_inflate()
71 zs.next_in = in->ptr; in rfc1951_inflate()
72 zs.avail_in = ilen; in rfc1951_inflate()
73 zs.next_out = out->ptr; in rfc1951_inflate()
74 zs.avail_out = olen; in rfc1951_inflate()
76 if ((z = inflate(&zs, Z_FINISH)) != Z_STREAM_END) { in rfc1951_inflate()
81 if (zs.avail_out != 0) { in rfc1951_inflate()
82 fido_log_debug("%s: %u != 0", __func__, zs.avail_out); in rfc1951_inflate()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Dzlib.d247 etc.c.zlib.z_stream zs; variable
248 zs.next_in = cast(typeof(zs.next_in)) srcbuf.ptr;
249 zs.avail_in = to!uint(srcbuf.length);
250 err = etc.c.zlib.inflateInit2(&zs, winbits);
262 zs.next_out = cast(typeof(zs.next_out)) &destbuf[olddestlen];
263 zs.avail_out = to!uint(destlen - olddestlen);
266 err = etc.c.zlib.inflate(&zs, Z_NO_FLUSH);
274 destbuf.length = zs.total_out;
275 err = etc.c.zlib.inflateEnd(&zs);
281 etc.c.zlib.inflateEnd(&zs);
[all …]
/netbsd-src/sys/arch/sgimips/stand/common/
H A Diris_zs.c169 struct zschan *zs; in zs_init() local
172 zs = zs_get_chan_addr(1, cons_port); in zs_init()
174 zs_reset(zs); in zs_init()
176 return zs; in zs_init()
182 struct zschan *zs; in zscnputc() local
184 zs = zs_get_chan_addr(1, cons_port); in zscnputc()
186 zs_putc(zs, c); in zscnputc()
208 struct zschan *zs; in zscngetc() local
210 zs = zs_get_chan_addr(1, cons_port); in zscngetc()
212 return zs_getc(zs); in zscngetc()
[all …]
/netbsd-src/sys/arch/mvme68k/dev/
H A Dzs_pcctwo.c109 struct zsdevice zs; in zsc_pcctwo_attach() local
122 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush + 1; in zsc_pcctwo_attach()
123 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 3; in zsc_pcctwo_attach()
124 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 5; in zsc_pcctwo_attach()
125 zs.zs_chan_a.zc_data = (volatile uint8_t *)bush + 7; in zsc_pcctwo_attach()
128 zs_config(zsc, &zs, vector + PCCTWO_VECBASE, PCLK_162); in zsc_pcctwo_attach()
170 struct zsdevice zs; in zsc_pcctwocninit() local
177 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush + 1; in zsc_pcctwocninit()
178 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 3; in zsc_pcctwocninit()
179 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 5; in zsc_pcctwocninit()
[all …]
H A Dzs_pcc.c108 struct zsdevice zs; in zsc_pcc_attach() local
121 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush; in zsc_pcc_attach()
122 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 1; in zsc_pcc_attach()
123 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 2; in zsc_pcc_attach()
124 zs.zs_chan_a.zc_data = (volatile uint8_t *)bush + 3; in zsc_pcc_attach()
132 zs_config(zsc, &zs, PCC_VECBASE + PCCV_ZS, PCLK_147); in zsc_pcc_attach()
188 struct zsdevice zs; in zsc_pcccninit() local
194 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush; in zsc_pcccninit()
195 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 1; in zsc_pcccninit()
196 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 2; in zsc_pcccninit()
[all …]
/netbsd-src/sys/kern/
H A Dkern_ctf.c194 z_stream zs; in mod_ctf_get() local
204 memset(&zs, 0, sizeof(zs)); in mod_ctf_get()
205 zs.zalloc = z_alloc; in mod_ctf_get()
206 zs.zfree = z_free; in mod_ctf_get()
208 if (inflateInit2(&zs, MAX_WBITS) != Z_OK) { in mod_ctf_get()
213 zs.avail_in = ctfsize - CTF_HDR_SIZE; in mod_ctf_get()
214 zs.next_in = ctfaddr + CTF_HDR_SIZE; in mod_ctf_get()
215 zs.avail_out = sz - CTF_HDR_SIZE; in mod_ctf_get()
216 zs.next_out = ((uint8_t *) ctftab) + CTF_HDR_SIZE; in mod_ctf_get()
217 inflateReset(&zs); in mod_ctf_get()
[all …]
/netbsd-src/sys/arch/cobalt/stand/boot/
H A Dzs.c54 volatile uint8_t *zs = dev; in zs_read() local
57 val = *(volatile uint8_t *)(zs + reg); in zs_read()
66 volatile uint8_t *zs = dev; in zs_write() local
68 *(volatile uint8_t *)(zs + reg) = val; in zs_write()
129 void *zs; in zs_init() local
131 zs = (void *)MIPS_PHYS_TO_KSEG1(ZS_BASE + addr); in zs_init()
132 zs_reset(zs); in zs_init()
134 return zs; in zs_init()
/netbsd-src/external/bsd/ntp/dist/libparse/
H A Dparsesolaris.c878 register struct zscom *zs; in init_zs_linemon() local
886 zs = ((struct asyncline *)q->q_ptr)->za_common; in init_zs_linemon()
887 if (!zs) in init_zs_linemon()
913 mutex_enter(zs->zs_excl); in init_zs_linemon()
917 szs->zsops = *zs->zs_ops; in init_zs_linemon()
919 szs->oldzsops = zs->zs_ops; in init_zs_linemon()
920 emergencyzs = zs->zs_ops; in init_zs_linemon()
922 zs->zs_ops = &szs->zsops; /* hook it up */ in init_zs_linemon()
927 zs->zs_xsint = (void (*) (struct zscom *))zs_xsisr; in init_zs_linemon()
929 mutex_exit(zs->zs_excl); in init_zs_linemon()
[all …]
H A Dparsestreams.c1024 register struct zscom *zs; in init_zs_linemon() local
1032 zs = ((struct zsaline *)(void *)q->q_ptr)->za_common; in init_zs_linemon()
1033 if (!zs) in init_zs_linemon()
1065 szs->zsops = *zs->zs_ops; in init_zs_linemon()
1067 szs->oldzsops = zs->zs_ops; in init_zs_linemon()
1068 emergencyzs = zs->zs_ops; in init_zs_linemon()
1070 zsopinit(zs, &szs->zsops); /* hook it up */ in init_zs_linemon()
1090 register struct zscom *zs; in close_zs_linemon() local
1093 zs = ((struct zsaline *)(void *)q->q_ptr)->za_common; in close_zs_linemon()
1094 if (!zs) in close_zs_linemon()
[all …]
/netbsd-src/sys/dev/tc/
H A Dzs_ioasic.c227 struct zsc_softc *zs = device_private(self); in zs_ioasic_attach() local
236 zs->zsc_dev = self; in zs_ioasic_attach()
264 zs->zsc_cs[channel] = cs; in zs_ioasic_attach()
265 zs->zsc_addroffset = d->iada_offset; /* cookie only */ in zs_ioasic_attach()
301 cs->cs_ctl_chan = zs->zsc_cs[0]; in zs_ioasic_attach()
327 zs_ioasic_hardintr, zs); in zs_ioasic_attach()
328 zs->zsc_sih = softint_establish(SOFTINT_SERIAL, in zs_ioasic_attach()
329 zs_ioasic_softintr, zs); in zs_ioasic_attach()
330 if (zs->zsc_sih == NULL) in zs_ioasic_attach()
340 zs_write_reg(zs->zsc_cs[0], 2, zs_ioasic_init_reg[2]); in zs_ioasic_attach()
[all …]
/netbsd-src/lib/libm/src/
H A Ds_fmal.c178 long double xs, ys, zs, adj; in fmal() local
200 zs = frexpl(z, &ez); in fmal()
234 zs = ldexpl(zs, -spread); in fmal()
236 zs = copysignl(LDBL_MIN, zs); in fmal()
249 r = dd_add(xy.hi, zs); in fmal()
260 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */ in fmal()
H A Ds_fma.c193 double xs, ys, zs, adj; in fma() local
215 zs = frexp(z, &ez); in fma()
249 zs = ldexp(zs, -spread); in fma()
251 zs = copysign(DBL_MIN, zs); in fma()
264 r = dd_add(xy.hi, zs); in fma()
275 volatile double vzs = zs; /* XXX gcc CSE bug workaround */ in fma()
/netbsd-src/lib/libc/gdtoa/
H A Ddmisc.c122 ULong si, z, zs; local
158 zs = (si >> 16) * q + (ys >> 16);
159 carry = zs >> 16;
162 z = (*bx >> 16) - (zs & 0xffff) - borrow;
201 zs = (si >> 16) + (ys >> 16);
202 carry = zs >> 16;
205 z = (*bx >> 16) - (zs & 0xffff) - borrow;

123456