Home
last modified time | relevance | path

Searched refs:num_fds (Results 1 – 25 of 25) sorted by relevance

/external/adhd/scripts/audio_thread_log_viewer/
Dlog.test10 496098.545959543 WAKE num_fds:0
15 496098.567581739 WAKE num_fds:0
20 496098.589207274 WAKE num_fds:0
25 496098.610821201 WAKE num_fds:0
30 496098.632443051 WAKE num_fds:0
35 496098.654059981 WAKE num_fds:0
40 496098.675676644 WAKE num_fds:0
45 496098.697292000 WAKE num_fds:0
50 496098.718759444 WAKE num_fds:0
55 496098.740374739 WAKE num_fds:0
[all …]
Dviewer_c3.py298 def __init__(self, time, name, num_fds): argument
309 if num_fds != '0':
310 self._text = 'num_fds %s' % num_fds
464 return WakeEvent(time, name, num_fds=props['num_fds'])
/external/ltp/testcases/kernel/sched/cfs-scheduler/
Dhackbench.c76 unsigned int num_fds; member
139 for (j = 0; j < ctx->num_fds; j++) { in sender()
239 unsigned int num_fds, int ready_out, int wakefd) in group() argument
242 struct sender_context *snd_ctx = malloc(sizeof(struct sender_context) + num_fds * sizeof(int)); in group()
248 for (i = 0; i < num_fds; i++) { in group()
255 rev_ctx_tab[gr_num * num_fds + i] = ctx; in group()
260 ctx->num_packets = num_fds * loops; in group()
274 for (i = 0; i < num_fds; i++) { in group()
277 snd_ctx->num_fds = num_fds; in group()
279 pth[num_fds + i] = in group()
[all …]
/external/autotest/client/tests/hackbench/src/
Dhackbench.c104 unsigned int num_fds; member
167 for (j = 0; j < ctx->num_fds; j++) { in sender()
264 unsigned int num_fds, in group() argument
270 +num_fds*sizeof(int)); in group()
272 for (i = 0; i < num_fds; i++) { in group()
283 ctx->num_packets = num_fds*loops; in group()
297 for (i = 0; i < num_fds; i++) { in group()
300 snd_ctx->num_fds = num_fds; in group()
302 pth[num_fds+i] = create_worker(snd_ctx, (void *)(void *)sender); in group()
307 for (i = 0; i < num_fds; i++) in group()
[all …]
/external/adhd/cras/src/tests/
Dutil_unittest.cc26 unsigned int num_fds = 2; in TEST() local
37 ASSERT_GE(cras_send_with_fds(sock[0], msg, strlen(msg), send_fds, num_fds), in TEST()
39 ASSERT_GE(cras_recv_with_fds(sock[1], buf, strlen(msg), new_fds, &num_fds), in TEST()
42 ASSERT_EQ(2, num_fds); in TEST()
72 unsigned int num_fds = 2; in TEST() local
81 ASSERT_GE(cras_recv_with_fds(sock[1], buf, strlen(msg), new_fds, &num_fds), in TEST()
84 ASSERT_EQ(1, num_fds); in TEST()
109 unsigned int num_fds = 1; in TEST() local
117 ASSERT_EQ(5, cras_send_with_fds(sock[0], msg, strlen(msg), &fd[1], num_fds)); in TEST()
119 cras_recv_with_fds(sock[1], buf, strlen(msg), &new_fd, &num_fds)); in TEST()
[all …]
Drclient_unittest.cc845 unsigned int num_fds) in cras_send_with_fds() argument
/external/libvncserver/examples/
D1instance.c52 int num_fds; in get_next_message() local
59 num_fds=select(str->fd+1,&fdset,NULL,NULL,&tv); in get_next_message()
60 if(num_fds) { in get_next_message()
67 num_fds--; in get_next_message()
75 return(num_fds); in get_next_message()
81 int num_fds; in dispatch_event() local
83 if((num_fds=get_next_message(buffer,1024,str,usecs)) && buffer[0]) in dispatch_event()
86 return(num_fds); in dispatch_event()
/external/adhd/cras/src/common/
Dcras_util.c98 unsigned int num_fds) in cras_send_with_fds() argument
104 const unsigned int control_size = CMSG_SPACE(sizeof(*fd) * num_fds); in cras_send_with_fds()
120 cmsg->cmsg_len = CMSG_LEN(sizeof(*fd) * num_fds); in cras_send_with_fds()
121 memcpy(CMSG_DATA(cmsg), fd, sizeof(*fd) * num_fds); in cras_send_with_fds()
129 unsigned int *num_fds) in cras_recv_with_fds() argument
135 const unsigned int control_size = CMSG_SPACE(sizeof(*fd) * *num_fds); in cras_recv_with_fds()
141 for (i = 0; i < *num_fds; i++) in cras_recv_with_fds()
162 *num_fds = MIN(*num_fds, fd_size / sizeof(*fd)); in cras_recv_with_fds()
163 memcpy(fd, CMSG_DATA(cmsg), *num_fds * sizeof(*fd)); in cras_recv_with_fds()
Dcras_util.h81 unsigned int num_fds);
86 unsigned int *num_fds);
/external/wayland/tests/
Dtest-runner.c168 int num_fds; in check_leaks() local
178 num_fds = count_open_fds(); in check_leaks()
179 if (supposed_fds != num_fds) { in check_leaks()
181 "Opened %d files, unclosed %d\n", num_fds, in check_leaks()
182 num_fds - supposed_fds); in check_leaks()
/external/google-breakpad/src/client/linux/crash_generation/
Dcrash_generation_server.cc237 const unsigned num_fds = len / sizeof(int); in ClientEvent() local
238 if (num_fds > 1 || num_fds == 0) { in ClientEvent()
241 for (unsigned i = 0; i < num_fds; ++i) in ClientEvent()
/external/libmojo/mojo/edk/system/
Dchannel_posix.cc482 size_t num_fds = payload_size / sizeof(int); in OnControlMessage() local
483 if (num_fds == 0 || payload_size % sizeof(int) != 0) in OnControlMessage()
487 if (!CloseHandles(fds, num_fds)) in OnControlMessage()
501 bool CloseHandles(const int* fds, size_t num_fds) { in CloseHandles() argument
503 if (!num_fds) in CloseHandles()
518 for (; i < num_fds && it != handles_to_close_->end(); i++, ++it) { in CloseHandles()
524 if (i != num_fds) in CloseHandles()
/external/libmojo/ipc/
Dipc_message.cc54 header()->num_fds = 0; in Message()
67 header()->num_fds = 0; in Message()
Dipc_message.h246 uint16_t num_fds; // the number of descriptors included with this message member
/external/adhd/cras/src/server/
Dcras_rclient.h55 unsigned int num_fds);
Dcras_server.c120 unsigned int num_fds = 1; in handle_message_from_client() local
123 nread = cras_recv_with_fds(client->fd, buf, sizeof(buf), &fd, &num_fds); in handle_message_from_client()
Dcras_rclient.c524 unsigned int num_fds) in cras_rclient_send_message() argument
527 fds, num_fds); in cras_rclient_send_message()
/external/libmojo/mojo/edk/embedder/
Dplatform_channel_utils_posix.cc237 size_t num_fds = payload_length / sizeof(int); in PlatformChannelRecvmsg() local
239 for (size_t i = 0; i < num_fds; i++) { in PlatformChannelRecvmsg()
/external/mesa3d/src/gallium/state_trackers/dri/
Ddri2.c886 int *fds, int num_fds, int *strides, in dri2_create_image_from_fd() argument
909 if (num_fds != expected_num_fds) { in dri2_create_image_from_fd()
922 for (i = 0; i < num_fds; i++) { in dri2_create_image_from_fd()
943 num_fds, whandles, loaderPrivate); in dri2_create_image_from_fd()
1244 int *fds, int num_fds, int *strides, int *offsets, in dri2_from_fds() argument
1251 fds, num_fds, strides, offsets, NULL, in dri2_from_fds()
1263 int *fds, int num_fds, in dri2_from_dma_bufs() argument
1276 fds, num_fds, strides, offsets, error, in dri2_from_dma_bufs()
/external/kernel-headers/original/uapi/linux/android/
Dbinder.h158 binder_size_t num_fds; member
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_screen.c705 int *fds, int num_fds, int *strides, int *offsets, in intel_create_image_from_fds() argument
713 if (fds == NULL || num_fds < 1) in intel_create_image_from_fds()
717 for (i = 0; i < num_fds; i++) in intel_create_image_from_fds()
768 int *fds, int num_fds, in intel_create_image_from_dma_bufs() argument
786 num_fds, strides, offsets, in intel_create_image_from_dma_bufs()
/external/mesa3d/include/GL/internal/
Ddri_interface.h1396 int *fds, int num_fds,
1409 int *fds, int num_fds,
/external/adhd/cras/src/libcras/
Dcras_client.c1397 const int stream_fds[2], const unsigned int num_fds) in stream_connected() argument
1402 if (msg->err || num_fds != 2) { in stream_connected()
1666 unsigned int num_fds = 2; in handle_message_from_server() local
1670 server_fds, &num_fds); in handle_message_from_server()
1678 if (num_fds != 1) in handle_message_from_server()
1694 rc = stream_connected(stream, cmsg, server_fds, num_fds); in handle_message_from_server()
/external/mesa3d/src/egl/drivers/dri2/
Degl_dri2.c2095 unsigned num_fds; in dri2_create_image_dma_buf() local
2122 num_fds = dri2_check_dma_buf_format(&attrs); in dri2_create_image_dma_buf()
2123 if (!num_fds) in dri2_create_image_dma_buf()
2126 for (i = 0; i < num_fds; ++i) { in dri2_create_image_dma_buf()
2135 fds, num_fds, pitches, offsets, in dri2_create_image_dma_buf()
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_screen.c585 int *fds, int num_fds, int *strides, int *offsets, in intel_create_image_from_fds() argument
593 if (fds == NULL || num_fds != 1) in intel_create_image_from_fds()