Home
last modified time | relevance | path

Searched refs:pfd (Results 151 - 175 of 180) sorted by relevance

12345678

/third_party/alsa-lib/src/pcm/
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/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/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/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()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dtcp_mmap.c183 struct pollfd pfd = { .fd = fd, .events = POLLIN, }; in child_thread() local
186 poll(&pfd, 1, 10000); in child_thread()
/kernel/linux/linux-5.10/tools/iio/
H A Diio_generic_buffer.c657 struct pollfd pfd = { in main() local
662 ret = poll(&pfd, 1, -1); in main()
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dtcp_mmap.c214 struct pollfd pfd = { .fd = fd, .events = POLLIN, }; in child_thread() local
217 poll(&pfd, 1, 10000); in child_thread()
/kernel/linux/linux-6.6/tools/iio/
H A Diio_generic_buffer.c725 struct pollfd pfd = { in main() local
730 ret = poll(&pfd, 1, -1); in main()
/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()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf.h239 bpf_program__attach_perf_event(struct bpf_program *prog, int pfd);
323 int *pfd; member
/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()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf.h464 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd);
467 bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
/third_party/libbpf/src/
H A Dlibbpf.h464 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd);
467 bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd,
/third_party/mesa3d/src/gallium/frontends/wgl/
H A Dstw_framebuffer.c685 if (!(fb->pfi->pfd.dwFlags & PFD_DOUBLEBUFFER)) { in stw_framebuffer_swap_locked()
/third_party/libwebsockets/lib/plat/windows/
H A Dwindows-sockets.c251 struct lws_pollfd *pfd) in lws_plat_change_pollfd()
250 lws_plat_change_pollfd(struct lws_context *context, struct lws *wsi, struct lws_pollfd *pfd) lws_plat_change_pollfd() argument
/third_party/backends/backend/
H A Dhp-scl.c157 hp_GetOpenDevice (const char *devname, HpConnect connect, int *pfd) in hp_GetOpenDevice() argument
167 if (pfd) *pfd = asHpOpenFd[iCount].fd; in hp_GetOpenDevice()
/third_party/node/deps/v8/src/codegen/s390/
H A Dassembler-s390.h461 void pfd(Condition cond, const MemOperand& opnd) { in pfd() function in v8::internal::Assembler
462 pfd(cond, opnd.getIndexRegister(), opnd.getBaseRegister(), in pfd()
465 void pfd(Condition cond, Register x2, Register b2, const Operand& d2) { in pfd() function in v8::internal::Assembler
/kernel/liteos_a/net/lwip-2.1/enhancement/src/
H A Dapi_shell.c1635 struct pollfd pfd; local
1695 pfd.fd = sfd;
1698 pfd.events = POLLIN;
1699 pfd.revents = 0;
1701 ret = poll(&pfd, 1, LWIP_SHELL_CMD_PING_TIMEOUT);

Completed in 56 milliseconds

12345678