HomeSort by: relevance | last modified time | path
    Searched defs:fds (Results 1 - 25 of 46) sorted by relevancy

1 2

  /xsrc/external/mit/libdrm/dist/
libsync.h 63 struct pollfd fds; local
66 fds.fd = fd;
67 fds.events = POLLIN;
68 fds.revents = 0;
71 ret = poll(&fds, 1, timeout);
73 if (fds.revents & (POLLERR | POLLNVAL)) {
  /xsrc/external/mit/libXpm/dist/src/
RdFToI.c 138 int status, fds[2], in = 0, out = 1; local
142 if ( pipe(fds) < 0 )
149 close(fds[in]);
150 if ( dup2(fds[out], out) < 0 )
152 close(fds[out]);
179 close(fds[out]);
186 fp = fdopen(fds[in], mode);
192 close(fds[out]);
194 close(fds[in]);
  /xsrc/external/mit/MesaLib/dist/src/util/
libsync.h 103 struct pollfd fds = {0}; local
106 fds.fd = fd;
107 fds.events = POLLIN;
110 ret = poll(&fds, 1, timeout);
112 if (fds.revents & (POLLERR | POLLNVAL)) {
  /xsrc/external/mit/libdrm/dist/tests/vbltest/
vbltest.c 163 fd_set fds; local
165 FD_ZERO(&fds);
166 FD_SET(0, &fds);
167 FD_SET(fd, &fds);
168 ret = select(fd + 1, &fds, NULL, NULL, &timeout);
174 } else if (FD_ISSET(0, &fds)) {
  /xsrc/external/mit/MesaLib/dist/src/egl/drivers/dri2/
platform_android.h 129 int fds[4]; member in struct:buffer_info
  /xsrc/external/mit/MesaLib/dist/src/vulkan/wsi/
wsi_common_private.h 44 int fds[4]; member in struct:wsi_image
  /xsrc/external/mit/MesaLib.old/dist/src/freedreno/vulkan/
tu_fence.c 205 struct pollfd *fds)
222 /* negative fds are never ready, which is the desired behavior */
223 fds[nfds].fd = fence->fd;
224 fds[nfds].events = POLLIN;
225 fds[nfds].revents = 0;
252 tu_fence_poll_fds(struct pollfd *fds, nfds_t nfds, uint64_t *timeout_ns)
257 int ret = poll(fds, nfds, tu_fence_get_poll_timeout(*timeout_ns));
285 struct pollfd *fds)
292 /* no signaled fence in fds */
296 /* fds[fds_idx] corresponds to fences[i] *
330 struct pollfd *fds = stack_fds; local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/vulkan/wsi/
wsi_common_private.h 43 int fds[4]; member in struct:wsi_image
  /xsrc/external/mit/xorg-server/dist/dri3/
dri3_screen.c 50 CARD8 num_fds, const int *fds,
63 pixmap = (*info->pixmap_from_fds) (screen, num_fds, fds, width, height,
66 pixmap = (*info->pixmap_from_fd) (screen, fds[0], width, height,
80 dri3_fds_from_pixmap(PixmapPtr pixmap, int *fds,
92 return (*info->fds_from_pixmap)(screen, pixmap, fds, strides, offsets,
98 fds[0] = (*info->fd_from_pixmap)(screen, pixmap, &stride, &size);
99 if (fds[0] < 0)
120 int fds[4]; local
138 num_fds = info->fds_from_pixmap(screen, pixmap, fds, strides, offsets,
143 close(fds[i])
    [all...]
dri3_request.c 404 int fds[4]; local
448 fds[i] = ReadFdFromClient(client);
449 if (fds[i] < 0) {
451 close(fds[i]);
466 stuff->num_buffers, fds,
473 close (fds[i]);
503 int fds[4]; local
518 num_fds = dri3_fds_from_pixmap(pixmap, fds, strides, offsets, &modifier);
543 if (WriteFdToClient(client, fds[i], TRUE) < 0) {
545 close(fds[i])
    [all...]
  /xsrc/external/mit/xorg-server.old/dist/hw/xfree86/os-support/shared/
posix_tty.c 461 fd_set fds; local
471 FD_ZERO(&fds);
472 FD_SET(fd, &fds);
473 while (select(FD_SETSIZE, &fds, NULL, NULL, &timeout) > 0) {
476 FD_ZERO(&fds);
477 FD_SET(fd, &fds);
  /xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/
tu_android.c 161 /* QCOM gralloc has two fds passed in: the actual GPU buffer, and a buffer
186 int fds[4]; member in struct:cros_gralloc0_buffer_info
208 *dma_buf = info.fds[0];
  /xsrc/external/mit/MesaLib/dist/src/intel/tools/
aubinator.c 246 int fds[2]; local
252 if (pipe(fds) == -1)
260 close(fds[1]);
261 dup2(fds[0], 0);
265 close(fds[0]);
266 dup2(fds[1], 1);
267 close(fds[1]);
  /xsrc/external/mit/MesaLib.old/dist/src/intel/tools/
aubinator.c 247 int fds[2]; local
253 if (pipe(fds) == -1)
261 close(fds[1]);
262 dup2(fds[0], 0);
266 close(fds[0]);
267 dup2(fds[1], 1);
268 close(fds[1]);
  /xsrc/external/mit/libdrm/dist/tests/exynos/
exynos_fimg2d_event.c 46 struct pollfd fds; member in struct:exynos_evhandler
69 evhandler->fds.fd = fd;
70 evhandler->fds.events = POLLIN;
87 data->evhandler.fds.revents = 0;
89 if (poll(&data->evhandler.fds, 1, timeout) < 0)
92 if (data->evhandler.fds.revents & (POLLHUP | POLLERR))
95 if (data->evhandler.fds.revents & POLLIN)
  /xsrc/external/mit/libxcb/dist/src/
xcb_out.c 184 static void close_fds(int *fds, unsigned int num_fds)
187 close(fds[index]);
190 static void send_fds(xcb_connection_t *c, int *fds, unsigned int num_fds)
198 * tries to send fds, too). Thanks to this, we can atomically write out FDs.
205 * potentially allows other threads to interfere with their own fds.
210 /* We need some request to send FDs with */
217 c->out.out_fd.fd[c->out.out_fd.nfd++] = fds[0];
218 fds++;
222 close_fds(fds, num_fds)
365 int fds[1] = { fd }; local
    [all...]
  /xsrc/external/mit/luit/dist/
