Home
last modified time | relevance | path

Searched refs:write_pipe (Results 1 – 18 of 18) sorted by relevance

/linux-6.1.9/tools/testing/selftests/powerpc/mm/
Dstack_expansion_signal.c32 static int consume_stack(unsigned int stack_size, union pipe write_pipe) in consume_stack() argument
37 return consume_stack(stack_size, write_pipe); in consume_stack()
41 FAIL_IF(notify_parent(write_pipe)); in consume_stack()
50 static int child(unsigned int stack_size, union pipe write_pipe) in child() argument
63 FAIL_IF(consume_stack(stack_size, write_pipe)); in child()
74 union pipe read_pipe, write_pipe; in test_one_size() local
78 FAIL_IF(pipe(write_pipe.fds) == -1); in test_one_size()
83 close(write_pipe.write_fd); in test_one_size()
88 close(write_pipe.read_fd); in test_one_size()
89 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in test_one_size()
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/pmu/ebb/
Debb_on_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child() argument
28 FAIL_IF(notify_parent(write_pipe)); in victim_child()
33 FAIL_IF(notify_parent(write_pipe)); in victim_child()
46 union pipe read_pipe, write_pipe; in ebb_on_child() local
53 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_child()
58 exit(victim_child(write_pipe, read_pipe)); in ebb_on_child()
61 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child()
75 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_child()
Debb_on_willing_child_test.c23 static int victim_child(union pipe read_pipe, union pipe write_pipe) in victim_child() argument
32 FAIL_IF(notify_parent(write_pipe)); in victim_child()
51 union pipe read_pipe, write_pipe; in ebb_on_willing_child() local
58 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_on_willing_child()
63 exit(victim_child(write_pipe, read_pipe)); in ebb_on_willing_child()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_on_willing_child()
Dtask_event_vs_ebb_test.c38 union pipe read_pipe, write_pipe; in task_event_vs_ebb() local
46 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_vs_ebb()
51 exit(ebb_child(write_pipe, read_pipe)); in task_event_vs_ebb()
62 if (sync_with_child(read_pipe, write_pipe)) in task_event_vs_ebb()
67 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_vs_ebb()
Dcpu_event_vs_ebb_test.c39 union pipe read_pipe, write_pipe; in cpu_event_vs_ebb() local
51 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_vs_ebb()
56 exit(ebb_child(write_pipe, read_pipe)); in cpu_event_vs_ebb()
67 if (sync_with_child(read_pipe, write_pipe)) in cpu_event_vs_ebb()
72 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_vs_ebb()
Dtask_event_pinned_vs_ebb_test.c40 union pipe read_pipe, write_pipe; in task_event_pinned_vs_ebb() local
48 FAIL_IF(pipe(write_pipe.fds) == -1); in task_event_pinned_vs_ebb()
53 exit(ebb_child(write_pipe, read_pipe)); in task_event_pinned_vs_ebb()
64 if (sync_with_child(read_pipe, write_pipe)) in task_event_pinned_vs_ebb()
69 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in task_event_pinned_vs_ebb()
Debb_vs_cpu_event_test.c39 union pipe read_pipe, write_pipe; in ebb_vs_cpu_event() local
51 FAIL_IF(pipe(write_pipe.fds) == -1); in ebb_vs_cpu_event()
56 exit(ebb_child(write_pipe, read_pipe)); in ebb_vs_cpu_event()
60 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event()
70 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in ebb_vs_cpu_event()
Dcpu_event_pinned_vs_ebb_test.c41 union pipe read_pipe, write_pipe; in cpu_event_pinned_vs_ebb() local
53 FAIL_IF(pipe(write_pipe.fds) == -1); in cpu_event_pinned_vs_ebb()
58 exit(ebb_child(write_pipe, read_pipe)); in cpu_event_pinned_vs_ebb()
69 if (sync_with_child(read_pipe, write_pipe)) in cpu_event_pinned_vs_ebb()
74 FAIL_IF(sync_with_child(read_pipe, write_pipe)); in cpu_event_pinned_vs_ebb()
Debb.c349 int ebb_child(union pipe read_pipe, union pipe write_pipe) in ebb_child() argument
377 notify_parent_of_error(write_pipe); in ebb_child()
383 FAIL_IF(notify_parent(write_pipe)); in ebb_child()
385 FAIL_IF(notify_parent(write_pipe)); in ebb_child()
Debb.h72 int ebb_child(union pipe read_pipe, union pipe write_pipe);
/linux-6.1.9/tools/testing/selftests/powerpc/pmu/
Dlib.c33 int sync_with_child(union pipe read_pipe, union pipe write_pipe) in sync_with_child() argument
37 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child()
55 int notify_parent(union pipe write_pipe) in notify_parent() argument
59 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent()
64 int notify_parent_of_error(union pipe write_pipe) in notify_parent_of_error() argument
68 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error()
97 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child() argument
107 notify_parent(write_pipe); in eat_cpu_child()
118 union pipe read_pipe, write_pipe; in eat_cpu() local
129 if (pipe(write_pipe.fds) == -1) in eat_cpu()
[all …]
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);
/linux-6.1.9/tools/virtio/virtio-trace/
Dtrace-agent-rw.c34 rw_ti->write_pipe = -1; in rw_thread_info_new()
82 rw_ti->write_pipe = data_pipe[0]; in rw_thread_init()
148 ret = splice(ts->write_pipe, NULL, ts->out_fd, NULL, in rw_thread_main()
Dtrace-agent.h40 int write_pipe; member
Dtrace-agent.c250 close(s->rw_ti[i]->write_pipe); in agent_info_free()
DREADME7 - splice the page from write_pipe to virtio-console without memory copying
/linux-6.1.9/drivers/gnss/
Dusb.c30 unsigned int write_pipe; member
103 ret = usb_bulk_msg(gusb->udev, gusb->write_pipe, tbuf, count, NULL, in gnss_usb_write_raw()
170 gusb->write_pipe = usb_sndbulkpipe(udev, usb_endpoint_num(out)); in gnss_usb_probe()
/linux-6.1.9/drivers/net/wireless/intersil/orinoco/
Dorinoco_usb.c249 int write_pipe; member
898 usb_fill_bulk_urb(ctx->outurb, upriv->udev, upriv->write_pipe, in ezusb_access_ltv()
1687 upriv->write_pipe = usb_sndbulkpipe(udev, in ezusb_probe()