/third_party/flutter/skia/third_party/externals/sdl/src/video/windows/ |
D | SDL_windowsopengl.c | 163 WIN_GL_SetupPixelFormat(_THIS, PIXELFORMATDESCRIPTOR * pfd) in WIN_GL_SetupPixelFormat() argument 165 SDL_zerop(pfd); in WIN_GL_SetupPixelFormat() 166 pfd->nSize = sizeof(*pfd); in WIN_GL_SetupPixelFormat() 167 pfd->nVersion = 1; in WIN_GL_SetupPixelFormat() 168 pfd->dwFlags = (PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL); in WIN_GL_SetupPixelFormat() 170 pfd->dwFlags |= PFD_DOUBLEBUFFER; in WIN_GL_SetupPixelFormat() 173 pfd->dwFlags |= PFD_STEREO; in WIN_GL_SetupPixelFormat() 175 pfd->iLayerType = PFD_MAIN_PLANE; in WIN_GL_SetupPixelFormat() 176 pfd->iPixelType = PFD_TYPE_RGBA; in WIN_GL_SetupPixelFormat() 177 pfd->cRedBits = _this->gl_config.red_size; in WIN_GL_SetupPixelFormat() [all …]
|
/third_party/mesa3d/src/gallium/frontends/wgl/ |
D | stw_pixelformat.c | 158 pfi->pfd.nSize = sizeof pfi->pfd; in stw_pixelformat_add() 159 pfi->pfd.nVersion = 1; in stw_pixelformat_add() 161 pfi->pfd.dwFlags = PFD_SUPPORT_OPENGL; in stw_pixelformat_add() 165 pfi->pfd.dwFlags |= PFD_DRAW_TO_WINDOW; in stw_pixelformat_add() 169 pfi->pfd.dwFlags |= PFD_SUPPORT_COMPOSITION; in stw_pixelformat_add() 172 pfi->pfd.dwFlags |= PFD_DOUBLEBUFFER | PFD_SWAP_EXCHANGE; in stw_pixelformat_add() 175 pfi->pfd.dwFlags |= PFD_SUPPORT_GDI; in stw_pixelformat_add() 177 pfi->pfd.iPixelType = PFD_TYPE_RGBA; in stw_pixelformat_add() 179 pfi->pfd.cColorBits = in stw_pixelformat_add() 181 pfi->pfd.cRedBits = color->bits.red; in stw_pixelformat_add() [all …]
|
D | stw_ext_pixelformat.c | 71 *pvalue = pfi->pfd.dwFlags & PFD_DRAW_TO_WINDOW ? TRUE : FALSE; in stw_query_attrib() 75 *pvalue = pfi->pfd.dwFlags & PFD_DRAW_TO_BITMAP ? TRUE : FALSE; in stw_query_attrib() 79 *pvalue = pfi->pfd.dwFlags & PFD_NEED_PALETTE ? TRUE : FALSE; in stw_query_attrib() 83 *pvalue = pfi->pfd.dwFlags & PFD_NEED_SYSTEM_PALETTE ? TRUE : FALSE; in stw_query_attrib() 87 if (pfi->pfd.dwFlags & PFD_SWAP_COPY) in stw_query_attrib() 89 else if (pfi->pfd.dwFlags & PFD_SWAP_EXCHANGE) in stw_query_attrib() 144 *pvalue = pfi->pfd.dwFlags & PFD_SUPPORT_GDI ? TRUE : FALSE; in stw_query_attrib() 148 *pvalue = pfi->pfd.dwFlags & PFD_SUPPORT_OPENGL ? TRUE : FALSE; in stw_query_attrib() 152 *pvalue = pfi->pfd.dwFlags & PFD_DOUBLEBUFFER ? TRUE : FALSE; in stw_query_attrib() 156 *pvalue = pfi->pfd.dwFlags & PFD_STEREO ? TRUE : FALSE; in stw_query_attrib() [all …]
|
/third_party/nghttp2/src/ |
D | shrpx_exec.cc | 42 int pfd[2]; in exec_read_command() local 45 if (pipe2(pfd, O_CLOEXEC) == -1) { in exec_read_command() 49 if (pipe(pfd) == -1) { in exec_read_command() 52 util::make_socket_closeonexec(pfd[0]); in exec_read_command() 53 util::make_socket_closeonexec(pfd[1]); in exec_read_command() 56 auto closer = defer([&pfd]() { in exec_read_command() 57 if (pfd[0] != -1) { in exec_read_command() 58 close(pfd[0]); in exec_read_command() 61 if (pfd[1] != -1) { in exec_read_command() 62 close(pfd[1]); in exec_read_command() [all …]
|
/third_party/alsa-utils/axfer/ |
D | waiter-select.c | 45 struct pollfd *pfd; in select_wait_event() local 57 pfd = &waiter->pfds[i]; in select_wait_event() 59 if (pfd->events & POLLIN_SET) in select_wait_event() 60 FD_SET(pfd->fd, &state->rfds_rd); in select_wait_event() 61 if (pfd->events & POLLOUT_SET) in select_wait_event() 62 FD_SET(pfd->fd, &state->rfds_wr); in select_wait_event() 63 if (pfd->events & POLLEX_SET) in select_wait_event() 64 FD_SET(pfd->fd, &state->rfds_ex); in select_wait_event() 65 if (pfd->fd > fd_max) in select_wait_event() 66 fd_max = pfd->fd; in select_wait_event() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/wgl/ |
D | gstglcontext_wgl.c | 325 PIXELFORMATDESCRIPTOR pfd; in pixel_format_to_structure() local 330 if (DescribePixelFormat (hdc, pixfmt, sizeof (pfd), &pfd) == 0) in pixel_format_to_structure() 336 pfd.cRedBits), GST_GL_CONFIG_STRUCTURE_SET_ARGS (BLUE_SIZE, int, in pixel_format_to_structure() 337 pfd.cBlueBits), GST_GL_CONFIG_STRUCTURE_SET_ARGS (GREEN_SIZE, int, in pixel_format_to_structure() 338 pfd.cGreenBits), GST_GL_CONFIG_STRUCTURE_SET_ARGS (ALPHA_SIZE, int, in pixel_format_to_structure() 339 pfd.cAlphaBits), GST_GL_CONFIG_STRUCTURE_SET_ARGS (DEPTH_SIZE, int, in pixel_format_to_structure() 340 pfd.cDepthBits), GST_GL_CONFIG_STRUCTURE_SET_ARGS (STENCIL_SIZE, int, in pixel_format_to_structure() 341 pfd.cStencilBits), GST_GL_CONFIG_STRUCTURE_SET_ARGS (NATIVE_VISUAL_ID, in pixel_format_to_structure() 343 GstGLConfigSurfaceType, pfd_flags_to_surface_type (pfd.dwFlags)), in pixel_format_to_structure() 353 PIXELFORMATDESCRIPTOR pfd; in gst_gl_context_wgl_choose_format() local [all …]
|
/third_party/flutter/glfw/src/ |
D | wgl_context.c | 141 PIXELFORMATDESCRIPTOR pfd; in choosePixelFormat() local 148 &pfd)) in choosePixelFormat() 153 if (!(pfd.dwFlags & PFD_DRAW_TO_WINDOW) || in choosePixelFormat() 154 !(pfd.dwFlags & PFD_SUPPORT_OPENGL)) in choosePixelFormat() 159 if (!(pfd.dwFlags & PFD_GENERIC_ACCELERATED) && in choosePixelFormat() 160 (pfd.dwFlags & PFD_GENERIC_FORMAT)) in choosePixelFormat() 165 if (pfd.iPixelType != PFD_TYPE_RGBA) in choosePixelFormat() 168 u->redBits = pfd.cRedBits; in choosePixelFormat() 169 u->greenBits = pfd.cGreenBits; in choosePixelFormat() 170 u->blueBits = pfd.cBlueBits; in choosePixelFormat() [all …]
|
/third_party/pulseaudio/src/pulsecore/ |
D | poll-win32.c | 351 pa_poll (struct pollfd *pfd, nfds_t nfd, int timeout) in pa_poll() argument 384 if (!pfd && nfd) in pa_poll() 419 if (pfd[i].fd < 0) in pa_poll() 422 if (pfd[i].events & (POLLIN | POLLRDNORM)) in pa_poll() 423 FD_SET (pfd[i].fd, &rfds); in pa_poll() 428 if (pfd[i].events & (POLLOUT | POLLWRNORM | POLLWRBAND)) in pa_poll() 429 FD_SET (pfd[i].fd, &wfds); in pa_poll() 430 if (pfd[i].events & (POLLPRI | POLLRDBAND)) in pa_poll() 431 FD_SET (pfd[i].fd, &efds); in pa_poll() 432 if (pfd[i].fd >= maxfd in pa_poll() [all …]
|
/third_party/cef/tests/cefclient/browser/ |
D | osr_render_handler_win_gl.cc | 154 PIXELFORMATDESCRIPTOR pfd; in EnableGL() local 161 ZeroMemory(&pfd, sizeof(pfd)); in EnableGL() 162 pfd.nSize = sizeof(pfd); in EnableGL() 163 pfd.nVersion = 1; in EnableGL() 164 pfd.dwFlags = PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER; in EnableGL() 165 pfd.iPixelType = PFD_TYPE_RGBA; in EnableGL() 166 pfd.cColorBits = 24; in EnableGL() 167 pfd.cDepthBits = 16; in EnableGL() 168 pfd.iLayerType = PFD_MAIN_PLANE; in EnableGL() 169 format = ChoosePixelFormat(hdc_, &pfd); in EnableGL() [all …]
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-eventlib-custom/ |
D | minimal-http-server.c | 59 struct lws_pollfd *pfd; in custom_poll_add_fd() local 63 pfd = custom_poll_find_fd(cpcx, fd); in custom_poll_add_fd() 64 if (pfd) { in custom_poll_add_fd() 74 pfd = &cpcx->pollfds[cpcx->count_pollfds++]; in custom_poll_add_fd() 75 pfd->fd = fd; in custom_poll_add_fd() 76 pfd->events = (short)events; in custom_poll_add_fd() 77 pfd->revents = 0; in custom_poll_add_fd() 85 struct lws_pollfd *pfd; in custom_poll_del_fd() local 89 pfd = custom_poll_find_fd(cpcx, fd); in custom_poll_del_fd() 90 if (!pfd) { in custom_poll_del_fd() [all …]
|
/third_party/curl/lib/ |
D | select.c | 251 struct pollfd pfd[3]; in Curl_socket_check() local 268 pfd[num].fd = readfd0; in Curl_socket_check() 269 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check() 270 pfd[num].revents = 0; in Curl_socket_check() 274 pfd[num].fd = readfd1; in Curl_socket_check() 275 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check() 276 pfd[num].revents = 0; in Curl_socket_check() 280 pfd[num].fd = writefd; in Curl_socket_check() 281 pfd[num].events = POLLWRNORM|POLLOUT|POLLPRI; in Curl_socket_check() 282 pfd[num].revents = 0; in Curl_socket_check() [all …]
|
D | asyn-ares.c | 295 struct pollfd pfd[ARES_GETSOCK_MAXNUM]; in waitperform() local 303 pfd[i].events = 0; in waitperform() 304 pfd[i].revents = 0; in waitperform() 306 pfd[i].fd = socks[i]; in waitperform() 307 pfd[i].events |= POLLRDNORM|POLLIN; in waitperform() 310 pfd[i].fd = socks[i]; in waitperform() 311 pfd[i].events |= POLLWRNORM|POLLOUT; in waitperform() 313 if(pfd[i].events) in waitperform() 320 nfds = Curl_poll(pfd, num, timeout_ms); in waitperform() 333 (pfd[i].revents & (POLLRDNORM|POLLIN))? in waitperform() [all …]
|
/third_party/toybox/toys/other/ |
D | watch.c | 71 struct pollfd pfd[2]; in watch_main() local 86 memset(pfd, 0, sizeof(pfd)); in watch_main() 87 pfd[0].events = pfd[1].events = POLLIN; in watch_main() 130 pfd[1].fd = fds[1]; in watch_main() 136 xpoll(pfd, 1+(active && yy<height), then-now); in watch_main() 137 if (pfd[0].revents&POLLIN) { in watch_main() 144 if (pfd[0].revents&POLLHUP) xexit(); in watch_main() 146 if (pfd[1].revents&POLLIN) len = read(fds[1], toybuf, sizeof(toybuf)-1); in watch_main() 147 if (pfd[1].revents&POLLHUP) active = 0; in watch_main()
|
/third_party/ltp/testcases/kernel/syscalls/writev/ |
D | writev01.c | 46 int *pfd; member 54 .pfd = &valid_fd, 62 .pfd = &invalid_fd, 70 .pfd = &valid_fd, 78 .pfd = &valid_fd, 85 .pfd = &valid_fd, 92 .pfd = &(pipe_fd[1]), 119 TEST(writev(*(tcase->pfd), *(tcase->piovec), tcase->iovcnt)); in test_writev()
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstpoll.c | 404 struct pollfd *pfd = &g_array_index (set->fds, struct pollfd, i); in selectable_fds() local 406 if (pfd->fd >= FD_SETSIZE) in selectable_fds() 481 struct pollfd *pfd = &g_array_index (set->fds, struct pollfd, i); in pollfd_to_fd_set() local 483 if (pfd->fd < FD_SETSIZE) { in pollfd_to_fd_set() 484 if (pfd->events & POLLIN) in pollfd_to_fd_set() 485 FD_SET (pfd->fd, readfds); in pollfd_to_fd_set() 486 if (pfd->events & POLLOUT) in pollfd_to_fd_set() 487 FD_SET (pfd->fd, writefds); in pollfd_to_fd_set() 488 if (pfd->events) in pollfd_to_fd_set() 489 FD_SET (pfd->fd, errorfds); in pollfd_to_fd_set() [all …]
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/x11/ |
D | xcb_event_source.c | 39 GPollFD pfd; member 61 retval = source->pfd.revents; in xcb_event_source_check() 73 source->pfd.revents = 0; in xcb_event_source_dispatch() 100 source->pfd.fd = xcb_get_file_descriptor (connection); in xcb_event_source_new() 101 source->pfd.events = G_IO_IN | G_IO_ERR; in xcb_event_source_new() 102 g_source_add_poll (&source->source, &source->pfd); in xcb_event_source_new()
|
/third_party/libwebsockets/test-apps/ |
D | test-server.c | 90 struct lws_pollfd *pfd; in lws_callback_http() local 100 pfd = ext_find_fd(pa->fd); in lws_callback_http() 101 if (pfd) { in lws_callback_http() 105 pfd = ext_find_fd(LWS_SOCK_INVALID); in lws_callback_http() 106 if (!pfd) in lws_callback_http() 109 pfd->fd = pa->fd; in lws_callback_http() 110 pfd->events = (short)pa->events; in lws_callback_http() 111 pfd->revents = 0; in lws_callback_http() 113 count_pollfds = (int)((pfd - pollfds) + 1); in lws_callback_http() 118 pfd = ext_find_fd(pa->fd); in lws_callback_http() [all …]
|
/third_party/eudev/src/udev/ |
D | udevadm-settle.c | 62 struct pollfd pfd[1] = { {.fd = -1}, }; in adm_settle() local 132 pfd[0].events = POLLIN; in adm_settle() 133 pfd[0].fd = udev_queue_get_fd(queue); in adm_settle() 134 if (pfd[0].fd < 0) { in adm_settle() 156 if (poll(pfd, 1, MSEC_PER_SEC) > 0 && pfd[0].revents & POLLIN) in adm_settle()
|
/third_party/mesa3d/src/egl/drivers/wgl/ |
D | egl_wgl.c | 70 double_buffer = (stw_config->pfd.dwFlags & PFD_DOUBLEBUFFER) != 0; in wgl_add_config() 72 if (stw_config->pfd.iPixelType != PFD_TYPE_RGBA) in wgl_add_config() 75 wgl_sizes[0] = stw_config->pfd.cRedBits; in wgl_add_config() 76 wgl_sizes[1] = stw_config->pfd.cGreenBits; in wgl_add_config() 77 wgl_sizes[2] = stw_config->pfd.cBlueBits; in wgl_add_config() 78 wgl_sizes[3] = stw_config->pfd.cAlphaBits; in wgl_add_config() 80 base.RedSize = stw_config->pfd.cRedBits; in wgl_add_config() 81 base.GreenSize = stw_config->pfd.cGreenBits; in wgl_add_config() 82 base.BlueSize = stw_config->pfd.cBlueBits; in wgl_add_config() 83 base.AlphaSize = stw_config->pfd.cAlphaBits; in wgl_add_config() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/vulkan/wayland/ |
D | wayland_event_source.c | 97 GPollFD pfd; member 144 retval = source->pfd.revents; in wayland_event_source_check() 146 if (source->pfd.revents & G_IO_IN) { in wayland_event_source_check() 166 source->pfd.revents = 0; in wayland_event_source_dispatch() 202 source->pfd.fd = wl_display_get_fd (display); in wayland_event_source_new() 203 source->pfd.events = G_IO_IN | G_IO_ERR; in wayland_event_source_new() 204 g_source_add_poll (&source->source, &source->pfd); in wayland_event_source_new()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/wayland/ |
D | wayland_event_source.c | 60 GPollFD pfd; member 102 if (source->pfd.revents & G_IO_IN) { in wayland_event_source_check() 123 source->pfd.revents = 0; in wayland_event_source_dispatch() 161 source->pfd.fd = wl_display_get_fd (display); in wayland_event_source_new() 162 source->pfd.events = G_IO_IN | G_IO_ERR; in wayland_event_source_new() 163 g_source_add_poll (&source->source, &source->pfd); in wayland_event_source_new()
|
/third_party/libwebsockets/lib/core-net/client/ |
D | connect4.c | 35 struct lws_pollfd pfd; in lws_client_connect_4_established() local 277 pfd.fd = wsi->desc.sockfd; in lws_client_connect_4_established() 278 pfd.events = LWS_POLLIN; in lws_client_connect_4_established() 279 pfd.revents = LWS_POLLOUT; in lws_client_connect_4_established() 282 n = lws_service_fd(wsi->a.context, &pfd); in lws_client_connect_4_established() 317 pfd.fd = wsi->desc.sockfd; in lws_client_connect_4_established() 318 pfd.events = LWS_POLLIN; in lws_client_connect_4_established() 319 pfd.revents = LWS_POLLIN; in lws_client_connect_4_established() 321 n = lws_service_fd(wsi->a.context, &pfd); in lws_client_connect_4_established()
|
/third_party/gstreamer/gstplugins_bad/tests/check/pipelines/ |
D | streamheader.c | 81 int pfd[2]; in GST_START_TEST() local 92 fail_if (pipe (pfd) == -1); in GST_START_TEST() 97 g_signal_emit_by_name (sink, "add", pfd[1], NULL); ///s[1] in GST_START_TEST() 101 g_object_set (G_OBJECT (src), "fd", pfd[0], NULL); in GST_START_TEST() 194 int pfd[2]; in GST_START_TEST() local 205 fail_if (pipe (pfd) == -1); in GST_START_TEST() 210 g_signal_emit_by_name (sink, "add", pfd[1], NULL); in GST_START_TEST() 214 g_object_set (G_OBJECT (src), "fd", pfd[0], NULL); in GST_START_TEST()
|
/third_party/libwebsockets/lib/plat/windows/ |
D | windows-service.c | 63 struct lws_pollfd *pfd; in _lws_plat_service_tsi() local 98 pfd = &pt->fds[i]; in _lws_plat_service_tsi() 100 if (!(pfd->events & LWS_POLLOUT)) in _lws_plat_service_tsi() 103 wsi = wsi_from_fd(context, pfd->fd); in _lws_plat_service_tsi() 108 pfd->revents = LWS_POLLOUT; in _lws_plat_service_tsi() 109 n = lws_service_fd(context, pfd); in _lws_plat_service_tsi()
|
/third_party/ltp/testcases/kernel/syscalls/timerfd/ |
D | timerfd01.c | 70 struct pollfd pfd; in waittmr() local 72 pfd.fd = tfd; in waittmr() 73 pfd.events = POLLIN; in waittmr() 74 pfd.revents = 0; in waittmr() 75 if (poll(&pfd, 1, -1) < 0) { in waittmr() 79 if ((pfd.revents & POLLIN) == 0) { in waittmr()
|