Lines Matching refs:sv
153 int *sv = data; in send_recv_test() local
155 rx_test(dev, t_alloc, rx, sv[0]); in send_recv_test()
156 tx_test(dev, t_alloc, tx, sv[0]); in send_recv_test()
164 int *sv = data; in stop_cont_test() local
166 rx_stop_cont_test(dev, t_alloc, rx, sv[0]); in stop_cont_test()
190 int *sv = data; in announce_self() local
208 ret = recv(sv[0], &len, sizeof(len), 0); in announce_self()
212 ret = recv(sv[0], buffer, len, 0); in announce_self()
236 ret = recv(sv[0], buffer, 60, MSG_DONTWAIT); in announce_self()
266 int *sv = sockets; in virtio_net_test_cleanup() local
268 close(sv[0]); in virtio_net_test_cleanup()
270 close(sv[1]); in virtio_net_test_cleanup()
271 g_free(sv); in virtio_net_test_cleanup()
277 int *sv = g_new(int, 2); in virtio_net_test_setup() local
279 ret = socketpair(PF_UNIX, SOCK_STREAM, 0, sv); in virtio_net_test_setup()
282 g_string_append_printf(cmd_line, " -netdev socket,fd=%d,id=hs0 ", sv[1]); in virtio_net_test_setup()
284 g_test_queue_destroy(virtio_net_test_cleanup, sv); in virtio_net_test_setup()
285 return sv; in virtio_net_test_setup()