Lines Matching refs:opts

58 static void vsock_io_uring_client(const struct test_opts *opts,  in vsock_io_uring_client()  argument
69 fd = vsock_stream_connect(opts->peer_cid, opts->peer_port); in vsock_io_uring_client()
112 static void vsock_io_uring_server(const struct test_opts *opts, in vsock_io_uring_server() argument
123 fd = vsock_stream_accept(VMADDR_CID_ANY, opts->peer_port, NULL); in vsock_io_uring_server()
182 void test_stream_uring_server(const struct test_opts *opts) in test_stream_uring_server() argument
187 vsock_io_uring_server(opts, &test_data_array[i]); in test_stream_uring_server()
190 void test_stream_uring_client(const struct test_opts *opts) in test_stream_uring_client() argument
195 vsock_io_uring_client(opts, &test_data_array[i], false); in test_stream_uring_client()
198 void test_stream_uring_msg_zc_server(const struct test_opts *opts) in test_stream_uring_msg_zc_server() argument
203 vsock_io_uring_server(opts, &test_data_array[i]); in test_stream_uring_msg_zc_server()
206 void test_stream_uring_msg_zc_client(const struct test_opts *opts) in test_stream_uring_msg_zc_client() argument
211 vsock_io_uring_client(opts, &test_data_array[i], true); in test_stream_uring_msg_zc_client()
289 struct test_opts opts = { in main() local
309 opts.mode = TEST_MODE_CLIENT; in main()
311 opts.mode = TEST_MODE_SERVER; in main()
318 opts.peer_cid = parse_cid(optarg); in main()
321 opts.peer_port = parse_port(optarg); in main()
334 if (opts.mode == TEST_MODE_UNSET) in main()
336 if (opts.peer_cid == VMADDR_CID_ANY) in main()
340 if (opts.mode != TEST_MODE_SERVER) in main()
346 opts.mode == TEST_MODE_SERVER); in main()
348 run_tests(test_cases, &opts); in main()