Home
last modified time | relevance | path

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

1234

/external/mesa3d/src/gallium/state_trackers/wgl/
Dstw_pixelformat.c150 pfi->pfd.nSize = sizeof pfi->pfd; in stw_pixelformat_add()
151 pfi->pfd.nVersion = 1; in stw_pixelformat_add()
153 pfi->pfd.dwFlags = PFD_SUPPORT_OPENGL; in stw_pixelformat_add()
157 pfi->pfd.dwFlags |= PFD_DRAW_TO_WINDOW; in stw_pixelformat_add()
161 pfi->pfd.dwFlags |= PFD_SUPPORT_COMPOSITION; in stw_pixelformat_add()
164 pfi->pfd.dwFlags |= PFD_DOUBLEBUFFER | PFD_SWAP_EXCHANGE; in stw_pixelformat_add()
166 pfi->pfd.iPixelType = PFD_TYPE_RGBA; in stw_pixelformat_add()
168 pfi->pfd.cColorBits = color->bits.red + color->bits.green + color->bits.blue + color->bits.alpha; in stw_pixelformat_add()
169 pfi->pfd.cRedBits = color->bits.red; in stw_pixelformat_add()
170 pfi->pfd.cRedShift = color->shift.red; in stw_pixelformat_add()
[all …]
Dstw_ext_pixelformat.c75 *pvalue = pfi->pfd.dwFlags & PFD_DRAW_TO_WINDOW ? TRUE : FALSE; in stw_query_attrib()
79 *pvalue = pfi->pfd.dwFlags & PFD_DRAW_TO_BITMAP ? TRUE : FALSE; in stw_query_attrib()
83 *pvalue = pfi->pfd.dwFlags & PFD_NEED_PALETTE ? TRUE : FALSE; in stw_query_attrib()
87 *pvalue = pfi->pfd.dwFlags & PFD_NEED_SYSTEM_PALETTE ? TRUE : FALSE; in stw_query_attrib()
91 if (pfi->pfd.dwFlags & PFD_SWAP_COPY) in stw_query_attrib()
93 else if (pfi->pfd.dwFlags & PFD_SWAP_EXCHANGE) in stw_query_attrib()
148 *pvalue = pfi->pfd.dwFlags & PFD_SUPPORT_GDI ? TRUE : FALSE; in stw_query_attrib()
152 *pvalue = pfi->pfd.dwFlags & PFD_SUPPORT_OPENGL ? TRUE : FALSE; in stw_query_attrib()
156 *pvalue = pfi->pfd.dwFlags & PFD_DOUBLEBUFFER ? TRUE : FALSE; in stw_query_attrib()
160 *pvalue = pfi->pfd.dwFlags & PFD_STEREO ? TRUE : FALSE; in stw_query_attrib()
[all …]
/external/openssh/regress/
Dnetcat.c668 struct pollfd pfd; in timeout_connect() local
680 pfd.fd = s; in timeout_connect()
681 pfd.events = POLLOUT; in timeout_connect()
682 if ((ret = poll(&pfd, 1, timeout)) == 1) { in timeout_connect()
770 struct pollfd pfd[4]; in readwrite() local
785 pfd[POLL_STDIN].fd = stdin_fd; in readwrite()
786 pfd[POLL_STDIN].events = POLLIN; in readwrite()
789 pfd[POLL_NETOUT].fd = net_fd; in readwrite()
790 pfd[POLL_NETOUT].events = 0; in readwrite()
793 pfd[POLL_NETIN].fd = net_fd; in readwrite()
[all …]
/external/strace/tests-mx32/
Dpoll.c45 if (member != pfd->member) \
53 print_pollfd_entering(const struct pollfd *const pfd) in print_pollfd_entering() argument
55 tprintf("{fd=%d", pfd->fd); in print_pollfd_entering()
56 if (pfd->fd >= 0) { in print_pollfd_entering()
58 short events = pfd->events; in print_pollfd_entering()
60 if (pfd->events) { in print_pollfd_entering()
86 print_pollfd_array_entering(const struct pollfd *const pfd, in print_pollfd_array_entering() argument
97 tprintf("%p", &pfd[i]); in print_pollfd_array_entering()
104 print_pollfd_entering(&pfd[i]); in print_pollfd_array_entering()
110 print_pollfd_exiting(const struct pollfd *const pfd, in print_pollfd_exiting() argument
[all …]
/external/strace/tests/
Dpoll.c45 if (member != pfd->member) \
53 print_pollfd_entering(const struct pollfd *const pfd) in print_pollfd_entering() argument
55 tprintf("{fd=%d", pfd->fd); in print_pollfd_entering()
56 if (pfd->fd >= 0) { in print_pollfd_entering()
58 short events = pfd->events; in print_pollfd_entering()
60 if (pfd->events) { in print_pollfd_entering()
86 print_pollfd_array_entering(const struct pollfd *const pfd, in print_pollfd_array_entering() argument
97 tprintf("%p", &pfd[i]); in print_pollfd_array_entering()
104 print_pollfd_entering(&pfd[i]); in print_pollfd_array_entering()
110 print_pollfd_exiting(const struct pollfd *const pfd, in print_pollfd_exiting() argument
[all …]
/external/strace/tests-m32/
Dpoll.c45 if (member != pfd->member) \
53 print_pollfd_entering(const struct pollfd *const pfd) in print_pollfd_entering() argument
55 tprintf("{fd=%d", pfd->fd); in print_pollfd_entering()
56 if (pfd->fd >= 0) { in print_pollfd_entering()
58 short events = pfd->events; in print_pollfd_entering()
60 if (pfd->events) { in print_pollfd_entering()
86 print_pollfd_array_entering(const struct pollfd *const pfd, in print_pollfd_array_entering() argument
97 tprintf("%p", &pfd[i]); in print_pollfd_array_entering()
104 print_pollfd_entering(&pfd[i]); in print_pollfd_array_entering()
110 print_pollfd_exiting(const struct pollfd *const pfd, in print_pollfd_exiting() argument
[all …]
/external/libevent/
Dpoll.c110 struct pollfd *pfd = &pop->event_set[i]; in poll_check_ok() local
111 EVUTIL_ASSERT(pop->idxplus1_by_fd[pfd->fd] == i+1); in poll_check_ok()
214 struct pollfd *pfd = NULL; in poll_add() local
248 pfd = &pop->event_set[i]; in poll_add()
251 pfd = &pop->event_set[i]; in poll_add()
252 pfd->events = 0; in poll_add()
253 pfd->fd = fd; in poll_add()
257 pfd->revents = 0; in poll_add()
259 pfd->events |= POLLOUT; in poll_add()
261 pfd->events |= POLLIN; in poll_add()
[all …]
/external/ltp/testcases/kernel/syscalls/clone/
Dclone03.c51 static int pfd[2]; variable
76 if ((pipe(pfd)) == -1) in main()
86 if ((close(pfd[1])) == -1) in main()
91 if ((read(pfd[0], buff, sizeof(buff))) == -1) in main()
96 if ((close(pfd[0])) == -1) in main()
133 if ((close(pfd[0])) == -1) in child_fn()
139 if ((write(pfd[1], pid, sizeof(pid))) == -1) in child_fn()
143 if ((close(pfd[1])) == -1) in child_fn()
Dclone06.c41 static int pfd[2]; variable
65 if ((pipe(pfd)) == -1) in main()
75 if ((close(pfd[1])) == -1) in main()
79 if ((read(pfd[0], buff, sizeof(buff))) == -1) in main()
84 if ((close(pfd[0])) == -1) in main()
126 if ((close(pfd[0])) == -1) in child_environ()
132 if ((write(pfd[1], var, MAX_LINE_LENGTH)) == -1) in child_environ()
136 if ((close(pfd[1])) == -1) in child_environ()
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev01.c58 int *pfd; member
66 .pfd = &valid_fd,
74 .pfd = &invalid_fd,
82 .pfd = &valid_fd,
90 .pfd = &valid_fd,
97 .pfd = &valid_fd,
104 .pfd = &(pipe_fd[1]),
131 TEST(writev(*(tcase->pfd), *(tcase->piovec), tcase->iovcnt)); in test_writev()
/external/linux-kselftest/tools/testing/selftests/nsfs/
Downer.c27 int pfd[2], ns, uns, init_uns; in main() local
33 if (pipe(pfd)) in main()
43 close(pfd[0]); in main()
44 close(pfd[1]); in main()
49 close(pfd[1]); in main()
50 if (read(pfd[0], &c, 1) != 0) in main()
52 close(pfd[0]); in main()
/external/curl/lib/
Dselect.c151 struct pollfd pfd[3]; in Curl_socket_check() local
194 pfd[num].fd = readfd0; in Curl_socket_check()
195 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check()
196 pfd[num].revents = 0; in Curl_socket_check()
200 pfd[num].fd = readfd1; in Curl_socket_check()
201 pfd[num].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in Curl_socket_check()
202 pfd[num].revents = 0; in Curl_socket_check()
206 pfd[num].fd = writefd; in Curl_socket_check()
207 pfd[num].events = POLLWRNORM|POLLOUT; in Curl_socket_check()
208 pfd[num].revents = 0; in Curl_socket_check()
[all …]
Dasyn-ares.c256 struct pollfd pfd[ARES_GETSOCK_MAXNUM]; in waitperform() local
264 pfd[i].events = 0; in waitperform()
265 pfd[i].revents = 0; in waitperform()
267 pfd[i].fd = socks[i]; in waitperform()
268 pfd[i].events |= POLLRDNORM|POLLIN; in waitperform()
271 pfd[i].fd = socks[i]; in waitperform()
272 pfd[i].events |= POLLWRNORM|POLLOUT; in waitperform()
274 if(pfd[i].events != 0) in waitperform()
281 nfds = Curl_poll(pfd, num, timeout_ms); in waitperform()
294 pfd[i].revents & (POLLRDNORM|POLLIN)? in waitperform()
[all …]
/external/valgrind/memcheck/tests/linux/
Dsyscalls-2007.c41 struct pollfd pfd[2]; in main() local
50 pfd[0].fd = fd; in main()
51 pfd[0].events = POLLIN|POLLOUT; in main()
52 pfd[1].fd = fd2; in main()
53 pfd[1].events = POLLIN|POLLOUT; in main()
54 ppoll (pfd, 2, &ts, &mask); in main()
/external/openssh/
Datomicio.c58 struct pollfd pfd; in atomicio6() local
61 pfd.fd = fd; in atomicio6()
62 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio6()
72 (void)poll(&pfd, 1, -1); in atomicio6()
108 struct pollfd pfd; in atomiciov6() local
118 pfd.fd = fd; in atomiciov6()
119 pfd.events = f == readv ? POLLIN : POLLOUT; in atomiciov6()
129 (void)poll(&pfd, 1, -1); in atomiciov6()
Dmonitor_fdpass.c66 struct pollfd pfd; in mm_send_fd() local
88 pfd.fd = sock; in mm_send_fd()
89 pfd.events = POLLOUT; in mm_send_fd()
93 (void)poll(&pfd, 1, -1); in mm_send_fd()
128 struct pollfd pfd; in mm_receive_fd() local
144 pfd.fd = sock; in mm_receive_fd()
145 pfd.events = POLLIN; in mm_receive_fd()
149 (void)poll(&pfd, 1, -1); in mm_receive_fd()
/external/netcat/
Datomicio.c46 struct pollfd pfd; in atomicio() local
48 pfd.fd = fd; in atomicio()
49 pfd.events = f == read ? POLLIN : POLLOUT; in atomicio()
57 (void)poll(&pfd, 1, -1); in atomicio()
Dnetcat.c654 struct pollfd pfd; in timeout_connect() local
666 pfd.fd = s; in timeout_connect()
667 pfd.events = POLLOUT; in timeout_connect()
668 if ((ret = poll(&pfd, 1, timeout)) == 1) { in timeout_connect()
762 struct pollfd pfd[2]; in readwrite() local
771 pfd[0].fd = nfd; in readwrite()
772 pfd[0].events = POLLIN; in readwrite()
775 pfd[1].fd = wfd; in readwrite()
776 pfd[1].events = POLLIN; in readwrite()
778 while (pfd[0].fd != -1) { in readwrite()
[all …]
/external/libmojo/base/android/java/src/org/chromium/base/
DContentUriUtils.java70 ParcelFileDescriptor pfd = getParcelFileDescriptor(context, uriString); in openContentUriForRead() local
71 if (pfd != null) { in openContentUriForRead()
72 return pfd.detachFd(); in openContentUriForRead()
115 ParcelFileDescriptor pfd = null; in getParcelFileDescriptor() local
117 pfd = resolver.openFileDescriptor(uri, "r"); in getParcelFileDescriptor()
127 return pfd; in getParcelFileDescriptor()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c237 struct pollfd pfd; in walk_v1_v2_rx() local
246 memset(&pfd, 0, sizeof(pfd)); in walk_v1_v2_rx()
247 pfd.fd = sock; in walk_v1_v2_rx()
248 pfd.events = POLLIN | POLLERR; in walk_v1_v2_rx()
249 pfd.revents = 0; in walk_v1_v2_rx()
280 poll(&pfd, 1, 1); in walk_v1_v2_rx()
387 struct pollfd pfd; in walk_tx() local
426 memset(&pfd, 0, sizeof(pfd)); in walk_tx()
427 pfd.fd = sock; in walk_tx()
428 pfd.events = POLLOUT | POLLERR; in walk_tx()
[all …]
/external/libcups/cups/
Dsidechannel.c112 struct pollfd pfd; /* Poll structure for poll() */ in cupsSideChannelRead() local
135 pfd.fd = CUPS_SC_FD; in cupsSideChannelRead()
136 pfd.events = POLLIN; in cupsSideChannelRead()
138 while ((nfds = poll(&pfd, 1, in cupsSideChannelRead()
535 struct pollfd pfd; /* Poll structure for poll() */ in cupsSideChannelWrite() local
555 pfd.fd = CUPS_SC_FD; in cupsSideChannelWrite()
556 pfd.events = POLLOUT; in cupsSideChannelWrite()
560 if (poll(&pfd, 1, -1) < 1) in cupsSideChannelWrite()
563 else if (poll(&pfd, 1, (int)(timeout * 1000)) < 1) in cupsSideChannelWrite()
/external/toybox/toys/other/
Dmkpasswd.c28 long pfd; in GLOBALS()
56 if (TT.pfd) {
57 if (dup2(TT.pfd, 0) == -1) perror_exit("fd");
58 close(TT.pfd);
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_yield/
D1-1.c66 int pfd[2]; in main() local
73 rc = pipe(pfd); in main()
96 child_busy(pfd[1]); in main()
104 rc = read(pfd[0], buf, sizeof(buf)); in main()
/external/wpa_supplicant_8/src/utils/
Deloop.c445 struct pollfd *pfd; in eloop_sock_table_set_fds() local
470 pfd = pollfds_map[fd]; in eloop_sock_table_set_fds()
471 if (!pfd) { in eloop_sock_table_set_fds()
472 pfd = &(pollfds[nxt]); in eloop_sock_table_set_fds()
473 pfd->events = 0; in eloop_sock_table_set_fds()
474 pfd->fd = fd; in eloop_sock_table_set_fds()
476 pollfds_map[fd] = pfd; in eloop_sock_table_set_fds()
479 pfd->events |= POLLOUT; in eloop_sock_table_set_fds()
496 pfd = pollfds_map[fd]; in eloop_sock_table_set_fds()
497 if (!pfd) { in eloop_sock_table_set_fds()
[all …]
/external/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd01.c110 struct pollfd pfd; in waittmr() local
112 pfd.fd = tfd; in waittmr()
113 pfd.events = POLLIN; in waittmr()
114 pfd.revents = 0; in waittmr()
115 if (poll(&pfd, 1, timeo) < 0) { in waittmr()
119 if ((pfd.revents & POLLIN) == 0) { in waittmr()

1234