| /netbsd-src/sys/dev/gpib/ |
| H A D | cs80bus.c | 108 int slave; in cs80busattach() local 116 for (slave = 0; slave < 8; slave++) { in cs80busattach() 119 slave)) in cs80busattach() 123 slave, &id, 2) != 2) in cs80busattach() 134 ca.ca_slave = slave; in cs80busattach() 206 cs80bus_alloc(struct cs80bus_softc *sc, int slave, int punit) in cs80bus_alloc() argument 211 if (slave >= CS80BUS_NSLAVES || punit >= CS80BUS_NPUNITS) in cs80bus_alloc() 214 gpib_alloc(device_private(device_parent(sc->sc_dev)), slave); in cs80bus_alloc() 216 if (sc->sc_rmap[slave][punit] == 0) { in cs80bus_alloc() 217 sc->sc_rmap[slave][punit] = 1; in cs80bus_alloc() [all …]
|
| H A D | gpibvar.h | 91 #define gpibpptest(ic, slave) \ argument 92 (*((ic)->pptest))((ic)->cookie, (slave)) 95 #define gpibxfer(ic, slave, sec, buf, cnt, rw, timo) \ argument 96 (*((ic)->xfer))((ic)->cookie, (slave), (sec), (buf), (cnt), \ 121 #define gpibsend(ic, slave, sec, addr, cnt) \ argument 122 _gpibsend((ic)->bus, (slave), (sec), (addr), (cnt)) 123 #define gpibrecv(ic, slave, sec, addr, cnt) \ argument 124 _gpibrecv((ic)->bus, (slave), (sec), (addr), (cnt)) 125 #define gpibregister(ic, slave, callback, arg, hdlp) \ argument 126 _gpibregister((ic)->bus, (slave), (callback), (arg), (hdlp)) [all …]
|
| H A D | gpib.c | 229 _gpibregister(struct gpib_softc *sc, int slave, gpib_callback_t callback, in _gpibregister() argument 234 (*hdl)->hq_slave = slave; in _gpibregister() 278 int slave; in _gpibawait() local 282 slave = TAILQ_FIRST(&sc->sc_queue)->hq_slave; in _gpibawait() 283 (*sc->sc_ic->ppwatch)(sc->sc_ic->cookie, slave); in _gpibawait() 290 _gpibswait(struct gpib_softc *sc, int slave) in _gpibswait() argument 298 while ((*pptest)(sc->sc_ic->cookie, slave) == 0) { in _gpibswait() 367 _gpibsend(struct gpib_softc *sc, int slave, int sec, void *ptr, int origcnt) in _gpibsend() argument 376 sc, slave, sec, ptr, origcnt)); in _gpibsend() 383 slave, sec, ptr, origcnt); in _gpibsend() [all …]
|
| /netbsd-src/sys/arch/hp300/stand/common/ |
| H A D | hpib.c | 85 hpibid(int unit, int slave) in hpibid() argument 91 rv = fhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); in hpibid() 93 rv = nhpibrecv(unit, 31, slave, (uint8_t *)&id, 2); in hpibid() 100 hpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt) in hpibsend() argument 104 return (fhpibsend(unit, slave, sec, buf, cnt)); in hpibsend() 105 return nhpibsend(unit, slave, sec, buf, cnt); in hpibsend() 109 hpibrecv(int unit, int slave, int sec, uint8_t *buf, int cnt) in hpibrecv() argument 113 return (fhpibrecv(unit, slave, sec, buf, cnt)); in hpibrecv() 114 return nhpibrecv(unit, slave, sec, buf, cnt); in hpibrecv() 118 hpibswait(int unit, int slave) in hpibswait() argument [all …]
|
| H A D | scsi.c | 373 scsi_test_unit_rdy(int ctlr, int slave) in scsi_test_unit_rdy() argument 378 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), NULL, 0, in scsi_test_unit_rdy() 383 scsi_request_sense(int ctlr, int slave, uint8_t *buf, unsigned int len) in scsi_request_sense() argument 389 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len, in scsi_request_sense() 394 scsi_read_capacity(int ctlr, int slave, uint8_t *buf, unsigned int len) in scsi_read_capacity() argument 399 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len, in scsi_read_capacity() 405 scsi_inquiry(int ctlr, int slave, uint8_t *buf, unsigned int len) in scsi_inquiry() argument 411 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len, in scsi_inquiry() 417 scsi_tt_read(int ctlr, int slave, uint8_t *buf, u_int len, daddr_t blk, in scsi_tt_read() argument 431 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len, in scsi_tt_read() [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/tests/kdc/ |
| H A D | check-iprop.in | 68 slave_ver_new=`grep 'up-to-date with version:' iprop-slave-status | awk '{print $4}'` 126 wait_for "slave to exit" check_pidfile_is_dead ipropd-slave 152 ${kadmin} -l add --random-key --use-defaults iprop/slave.test.h5l.se@${R} || exit 1 153 ${kadmin} -l ext -k ${keytab} iprop/slave.test.h5l.se@${R} || exit 1 196 rm -f iprop-slave-status 216 ${ipropd_slave} --hostname=slave.test.h5l.se -k ${keytab} --detach localhost || 218 ipds=`getpid ipropd-slave` 219 sh ${wait_kdc} ipropd-slave messages.log 'slave status change: up-to-date' || exit 1 224 …{EGREP} 'up-to-date with version' iprop-slave-status >/dev/null || { echo "slave to up to date" ; … 294 sh ${leaks_kill} ipropd-slave $ipds || exit 1 [all …]
|
| /netbsd-src/external/bsd/tmux/dist/compat/ |
| H A D | forkpty-haiku.c | 32 int slave = -1; in forkpty() local 47 if ((slave = open(path, O_RDWR|O_NOCTTY)) == -1) in forkpty() 57 if (ioctl(slave, TIOCSCTTY, NULL) == -1) in forkpty() 60 if (tio != NULL && tcsetattr(slave, TCSAFLUSH, tio) == -1) in forkpty() 62 if (ioctl(slave, TIOCSWINSZ, ws) == -1) in forkpty() 65 dup2(slave, 0); in forkpty() 66 dup2(slave, 1); in forkpty() 67 dup2(slave, 2); in forkpty() 68 if (slave > 2) in forkpty() 69 close(slave); in forkpty() [all …]
|
| /netbsd-src/tests/kernel/tty/ |
| H A D | t_pr.c | 72 exercise_ptytty(int master, int slave) in exercise_ptytty() argument 79 error = sendsome(master, slave); in exercise_ptytty() 89 error = sendsome(slave, master); in exercise_ptytty() 108 int master, slave, error, v; in ATF_TC_BODY() local 111 slave = rump_sys_open("/dev/ttyp1", O_RDWR|O_NONBLOCK); in ATF_TC_BODY() 112 ATF_CHECK(slave != -1); in ATF_TC_BODY() 118 rump_sys_ioctl(slave, FIOASYNC, &v); in ATF_TC_BODY() 119 error = exercise_ptytty(master, slave); in ATF_TC_BODY() 123 rump_sys_close(slave); in ATF_TC_BODY() 136 int master, slave, error; in ATF_TC_BODY() local [all …]
|
| /netbsd-src/sys/arch/i386/pci/ |
| H A D | viapcib.c | 352 viapcib_smbus_quick_write(void *opaque, i2c_addr_t slave) in viapcib_smbus_quick_write() argument 358 DPRINTF(("viapcib_smbus_quick_write(%p, 0x%x)\n", opaque, slave)); in viapcib_smbus_quick_write() 364 viapcib_smbus_write(sc, SMBHSTADD, (slave & 0x7f) << 1); in viapcib_smbus_quick_write() 374 viapcib_smbus_quick_read(void *opaque, i2c_addr_t slave) in viapcib_smbus_quick_read() argument 380 DPRINTF(("viapcib_smbus_quick_read(%p, 0x%x)\n", opaque, slave)); in viapcib_smbus_quick_read() 386 viapcib_smbus_write(sc, SMBHSTADD, ((slave & 0x7f) << 1) | 1); in viapcib_smbus_quick_read() 396 viapcib_smbus_send_byte(void *opaque, i2c_addr_t slave, uint8_t byte) in viapcib_smbus_send_byte() argument 403 slave, byte)); in viapcib_smbus_send_byte() 409 viapcib_smbus_write(sc, SMBHSTADD, (slave & 0x7f) << 1); in viapcib_smbus_send_byte() 421 viapcib_smbus_receive_byte(void *opaque, i2c_addr_t slave, uint8_t *pbyte) in viapcib_smbus_receive_byte() argument [all …]
|
| /netbsd-src/sys/arch/hp300/dev/ |
| H A D | hpib.c | 167 int id, slave, punit; in hpibbus_attach_children() local 170 for (slave = 0; slave < HPIB_NSLAVES; slave++) { in hpibbus_attach_children() 179 id = hpibid(device_unit(sc->sc_dev), slave); in hpibbus_attach_children() 190 ha.ha_slave = slave; in hpibbus_attach_children() 276 hpibid(int unit, int slave) in hpibid() argument 287 if (hpibrecv(unit, 31, slave, &id, 2) != 2) in hpibid() 294 hpibsend(int unit, int slave, int sec, void *addr, int cnt) in hpibsend() argument 298 return (*sc->sc_ops->hpib_send)(sc, slave, sec, addr, cnt); in hpibsend() 302 hpibrecv(int unit, int slave, int sec, void *addr, int cnt) in hpibrecv() argument 306 return (*sc->sc_ops->hpib_recv)(sc, slave, sec, addr, cnt); in hpibrecv() [all …]
|
| H A D | ct.c | 332 int ctlr, slave; in ctreset() local 336 slave = sc->sc_slave; in ctreset() 340 hpibsend(ctlr, slave, C_TCMD, &sc->sc_clear, sizeof(sc->sc_clear)); in ctreset() 341 hpibswait(ctlr, slave); in ctreset() 342 hpibrecv(ctlr, slave, C_QSTAT, &stat, sizeof(stat)); in ctreset() 348 hpibsend(ctlr, slave, C_CMD, &sc->sc_src, sizeof(sc->sc_src)); in ctreset() 349 hpibswait(ctlr, slave); in ctreset() 350 hpibrecv(ctlr, slave, C_QSTAT, &stat, sizeof(stat)); in ctreset() 358 hpibsend(ctlr, slave, C_CMD, &sc->sc_ssmc, sizeof(sc->sc_ssmc)); in ctreset() 359 hpibswait(ctlr, slave); in ctreset() [all …]
|
| H A D | rd.c | 567 int i, id, n, ctlr, slave; in rdident() local 570 slave = ha->ha_slave; in rdident() 593 rdreset_unit(ctlr, slave, ha->ha_punit); in rdident() 597 hpibsend(ctlr, slave, C_CMD, cmd, sizeof(cmd)); in rdident() 598 hpibrecv(ctlr, slave, C_EXEC, &desc, sizeof(desc)); in rdident() 599 hpibrecv(ctlr, slave, C_QSTAT, &stat, sizeof(stat)); in rdident() 703 int ctlr, slave, punit; in rdreset() local 706 slave = sc->sc_slave; in rdreset() 708 rdreset_unit(ctlr, slave, punit); in rdreset() 715 rdreset_unit(int ctlr, int slave, int punit) in rdreset_unit() argument [all …]
|
| H A D | fhpib.c | 235 fhpibsend(struct hpibbus_softc *hs, int slave, int sec, void *ptr, int origcnt) in fhpibsend() argument 250 hd->hpib_data = C_LAG + slave; in fhpibsend() 288 device_xname(sc->sc_dev), slave, sec); in fhpibsend() 296 fhpibrecv(struct hpibbus_softc *hs, int slave, int sec, void *ptr, int origcnt) in fhpibrecv() argument 308 if (slave >= 0) { in fhpibrecv() 316 hd->hpib_data = C_TAG + slave; in fhpibrecv() 336 hd->hpib_data = (slave == 31) ? C_UNA : C_UNT; in fhpibrecv() 349 device_xname(sc->sc_dev), slave, sec); in fhpibrecv() 357 fhpibgo(struct hpibbus_softc *hs, int slave, int sec, void *ptr, int count, in fhpibgo() argument 402 if (fhpibrecv(hs, slave, sec, 0, 0) < 0) { in fhpibgo() [all …]
|
| /netbsd-src/sys/dev/pcmcia/ |
| H A D | pcmcom.c | 142 int slave; in pcmcom_attach() local 164 for (slave = 0; slave < sc->sc_nslaves; slave++) { in pcmcom_attach() 167 printf("%s: slave %d\n", device_xname(self), slave); in pcmcom_attach() 169 pca.pca_iot = cfe->iospace[slave].handle.iot; in pcmcom_attach() 170 pca.pca_ioh = cfe->iospace[slave].handle.ioh; in pcmcom_attach() 171 pca.pca_slave = slave; in pcmcom_attach() 173 locs[PCMCOMCF_SLAVE] = slave; in pcmcom_attach() 175 sc->sc_slaves[slave] = in pcmcom_attach() 193 int slave; in pcmcom_childdet() local 195 for (slave = sc->sc_nslaves - 1; slave >= 0; slave--) { in pcmcom_childdet() [all …]
|
| /netbsd-src/lib/libutil/ |
| H A D | pty.c | 68 int master, slave; in openpty() local 85 slave = pt.sfd; in openpty() 119 (slave = open(line, O_RDWR, 0)) != -1) { in openpty() 122 *aslave = slave; in openpty() 126 (void)tcsetattr(slave, TCSAFLUSH, term); in openpty() 128 (void)ioctl(slave, TIOCSWINSZ, winp); in openpty() 141 int master, slave; in forkpty() local 149 if (openpty(&master, &slave, name, term, winp) == -1) in forkpty() 159 login_tty(slave); in forkpty() 166 (void)close(slave); in forkpty()
|
| /netbsd-src/sys/arch/arm/imx/ |
| H A D | imxspi.c | 158 imxspi_configure(void *arg, int slave, int mode, int speed) in imxspi_configure() argument 202 __func__, slave, mode, speed)); in imxspi_configure() 208 imxspi_configure_enhanced(void *arg, int slave, int mode, int speed) in imxspi_configure_enhanced() argument 225 contrl |= __SHIFTIN(slave, ECSPI_CON_CS); in imxspi_configure_enhanced() 226 contrl |= __SHIFTIN(__BIT(slave), ECSPI_CON_MODE); in imxspi_configure_enhanced() 230 config &= ~(__SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_POL) | in imxspi_configure_enhanced() 231 __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_CTL) | in imxspi_configure_enhanced() 232 __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_PHA)); in imxspi_configure_enhanced() 239 config |= __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_PHA); in imxspi_configure_enhanced() 243 config |= __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_POL); in imxspi_configure_enhanced() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/i2c/ |
| H A D | drm_encoder_slave.c | 131 drm_i2c_encoder_init(struct drm_device *dev, struct drm_encoder_slave *slave, in drm_i2c_encoder_init() argument 141 slave->bus_priv = bus_priv; in drm_i2c_encoder_init() 164 ret = (*driver->encoder_init)(client, dev, slave); in drm_i2c_encoder_init() 169 (*slave->slave_funcs->set_config)(&slave->base, in drm_i2c_encoder_init() 180 slave->bus_priv = NULL; in drm_i2c_encoder_init() 188 struct drm_encoder_slave *const slave = to_encoder_slave(encoder); in drm_i2c_encoder_destroy() local 189 struct drm_i2c_encoder_bus_priv *const bus_priv = slave->bus_priv; in drm_i2c_encoder_destroy() 202 struct drm_encoder_slave *const slave = to_encoder_slave(encoder); in drm_i2c_encoder_get_client() local 203 struct drm_i2c_encoder_bus_priv *const bus_priv = slave->bus_priv; in drm_i2c_encoder_get_client()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/roken/ |
| H A D | rkpty.c | 87 static int slave; variable 105 if(openpty(&master, &slave, line, 0, 0) == 0) in open_pty() 129 slave = open(line, O_RDWR); in open_pty() 130 if (slave < 0) in open_pty() 132 ioctl(slave, I_PUSH, "ptem"); in open_pty() 133 ioctl(slave, I_PUSH, "ldterm"); in open_pty() 362 dup2(slave, STDIN_FILENO); in main() 363 dup2(slave, STDOUT_FILENO); in main() 364 dup2(slave, STDERR_FILENO); in main() 370 close(slave); in main()
|
| /netbsd-src/sys/dev/pci/ |
| H A D | ismt.c | 334 ismt_submit(struct ismt_softc *sc, struct ismt_desc *desc, i2c_addr_t slave, in ismt_submit() argument 346 desc->tgtaddr_rw = ISMT_DESC_ADDR_RW(slave, is_read); in ismt_submit() 421 ismt_quick(struct ismt_softc *sc, i2c_addr_t slave, i2c_op_t op, int flags) in ismt_quick() argument 430 return (ismt_submit(sc, desc, slave, is_read, flags)); in ismt_quick() 434 ismt_sendb(struct ismt_softc *sc, i2c_addr_t slave, i2c_op_t op, char byte, in ismt_sendb() argument 445 return (ismt_submit(sc, desc, slave, 0, flags)); in ismt_sendb() 449 ismt_recvb(struct ismt_softc *sc, i2c_addr_t slave, i2c_op_t op, int flags) in ismt_recvb() argument 459 err = ismt_submit(sc, desc, slave, 1, flags); in ismt_recvb() 468 ismt_writeb(struct ismt_softc *sc, i2c_addr_t slave, i2c_op_t op, uint8_t cmd, in ismt_writeb() argument 480 return (ismt_submit(sc, desc, slave, 0, flags)); in ismt_writeb() [all …]
|
| /netbsd-src/tests/lib/libcurses/director/ |
| H A D | 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 84 fprintf(stderr, "output from slave: "); in slave_died() 97 fprintf(stderr, "slave exited with message \"%s\"\n", in slave_died() 117 fprintf(stderr, " -s is the path to the slave executable\n"); in usage() 130 const char *termpath, *term, *slave; in main() 139 termpath = term = slave = NULL; in main() 156 slave = optarg; in main() 185 if (slave in main() 129 const char *termpath, *term, *slave; main() local [all...] |
| /netbsd-src/sys/dev/ofw/ |
| H A D | ofw_spi_subr.c | 52 uint32_t slave; in of_enter_spi_devs() local 62 slave = 0; in of_enter_spi_devs() 67 slave = be64toh(reg64); in of_enter_spi_devs() 72 slave = be32toh(reg32); in of_enter_spi_devs() 86 prop_dictionary_set_uint32(dev, "slave", slave); in of_enter_spi_devs()
|
| /netbsd-src/external/gpl3/gdb/dist/readline/readline/examples/rlfe/ |
| H A D | rlfe.c | 191 int slave = -1; in get_slave_pty() local 219 slave = open(name, O_RDWR); in get_slave_pty() 220 return (slave); in get_slave_pty() 458 int slave; /* file descriptor for slave pty */ in main() local 464 if ((slave = get_slave_pty(name)) < 0) in main() 485 if (ioctl(slave, TIOCSCTTY, NULL)) in main() 490 if ((slave = get_slave_pty(name)) < 0) in main() 498 dup2(slave, STDIN_FILENO); in main() 499 dup2(slave, STDOUT_FILENO); in main() 500 dup2(slave, STDERR_FILENO); in main() [all …]
|
| /netbsd-src/external/gpl3/gdb.old/dist/readline/readline/examples/rlfe/ |
| H A D | rlfe.c | 191 int slave = -1; in get_slave_pty() local 219 slave = open(name, O_RDWR); in get_slave_pty() 220 return (slave); in get_slave_pty() 458 int slave; /* file descriptor for slave pty */ in main() local 464 if ((slave = get_slave_pty(name)) < 0) in main() 485 if (ioctl(slave, TIOCSCTTY, NULL)) in main() 490 if ((slave = get_slave_pty(name)) < 0) in main() 498 dup2(slave, STDIN_FILENO); in main() 499 dup2(slave, STDOUT_FILENO); in main() 500 dup2(slave, STDERR_FILENO); in main() [all …]
|
| /netbsd-src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
| H A D | keystone-k2e-netcp.dtsi | 178 slave-port = <0>; 183 slave-port = <1>; 189 secondary-slave-ports { 191 slave-port = <2>; 195 slave-port = <3>; 199 slave-port = <4>; 203 slave-port = <5>; 207 slave-port = <6>; 211 slave-port = <7>;
|
| /netbsd-src/tests/lib/libcurses/ |
| H A D | testframe.txt | 23 director and the slave. The director reads a configuration file of 24 tests to perform, passes these commands to the slave over a pipe and 25 reads the pty for any output from the slave. Data from the slave is 27 are highlighted to the tester. The slave is a curses application that 30 along with the parameters required for the call. The slave takes the 42 -s slave_path the director will execute slave_path as the slave 43 process. The default is ./slave 45 executing the slave. The default is atf 51 slave. The test language has a small number of commands, they are: 156 Compares the output stream from the slave against the contents [all …]
|