| /src/sys/arch/next68k/next68k/ |
| conf.c | 46 cons_decl(zs); variable 55 cons_init(zs),
|
| /src/sys/arch/x68k/x68k/ |
| conf.c | 54 cons_decl(zs); variable 61 cons_init(zs),
|
| /src/sys/arch/mac68k/mac68k/ |
| conf.c | 51 cons_decl(zs); variable 55 cons_init(zs),
|
| /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/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 57 val = *(volatile uint8_t *)(zs + reg); 66 volatile uint8_t *zs = dev; local 68 *(volatile uint8_t *)(zs + reg) = val; 129 void *zs; local 131 zs = (void *)MIPS_PHYS_TO_KSEG1(ZS_BASE + addr); 132 zs_reset(zs); 134 return zs; [all...] |
| /src/sys/arch/mvme68k/dev/ |
| 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 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 [all...] |
| zs_pcctwo.c | 84 * Is the zs chip present? 102 * Attach a found zs. 109 struct zsdevice zs; local 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 [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/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 172 zs = zs_get_chan_addr(1, cons_port); 174 zs_reset(zs); 176 return zs; 182 struct zschan *zs; local 184 zs = zs_get_chan_addr(1, cons_port); 186 zs_putc(zs, c); 208 struct zschan *zs; local 236 struct zschan *zs; local [all...] |
| /src/lib/libc/gdtoa/ |
| dmisc.c | 122 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;
|
| /src/sys/kern/ |
| kern_ctf.c | 200 z_stream zs; local 210 memset(&zs, 0, sizeof(zs)); 211 zs.zalloc = z_alloc; 212 zs.zfree = z_free; 214 if (inflateInit2(&zs, MAX_WBITS) != Z_OK) { 219 zs.avail_in = ctfsize - CTF_HDR_SIZE; 220 zs.next_in = ctfaddr + CTF_HDR_SIZE; 221 zs.avail_out = sz - CTF_HDR_SIZE; 222 zs.next_out = ((uint8_t *) ctftab) + CTF_HDR_SIZE [all...] |
| /src/lib/libm/src/ |
| s_fma.c | 193 double xs, ys, zs, adj; local 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 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 194 zs = (void *)(ha->ha_address); 210 zc = (channel == 0) ? &zs->zs_chan_a : &zs->zs_chan_b [all...] |
| /src/sys/arch/x68k/dev/ |
| zs.c | 1 /* $NetBSD: zs.c,v 1.48 2022/05/26 14:30:11 tsutsui Exp $ */ 43 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.48 2022/05/26 14:30:11 tsutsui Exp $"); 85 * X68k provides a 5.0 MHz clock to the ZS chips. 139 * Is the zs chip present? 170 * Attach a found zs. 192 panic("zs: intio IO map corruption"); 274 if (intio_intr_establish(ia->ia_intr, "zs", zshard, zsc)) 310 * We do not need to look at all of the zs chips. 320 * Actually, zs hardware ipl is 5. 337 * Compute the current baud rate given a ZS channel 525 cons_decl(zs); variable [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 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 [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 662 zs = zs_get_chan_addr(0, cons_port); 663 return zs_getc(zs); 669 struct zschan *zs; local [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 801 struct zschan *zs; local [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 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 [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 301 zs = (struct zsdevice *)AD_SCC; 309 (channel == 0) ? &zs->zs_chan_a : &zs->zs_chan_b 396 int zs = unit >> 1; local [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 326 struct s_zstate *zs; local 459 struct s_zstate *zs; local 656 struct s_zstate *zs; local [all...] |
| /src/sys/arch/mac68k/dev/ |
| zs.c | 1 /* $NetBSD: zs.c,v 1.64 2026/02/17 22:26:51 andvar Exp $ */ 40 * (port-sun3?) zs.c driver (which was in turn based on code in the 52 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.64 2026/02/17 22:26:51 andvar Exp $"); 104 * Serial port cards with zs chips on them are actually at the 218 * Is the zs chip present? 230 * Attach a found zs. 232 * Match slave number to zs unit number, so that misconfiguration will 494 * This routine draws inspiration from the Atari port's zs.c 800 cons_decl(zs); variable
|
| /src/sys/arch/macppc/dev/ |
| zs.c | 1 /* $NetBSD: zs.c,v 1.60 2026/02/17 22:26:51 andvar Exp $ */ 40 * (port-sun3?) zs.c driver (which was in turn based on code in the 52 __KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.60 2026/02/17 22:26:51 andvar Exp $"); 132 cons_decl(zs); variable 196 * Is the zs chip present? 213 * Attach a found zs. 215 * Match slave number to zs unit number, so that misconfiguration will 534 * Compute the current baud rate given a ZS channel. 558 * This routine draws inspiration from the Atari port's zs.c 1054 * global zs console state, basically the equivalent of callin [all...] |