| /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/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/xorg-server/dist/include/ |
| xserver_poll.h | 32 #define xserver_poll(fds, nfds, timeout) poll(fds, nfds, timeout)
|
| /xsrc/external/mit/xorg-server/dist/os/ |
| 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...] |
| 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...] |
| /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/xorg-server/dist/glamor/ |
| glamor_egl_stubs.c | 48 glamor_egl_fds_from_pixmap(ScreenPtr screen, PixmapPtr pixmap, int *fds,
|
| /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.h | 52 const int *fds, 68 int *fds,
|
| dri3_priv.h | 84 CARD8 num_fds, const int *fds, 93 dri3_fds_from_pixmap(PixmapPtr pixmap, int *fds,
|
| 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/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/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/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/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...] |
| xcbext.h | 92 * @param fds Additional file descriptors that should be send to the server. 100 * If @p num_fds is non-zero, @p fds points to an array of file descriptors that 114 const xcb_protocol_request_t *request, unsigned int num_fds, int *fds); 147 * @param fds Additional file descriptors that should be send to the server. 155 * If @p num_fds is non-zero, @p fds points to an array of file descriptors that 170 const xcb_protocol_request_t *request, unsigned int num_fds, int *fds);
|
| /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/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/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/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/MesaLib/dist/src/egl/drivers/dri2/ |
| platform_android.c | 162 /* returns # of fds, and by reference the actual fds */ 164 get_native_buffer_fds(struct ANativeWindowBuffer *buf, int fds[3]) 177 fds[i] = handle->data[i]; 199 int fds[3]; local 202 num_fds = get_native_buffer_fds(buf, fds); 241 .fds = { -1, -1, -1, -1 }, 275 out_buf_info->fds[1] = out_buf_info->fds[0] = fds[0] 296 int fds[3]; local 369 int fds[4]; member in struct:cros_gralloc0_buffer_info [all...] |
| /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.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/libXt/dist/src/ |
| NextEvent.c | 314 wf->nfds = app->fds.nfds; 316 wf->rmask = app->fds.rmask; 317 wf->wmask = app->fds.wmask; 318 wf->emask = app->fds.emask; 456 rmask = app->fds.rmask; 495 && FD_ISSET(ii, &app->fds.wmask) 503 && FD_ISSET(ii, &app->fds.emask) 1063 app->fds.nfds++; 1066 FD_SET(source, &app->fds.rmask); 1068 FD_SET(source, &app->fds.wmask) [all...] |