sys.c 116 fd_set fds; local
119 FD_ZERO(&fds);
120 FD_SET(fd, &fds);
121 rc = select(FD_SETSIZE, NULL, &fds, NULL, NULL);
124 else if (FD_ISSET(fd, &fds))
159 fd_set fds; local
162 FD_ZERO(&fds);
163 FD_SET(fd1, &fds);
164 FD_SET(fd2, &fds);
165 rc = select(FD_SETSIZE, &fds, NULL, NULL, NULL)
    [all...]
  /xsrc/external/mit/xdm/dist/xdm/
genauth.c 85 struct pollfd fds; local
87 fds.fd = fd;
88 fds.events = POLLIN | POLLRDNORM;
90 return poll(&fds, 1, 5000);
  /xsrc/external/mit/xf86-video-intel/dist/src/
backlight.c 354 int fds[2]; local
375 if (pipe(fds))
383 close(fds[1]);
384 if (dup2(fds[0], 0))
386 close(fds[0]);
400 close(fds[1]);
401 close(fds[0]);
405 close(fds[0]);
406 return __backlight_init(b, iface, fds[1]);
  /xsrc/external/mit/xf86-video-intel-2014/dist/src/
backlight.c 324 int fds[2]; local
345 if (pipe(fds))
353 close(fds[1]);
354 if (dup2(fds[0], 0))
356 close(fds[0]);
370 close(fds[1]);
371 close(fds[0]);
375 close(fds[0]);
376 return __backlight_init(b, iface, fds[1]);
  /xsrc/external/mit/xmh/dist/
command.c 138 fd_set readfds, fds; local
141 FD_ZERO(&fds);
142 FD_SET(ConnectionNumber(theDisplay), &fds); local
163 FD_SET(status->output_pipe[0], &fds);
183 FD_SET(status->error_pipe[0], &fds);
235 readfds = fds;
  /xsrc/external/mit/xorg-server/dist/os/
inputthread.c 72 struct ospoll *fds; member in struct:__anon10295
331 ospoll_add(inputThreadInfo->fds, hotplugPipeRead,
335 ospoll_listen(inputThreadInfo->fds, hotplugPipeRead, X_NOTIFY_READ);
350 ospoll_add(inputThreadInfo->fds, dev->fd,
354 ospoll_listen(inputThreadInfo->fds, dev->fd, X_NOTIFY_READ);
360 ospoll_remove(inputThreadInfo->fds, dev->fd);
369 if (ospoll_wait(inputThreadInfo->fds, -1) < 0) {
381 ospoll_remove(inputThreadInfo->fds, hotplugPipeRead);
399 int fds[2], hotplugPipe[2]; local
405 if (pipe(fds) < 0
    [all...]
ospoll.c 75 struct ospollfd *fds; member in struct:ospoll
96 struct ospollfd **fds; member in struct:ospoll
115 struct pollfd *fds; member in struct:ospoll
139 int t = ospoll->fds[m]->fd;
142 int t = ospoll->fds[m].fd;
249 free(ospoll->fds);
258 free(ospoll->fds);
265 free (ospoll->fds);
285 new_fds = reallocarray(ospoll->fds, new_size, sizeof (ospoll->fds[0]))
    [all...]
  /xsrc/external/mit/MesaGLUT/dist/src/glut/glx/
glut_event.c 309 fd_set fds; local
328 FD_ZERO(&fds);
329 FD_SET(__glutConnectionFD, &fds);
330 rc = select(__glutConnectionFD + 1, &fds, NULL, NULL, NULL);
869 fd_set fds;
923 FD_ZERO(&fds);
924 FD_SET(__glutConnectionFD, &fds);
934 rc = select(__glutConnectionFD + 1, &fds,
  /xsrc/external/mit/MesaLib/dist/src/drm-shim/
drm_shim.c 264 int fds[2]; local
265 pipe(fds);
266 write(fds[1], file_overrides[i].contents,
268 close(fds[1]);
269 return fdopen(fds[0], "r");

Completed in 29 milliseconds

1 2