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

1 2 3 4 5 6 7

  /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;
scsi.c 373 scsi_test_unit_rdy(int ctlr, int slave)
378 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), NULL, 0,
383 scsi_request_sense(int ctlr, int slave, uint8_t *buf, unsigned int len)
389 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,
394 scsi_read_capacity(int ctlr, int slave, uint8_t *buf, unsigned int len)
399 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,
405 scsi_inquiry(int ctlr, int slave, uint8_t *buf, unsigned int len)
411 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,
417 scsi_tt_read(int ctlr, int slave, uint8_t *buf, u_int len, daddr_t blk,
431 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len
    [all...]
  /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/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 in function:cs80busattach
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 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...]
  /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/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...]
ct.c 102 int sc_slave; /* HP-IB slave ID */
332 int ctlr, slave; local in function:ctreset
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 in function:ctopen
534 int i, ctlr, slave; local in function:ctstart
734 int ctlr, slave; local in function:ctintr
    [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 in function:fhpibppwatch
    [all...]
rd.c 567 int i, id, n, ctlr, slave; local in function:rdident
570 slave = ha->ha_slave;
593 rdreset_unit(ctlr, slave, ha->ha_punit);
597 hpibsend(ctlr, slave, C_CMD, cmd, sizeof(cmd));
598 hpibrecv(ctlr, slave, C_EXEC, &desc, sizeof(desc));
599 hpibrecv(ctlr, slave, C_QSTAT, &stat, sizeof(stat));
703 int ctlr, slave, punit; local in function:rdreset
706 slave = sc->sc_slave;
708 rdreset_unit(ctlr, slave, punit);
715 rdreset_unit(int ctlr, int slave, int punit
985 int ctlr, slave; local in function:rdstart
1062 int rw, ctlr, slave; local in function:rdgo
1085 int rv, restart, ctlr, slave; local in function:rdintr
1469 int ctlr, slave; local in function:rddump
    [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/sys/arch/rs6000/include/
iocc.h 60 #define IOCC_DMA_SLAVE_CTRL(slave) \
61 (IOCC_BASE + 0x380 + (slave * 4)) /* slave control regs */
  /src/tests/kernel/kqueue/write/
t_ttypty.c 64 (void)printf("tty: openpty master %d slave %d tty '%s'\n",
114 ATF_TC(slave);
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/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/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/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/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 in function:nouveau_encoder
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 in function:main
139 termpath = term = slave = NULL;
156 slave = optarg
    [all...]
  /src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/
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>;

Completed in 39 milliseconds

1 2 3 4 5 6 7