Searched defs:slave (Results 1 - 25 of 67) sorted by relevance

123

/freebsd-head/crypto/openssh/openbsd-compat/
H A Dbsd-openpty.c81 char *slave; local
83 if ((slave = _getpty(amaster, O_RDWR, 0622, 0)) == NULL)
86 /* Open the slave side. */
87 if ((*aslave = open(slave, O_RDWR | O_NOCTTY)) == -1) {
118 /* Open the slave side. */
175 /* Open the slave side. */
/freebsd-head/lib/libutil/
H A Dpty.c54 int master, slave; local
70 slave = open(slavename, O_RDWR);
71 if (slave == -1)
75 *aslave = slave;
80 tcsetattr(slave, TCSAFLUSH, termp);
82 ioctl(slave, TIOCSWINSZ, (char *)winp);
93 int master, slave, pid; local
95 if (openpty(&master, &slave, name, termp, winp) == -1)
99 (void)close(slave);
106 login_tty(slave);
[all...]
/freebsd-head/contrib/netbsd-tests/kernel/kqueue/read/
H A Dt_ttypty.c67 (void)printf("tty: openpty master %d slave %d tty '%s'\n",
132 ATF_TC(slave); variable
133 ATF_TC_HEAD(slave, tc)
135 atf_tc_set_md_var(tc, "descr", "Checks EVFILT_READ for slave tty");
137 ATF_TC_BODY(slave, tc)
145 ATF_TP_ADD_TC(tp, slave);
/freebsd-head/contrib/netbsd-tests/kernel/kqueue/write/
H A Dt_ttypty.c64 (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);
/freebsd-head/tools/regression/p1003_1b/
H A Dyield.c70 int master, slave; local
113 slave = 0;
130 master = 0; /* I'm a slave */
131 slave = i + 1; /* With this flag */
132 *p = slave; /* And I live */
138 /* If we conform the slave processes haven't run yet.
139 * The master must yield to let the first slave run.
148 /* Now the master yields, the first slave runs, and yields,
160 /* The final slave process should be the last one started.
164 "Error at line %d: Final slave i
[all...]
/freebsd-head/contrib/netbsd-tests/kernel/tty/
H A Dt_pr.c72 exercise_ptytty(int master, int slave) argument
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...]
/freebsd-head/sys/dev/smbus/
H A Dsmb.h50 int slave; member in struct:smbcmd
/freebsd-head/sys/dev/iicbus/
H A Diic.h39 uint16_t slave; member in struct:iic_msg
50 u_char slave; member in struct:iiccmd
70 #define I2CSADDR _IOW('i', 8, uint8_t) /* set slave address for future I/O */
H A Diicoc.c151 iicoc_iicbus_start(device_t dev, u_char slave, int timeout) argument
158 sc->i2cdev_addr = (slave >> 1);
165 if (iicoc_wr_ack_cmd(dev, slave, OC_COMMAND_START)) {
167 "I2C write slave address [0x%x] failed.\n", slave);
213 device_printf(dev, "I2C write slave offset failed.\n");
273 iicoc_iicbus_repeated_start(device_t dev, u_char slave, int timeout) argument
H A Diicsmb.c76 u_char devaddr; /* slave device address */
92 static int iicsmb_quick(device_t dev, u_char slave, int how);
93 static int iicsmb_sendb(device_t dev, u_char slave, char byte);
94 static int iicsmb_recvb(device_t dev, u_char slave, char *byte);
95 static int iicsmb_writeb(device_t dev, u_char slave, char cmd, char byte);
96 static int iicsmb_writew(device_t dev, u_char slave, char cmd, short word);
97 static int iicsmb_readb(device_t dev, u_char slave, char cmd, char *byte);
98 static int iicsmb_readw(device_t dev, u_char slave, char cmd, short *word);
99 static int iicsmb_pcall(device_t dev, u_char slave, char cmd, short sdata, short *rdata);
100 static int iicsmb_bwrite(device_t dev, u_char slave, cha
313 iicsmb_quick(device_t dev, u_char slave, int how) argument
333 iicsmb_sendb(device_t dev, u_char slave, char byte) argument
345 iicsmb_recvb(device_t dev, u_char slave, char *byte) argument
357 iicsmb_writeb(device_t dev, u_char slave, char cmd, char byte) argument
370 iicsmb_writew(device_t dev, u_char slave, char cmd, short word) argument
383 iicsmb_readb(device_t dev, u_char slave, char cmd, char *byte) argument
396 iicsmb_readw(device_t dev, u_char slave, char cmd, short *word) argument
412 iicsmb_pcall(device_t dev, u_char slave, char cmd, short sdata, short *rdata) argument
429 iicsmb_bwrite(device_t dev, u_char slave, char cmd, u_char count, char *buf) argument
445 iicsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) argument
[all...]
H A Diiconf.c251 * Send start condition to the slave addressed by 'slave'
254 iicbus_start(device_t bus, u_char slave, int timeout) argument
262 if (!(error = IICBUS_START(device_get_parent(bus), slave, timeout)))
263 sc->started = slave;
273 * Send start condition to the slave addressed by 'slave'
276 iicbus_repeated_start(device_t bus, u_char slave, int timeout) argument
284 if (!(error = IICBUS_REPEATED_START(device_get_parent(bus), slave, timeout)))
285 sc->started = slave;
393 iicbus_block_write(device_t bus, u_char slave, char *buf, int len, int *sent) argument
414 iicbus_block_read(device_t bus, u_char slave, char *buf, int len, int *read) argument
[all...]
H A Dicee.c234 int error, i, len, slave; local
247 slave = error = 0;
255 slave = (uio->uio_offset >> 7) | sc->addr;
261 slave = sc->addr | (uio->uio_offset >> 15);
269 msgs[i].slave = slave;
292 int error, len, slave, waitlimit; local
307 slave = error = 0;
315 slave = (uio->uio_offset >> 7) | sc->addr;
320 slave
[all...]
/freebsd-head/contrib/netbsd-tests/lib/libcurses/director/
H A Ddirector.c50 #define DEF_SLAVE "./slave"
57 int cmdpipe[2]; /* command pipe between director and slave */
58 int slvpipe[2]; /* reply pipe back from slave */
59 int master; /* pty to the slave */
69 * Handle the slave exiting unexpectedly, try to recover the exit message
80 fprintf(stderr, "output from slave: ");
90 fprintf(stderr, "slave exited with message \"%s\"\n",
108 fprintf(stderr, " -s is the path to the slave executable\n");
122 const char *termpath, *term, *slave; local
130 termpath = term = slave
[all...]
/freebsd-head/usr.sbin/smbmsg/
H A Dsmbmsg.c61 static int slave = -1; /* slave address */ variable
86 " smbmsg [-f dev] -s slave [-F fmt] [-c cmd] [-w] "
115 c.slave = addr;
138 c.slave = slave;
273 if ((slave = getnum(optarg)) == -1)
276 if (slave < MIN_I2C_ADDR || slave >= MAX_I2C_ADDR)
279 slave);
[all...]
/freebsd-head/sys/dev/imcsmb/
H A Dimcsmb.c63 static int imcsmb_readb(device_t dev, u_char slave, char cmd, char *byte);
64 static int imcsmb_readw(device_t dev, u_char slave, char cmd, short *word);
65 static int imcsmb_writeb(device_t dev, u_char slave, char cmd, char byte);
66 static int imcsmb_writew(device_t dev, u_char slave, char cmd, short word);
69 static int imcsmb_transfer(device_t dev, u_char slave, char cmd, void *data,
75 * which any SMBus slave device drivers will connect to.
208 * @param[in] slave
219 imcsmb_readb(device_t dev, u_char slave, char cmd, char *byte) argument
222 return (imcsmb_transfer(dev, slave, cmd, byte, FALSE, FALSE));
232 * @param[in] slave
243 imcsmb_readw(device_t dev, u_char slave, char cmd, short *word) argument
267 imcsmb_writeb(device_t dev, u_char slave, char cmd, char byte) argument
291 imcsmb_writew(device_t dev, u_char slave, char cmd, short word) argument
323 imcsmb_transfer(device_t dev, u_char slave, char cmd, void *data, int word_op, int write_op) argument
[all...]
/freebsd-head/sys/dev/pcf/
H A Dpcf.c120 pcf_repeated_start(device_t dev, u_char slave, int timeout) argument
127 device_printf(dev, " >> repeated start for slave %#x\n",
128 (unsigned)slave);
133 /* set slave address to PCF. Last bit (LSB) must be set correctly
135 pcf_set_S0(sc, slave);
160 pcf_start(device_t dev, u_char slave, int timeout) argument
167 device_printf(dev, " >> start for slave %#x\n", (unsigned)slave);
177 /* set slave address to PCF. Last bit (LSB) must be set correctly
179 pcf_set_S0(sc, slave);
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Drkpty.c85 static int slave; variable
103 if(openpty(&master, &slave, line, 0, 0) == 0)
127 slave = open(line, O_RDWR);
128 if (slave < 0)
129 errx(1, "failed to open slave when using %s", *q);
130 ioctl(slave, I_PUSH, "ptem");
131 ioctl(slave, I_PUSH, "ldterm");
360 dup2(slave, STDIN_FILENO);
361 dup2(slave, STDOUT_FILENO);
362 dup2(slave, STDERR_FILEN
[all...]
/freebsd-head/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_cm.c330 mlx4_ib_warn(ibdev, "%s: id{slave: %d, sl_cm_id: 0x%x} Failed to id_map_alloc\n",
343 pr_debug("id{slave: %d, sl_cm_id: 0x%x} is NULL!\n",
358 int mlx4_ib_demux_cm_handler(struct ib_device *ibdev, int port, int *slave, argument
368 if (!slave)
372 *slave = mlx4_ib_find_real_gid(ibdev, port, gid.global.interface_id);
373 if (*slave < 0) {
389 if (slave)
390 *slave = id->slave_id;
411 /* slave = -1 ==> all slaves */
412 /* TBD -- call paravirt clean for single slave
413 mlx4_ib_cm_paravirt_clean(struct mlx4_ib_dev *dev, int slave) argument
[all...]
H A Dmlx4_ib_sysfs.c374 int slave; member in struct:mlx4_port
449 if (p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1][tab_attr->index] >=
454 p->dev->pkeys.virt2phys_pkey[p->slave]
468 if (p->slave == mlx4_master_func_num(p->dev->dev))
478 p->dev->pkeys.virt2phys_pkey[p->slave][p->port_num - 1]
480 mlx4_sync_pkey_table(p->dev->dev, p->slave, p->port_num,
482 err = mlx4_gen_pkey_eqe(p->dev->dev, p->slave, p->port_num);
484 pr_err("mlx4_gen_pkey_eqe failed for slave %d,"
485 " port %d, index %d\n", p->slave, p->port_num, idx);
494 return sprintf(buf, "%d\n", p->slave);
638 add_port(struct mlx4_ib_dev *dev, int port_num, int slave) argument
707 register_one_pkey_tree(struct mlx4_ib_dev *dev, int slave) argument
786 int slave; local
[all...]
/freebsd-head/sys/arm/mv/
H A Da37x0_iic.c308 a37x0_iic_start(device_t dev, u_char slave, int timeout) argument
323 /* Write the slave address. */
324 A37X0_IIC_WRITE(sc, A37X0_IIC_IDBR, slave);
326 /* Send Start condition (with slave address). */
/freebsd-head/sys/dev/ichsmb/
H A Dichsmb.c165 ichsmb_quick(device_t dev, u_char slave, int how) argument
170 DBG("slave=0x%02x how=%d\n", slave, how);
179 slave | (how == SMB_QREAD ?
194 ichsmb_sendb(device_t dev, u_char slave, char byte) argument
199 DBG("slave=0x%02x byte=0x%02x\n", slave, (u_char)byte);
205 slave | ICH_XMIT_SLVA_WRITE);
216 ichsmb_recvb(device_t dev, u_char slave, char *byte) argument
221 DBG("slave
238 ichsmb_writeb(device_t dev, u_char slave, char cmd, char byte) argument
262 ichsmb_writew(device_t dev, u_char slave, char cmd, short word) argument
287 ichsmb_readb(device_t dev, u_char slave, char cmd, char *byte) argument
310 ichsmb_readw(device_t dev, u_char slave, char cmd, short *word) argument
337 ichsmb_pcall(device_t dev, u_char slave, char cmd, short sdata, short *rdata) argument
367 ichsmb_bwrite(device_t dev, u_char slave, char cmd, u_char count, char *buf) argument
413 ichsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) argument
[all...]
/freebsd-head/sys/dev/iicbus/mux/
H A Diicmux.c106 * request exclusive use of our upstream bus. If multiple slave devices
168 iicmux_repeated_start(device_t dev, u_char slave, int timeout) argument
172 return (iicbus_repeated_start(sc->busdev, slave, timeout));
184 iicmux_start(device_t dev, u_char slave, int timeout) argument
188 return (iicbus_start(sc->busdev, slave, timeout));
/freebsd-head/sys/dev/intpm/
H A Dintpm.c75 static int intsmb_quick(device_t dev, u_char slave, int how);
76 static int intsmb_sendb(device_t dev, u_char slave, char byte);
77 static int intsmb_recvb(device_t dev, u_char slave, char *byte);
78 static int intsmb_writeb(device_t dev, u_char slave, char cmd, char byte);
79 static int intsmb_writew(device_t dev, u_char slave, char cmd, short word);
80 static int intsmb_readb(device_t dev, u_char slave, char cmd, char *byte);
81 static int intsmb_readw(device_t dev, u_char slave, char cmd, short *word);
82 static int intsmb_pcall(device_t dev, u_char slave, char cmd, short sdata, short *rdata);
83 static int intsmb_bwrite(device_t dev, u_char slave, char cmd, u_char count, char *buf);
84 static int intsmb_bread(device_t dev, u_char slave, cha
629 intsmb_quick(device_t dev, u_char slave, int how) argument
663 intsmb_sendb(device_t dev, u_char slave, char byte) argument
683 intsmb_recvb(device_t dev, u_char slave, char *byte) argument
713 intsmb_writeb(device_t dev, u_char slave, char cmd, char byte) argument
734 intsmb_writew(device_t dev, u_char slave, char cmd, short word) argument
756 intsmb_readb(device_t dev, u_char slave, char cmd, char *byte) argument
778 intsmb_readw(device_t dev, u_char slave, char cmd, short *word) argument
802 intsmb_pcall(device_t dev, u_char slave, char cmd, short sdata, short *rdata) argument
809 intsmb_bwrite(device_t dev, u_char slave, char cmd, u_char count, char *buf) argument
839 intsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf) argument
[all...]
/freebsd-head/sys/arm/freescale/vybrid/
H A Dvf_i2c.c82 #define IBSR_IAAS (1 << 6) /* Addressed as a slave. */
312 i2c_repeated_start(device_t dev, u_char slave, int timeout) argument
324 WRITE1(sc, I2C_IBAD, slave);
341 WRITE1(sc, I2C_IBDR, slave);
354 i2c_start(device_t dev, u_char slave, int timeout) argument
366 WRITE1(sc, I2C_IBAD, slave);
384 WRITE1(sc, I2C_IBDR, slave);
/freebsd-head/sys/arm/samsung/exynos/
H A Dexynos5_i2c.c84 #define ADDAS (1 << 2) /* Address-as-slave Status Flag */
238 i2c_start(device_t dev, u_char slave, int timeout) argument
255 if (slave & 1) {
256 slave &= ~(1);
257 slave <<= 1;
258 slave |= 1;
260 slave <<= 1;
274 WRITE1(sc, I2CDS, slave);

Completed in 185 milliseconds

123