Home
last modified time | relevance | path

Searched refs:slave (Results 1 – 25 of 192) sorted by relevance

12345678

/external/crosvm/third_party/vmm_vhost/src/
Dlib.rs74 mod slave;
75 pub use self::slave::SlaveListener;
254 let slave = Mutex::new(DummySlaveReqHandler::new()); in create_dummy_slave() localVariable
256 slave.set_owner().unwrap(); in create_dummy_slave()
257 assert!(slave.set_owner().is_err()); in create_dummy_slave()
263 let (master, mut slave) = create_master_slave_pair(slave_be); in test_set_owner()
265 assert!(!slave.as_ref().lock().unwrap().owned); in test_set_owner()
267 handle_request(&mut slave).unwrap(); in test_set_owner()
268 assert!(slave.as_ref().lock().unwrap().owned); in test_set_owner()
270 assert!(handle_request(&mut slave).is_err()); in test_set_owner()
[all …]
/external/antlr/tool/src/test/java/org/antlr/test/
DTestCompositeGrammars.java52 String slave = in testDelegatorInvokesDelegateRule() local
56 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRule()
72 String slave = in testDelegatorInvokesDelegateRuleWithArgs() local
76 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRuleWithArgs()
92 String slave = in testDelegatorInvokesDelegateRuleWithReturnStruct() local
96 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesDelegateRuleWithReturnStruct()
109 String slave = in testDelegatorAccessesDelegateMembers() local
116 writeFile(tmpdir, "S.g", slave); in testDelegatorAccessesDelegateMembers()
128 String slave = in testDelegatorInvokesFirstVersionOfDelegateRule() local
133 writeFile(tmpdir, "S.g", slave); in testDelegatorInvokesFirstVersionOfDelegateRule()
[all …]
/external/python/cpython2/Tools/scripts/
Dtreesync.py55 [slave, master] = args
61 process(slave, master)
63 def process(slave, master): argument
70 print "slave ", slave
72 if not os.path.isdir(slave):
73 if not okay("create slave directory %s?" % slave,
76 print "-- no corresponding slave", slave
78 print "creating slave directory", slave
80 os.mkdir(slave)
82 print "can't make slave directory", slave, ":", msg
[all …]
/external/antlr/runtime/Python3/tests/
Dt052import.py73 for slave in slaves:
74 parserName = self.writeInlineGrammar(slave)[0]
92 for slave in slaves:
93 parserName = self.writeInlineGrammar(slave)[0]
115 slave = textwrap.dedent(
144 slaves=[slave],
152 slave = textwrap.dedent(
179 slaves=[slave],
187 slave = textwrap.dedent(
216 slaves=[slave],
[all …]
/external/antlr/runtime/Python/tests/
Dt052import.py73 for slave in slaves:
74 parserName = self.writeInlineGrammar(slave)[0]
94 for slave in slaves:
95 parserName = self.writeInlineGrammar(slave)[0]
130 slave = textwrap.dedent(
159 slaves=[slave],
188 slave = textwrap.dedent(
215 slaves=[slave],
223 slave = textwrap.dedent(
252 slaves=[slave],
[all …]
/external/igt-gpu-tools/tests/
Dcore_auth.c93 int *fds = NULL, slave; in test_many_magics() local
105 slave = open(path, O_RDWR | O_CLOEXEC); in test_many_magics()
106 if (slave < 0) { in test_many_magics()
111 igt_assert(drmSetMaster(slave) < 0); in test_many_magics()
131 igt_assert(drmGetMagic(slave, &magic) == 0); in test_many_magics()
135 fds[i] = slave; in test_many_magics()
164 int slave; in test_basic_auth() local
167 slave = drm_open_driver(DRIVER_ANY); in test_basic_auth()
168 igt_require(slave >= 0); in test_basic_auth()
169 igt_require(drmSetMaster(slave) < 0); in test_basic_auth()
[all …]
/external/rust/crates/nix/test/
Dtest_pty.rs141 let slave = unsafe { File::from_raw_fd(slave_fd) }; in open_ptty_pair() localVariable
143 (master, slave) in open_ptty_pair()
153 let (master, slave) = open_ptty_pair(); in test_open_ptty_pair()
155 assert!(slave.as_raw_fd() > 0); in test_open_ptty_pair()
168 let (mut master, mut slave) = open_ptty_pair(); in test_read_ptty_pair()
169 make_raw(slave.as_raw_fd()); in test_read_ptty_pair()
172 slave.write_all(b"hello").unwrap(); in test_read_ptty_pair()
177 slave.write_all(b"hello").unwrap(); in test_read_ptty_pair()
185 let (mut master, mut slave) = open_ptty_pair(); in test_write_ptty_pair()
186 make_raw(slave.as_raw_fd()); in test_write_ptty_pair()
[all …]
/external/python/pyserial/test/
Dtest_pty.py29 self.master, self.slave = pty.openpty()
32 with serial.Serial(os.ttyname(self.slave), timeout=1) as slave:
36 with serial.Serial(os.ttyname(self.slave), timeout=1) as slave:
40 out = slave.read(len(DATA))
44 with serial.Serial(os.ttyname(self.slave), timeout=1) as slave:
46 slave.write(DATA)
47 slave.flush()
/external/rust/crates/nix/test/sys/
Dtest_termios.rs25 termios::tcgetattr(pty.slave).unwrap(); in test_tcgetattr_pty()
27 close(pty.slave).expect("closing the slave failed"); in test_tcgetattr_pty()
56 assert!(pty.slave > 0); in test_output_flags()
57 let termios = tcgetattr(pty.slave).expect("tcgetattr failed"); in test_output_flags()
59 close(pty.slave).unwrap(); in test_output_flags()
77 assert!(pty.slave > 0); in test_output_flags()
85 crate::read_exact(pty.slave, &mut buf); in test_output_flags()
88 close(pty.slave).unwrap(); in test_output_flags()
102 assert!(pty.slave > 0); in test_local_flags()
103 let termios = tcgetattr(pty.slave).unwrap(); in test_local_flags()
[all …]
/external/libnl/lib/route/link/
Dbonding.c102 int slave) in rtnl_link_bond_enslave_ifindex() argument
110 rtnl_link_set_ifindex(link, slave); in rtnl_link_bond_enslave_ifindex()
125 if ((err = rtnl_link_get_kernel(sock, slave, NULL, &link)) < 0) in rtnl_link_bond_enslave_ifindex()
158 struct rtnl_link *slave) in rtnl_link_bond_enslave() argument
162 rtnl_link_get_ifindex(slave)); in rtnl_link_bond_enslave()
177 int rtnl_link_bond_release_ifindex(struct nl_sock *sock, int slave) in rtnl_link_bond_release_ifindex() argument
179 return rtnl_link_bond_enslave_ifindex(sock, 0, slave); in rtnl_link_bond_release_ifindex()
201 int rtnl_link_bond_release(struct nl_sock *sock, struct rtnl_link *slave) in rtnl_link_bond_release() argument
204 rtnl_link_get_ifindex(slave)); in rtnl_link_bond_release()
/external/crosvm/third_party/vmm_vhost/src/connection/
Dsocket.rs295 let mut slave = listener.accept().unwrap().unwrap(); in send_data() localVariable
300 let (bytes, buf2, _) = slave.recv_into_buf(0x1000).unwrap(); in send_data()
306 let (bytes, buf2, _) = slave.recv_into_buf(0x2).unwrap(); in send_data()
309 let (bytes, buf2, _) = slave.recv_into_buf(0x2).unwrap(); in send_data()
322 let mut slave = listener.accept().unwrap().unwrap(); in send_fd() localVariable
334 let (bytes, buf2, files) = slave.recv_into_buf(4).unwrap(); in send_fd()
363 let (bytes, buf2, files) = slave.recv_into_buf(0x2).unwrap(); in send_fd()
376 let (bytes, buf2, files) = slave.recv_into_buf(0x2).unwrap(); in send_fd()
396 let buf4 = slave.recv_data(2).unwrap(); in send_fd()
399 let (bytes, buf2, files) = slave.recv_into_buf(0x2).unwrap(); in send_fd()
[all …]
Dtube.rs206 let (mut master, mut slave) = create_pair(); in send_data()
211 let (bytes, buf2, _) = slave.recv_into_buf(0x1000).unwrap(); in send_data()
218 let (mut master, mut slave) = create_pair(); in send_fd()
230 let (bytes, buf2, files) = slave.recv_into_buf(4).unwrap(); in send_fd()
261 let (bytes, buf2, files) = slave.recv_into_buf(0x4).unwrap(); in send_fd()
266 let (bytes, buf2, files) = slave.recv_into_buf(0x4).unwrap(); in send_fd()
296 let (bytes, _, files) = slave.recv_into_buf(0x4).unwrap(); in send_fd()
303 let (mut master, mut slave) = create_pair(); in send_recv()
318 let (hdr2, bytes, files) = slave.recv_body_into_buf(slice).unwrap(); in send_recv()
325 let (hdr2, files) = slave.recv_header().unwrap(); in send_recv()
/external/compiler-rt/test/msan/Linux/
Dforkpty.cc10 int master, slave; in main() local
11 openpty(&master, &slave, NULL, NULL, NULL); in main()
13 assert(__msan_test_shadow(&slave, sizeof(slave)) == -1); in main()
/external/python/cpython3/Lib/test/
Dtest_openpty.py11 master, slave = os.openpty()
13 self.addCleanup(os.close, slave)
14 if not os.isatty(slave):
17 os.write(slave, b'Ping!')
/external/python/cpython2/Lib/test/
Dtest_openpty.py12 master, slave = os.openpty()
14 self.addCleanup(os.close, slave)
15 if not os.isatty(slave):
18 os.write(slave, 'Ping!')
/external/rust/crates/nix/src/
Dpty.rs26 pub slave: RawFd, field
258 let mut slave = mem::MaybeUninit::<libc::c_int>::uninit(); in openpty() localVariable
267 slave.as_mut_ptr(), in openpty()
277 slave.as_mut_ptr(), in openpty()
288 slave.as_mut_ptr(), in openpty()
298 slave.as_mut_ptr(), in openpty()
312 slave: slave.assume_init(), in openpty()
/external/linux-kselftest/tools/testing/selftests/filesystems/
Ddevpts_pts.c103 int master = -1, slave = -1, fret = -1; in do_tiocgptpeer() local
123 slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC); in do_tiocgptpeer()
125 if (slave < 0) { in do_tiocgptpeer()
145 ret = login_pty(slave); in do_tiocgptpeer()
181 if (slave >= 0) in do_tiocgptpeer()
182 close(slave); in do_tiocgptpeer()
/external/oss-fuzz/projects/mysql-server/targets/
DCMakeLists.txt9 …TARGET_LINK_LIBRARIES(fuzz_mysqld sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis…
12 …TARGET_LINK_LIBRARIES(fuzz_initfile sql_main sql_gis binlog rpl master slave sql_dd mysys minchass…
23 …TARGET_LINK_LIBRARIES(fuzz_mysqld sql_main sql_gis binlog rpl master slave sql_dd mysys minchassis…
27 …TARGET_LINK_LIBRARIES(fuzz_initfile sql_main sql_gis binlog rpl master slave sql_dd mysys minchass…
/external/libnl/src/
Dnl-link-release.c16 struct rtnl_link *slave; in main() local
28 if (!(slave = rtnl_link_get_by_name(link_cache, argv[1]))) { in main()
33 if ((err = rtnl_link_bond_release(sock, slave)) < 0) { in main()
Dnl-link-enslave.c16 struct rtnl_link *master, *slave; in main() local
33 if (!(slave = rtnl_link_get_by_name(link_cache, argv[2]))) { in main()
38 if ((err = rtnl_link_bond_enslave(sock, master, slave)) < 0) { in main()
/external/rootdev/
Drootdev.c272 void rootdev_get_device_slave(char *slave, size_t size, dev_t *dev, in rootdev_get_device_slave() argument
286 if (slave != device) in rootdev_get_device_slave()
287 strncpy(slave, device, size); in rootdev_get_device_slave()
288 slave[size - 1] = '\0'; in rootdev_get_device_slave()
290 len = snprintf(dst, sizeof(dst), "%s/%s/slaves", search, slave); in rootdev_get_device_slave()
296 if (match_sysfs_device(slave, size, dst, dev, 0) <= 0) { in rootdev_get_device_slave()
300 warnx("slave depth greater than %d at %s", i, slave); in rootdev_get_device_slave()
/external/arm-trusted-firmware/drivers/renesas/common/iic_dvfs/
Diic_dvfs.c239 IIC_DVFS_FUNC(set_slave, enum dvfs_state_t *state, uint32_t *err, uint8_t slave) in IIC_DVFS_FUNC() argument
258 address = slave << 1; in IIC_DVFS_FUNC()
415 uint8_t slave) in IIC_DVFS_FUNC() argument
434 address = ((uint8_t) (slave << 1) + DVFS_READ_MODE); in IIC_DVFS_FUNC()
513 RCAR_DVFS_API(send, uint8_t slave, uint8_t reg_addr, uint8_t reg_data) in RCAR_DVFS_API() argument
527 result = dvfs_set_slave(&state, &err, slave); in RCAR_DVFS_API()
553 RCAR_DVFS_API(receive, uint8_t slave, uint8_t reg, uint8_t *data) in RCAR_DVFS_API() argument
567 result = dvfs_set_slave(&state, &err, slave); in RCAR_DVFS_API()
576 result = dvfs_set_slave_read(&state, &err, slave); in RCAR_DVFS_API()
Diic_dvfs.h20 int32_t rcar_iic_dvfs_receive(uint8_t slave, uint8_t reg, uint8_t *data);
21 int32_t rcar_iic_dvfs_send(uint8_t slave, uint8_t regr, uint8_t data);
/external/llvm/docs/
DHowToAddABuilder.rst9 buildslave to private slave builder to LLVM Buildbot Infrastructure
45 Creating a slave
46 <http://buildbot.net/buildbot/docs/current/full.html#creating-a-slave>`_
51 $ buildslave create-slave <buildslave-root-directory> \
71 #. Send a patch which adds your build slave and your builder to zorg.
84 if administrator contact and slave information are correct.
/external/crosvm/third_party/vmm_vhost/
DREADME.md15 The protocol defines two sides of the communication, master and slave. Master is the application
16 that shares its virtqueues, slave is the consumer of the virtqueues. Master and slave can be either

12345678