Home
last modified time | relevance | path

Searched refs:pfd (Results 76 - 100 of 109) sorted by relevance

12345

/third_party/mesa3d/src/intel/perf/
H A Dintel_perf_query.c966 struct pollfd pfd; in intel_perf_oa_stream_ready() local
968 pfd.fd = perf_ctx->oa_stream_fd; in intel_perf_oa_stream_ready()
969 pfd.events = POLLIN; in intel_perf_oa_stream_ready()
970 pfd.revents = 0; in intel_perf_oa_stream_ready()
972 if (poll(&pfd, 1, 0) < 0) { in intel_perf_oa_stream_ready()
977 if (!(pfd.revents & POLLIN)) in intel_perf_oa_stream_ready()
/third_party/ltp/testcases/network/netstress/
H A Dnetstress.c204 struct pollfd pfd; in sock_recv_poll() local
205 pfd.fd = i->fd; in sock_recv_poll()
206 pfd.events = POLLIN; in sock_recv_poll()
211 int ret = poll(&pfd, 1, i->timeout); in sock_recv_poll()
224 if (!(pfd.revents & POLLIN)) { in sock_recv_poll()
225 if (pfd.revents & POLLERR) { in sock_recv_poll()
/third_party/libwebsockets/lib/plat/freertos/
H A Dfreertos-fds.c46 struct lws *wsi, struct lws_pollfd *pfd) in lws_plat_change_pollfd()
45 lws_plat_change_pollfd(struct lws_context *context, struct lws *wsi, struct lws_pollfd *pfd) lws_plat_change_pollfd() argument
/third_party/mesa3d/src/gallium/frontends/wgl/
H A Dstw_ext_pbuffer.c86 PIXELFORMATDESCRIPTOR pfd; in wglCreatePbufferARB() local
264 bRet = SetPixelFormat(GetDC(hWnd), iDisplayablePixelFormat, &pfd); in wglCreatePbufferARB()
H A Dstw_context.c152 PIXELFORMATDESCRIPTOR pfd; in get_matching_pixel_format() local
156 if (!DescribePixelFormat(hdc, iPixelFormat, sizeof(pfd), &pfd)) in get_matching_pixel_format()
158 return stw_pixelformat_choose(hdc, &pfd); in get_matching_pixel_format()
/third_party/mesa3d/src/gallium/winsys/d3d12/wgl/
H A Dd3d12_wgl_framebuffer.cpp226 if (!(pfi->pfd.dwFlags & PFD_DOUBLEBUFFER) || in d3d12_wgl_create_framebuffer()
227 (pfi->pfd.dwFlags & PFD_SUPPORT_GDI)) in d3d12_wgl_create_framebuffer()
/third_party/selinux/libselinux/src/
H A Davc_internal.c145 struct pollfd pfd = { fd, POLLIN | POLLPRI, 0 }; in avc_netlink_receive() local
151 rc = poll(&pfd, 1, (blocking ? -1 : 0)); in avc_netlink_receive()
/third_party/alsa-lib/src/pcm/
H A Dpcm_share.c366 struct pollfd pfd[2]; in snd_pcm_share_thread() local
369 pfd[0].fd = slave->poll[0]; in snd_pcm_share_thread()
370 pfd[0].events = POLLIN; in snd_pcm_share_thread()
371 err = snd_pcm_poll_descriptors(spcm, &pfd[1], 1); in snd_pcm_share_thread()
413 err = poll(pfd, 2, -1); in snd_pcm_share_thread()
415 if (pfd[0].revents & POLLIN) { in snd_pcm_share_thread()
417 read(pfd[0].fd, buf, 1); in snd_pcm_share_thread()
1443 struct pollfd pfd; in snd_pcm_share_open() local
1444 pfd.fd = sd[0]; in snd_pcm_share_open()
1445 pfd in snd_pcm_share_open()
[all...]
H A Dpcm_direct.c394 struct pollfd *pfd = &pfds[i+1]; local
396 server_printf("client %i revents = 0x%x\n", pfd->fd, pfd->revents);
397 if (pfd->revents & (POLLERR | POLLHUP)) {
399 close(pfd->fd);
400 pfd->fd = -1;
403 if (!(pfd->revents & POLLIN))
406 if (read(pfd->fd, &cmd, 1) == 1)
/third_party/eudev/src/libudev/
H A Dlibudev-monitor.c652 struct pollfd pfd[1]; in udev_monitor_receive_device() local
658 pfd[0].fd = udev_monitor->sock; in udev_monitor_receive_device()
659 pfd[0].events = POLLIN; in udev_monitor_receive_device()
660 rc = poll(pfd, 1, 0); in udev_monitor_receive_device()
/third_party/libwebsockets/lib/core-net/
H A Dadopt.c574 struct lws_pollfd *pfd; in adopt_socket_readbuf() local
615 pfd = &pt->fds[wsi->position_in_fds_table]; in adopt_socket_readbuf()
616 pfd->revents |= LWS_POLLIN; in adopt_socket_readbuf()
618 if (lws_service_fd_tsi(wsi->a.context, pfd, wsi->tsi)) in adopt_socket_readbuf()
/third_party/libbpf/src/
H A Dlibbpf.c10564 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd, argument
10575 if (pfd < 0) {
10577 prog->name, pfd);
10592 link->perf_event_fd = pfd;
10599 link_fd = bpf_link_create(prog_fd, pfd, BPF_PERF_EVENT, &link_opts);
10603 prog->name, pfd,
10615 if (ioctl(pfd, PERF_EVENT_IOC_SET_BPF, prog_fd) < 0) {
10618 prog->name, pfd, libbpf_strerror_r(err, errmsg, sizeof(errmsg)));
10620 pr_warn("prog '%s': try add PERF_SAMPLE_CALLCHAIN to or remove exclude_callchain_[kernel|user] from pfd %d\n",
10621 prog->name, pfd);
10641 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd) global() argument
10713 int type, pfd; global() local
10865 int type, pfd, err; global() local
10945 int pfd; global() local
10976 int pfd, err; global() local
11528 int type, pfd, err; global() local
11844 int pfd, err; global() local
12153 int tp_id, pfd, err; global() local
12188 int pfd, err; global() local
12258 int prog_fd, pfd; global() local
12331 int prog_fd, pfd; global() local
[all...]
/third_party/ninja/src/
H A Dsubprocess-posix.cc261 pollfd pfd = { fd, POLLIN | POLLPRI, 0 }; in DoWork() local
262 fds.push_back(pfd); in DoWork()
/third_party/node/deps/uv/src/unix/
H A Dcore.c689 int* pfd; in uv__recvmsg()
699 for (pfd = (int*) CMSG_DATA(cmsg), in uv__recvmsg()
701 pfd < end; in uv__recvmsg()
702 pfd += 1) in uv__recvmsg()
703 uv__cloexec(*pfd, 1); in uv__recvmsg()
H A Dfs.c796 struct pollfd pfd; in uv__fs_sendfile_emul() local
882 pfd.fd = out_fd; in uv__fs_sendfile_emul()
883 pfd.events = POLLOUT; in uv__fs_sendfile_emul()
884 pfd.revents = 0; in uv__fs_sendfile_emul()
887 n = poll(&pfd, 1, -1); in uv__fs_sendfile_emul()
890 if (n == -1 || (pfd.revents & ~POLLOUT) != 0) { in uv__fs_sendfile_emul()
/third_party/libdrm/tests/modetest/
H A Dmodetest.c1796 struct pollfd pfd[2]; in test_page_flip()
1798 pfd[0].fd = 0; in test_page_flip()
1799 pfd[0].events = POLLIN; in test_page_flip()
1800 pfd[1].fd = fd; in test_page_flip()
1801 pfd[1].events = POLLIN; in test_page_flip()
1803 if (poll(pfd, 2, -1) < 0) { in test_page_flip()
1808 if (pfd[0].revents) in test_page_flip()
/third_party/libwebsockets/lib/plat/optee/
H A Dnetwork.c240 struct lws *wsi, struct lws_pollfd *pfd) in lws_plat_change_pollfd()
239 lws_plat_change_pollfd(struct lws_context *context, struct lws *wsi, struct lws_pollfd *pfd) lws_plat_change_pollfd() argument
/third_party/libwebsockets/lib/plat/unix/
H A Dunix-fds.c261 struct lws *wsi, struct lws_pollfd *pfd) in lws_plat_change_pollfd()
260 lws_plat_change_pollfd(struct lws_context *context, struct lws *wsi, struct lws_pollfd *pfd) lws_plat_change_pollfd() argument
/third_party/libwebsockets/lib/roles/http/
H A Dparsers.c113 struct lws_pollfd *pfd; in __lws_header_table_reset() local
141 pfd = &pt->fds[wsi->position_in_fds_table]; in __lws_header_table_reset()
142 pfd->revents |= LWS_POLLIN; in __lws_header_table_reset()
144 lws_service_fd_tsi(wsi->a.context, pfd, wsi->tsi); in __lws_header_table_reset()
/third_party/alsa-lib/src/control/
H A Dcontrol.c1359 struct pollfd *pfd; in snd_ctl_wait() local
1368 pfd = alloca(sizeof(*pfd) * npfds); in snd_ctl_wait()
1369 err = snd_ctl_poll_descriptors(ctl, pfd, npfds); in snd_ctl_wait()
1377 err_poll = poll(pfd, npfds, timeout); in snd_ctl_wait()
1382 err = snd_ctl_poll_descriptors_revents(ctl, pfd, npfds, &revents); in snd_ctl_wait()
/third_party/curl/lib/
H A Dcf-socket.c1497 struct pollfd pfd[1]; in cf_socket_conn_is_alive() local
1506 pfd[0].fd = ctx->sock; in cf_socket_conn_is_alive()
1507 pfd[0].events = POLLRDNORM|POLLIN|POLLRDBAND|POLLPRI; in cf_socket_conn_is_alive()
1508 pfd[0].revents = 0; in cf_socket_conn_is_alive()
1510 r = Curl_poll(pfd, 1, 0); in cf_socket_conn_is_alive()
1519 else if(pfd[0].revents & (POLLERR|POLLHUP|POLLPRI|POLLNVAL)) { in cf_socket_conn_is_alive()
/third_party/libuv/src/unix/
H A Dfs.c743 struct pollfd pfd; in uv__fs_sendfile_emul() local
829 pfd.fd = out_fd; in uv__fs_sendfile_emul()
830 pfd.events = POLLOUT; in uv__fs_sendfile_emul()
831 pfd.revents = 0; in uv__fs_sendfile_emul()
834 n = poll(&pfd, 1, -1); in uv__fs_sendfile_emul()
837 if (n == -1 || (pfd.revents & ~POLLOUT) != 0) { in uv__fs_sendfile_emul()
H A Dcore.c745 int* pfd; in uv__recvmsg()
755 for (pfd = (int*) CMSG_DATA(cmsg), in uv__recvmsg()
757 pfd < end; in uv__recvmsg()
758 pfd += 1) in uv__recvmsg()
759 uv__cloexec(*pfd, 1); in uv__recvmsg()
/third_party/alsa-lib/src/seq/
H A Dseq.c4439 struct pollfd pfd; in snd_seq_event_input_feed() local
4441 pfd.fd = seq->poll_fd; in snd_seq_event_input_feed()
4442 pfd.events = POLLIN; in snd_seq_event_input_feed()
4443 err = poll(&pfd, 1, timeout); in snd_seq_event_input_feed()
4448 if (pfd.revents & POLLIN) in snd_seq_event_input_feed()
/third_party/python/Modules/
H A Dselectmodule.c1864 PyObject *pfd; in kqueue_event_init() local
1874 &pfd, &(self->e.filter), &(self->e.flags), in kqueue_event_init()
1879 if (PyLong_Check(pfd)) { in kqueue_event_init()
1880 self->e.ident = PyLong_AsSize_t(pfd); in kqueue_event_init()
1883 self->e.ident = PyObject_AsFileDescriptor(pfd); in kqueue_event_init()

Completed in 63 milliseconds

12345