/src/tests/kernel/tty/ |
t_pr.c | 72 exercise_ptytty(int master, int slave) 77 * send a few bytes from master to slave and read them back 79 error = sendsome(master, slave); 89 error = sendsome(slave, master); 108 int master, slave, error, v; local in function:ATF_TC_BODY 111 slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK); 112 ATF_CHECK(slave != -1); 118 rump_sys_ioctl(slave, FIOASYNC, &v); 119 error = exercise_ptytty(master, slave); 123 rump_sys_close(slave); 136 int master, slave, error; local in function:ATF_TC_BODY [all...] |
/src/lib/libutil/ |
pty.c | 68 int master, slave; local in function:openpty 85 slave = pt.sfd; 119 (slave = open(line, O_RDWR, 0)) != -1) { 122 *aslave = slave; 126 (void)tcsetattr(slave, TCSAFLUSH, term); 128 (void)ioctl(slave, TIOCSWINSZ, winp); 141 int master, slave; local in function:forkpty 149 if (openpty(&master, &slave, name, term, winp) == -1) 159 login_tty(slave); 166 (void)close(slave); [all...] |
/src/sys/arch/bebox/stand/boot/ |
devopen.c | 44 * /dev/disk/ide/0/slave/0_n 75 char slave[] = "slave"; local in function:devparse 86 } else if (strncmp(p, slave, strlen(slave)) == 0) { 88 p += strlen(slave);
|
/src/sys/arch/hp300/stand/common/ |
autoconf.c | 149 int sc, type, ctlr, slave, punit; local in function:msustobdev 158 slave = (rp->msus & 0xFF); 161 bdev = MAKEBOOTDEV(type, ctlr, slave, punit, 0);
|
/src/sys/dev/isa/ |
ast.c | 61 int sc_alive; /* mask of slave units attached */ 151 device_t slave; local in function:astattach 164 "can't map i/o space for slave %d\n", i); 181 slave = config_found(self, &ca, commultiprint, CFARGS_NONE); 182 if (slave != NULL) { 184 sc->sc_slaves[i] = device_private(slave);
|
tcom.c | 100 int sc_alive; /* mask of slave units attached */ 190 device_t slave; local in function:tcomattach 204 "can't map i/o space for slave %d\n", i); 222 slave = config_found(self, &ca, commultiprint, CFARGS_NONE); 223 if (slave != NULL) { 225 sc->sc_slaves[i] = device_private(slave);
|
/src/sys/dev/gpib/ |
cs80bus.c | 79 * CS80/SS80 has a 2-level addressing scheme; slave, the analog 81 * IDs are on a per-slave basis; punits are often used for disk 89 * in cs80bus_attach_children(). For each GPIB slave, we loop 91 * them to modify the punit parameter (but NOT the slave!). 108 int slave; local in function:cs80busattach 116 for (slave = 0; slave < 8; slave++) { 119 slave)) 123 slave, &id, 2) != 2 [all...] |
gpib.c | 136 /* Initialize the slave request queue */ 229 _gpibregister(struct gpib_softc *sc, int slave, gpib_callback_t callback, 234 (*hdl)->hq_slave = slave; 278 int slave; local in function:_gpibawait 282 slave = TAILQ_FIRST(&sc->sc_queue)->hq_slave; 283 (*sc->sc_ic->ppwatch)(sc->sc_ic->cookie, slave); 290 _gpibswait(struct gpib_softc *sc, int slave) 298 while ((*pptest)(sc->sc_ic->cookie, slave) == 0) { 367 _gpibsend(struct gpib_softc *sc, int slave, int sec, void *ptr, int origcnt) 375 ("_gpibsend: sc=%p slave %d sec=%d ptr=%p cnt=%d\n" [all...] |
mt.c | 117 int sc_slave; /* GPIB slave address (0-6) */ 205 mtlookup(int id, int slave, int punit) 810 int slave, dir, i; local in function:mtintr 813 slave = sc->sc_slave; 834 (void) gpibsend(sc->sc_ic, slave, MTL_ECMD,cmdbuf,1); 896 gpibxfer(sc->sc_ic, slave, 933 i = gpibrecv(sc->sc_ic, slave, MTT_BCNT, cmdbuf, 2); 961 (void) gpibsend(sc->sc_ic, slave, MTL_ECMD, cmdbuf, 1);
|
ct.c | 126 int sc_slave; /* GPIB slave ID */ 230 ctlookup(int id, int slave, int punit) 502 int i, slave, punit; local in function:ctstart 504 slave = sc->sc_slave; 521 (void) cs80send(device_parent(sc->sc_dev), slave, 530 (void) cs80send(device_parent(sc->sc_dev), slave, 561 (void) cs80send(device_parent(sc->sc_dev), slave, 597 (void) cs80send(device_parent(sc->sc_dev), slave, punit, 698 int slave, punit; local in function:ctintr 701 slave = sc->sc_slave [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/ |
nouveau_encoder.h | 82 struct drm_encoder_slave *slave = to_encoder_slave(enc); local in function:nouveau_encoder 84 return container_of(slave, struct nouveau_encoder, base);
|
/src/sys/external/bsd/drm2/i2c/ |
drm_encoder_slave.c | 131 drm_i2c_encoder_init(struct drm_device *dev, struct drm_encoder_slave *slave, 141 slave->bus_priv = bus_priv; 164 ret = (*driver->encoder_init)(client, dev, slave); 169 (*slave->slave_funcs->set_config)(&slave->base, 180 slave->bus_priv = NULL; 188 struct drm_encoder_slave *const slave = to_encoder_slave(encoder); local in function:drm_i2c_encoder_destroy 189 struct drm_i2c_encoder_bus_priv *const bus_priv = slave->bus_priv; 202 struct drm_encoder_slave *const slave = to_encoder_slave(encoder); local in function:drm_i2c_encoder_get_client 203 struct drm_i2c_encoder_bus_priv *const bus_priv = slave->bus_priv [all...] |
/src/usr.sbin/timed/timed/ |
slave.c | 1 /* $NetBSD: slave.c,v 1.19 2018/01/16 07:57:58 maya Exp $ */ 35 static char sccsid[] = "@(#)slave.c 8.1 (Berkeley) 6/6/93"; 37 __RCSID("$NetBSD: slave.c,v 1.19 2018/01/16 07:57:58 maya Exp $"); 60 slave(void) function in typeref:typename:void 183 fprintf(fd, "slave ignored: "); 195 fprintf(fd, "slave ignored: "); 294 * forever. Each time a gateway receives it on its slave side, it will 326 if (fromnet->status != SLAVE) 372 if (fromnet->status == SLAVE) { 423 * more than one master: the first slave t [all...] |
/src/sys/arch/hp300/dev/ |
hpib.c | 108 * HP-IB has a 2-level addressing scheme; slave, the analog 110 * IDs are on a per-slave basis; punits are often used for disk 119 * * We nevertheless probe the whole (slave, punit) tuple space, since 156 /* Initialize the slave request queue. */ 167 int id, slave, punit; local in function:hpibbus_attach_children 170 for (slave = 0; slave < HPIB_NSLAVES; slave++) { 179 id = hpibid(device_unit(sc->sc_dev), slave); 190 ha.ha_slave = slave; [all...] |
ppi.c | 96 int sc_slave; /* HP-IB slave address */ 302 int ctlr, slave; local in function:ppirw 309 slave = sc->sc_slave; 361 cnt = hpibsend(ctlr, slave, sc->sc_sec, cp, len); 363 cnt = hpibrecv(ctlr, slave, sc->sc_sec, cp, len); 370 ctlr, slave, sc->sc_sec, cp, len, cnt);
|
mt.c | 103 int sc_hpibno; /* logical HPIB this slave it attached to */ 104 int sc_slave; /* HPIB slave address (0-6) */ 194 int hpibno, slave; local in function:mtattach 203 slave = ha->ha_slave; 210 sc->sc_slave = slave;
|
fhpib.c | 235 fhpibsend(struct hpibbus_softc *hs, int slave, int sec, void *ptr, int origcnt) 250 hd->hpib_data = C_LAG + slave; 287 printf("%s: fhpibsend failed: slave %d, sec %x, ", 288 device_xname(sc->sc_dev), slave, sec); 296 fhpibrecv(struct hpibbus_softc *hs, int slave, int sec, void *ptr, int origcnt) 305 * Slave < 0 implies continuation of a previous receive 308 if (slave >= 0) { 316 hd->hpib_data = C_TAG + slave; 336 hd->hpib_data = (slave == 31) ? C_UNA : C_UNT; 348 printf("%s: fhpibrecv failed: slave %d, sec %x, " 648 int slave; local in function:fhpibppwatch [all...] |
/src/sys/dev/pcmcia/ |
pcmcom.c | 77 device_t sc_slaves[NSLAVES]; /* slave info */ 78 int sc_nslaves; /* slave count */ 87 int pca_slave; /* slave # */ 142 int slave; local in function:pcmcom_attach 164 for (slave = 0; slave < sc->sc_nslaves; slave++) { 167 printf("%s: slave %d\n", device_xname(self), slave); 169 pca.pca_iot = cfe->iospace[slave].handle.iot 193 int slave; local in function:pcmcom_childdet [all...] |
/src/tests/lib/libcurses/director/ |
director.c | 51 #define DEF_SLAVE "./slave" 59 int master; /* pty to the slave */ 70 * Handle the slave exiting unexpectedly, try to recover the exit message 82 fprintf(stderr, "ERROR: Slave has exited\n"); 84 fprintf(stderr, "output from slave: "); 97 fprintf(stderr, "slave exited with message \"%s\"\n", 117 fprintf(stderr, " -s is the path to the slave executable\n"); 130 const char *termpath, *term, *slave; local in function:main 139 termpath = term = slave = NULL; 156 slave = optarg [all...] |
/src/usr.sbin/sysinst/ |
run.c | 414 int status, master, slave; local in function:launch_subwin 425 if (openpty(&master, &slave, NULL, &tt, win) == -1) { 438 if (ioctl(slave, TIOCCONS, &do_tioccons) == 0 445 ioctl(slave, TIOCCONS, &do_tioccons); 473 (void)tcsetattr(slave, TCSANOW, &rtt); 474 login_tty(slave); 591 close(slave);
|
/src/sys/arch/vax/include/ |
rpb.h | 67 u_char slave; /* 1 Bootstrap device slave unit number */ member in struct:rpb
|
/src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/ |
nouveau_dispnv04_dfp.c | 161 struct drm_encoder *slave; local in function:get_tmds_slave 176 list_for_each_entry(slave, &dev->mode_config.encoder_list, head) { 177 struct dcb_output *slave_dcb = nouveau_encoder(slave)->dcb; 179 if (slave_dcb->type == DCB_OUTPUT_TMDS && get_slave_funcs(slave) && 181 return slave;
|
/src/usr.bin/script/ |
script.c | 77 static int master, slave; variable in typeref:typename:int 170 if (openpty(&master, &slave, NULL, NULL, NULL) == -1) 173 if (openpty(&master, &slave, NULL, &tt, &win) == -1) 315 login_tty(slave);
|
/src/sys/arch/hp300/hp300/ |
autoconf.c | 218 * - Same slave as encoded in bootdev. 230 int dd_slave; /* ...or slave */ 357 "type = %d, ctlr = %d, slave = %d, punit = %d, part = %d\n", 498 int type, ctlr, slave, punit, part; local in function:findbootdev 510 slave = B_CONTROLLER(bootdev); 546 slave, punit); 568 slave, punit); 595 findbootdev_slave(ddlist_t *ddlist, int ctlr, int slave, int punit) 613 * Now find the device with the right slave/punit 625 if (dd->dd_slave == slave & [all...] |
/src/sys/external/bsd/drm2/dist/drm/radeon/ |
radeon_ttm.c | 793 bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); local in function:radeon_ttm_tt_populate 809 if (slave && ttm->sg) { 853 bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); local in function:radeon_ttm_tt_unpopulate 856 if (slave && ttm->sg) { 866 if (slave)
|