HomeSort by: relevance | last modified time | path
    Searched refs:slave (Results 1 - 25 of 94) sorted by relevancy

1 2 3 4

  /src/external/bsd/tmux/dist/compat/
forkpty-haiku.c 32 int slave = -1; local
47 if ((slave = open(path, O_RDWR|O_NOCTTY)) == -1)
57 if (ioctl(slave, TIOCSCTTY, NULL) == -1)
60 if (tio != NULL && tcsetattr(slave, TCSAFLUSH, tio) == -1)
62 if (ioctl(slave, TIOCSWINSZ, ws) == -1)
65 dup2(slave, 0);
66 dup2(slave, 1);
67 dup2(slave, 2);
68 if (slave > 2)
69 close(slave);
    [all...]
  /src/sys/arch/hp300/stand/common/
hpib.c 85 hpibid(int unit, int slave)
91 rv = fhpibrecv(unit, 31, slave, (uint8_t *)&id, 2);
93 rv = nhpibrecv(unit, 31, slave, (uint8_t *)&id, 2);
100 hpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt)
104 return (fhpibsend(unit, slave, sec, buf, cnt));
105 return nhpibsend(unit, slave, sec, buf, cnt);
109 hpibrecv(int unit, int slave, int sec, uint8_t *buf, int cnt)
113 return (fhpibrecv(unit, slave, sec, buf, cnt));
114 return nhpibrecv(unit, slave, sec, buf, cnt);
118 hpibswait(int unit, int slave)
    [all...]
fhpib.c 83 fhpibsend(int unit, int slave, int sec, uint8_t *buf, int cnt)
96 hd->hpib_data = C_LAG + slave;
123 fhpibrecv(int unit, int slave, int sec, uint8_t *buf, int cnt)
136 hd->hpib_data = C_TAG + slave;
151 hd->hpib_data = (slave == 31) ? C_UNA : C_UNT;
  /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
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
    [all...]
  /src/tests/lib/libcurses/slave/
Makefile 7 TESTS_C+= slave
9 PROG= slave
11 #MAN= slave.7
12 SRCS= slave.c commands.c curses_commands.c
  /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
116 for (slave = 0; slave < 8; slave++) {
119 slave))
123 slave, &id, 2) != 2
    [all...]
