Searched refs:write_pipe (Results 1 - 15 of 15) sorted by relevance

/linux-4.1.27/tools/testing/selftests/powerpc/pmu/ebb/
H A Debb_on_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) victim_child() argument
28 FAIL_IF(notify_parent(write_pipe)); victim_child()
33 FAIL_IF(notify_parent(write_pipe)); victim_child()
46 union pipe read_pipe, write_pipe; ebb_on_child() local
51 FAIL_IF(pipe(write_pipe.fds) == -1); ebb_on_child()
56 exit(victim_child(write_pipe, read_pipe)); ebb_on_child()
59 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_child()
73 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_child()
H A Debb_on_willing_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) victim_child() argument
32 FAIL_IF(notify_parent(write_pipe)); victim_child()
53 union pipe read_pipe, write_pipe; ebb_on_willing_child() local
58 FAIL_IF(pipe(write_pipe.fds) == -1); ebb_on_willing_child()
63 exit(victim_child(write_pipe, read_pipe)); ebb_on_willing_child()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_on_willing_child()
H A Dcpu_event_pinned_vs_ebb_test.c41 union pipe read_pipe, write_pipe; cpu_event_pinned_vs_ebb() local
51 FAIL_IF(pipe(write_pipe.fds) == -1); cpu_event_pinned_vs_ebb()
56 exit(ebb_child(write_pipe, read_pipe)); cpu_event_pinned_vs_ebb()
67 if (sync_with_child(read_pipe, write_pipe)) cpu_event_pinned_vs_ebb()
72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); cpu_event_pinned_vs_ebb()
H A Dcpu_event_vs_ebb_test.c39 union pipe read_pipe, write_pipe; cpu_event_vs_ebb() local
49 FAIL_IF(pipe(write_pipe.fds) == -1); cpu_event_vs_ebb()
54 exit(ebb_child(write_pipe, read_pipe)); cpu_event_vs_ebb()
65 if (sync_with_child(read_pipe, write_pipe)) cpu_event_vs_ebb()
70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); cpu_event_vs_ebb()
H A Debb_vs_cpu_event_test.c39 union pipe read_pipe, write_pipe; ebb_vs_cpu_event() local
49 FAIL_IF(pipe(write_pipe.fds) == -1); ebb_vs_cpu_event()
54 exit(ebb_child(write_pipe, read_pipe)); ebb_vs_cpu_event()
58 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_vs_cpu_event()
68 FAIL_IF(sync_with_child(read_pipe, write_pipe)); ebb_vs_cpu_event()
H A Dtask_event_pinned_vs_ebb_test.c40 union pipe read_pipe, write_pipe; task_event_pinned_vs_ebb() local
46 FAIL_IF(pipe(write_pipe.fds) == -1); task_event_pinned_vs_ebb()
51 exit(ebb_child(write_pipe, read_pipe)); task_event_pinned_vs_ebb()
62 if (sync_with_child(read_pipe, write_pipe)) task_event_pinned_vs_ebb()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); task_event_pinned_vs_ebb()
H A Dtask_event_vs_ebb_test.c38 union pipe read_pipe, write_pipe; task_event_vs_ebb() local
44 FAIL_IF(pipe(write_pipe.fds) == -1); task_event_vs_ebb()
49 exit(ebb_child(write_pipe, read_pipe)); task_event_vs_ebb()
60 if (sync_with_child(read_pipe, write_pipe)) task_event_vs_ebb()
65 FAIL_IF(sync_with_child(read_pipe, write_pipe)); task_event_vs_ebb()
H A Debb.c340 int ebb_child(union pipe read_pipe, union pipe write_pipe) ebb_child() argument
368 notify_parent_of_error(write_pipe); ebb_child()
374 FAIL_IF(notify_parent(write_pipe)); ebb_child()
376 FAIL_IF(notify_parent(write_pipe)); ebb_child()
H A Debb.h73 int ebb_child(union pipe read_pipe, union pipe write_pipe);
/linux-4.1.27/tools/testing/selftests/powerpc/pmu/
H A Dlib.h26 extern int sync_with_child(union pipe read_pipe, union pipe write_pipe);
28 extern int notify_parent(union pipe write_pipe);
29 extern int notify_parent_of_error(union pipe write_pipe);
H A Dlib.c59 int sync_with_child(union pipe read_pipe, union pipe write_pipe) sync_with_child() argument
63 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); sync_with_child()
81 int notify_parent(union pipe write_pipe) notify_parent() argument
85 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); notify_parent()
90 int notify_parent_of_error(union pipe write_pipe) notify_parent_of_error() argument
94 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); notify_parent_of_error()
123 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) eat_cpu_child() argument
133 notify_parent(write_pipe); eat_cpu_child()
144 union pipe read_pipe, write_pipe; eat_cpu() local
155 if (pipe(write_pipe.fds) == -1) eat_cpu()
160 exit(eat_cpu_child(write_pipe, read_pipe)); eat_cpu()
162 if (sync_with_child(read_pipe, write_pipe)) { eat_cpu()
/linux-4.1.27/tools/virtio/virtio-trace/
H A Dtrace-agent.h31 * @write_pipe: fd of write pipe
39 int write_pipe; member in struct:rw_thread_info
H A Dtrace-agent-rw.c36 rw_ti->write_pipe = -1; rw_thread_info_new()
84 rw_ti->write_pipe = data_pipe[0]; rw_thread_init()
150 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, rw_thread_main()
H A Dtrace-agent.c252 close(s->rw_ti[i]->write_pipe); agent_info_free()
/linux-4.1.27/drivers/net/wireless/orinoco/
H A Dorinoco_usb.c252 int write_pipe; member in struct:ezusb_priv
878 usb_fill_bulk_urb(ctx->outurb, upriv->udev, upriv->write_pipe, ezusb_access_ltv()
1646 upriv->write_pipe = usb_sndbulkpipe(udev, ezusb_probe()

Completed in 346 milliseconds