| /tools/testing/selftests/kvm/lib/ |
| A D | io.c | 43 ssize_t rc; in test_write() local 54 rc = write(fd, ptr, num_left); in test_write() 56 switch (rc) { in test_write() 72 num_written += rc; in test_write() 73 num_left -= rc; in test_write() 74 ptr += rc; in test_write() 120 ssize_t rc; in test_read() local 133 switch (rc) { in test_read() 149 num_read += rc; in test_read() 150 num_left -= rc; in test_read() [all …]
|
| /tools/testing/selftests/rtc/ |
| A D | rtctest.c | 48 int rc; in TEST_F() local 57 ASSERT_NE(-1, rc); in TEST_F() 95 int rc; in get_rtc_alarm_state() local 101 if (rc < 0) in get_rtc_alarm_state() 115 int rc; variable 164 if (rc == -1) { 193 if (rc == -1) { in TEST_F() 228 int rc; in TEST_F() local 298 int rc; in TEST_F() local 362 int rc; variable [all …]
|
| /tools/testing/selftests/powerpc/syscalls/ |
| A D | rtas_filter.c | 70 int rc; in rtas_token() local 82 return rc; in rtas_token() 137 if (rc) { in rtas_call() 161 int rc; in test() local 168 FAIL_IF(rc != 0 && rc != RTAS_UNKNOWN_OP); in test() 175 FAIL_IF(rc != -EINVAL && rc != RTAS_UNKNOWN_OP); in test() 179 if (rc) { in test() 193 FAIL_IF(rc != 0 && rc != RTAS_UNKNOWN_OP); in test() 201 FAIL_IF(rc != -EINVAL && rc != RTAS_UNKNOWN_OP); in test() 209 FAIL_IF(rc != -EINVAL && rc != RTAS_UNKNOWN_OP); in test() [all …]
|
| /tools/testing/selftests/ia64/ |
| A D | aliasing-test.c | 26 int fd, rc; in map_mem() local 38 if (rc == -1) in map_mem() 53 if (rc == -1) { in map_mem() 90 if (rc == 0) in scan_tree() 96 return rc; in scan_tree() 121 int fd, rc; in read_rom() local 139 if (rc > 0) in read_rom() 140 size += rc; in read_rom() 208 int rc; in main() local 240 if (rc == 0) in main() [all …]
|
| /tools/testing/selftests/efivarfs/ |
| A D | open-unlink.c | 17 int rc; in set_immutable() local 25 if (rc < 0) { in set_immutable() 29 return rc; in set_immutable() 41 return rc; in set_immutable() 48 int rc; in get_immutable() local 56 if (rc < 0) { in get_immutable() 60 return rc; in get_immutable() 72 int fd, rc; in main() local 104 if (rc < 0) { in main() 109 if (rc < 0) { in main() [all …]
|
| /tools/testing/selftests/riscv/vector/ |
| A D | vstate_prctl.c | 16 int rc; in test_and_compare_child() local 19 if (rc != 0) { in test_and_compare_child() 37 long rc; in TEST() local 43 EXPECT_EQ(-1, rc) in TEST() 51 long rc; in TEST() local 57 EXPECT_EQ(-1, rc) in TEST() 66 long rc; in TEST() local 79 long rc; in TEST() local 210 int rc; in TEST() local 223 int rc; in TEST() local [all …]
|
| A D | vstate_exec_nolibc.c | 9 int rc, pid, status, test_inherit = 0, xtheadvector = 0; in main() local 39 rc = execve(THIS_PROGRAM, exec_argv, exec_envp); in main() 40 if (rc) { in main() 54 rc = my_syscall1(__NR_prctl, PR_RISCV_V_GET_CONTROL); in main() 55 if (rc != ctrl) { in main() 71 rc = waitpid(-1, &status, 0); in main() 101 rc = (ctrl & PR_RISCV_V_VSTATE_CTRL_NEXT_MASK) >> 2; in main() 102 if (rc != PR_RISCV_V_VSTATE_CTRL_DEFAULT) { in main() 103 if (rc != (ctrl_c & PR_RISCV_V_VSTATE_CTRL_CUR_MASK)) { in main()
|
| /tools/testing/selftests/powerpc/tm/ |
| A D | tm-trap.c | 250 int cpu, rc; in tm_trap_test() local 278 rc = pthread_attr_init(&attr); in tm_trap_test() 279 if (rc) in tm_trap_test() 288 if (rc) in tm_trap_test() 298 rc = fflush(0); in tm_trap_test() 299 if (rc) in tm_trap_test() 300 pr_error(rc, "fflush()"); in tm_trap_test() 304 if (rc) in tm_trap_test() 311 if (rc) in tm_trap_test() 315 if (rc) in tm_trap_test() [all …]
|
| A D | tm-unavailable.c | 315 int rc; in test_fp_vec() local 319 if (rc) in test_fp_vec() 322 if (rc) in test_fp_vec() 325 if (rc) in test_fp_vec() 326 pr_err(rc, "pthread_join"); in test_fp_vec() 357 rc = pthread_attr_init(&attr); in tm_unavailable_test() 358 if (rc) in tm_unavailable_test() 363 if (rc) in tm_unavailable_test() 367 if (rc) in tm_unavailable_test() 368 pr_err(rc, "pthread_create()"); in tm_unavailable_test() [all …]
|
| /tools/testing/selftests/drivers/s390x/uvdevice/ |
| A D | test_uvdevice.c | 57 int rc, errno_cache; in TEST_F() local 61 ASSERT_EQ(rc, -1); in TEST_F() 66 ASSERT_EQ(rc, -1); in TEST_F() 72 int rc, errno_cache; in TEST_F() local 77 ASSERT_EQ(rc, -1); in TEST_F() 83 ASSERT_EQ(rc, -1); in TEST_F() 98 ASSERT_EQ(rc, -1); in TEST_F() 104 ASSERT_EQ(rc, -1); in TEST_F() 111 ASSERT_EQ(rc, -1); in TEST_F() 118 ASSERT_EQ(rc, -1); in TEST_F() [all …]
|
| /tools/testing/selftests/riscv/hwprobe/ |
| A D | which-cpus.c | 64 int rc; in do_which_cpus() local 79 assert(rc == 0); in do_which_cpus() 89 long rc; in main() local 91 rc = sched_getaffinity(0, sizeof(cpu_set_t), &cpus_aff); in main() 92 assert(rc == 0); in main() 106 rc = riscv_hwprobe(pairs, 1, 0, NULL, 0); in main() 111 rc = riscv_hwprobe(pairs, 1, 0, NULL, 0); in main() 112 assert(rc == 0 && pairs[0].key == RISCV_HWPROBE_KEY_IMA_EXT_0); in main() 118 ksft_test_result(rc == -EINVAL, "no cpusetsize\n"); in main() 122 ksft_test_result(rc == -EINVAL, "NULL cpus\n"); in main() [all …]
|
| /tools/usb/usbip/src/ |
| A D | usbip_attach.c | 83 int rc; in import_device() local 87 rc = usbip_vhci_driver_open(); in import_device() 88 if (rc < 0) { in import_device() 108 } while (rc < 0); in import_device() 122 int rc; in query_import_device() local 133 if (rc < 0) { in query_import_device() 143 if (rc < 0) { in query_import_device() 150 if (rc < 0) { in query_import_device() 157 if (rc < 0) { in query_import_device() 177 int rc; in attach_device() local [all …]
|
| A D | usbip_bind.c | 42 int rc = -1; in bind_usbip() local 49 if (rc < 0) { in bind_usbip() 65 int rc = -1; in unbind_other() local 114 if (rc < 0) { in unbind_other() 132 int rc; in bind_device() local 154 rc = unbind_other(busid); in bind_device() 155 if (rc == UNBIND_ST_FAILED) { in bind_device() 164 rc = modify_match_busid(busid, 1); in bind_device() 165 if (rc < 0) { in bind_device() 170 rc = bind_usbip(busid); in bind_device() [all …]
|
| A D | usbipd.c | 99 int rc; in recv_request_import() local 164 int rc, i; in send_reply_devlist() local 232 int rc; in recv_request_devlist() local 296 int rc; in tcpd_auth() local 314 int rc; in do_accept() local 326 if (rc) in do_accept() 365 int rc; in addrinfo_to_text() local 371 if (rc) in addrinfo_to_text() 429 int rc; in do_getaddrinfo() local 673 rc = 0; in main() [all …]
|
| /tools/testing/selftests/powerpc/alignment/ |
| A D | alignment_handler.c | 247 if (rc) { in do_test() 253 if (rc) { in do_test() 259 rc = 0; in do_test() 282 rc = 1; in do_test() 289 rc = 1; in do_test() 305 return rc; in do_test() 335 return rc; in test_alignment_handler_vsx_206() 351 return rc; in test_alignment_handler_vsx_207() 383 return rc; in test_alignment_handler_vsx_300() 402 return rc; in test_alignment_handler_vsx_prefix() [all …]
|
| /tools/testing/selftests/powerpc/pmu/ |
| A D | lib.c | 62 int rc; in wait_for_child() local 69 if (WIFEXITED(rc)) in wait_for_child() 70 rc = WEXITSTATUS(rc); in wait_for_child() 72 rc = 1; /* Signal or other */ in wait_for_child() 74 return rc; in wait_for_child() 106 int rc; in eat_cpu() local 122 rc = -1; in eat_cpu() 128 rc = test_function(); in eat_cpu() 132 return rc; in eat_cpu() 142 int rc; in parse_proc_maps() local [all …]
|
| /tools/testing/selftests/net/netfilter/ |
| A D | xt_string.sh | 6 rc=0 72 ((rc--)) 81 ((rc--)) 89 ((rc--)) 97 ((rc--)) 105 ((rc--)) 113 ((rc--)) 121 ((rc--)) 129 ((rc--)) 132 [ $rc -eq 0 ] && echo "PASS: string match tests" [all …]
|
| /tools/testing/cxl/test/ |
| A D | mock.c | 67 int index, rc; in __wrap_acpi_table_parse_cedt() local 77 return rc; in __wrap_acpi_table_parse_cedt() 163 return rc; in __wrap_devm_cxl_add_passthrough_decoder() 180 return rc; in __wrap_devm_cxl_enumerate_decoders() 195 return rc; in __wrap_devm_cxl_port_enumerate_dports() 205 rc = 0; in __wrap_cxl_await_media_ready() 210 return rc; in __wrap_cxl_await_media_ready() 222 rc = 0; in __wrap_cxl_hdm_decode_init() 227 return rc; in __wrap_cxl_hdm_decode_init() 238 rc = 0; in __wrap_cxl_dvsec_rr_decode() [all …]
|
| /tools/testing/selftests/sysctl/ |
| A D | sysctl.sh | 222 rc=0 268 rc=1 278 rc=1 288 rc=1 299 rc=1 317 rc=1 371 rc=1 387 rc=1 404 rc=1 417 rc=1 [all …]
|
| /tools/testing/selftests/powerpc/mm/ |
| A D | stack_expansion_ldst.c | 81 int rc; in search_proc_maps() local 92 if (rc == 2) in search_proc_maps() 95 if (rc != 3) { in search_proc_maps() 97 rc = -1; in search_proc_maps() 104 rc = 0; in search_proc_maps() 111 return rc; in search_proc_maps() 132 int rc; in test_one() local 138 assert(waitpid(pid, &rc, 0) != -1); in test_one() 140 if (WIFEXITED(rc) && WEXITSTATUS(rc) == 0) in test_one() 144 assert(!WIFEXITED(rc)); in test_one() [all …]
|
| /tools/testing/selftests/net/ |
| A D | nettest.c | 270 int rc; in tcp_md5sig() local 371 int rc; in bind_to_device() local 382 int rc; in get_bind_to_device() local 424 int rc; in set_pktinfo_v4() local 427 if (rc < 0 && rc != -ENOTSUP) in set_pktinfo_v4() 436 int rc; in set_recvpktinfo_v6() local 439 if (rc < 0 && rc != -ENOTSUP) in set_recvpktinfo_v6() 448 int rc; in set_recverr_v4() local 451 if (rc < 0 && rc != -ENOTSUP) in set_recverr_v4() 460 int rc; in set_recverr_v6() local [all …]
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | section_names.c | 10 int rc; member 15 int rc; member 212 int rc; in test_prog_type_by_name() local 214 rc = libbpf_prog_type_by_name(test->sec_name, &prog_type, in test_prog_type_by_name() 217 CHECK(rc != test->expected_load.rc, "check_code", in test_prog_type_by_name() 218 "prog: unexpected rc=%d for %s\n", rc, test->sec_name); in test_prog_type_by_name() 220 if (rc) in test_prog_type_by_name() 235 int rc; in test_attach_type_by_name() local 237 rc = libbpf_attach_type_by_name(test->sec_name, &attach_type); in test_attach_type_by_name() 239 CHECK(rc != test->expected_attach.rc, "check_ret", in test_attach_type_by_name() [all …]
|
| /tools/testing/selftests/powerpc/ |
| A D | harness.c | 30 int rc, status; in run_test() local 53 rc = waitpid(pid, &status, 0); in run_test() 54 if (rc == -1) { in run_test() 106 int rc; in test_harness() local 123 rc = run_test(test_function, name); in test_harness() 125 if (rc == MAGIC_SKIP_RETURN_VALUE) { in test_harness() 128 rc = 0; in test_harness() 130 test_finish(name, rc); in test_harness() 132 return rc; in test_harness()
|
| /tools/testing/selftests/powerpc/nx-gzip/ |
| A D | gzip_vas.c | 53 int rc, fd; in open_device_nodes() local 67 if (rc < 0) { in open_device_nodes() 69 rc = -errno; in open_device_nodes() 76 rc = -errno; in open_device_nodes() 82 rc = 0; in open_device_nodes() 85 return rc; in open_device_nodes() 90 int rc; in nx_function_begin() local 110 if (rc < 0) { in nx_function_begin() 121 int rc = 0; in nx_function_end() local 127 return rc; in nx_function_end() [all …]
|
| /tools/testing/selftests/filelock/ |
| A D | ofdlocks.c | 37 int rc; in main() local 51 rc = lock_set(fd, &fl); in main() 52 if (rc == 0) { in main() 63 rc = lock_get(fd2, &fl); in main() 64 if (rc != 0) in main() 74 rc = lock_get(fd2, &fl); in main() 75 if (rc != 0) in main() 89 rc = lock_get(fd, &fl); in main() 90 if (rc != 0) { in main() 108 rc = lock_get(fd, &fl2); in main() [all …]
|