gpibvar.h 91 #define gpibpptest(ic, slave) \
92 (*((ic)->pptest))((ic)->cookie, (slave))
95 #define gpibxfer(ic, slave, sec, buf, cnt, rw, timo) \
96 (*((ic)->xfer))((ic)->cookie, (slave), (sec), (buf), (cnt), \
100 * An GPIB job queue entry. Slave drivers have one of these used
106 void *hq_softc; /* slave's softc */
107 int hq_slave; /* slave on bus */
108 gpib_callback_t hq_callback; /* slave's callback function */
121 #define gpibsend(ic, slave, sec, addr, cnt) \
122 _gpibsend((ic)->bus, (slave), (sec), (addr), (cnt)
    [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
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...]
  /src/lib/libutil/
pty.c 68 int master, slave; local
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
149 if (openpty(&master, &slave, name, term, winp) == -1)
159 login_tty(slave);
166 (void)close(slave);
    [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
170 for (slave = 0; slave < HPIB_NSLAVES; slave++) {
179 id = hpibid(device_unit(sc->sc_dev), slave);
190 ha.ha_slave = slave;
    [all...]
ct.c 102 int sc_slave; /* HP-IB slave ID */
332 int ctlr, slave; local
336 slave = sc->sc_slave;
340 hpibsend(ctlr, slave, C_TCMD, &sc->sc_clear, sizeof(sc->sc_clear));
341 hpibswait(ctlr, slave);
342 hpibrecv(ctlr, slave, C_QSTAT, &stat, sizeof(stat));
348 hpibsend(ctlr, slave, C_CMD, &sc->sc_src, sizeof(sc->sc_src));
349 hpibswait(ctlr, slave);
350 hpibrecv(ctlr, slave, C_QSTAT, &stat, sizeof(stat));
358 hpibsend(ctlr, slave, C_CMD, &sc->sc_ssmc, sizeof(sc->sc_ssmc))
376 int cc, ctlr, slave; local
534 int i, ctlr, slave; local
734 int ctlr, slave; local
    [all...]
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
    [all...]
  /src/external/bsd/byacc/dist/package/debian/
byacc2.postinst 9 --slave /usr/share/man/man1/yacc.1.gz yaccman \
  /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
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
    [all...]
  /src/sys/arch/rs6000/include/
iocc.h 60 #define IOCC_DMA_SLAVE_CTRL(slave) \
61 (IOCC_BASE + 0x380 + (slave * 4)) /* slave control regs */
  /src/sys/arch/arm/imx/
imxspi.c 127 imxspi_configure(void *arg, int slave, int mode, int speed)
170 DPRINTFN(3, ("%s: slave %d mode %d speed %d\n",
171 __func__, slave, mode, speed));
177 imxspi_configure_enhanced(void *arg, int slave, int mode, int speed)
194 contrl |= __SHIFTIN(slave, ECSPI_CON_CS);
195 contrl |= __SHIFTIN(__BIT(slave), ECSPI_CON_MODE);
199 config &= ~(__SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_POL) |
200 __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_CTL) |
201 __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_PHA));
208 config |= __SHIFTIN(__BIT(slave), ECSPI_CONFIG_SCLK_PHA)
    [all...]
  /src/tests/kernel/kqueue/write/
t_ttypty.c 64 (void)printf("tty: openpty master %d slave %d tty '%s'\n",
114 ATF_TC(slave); variable
115 ATF_TC_HEAD(slave, tc)
117 atf_tc_set_md_var(tc, "descr", "Checks EVFILT_WRITE for slave tty");
119 ATF_TC_BODY(slave, tc)
127 ATF_TP_ADD_TC(tp, slave);
  /src/sys/arch/i386/pci/
viapcib.c 206 /* Disable slave function */
348 viapcib_smbus_quick_write(void *opaque, i2c_addr_t slave)
354 DPRINTF(("viapcib_smbus_quick_write(%p, 0x%x)\n", opaque, slave));
360 viapcib_smbus_write(sc, SMBHSTADD, (slave & 0x7f) << 1);
370 viapcib_smbus_quick_read(void *opaque, i2c_addr_t slave)
376 DPRINTF(("viapcib_smbus_quick_read(%p, 0x%x)\n", opaque, slave));
382 viapcib_smbus_write(sc, SMBHSTADD, ((slave & 0x7f) << 1) | 1);
392 viapcib_smbus_send_byte(void *opaque, i2c_addr_t slave, uint8_t byte)
399 slave, byte));
405 viapcib_smbus_write(sc, SMBHSTADD, (slave & 0x7f) << 1)
    [all...]
  /src/sys/dev/usb/
umcpmio_spi.c 149 mcp2210_spi_configure(void *cookie, int slave, int mode, int speed)
156 if (slave >= sc->sc_spi.sct_nslaves)
172 umcpmio_gpio_pin_ctl(sc, slave, GPIO_PIN_ALT0);
198 sc->sc_slave_configs[slave].bit_rate = (uint32_t) speed;
199 sc->sc_slave_configs[slave].mode = desired_mode;
201 if (!SIMPLEQ_EMPTY(&sc->sc_received[slave])) {
202 while ((r = SIMPLEQ_FIRST(&sc->sc_received[slave])) != NULL) {
203 SIMPLEQ_REMOVE_HEAD(&sc->sc_received[slave], umcpmio_spi_received_q);
214 /* Set all of the stuff about the slave device that is needed
220 uint16_t max_transfer_size, int slave)
    [all...]
  /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
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
203 struct drm_i2c_encoder_bus_priv *const bus_priv = slave->bus_priv
    [all...]
  /src/sys/arch/evbarm/netwalker/
netwalker_spi.c 60 imxspi_cs_enable(void *arg, int slave)
62 switch (slave) {
81 imxspi_cs_disable(void *arg, int slave)
83 switch (slave) {
  /src/tests/lib/libcurses/
Makefile 7 SUBDIR= director slave tests check_files
  /src/usr.sbin/timed/timed/
Makefile 8 slave.c timed.c byteorder.c measure.c cksum.c tspname.c
  /src/sys/external/bsd/drm2/dist/drm/nouveau/
nouveau_encoder.h 82 struct drm_encoder_slave *slave = to_encoder_slave(enc); local
84 return container_of(slave, struct nouveau_encoder, base);
  /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
139 termpath = term = slave = NULL;
156 slave = optarg
    [all...]

Completed in 55 milliseconds

1 2 3 4