/tools/testing/selftests/membarrier/ |
D | membarrier_test_impl.h | 229 int status; in test_membarrier_fail() local 231 status = test_membarrier_cmd_fail(); in test_membarrier_fail() 232 if (status) in test_membarrier_fail() 233 return status; in test_membarrier_fail() 234 status = test_membarrier_flags_fail(); in test_membarrier_fail() 235 if (status) in test_membarrier_fail() 236 return status; in test_membarrier_fail() 237 status = test_membarrier_private_expedited_fail(); in test_membarrier_fail() 238 if (status) in test_membarrier_fail() 239 return status; in test_membarrier_fail() [all …]
|
/tools/power/acpi/os_specific/service_layers/ |
D | oslinuxtbl.c | 161 acpi_status status = AE_OK; in acpi_os_get_table_by_address() local 165 status = osl_table_initialize(); in acpi_os_get_table_by_address() 166 if (ACPI_FAILURE(status)) { in acpi_os_get_table_by_address() 167 return (status); in acpi_os_get_table_by_address() 172 status = osl_map_table(address, NULL, &mapped_table); in acpi_os_get_table_by_address() 173 if (ACPI_FAILURE(status)) { in acpi_os_get_table_by_address() 174 return (status); in acpi_os_get_table_by_address() 181 status = AE_BAD_HEADER; in acpi_os_get_table_by_address() 187 status = AE_NO_MEMORY; in acpi_os_get_table_by_address() 196 return (status); in acpi_os_get_table_by_address() [all …]
|
/tools/power/acpi/tools/acpidump/ |
D | apdump.c | 70 acpi_status status; in ap_is_valid_checksum() local 79 status = acpi_tb_validate_rsdp(rsdp); in ap_is_valid_checksum() 81 status = acpi_tb_verify_checksum(table, table->length); in ap_is_valid_checksum() 84 if (ACPI_FAILURE(status)) { in ap_is_valid_checksum() 193 acpi_status status; in ap_dump_all_tables() local 200 status = in ap_dump_all_tables() 202 if (ACPI_FAILURE(status)) { in ap_dump_all_tables() 206 if (status == AE_LIMIT) { in ap_dump_all_tables() 211 acpi_format_exception(status)); in ap_dump_all_tables() 216 i, acpi_format_exception(status)); in ap_dump_all_tables() [all …]
|
D | apmain.c | 133 acpi_status status; in ap_do_options() local 177 status = in ap_do_options() 179 if (ACPI_FAILURE(status)) { in ap_do_options() 293 int status = 0; in main() local 305 status = ap_do_options(argc, argv); in main() 306 if (status > 0) { in main() 309 if (status < 0) { in main() 310 return (status); in main() 320 status = ap_dump_all_tables(); in main() 325 status = ap_dump_table_by_address(action->argument); in main() [all …]
|
/tools/testing/selftests/powerpc/ |
D | harness.c | 30 int rc, status; in run_test() local 53 rc = waitpid(pid, &status, 0); in run_test() 76 if (WIFEXITED(status)) in run_test() 77 status = WEXITSTATUS(status); in run_test() 79 if (WIFSIGNALED(status)) in run_test() 80 printf("!! child died by signal %d\n", WTERMSIG(status)); in run_test() 84 status = 1; /* Signal or other */ in run_test() 87 return status; in run_test()
|
/tools/spi/ |
D | spidev_fdx.c | 21 int status; in do_read() local 30 status = read(fd, buf, len); in do_read() 31 if (status < 0) { in do_read() 35 if (status != len) { in do_read() 40 printf("read(%2d, %2d): %02x %02x,", len, status, in do_read() 42 status -= 2; in do_read() 44 while (status-- > 0) in do_read() 53 int status; in do_msg() local 68 status = ioctl(fd, SPI_IOC_MESSAGE(2), xfer); in do_msg() 69 if (status < 0) { in do_msg() [all …]
|
/tools/power/acpi/common/ |
D | cmfsize.c | 33 acpi_status status; in cm_get_file_size() local 42 status = fseek(file, 0, SEEK_END); in cm_get_file_size() 43 if (ACPI_FAILURE(status)) { in cm_get_file_size() 54 status = fseek(file, current_offset, SEEK_SET); in cm_get_file_size() 55 if (ACPI_FAILURE(status)) { in cm_get_file_size()
|
/tools/testing/nvdimm/test/ |
D | nfit_test.h | 45 __u32 status; member 62 __u32 status; member 68 __u32 status; member 72 __u32 status; member 114 __u32 status; member 132 __u32 status; member 143 __u32 status; member 161 __u32 status; member 174 __u32 status; member 192 __u32 status; member [all …]
|
/tools/perf/arch/x86/tests/ |
D | bp-modify.c | 62 int status; in bp_modify1() local 67 waitpid(child, &status, 0); in bp_modify1() 68 if (WIFEXITED(status)) { in bp_modify1() 106 waitpid(child, &status, 0); in bp_modify1() 107 if (WIFEXITED(status)) { in bp_modify1() 139 int status; in bp_modify2() local 144 waitpid(child, &status, 0); in bp_modify2() 145 if (WIFEXITED(status)) { in bp_modify2() 182 waitpid(child, &status, 0); in bp_modify2() 183 if (WIFEXITED(status)) { in bp_modify2()
|
/tools/testing/selftests/breakpoints/ |
D | step_after_suspend_test.c | 52 int status; in run_test() local 63 wpid = waitpid(pid, &status, __WALL); in run_test() 68 if (!WIFSTOPPED(status)) { in run_test() 72 if (WSTOPSIG(status) != SIGSTOP) { in run_test() 89 wpid = waitpid(pid, &status, __WALL); in run_test() 94 if (WIFEXITED(status)) { in run_test() 99 if (!WIFSTOPPED(status)) { in run_test() 103 if (WSTOPSIG(status) != SIGTRAP) { in run_test() 115 wpid = waitpid(pid, &status, __WALL); in run_test() 120 if (!WIFEXITED(status)) { in run_test()
|
D | breakpoint_test_arm64.c | 114 int status; in arun_test() local 127 wpid = waitpid(pid, &status, __WALL); in arun_test() 133 if (!WIFSTOPPED(status)) { in arun_test() 138 if (WSTOPSIG(status) != SIGSTOP) { in arun_test() 154 wpid = waitpid(pid, &status, __WALL); in arun_test() 161 if (WIFEXITED(status)) { in arun_test() 165 if (!WIFSTOPPED(status)) { in arun_test() 169 if (WSTOPSIG(status) != SIGTRAP) { in arun_test() 186 wpid = waitpid(pid, &status, 0); in arun_test()
|
/tools/testing/selftests/x86/ |
D | test_mremap_vdso.c | 92 int status; in main() local 94 if (waitpid(child, &status, 0) != child || in main() 95 !WIFEXITED(status)) { in main() 98 } else if (WEXITSTATUS(status) != 0) { in main() 100 WEXITSTATUS(status)); in main()
|
/tools/testing/selftests/ptrace/ |
D | get_syscall_info.c | 124 int status; in TEST() local 127 ASSERT_EQ(pid, wait(&status)) { in TEST() 131 if (WIFEXITED(status)) { in TEST() 133 ASSERT_EQ(0, WEXITSTATUS(status)); in TEST() 136 ASSERT_FALSE(WIFSIGNALED(status)) { in TEST() 139 WTERMSIG(status)); in TEST() 141 ASSERT_TRUE(WIFSTOPPED(status)) { in TEST() 143 LOG_KILL_TRACEE("unexpected wait status %#x", status); in TEST() 146 switch (WSTOPSIG(status)) { in TEST() 259 WSTOPSIG(status)); in TEST()
|
/tools/perf/ |
D | builtin-version.c | 30 static void on_off_print(const char *status) in on_off_print() argument 34 if (!strcmp(status, "OFF")) in on_off_print() 35 color_fprintf(stdout, PERF_COLOR_RED, "%-3s", status); in on_off_print() 37 color_fprintf(stdout, PERF_COLOR_GREEN, "%-3s", status); in on_off_print() 43 const char *status) in status_print() argument 46 on_off_print(status); in status_print()
|
D | perf.c | 297 int status; in run_builtin() local 312 status = p->fn(argc, argv); in run_builtin() 314 exit_browser(status); in run_builtin() 318 if (status) in run_builtin() 319 return status & 0xff; in run_builtin() 328 status = 1; in run_builtin() 344 status = 0; in run_builtin() 346 return status; in run_builtin() 372 int status; in execv_dashed_external() local 390 status = run_command_v_opt(argv, 0); in execv_dashed_external() [all …]
|
/tools/testing/selftests/pidfd/ |
D | pidfd.h | 59 int status, ret; in wait_for_pid() local 62 ret = waitpid(pid, &status, 0); in wait_for_pid() 70 if (!WIFEXITED(status)) in wait_for_pid() 73 return WEXITSTATUS(status); in wait_for_pid()
|
/tools/testing/selftests/timers/ |
D | clocksource-switch.c | 125 int count, i, status; in main() local 141 status = -1; in main() 145 status = -1; in main() 156 while (pid != waitpid(pid, &status, WNOHANG)) in main() 159 status = -1; in main() 165 if (status) in main()
|
/tools/testing/selftests/vm/ |
D | map_populate.c | 35 int status, ret; in parent_f() local 37 ret = read(sock, &status, sizeof(int)); in parent_f() 44 ret = write(sock, &status, sizeof(int)); in parent_f() 47 waitpid(child, &status, 0); in parent_f() 48 BUG_ON(!WIFEXITED(status), "child in unexpected state"); in parent_f() 50 return WEXITSTATUS(status); in parent_f()
|
/tools/testing/selftests/powerpc/dscr/ |
D | dscr_inherit_test.c | 45 int status; in dscr_inherit() local 47 if (waitpid(pid, &status, 0) == -1) { in dscr_inherit() 52 if (!WIFEXITED(status)) { in dscr_inherit() 57 if (WEXITSTATUS(status) != 0) { in dscr_inherit()
|
D | dscr_inherit_exec_test.c | 65 int status; in dscr_inherit_exec() local 67 if (waitpid(pid, &status, 0) == -1) { in dscr_inherit_exec() 72 if (!WIFEXITED(status)) { in dscr_inherit_exec() 77 if (WEXITSTATUS(status) != 0) { in dscr_inherit_exec()
|
/tools/usb/usbip/libsrc/ |
D | vhci_driver.c | 52 int port, status, speed, devid; in parse_status() local 59 hub, &port, &status, &speed, in parse_status() 68 hub, port, status, speed, devid); in parse_status() 81 idev->status = status; in parse_status() 88 if (idev->status != VDEV_ST_NULL in parse_status() 89 && idev->status != VDEV_ST_NOTASSIGNED) { in parse_status() 114 char status[MAX_STATUS_NAME+1] = "status"; in refresh_imported_device_list() local 119 snprintf(status, sizeof(status), "status.%d", i); in refresh_imported_device_list() 122 status); in refresh_imported_device_list() 350 if (vhci_driver->idev[i].status == VDEV_ST_NULL) in usbip_vhci_get_free_port() [all …]
|
/tools/usb/usbip/src/ |
D | usbip_network.c | 137 op_common->status = usbip_net_pack_uint32_t(pack, op_common->status); in usbip_net_pack_op_common() 140 int usbip_net_send_op_common(int sockfd, uint32_t code, uint32_t status) in usbip_net_send_op_common() argument 149 op_common.status = status; in usbip_net_send_op_common() 162 int usbip_net_recv_op_common(int sockfd, uint16_t *code, int *status) in usbip_net_recv_op_common() argument 191 *status = ST_ERROR; in usbip_net_recv_op_common() 196 *status = op_common.status; in usbip_net_recv_op_common() 198 if (op_common.status != ST_OK) { in usbip_net_recv_op_common() 199 dbg("request failed at peer: %d", op_common.status); in usbip_net_recv_op_common()
|
/tools/testing/selftests/android/ion/ |
D | ionapp_import.c | 22 int ret, status; in main() local 30 status = opensocket(&sockfd, SOCKET_NAME, 0); in main() 31 if (status < 0) { in main() 33 ret = status; in main()
|
/tools/testing/selftests/powerpc/mm/ |
D | large_vm_fork_separation.c | 26 int p2c[2], c2p[2], rc, status, c, *p; in test() local 75 FAIL_IF(waitpid(pid, &status, 0) == -1); in test() 76 FAIL_IF(!WIFEXITED(status) || WEXITSTATUS(status)); in test()
|
/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-hwbreak.c | 200 int status; in check_success() local 203 wait(&status); in check_success() 207 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in check_success() 271 int len, i, status; in launch_tests() local 298 wait(&status); in launch_tests() 300 if (WIFSTOPPED(status) && WSTOPSIG(status) == SIGTRAP) { in launch_tests() 306 if (WIFEXITED(status)) in launch_tests()
|