HomeSort by: relevance | last modified time | path
    Searched defs:zs (Results 1 - 18 of 18) sorted by relevancy

  /src/sys/arch/ews4800mips/stand/common/
cons_zs.c 40 struct zs zs; variable in typeref:struct:zs
53 zs.csr = (volatile uint8_t *)csr;
54 zs.data = (volatile uint8_t *)data;
55 zs.clock = clock;
63 #define ZS_WRITE_REG(zs, reg, val) \
65 *zs.csr = reg; \
66 *zs.csr = val; \
73 ZS_WRITE_REG(zs, 9, 0);
74 ZS_WRITE_REG(zs, 9, ZSWR9_HARD_RESET)
    [all...]
console.h 99 struct zs { struct
136 extern struct zs zs;
  /src/sys/arch/mvme68k/dev/
zs_pcctwo.c 84 * Is the zs chip present?
102 * Attach a found zs.
109 struct zsdevice zs; local in function:zsc_pcctwo_attach
121 /* XXX: This is a gross hack. I need to bus-space zs.c ... */
122 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush + 1;
123 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 3;
124 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 5;
125 zs.zs_chan_a.zc_data = (volatile uint8_t *)bush + 7;
128 zs_config(zsc, &zs, vector + PCCTWO_VECBASE, PCLK_162);
170 struct zsdevice zs; local in function:zsc_pcctwocninit
    [all...]
zs_pcc.c 81 * Is the zs chip present?
98 * Attach a found zs.
100 * Match slave number to zs unit number, so that misconfiguration will
108 struct zsdevice zs; local in function:zsc_pcc_attach
120 /* XXX: This is a gross hack. I need to bus-space zs.c ... */
121 zs.zs_chan_b.zc_csr = (volatile uint8_t *)bush;
122 zs.zs_chan_b.zc_data = (volatile uint8_t *)bush + 1;
123 zs.zs_chan_a.zc_csr = (volatile uint8_t *)bush + 2;
124 zs.zs_chan_a.zc_data = (volatile uint8_t *)bush + 3;
128 * Note that the vector is not actually used by the ZS chip o
188 struct zsdevice zs; local in function:zsc_pcccninit
    [all...]
  /src/sys/arch/mvme68k/stand/sboot/
console.c 42 struct zs_hw *zs = (struct zs_hw *)CONS_ZS_ADDR; variable in typeref:struct:zs_hw *
55 zs->ctl = 1; rr1 = zs->ctl;
56 zs->ctl = 0;
57 if ((rr1 & 0x1) == 1 && (zs->ctl & 0x4) == 4)
60 zs->ctl = 9;
61 zs->ctl = 0x00; /* clear interrupt */
62 zs->ctl = 4;
63 zs->ctl = 0x44; /* 16x clk, 1 stop bit */
64 zs->ctl = 5
    [all...]
  /src/sys/arch/cobalt/stand/boot/
zs.c 1 /* $NetBSD: zs.c,v 1.4 2024/05/03 21:38:15 andvar Exp $ */
40 #include "zs.h"
54 volatile uint8_t *zs = dev; local in function:zs_read
57 val = *(volatile uint8_t *)(zs + reg);
66 volatile uint8_t *zs = dev; local in function:zs_write
68 *(volatile uint8_t *)(zs + reg) = val;
129 void *zs; local in function:zs_init
131 zs = (void *)MIPS_PHYS_TO_KSEG1(ZS_BASE + addr);
132 zs_reset(zs);
134 return zs;
    [all...]
  /src/sys/arch/sgimips/stand/common/
iris_zs.c 60 * Most of the following was adapted from /sys/arch/sgimips/dev/zs.c.
61 * NetBSD: zs.c,v 1.39 2015/02/18 16:47:58 macallan Exp
169 struct zschan *zs; local in function:zs_init
172 zs = zs_get_chan_addr(1, cons_port);
174 zs_reset(zs);
176 return zs;
182 struct zschan *zs; local in function:zscnputc
184 zs = zs_get_chan_addr(1, cons_port);
186 zs_putc(zs, c);
208 struct zschan *zs; local in function:zscngetc
236 struct zschan *zs; local in function:zscnscanc
    [all...]
  /src/lib/libc/gdtoa/
dmisc.c 122 ULong si, z, zs; local in function:quorem
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;
  /src/sys/kern/
kern_ctf.c 194 z_stream zs; local in function:mod_ctf_get
204 memset(&zs, 0, sizeof(zs));
205 zs.zalloc = z_alloc;
206 zs.zfree = z_free;
208 if (inflateInit2(&zs, MAX_WBITS) != Z_OK) {
213 zs.avail_in = ctfsize - CTF_HDR_SIZE;
214 zs.next_in = ctfaddr + CTF_HDR_SIZE;
215 zs.avail_out = sz - CTF_HDR_SIZE;
216 zs.next_out = ((uint8_t *) ctftab) + CTF_HDR_SIZE
    [all...]
  /src/lib/libm/src/
s_fma.c 193 double xs, ys, zs, adj; local in function:fma
215 zs = frexp(z, &ez);
249 zs = ldexp(zs, -spread);
251 zs = copysign(DBL_MIN, zs);
264 r = dd_add(xy.hi, zs);
275 volatile double vzs = zs; /* XXX gcc CSE bug workaround */
s_fmal.c 178 long double xs, ys, zs, adj; local in function:fmal
200 zs = frexpl(z, &ez);
234 zs = ldexpl(zs, -spread);
236 zs = copysignl(LDBL_MIN, zs);
249 r = dd_add(xy.hi, zs);
260 volatile long double vzs = zs; /* XXX gcc CSE bug workaround */
  /src/sys/arch/news68k/dev/
zs.c 1 /* $NetBSD: zs.c,v 1.34 2021/09/11 20:28:04 andvar Exp $ */
40 * news68k/dev/zs.c - based on {newsmips,x68k,mvme68k}/dev/zs.c
44 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.34 2021/09/11 20:28:04 andvar Exp $");
76 * The news68k machines use three different clocks for the ZS chips.
154 * Is the zs chip present?
178 * Attach a found zs.
187 struct zsdevice *zs; local in function:zs_attach
194 zs = (void *)(ha->ha_address);
210 zc = (channel == 0) ? &zs->zs_chan_a : &zs->zs_chan_b
    [all...]
  /src/sys/dev/tc/
zs_ioasic.c 110 * ZS chips are fed a 7.372 MHz clock.
196 * Is the zs chip present?
222 * Attach a found zs.
227 struct zsc_softc *zs = device_private(self); local in function:zs_ioasic_attach
236 zs->zsc_dev = self;
264 zs->zsc_cs[channel] = cs;
265 zs->zsc_addroffset = d->iada_offset; /* cookie only */
301 cs->cs_ctl_chan = zs->zsc_cs[0];
327 zs_ioasic_hardintr, zs);
328 zs->zsc_sih = softint_establish(SOFTINT_SERIAL
372 struct zsc_softc *zs = device_private(parent); local in function:zs_ioasic_submatch
    [all...]
  /src/sys/arch/mipsco/obio/
zs.c 1 /* $NetBSD: zs.c,v 1.28 2021/09/11 20:28:04 andvar Exp $ */
40 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.28 2021/09/11 20:28:04 andvar Exp $");
169 * Is the zs chip present?
189 * Attach a found zs.
191 * Match slave number to zs unit number, so that misconfiguration will
317 * Our ZS chips all share a common, autovectored interrupt,
379 * Compute the current baud rate given a ZS channel.
660 struct zschan *zs; local in function:zscngetc
662 zs = zs_get_chan_addr(0, cons_port);
663 return zs_getc(zs);
669 struct zschan *zs; local in function:zscnputc
    [all...]
  /src/usr.bin/gzip/
zuncompress.c 42 #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)
166 free(zs);
174 struct s_zstate *zs; local in function:zdopen
176 if ((zs = calloc(1, sizeof(struct s_zstate))) == NULL)
179 zs->zs_state = S_START;
182 zs->zs_hsize = HSIZE; /* For dynamic table sizing. */
183 zs->zs_free_ent = 0; /* First unused entry. *
215 struct s_zstate *zs; local in function:zread
    [all...]
  /src/sys/arch/sgimips/dev/
zs.c 1 /* $NetBSD: zs.c,v 1.43 2023/10/24 20:37:16 andvar Exp $ */
40 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.43 2023/10/24 20:37:16 andvar Exp $");
189 * Is the zs chip present?
203 * Attach a found zs.
205 * Match slave number to zs unit number, so that misconfiguration will
274 * pass the generic zs driver a 'no reset' flag so the
367 * Our ZS chips all share a common, autovectored interrupt,
433 * Compute the current baud rate given a ZS channel.
684 aprint_debug("zs unit %d, channel %d had address %p\n",
781 struct zschan *zs; local in function:zscngetc
801 struct zschan *zs; local in function:zscnputc
    [all...]
  /src/sys/arch/atari/dev/
zs.c 1 /* $NetBSD: zs.c,v 1.82 2024/07/06 10:09:15 andvar Exp $ */
41 * @(#)zs.c 8.1 (Berkeley) 7/19/93
82 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.82 2024/07/06 10:09:15 andvar Exp $");
109 #include "zs.h"
227 CFATTACH_DECL_NEW(zs, sizeof(struct zs_softc),
278 if (strcmp("zs", aux) || zs_matched)
285 * Attach a found zs.
291 struct zsdevice *zs; local in function:zsattach
301 zs = (struct zsdevice *)AD_SCC;
309 (channel == 0) ? &zs->zs_chan_a : &zs->zs_chan_b
396 int zs = unit >> 1; local in function:zsopen
    [all...]
  /src/usr.bin/compress/
zopen.c 143 #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_hsiz
240 struct s_zstate *zs; local in function:zwrite
326 struct s_zstate *zs; local in function:zclose
459 struct s_zstate *zs; local in function:zread
656 struct s_zstate *zs; local in function:zopen
    [all...]

Completed in 110 milliseconds