/kernel/liteos_m/components/net/lwip-2.1/porting/src/ |
H A D | api_shell.c | 323 struct pollfd pfd; in OsPingFunc() local 391 pfd.fd = sfd; in OsPingFunc() 394 pfd.events = POLLIN; in OsPingFunc() 395 pfd.revents = 0; in OsPingFunc() 397 ret = lwip_poll(&pfd, 1, LWIP_SHELL_CMD_PING_TIMEOUT); in OsPingFunc()
|
/third_party/alsa-lib/src/rawmidi/ |
H A D | rawmidi_virt.c | 318 struct pollfd pfd; in snd_rawmidi_virtual_open() local 349 err = snd_seq_poll_descriptors(seq_handle, &pfd, 1, POLLIN); in snd_rawmidi_virtual_open() 352 rmidi->poll_fd = pfd.fd; in snd_rawmidi_virtual_open() 369 err = snd_seq_poll_descriptors(seq_handle, &pfd, 1, POLLOUT); in snd_rawmidi_virtual_open() 372 rmidi->poll_fd = pfd.fd; in snd_rawmidi_virtual_open()
|
/third_party/libwebsockets/lib/core-net/ |
H A D | service.c | 519 struct lws_pollfd pfd; in lws_service_do_ripe_rxflow() local 535 pfd.events = LWS_POLLIN; in lws_service_do_ripe_rxflow() 536 pfd.revents = LWS_POLLIN; in lws_service_do_ripe_rxflow() 537 pfd.fd = -1; in lws_service_do_ripe_rxflow() 549 handle_POLLIN(pt, wsi, &pfd) == in lws_service_do_ripe_rxflow()
|
/third_party/ntfs-3g/libfuse-lite/ |
H A D | mount.c | 374 struct pollfd pfd; in fuse_kern_unmount() local 376 pfd.fd = fd; in fuse_kern_unmount() 377 pfd.events = 0; in fuse_kern_unmount() 378 res = poll(&pfd, 1, 0); in fuse_kern_unmount() 381 if (res == 1 && (pfd.revents & POLLERR)) in fuse_kern_unmount()
|
/third_party/libfuse/lib/ |
H A D | mount.c | 269 struct pollfd pfd; in fuse_kern_unmount() local 271 pfd.fd = fd; in fuse_kern_unmount() 272 pfd.events = 0; in fuse_kern_unmount() 273 res = poll(&pfd, 1, 0); in fuse_kern_unmount() 285 if (res == 1 && (pfd.revents & POLLERR)) in fuse_kern_unmount()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 143 struct pollfd pfd; in do_poll() local 146 pfd.events = events; in do_poll() 147 pfd.revents = 0; in do_poll() 148 pfd.fd = fd; in do_poll() 150 ret = poll(&pfd, 1, cfg_waittime_ms); in do_poll() 154 return ret && (pfd.revents & events); in do_poll()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_flow_dissector.c | 477 struct pollfd pfd; in do_poll() local 480 pfd.fd = fd; in do_poll() 481 pfd.events = events; in do_poll() 483 ret = poll(&pfd, 1, timeout); in do_poll() 486 if (ret && !(pfd.revents & POLLIN)) in do_poll() 487 error(1, errno, "poll: unexpected event 0x%x\n", pfd.revents); in do_poll()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_cookie.c | 446 int pfd = -1; in pe_subtest() local 455 pfd = syscall(__NR_perf_event_open, &attr, -1, 0, -1, PERF_FLAG_FD_CLOEXEC); in pe_subtest() 456 if (!ASSERT_GE(pfd, 0, "perf_fd")) in pe_subtest() 460 link = bpf_program__attach_perf_event_opts(skel->progs.handle_pe, pfd, &opts); in pe_subtest() 468 /* prevent bpf_link__destroy() closing pfd itself */ in pe_subtest() 479 link = bpf_program__attach_perf_event_opts(skel->progs.handle_pe, pfd, &opts); in pe_subtest() 488 close(pfd); in pe_subtest()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | msg_zerocopy.c | 143 struct pollfd pfd; in do_poll() local 146 pfd.events = events; in do_poll() 147 pfd.revents = 0; in do_poll() 148 pfd.fd = fd; in do_poll() 150 ret = poll(&pfd, 1, cfg_waittime_ms); in do_poll() 154 return ret && (pfd.revents & events); in do_poll()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_flow_dissector.c | 477 struct pollfd pfd; in do_poll() local 480 pfd.fd = fd; in do_poll() 481 pfd.events = events; in do_poll() 483 ret = poll(&pfd, 1, timeout); in do_poll() 486 if (ret && !(pfd.revents & POLLIN)) in do_poll() 487 error(1, errno, "poll: unexpected event 0x%x\n", pfd.revents); in do_poll()
|
/third_party/eudev/src/udev/ |
H A D | udev-event.c | 580 struct pollfd pfd[1]; in spawn_wait() local 583 pfd[0].events = POLLIN; in spawn_wait() 584 pfd[0].fd = event->fd_signal; in spawn_wait() 607 fdcount = poll(pfd, 1, timeout_warn); in spawn_wait() 618 fdcount = poll(pfd, 1, timeout); in spawn_wait() 632 if (pfd[0].revents & POLLIN) { in spawn_wait()
|
/third_party/alsa-lib/src/control/ |
H A D | hcontrol.c | 677 struct pollfd *pfd; in snd_hctl_wait() local 686 pfd = alloca(sizeof(*pfd) * npfds); in snd_hctl_wait() 688 err = snd_hctl_poll_descriptors(hctl, pfd, npfds); in snd_hctl_wait() 697 err_poll = poll(pfd, npfds, timeout); in snd_hctl_wait() 705 err = snd_hctl_poll_descriptors_revents(hctl, pfd, npfds, revents); in snd_hctl_wait()
|
/third_party/NuttX/fs/vfs/ |
H A D | fs_select.c | 100 struct pollfd pfd[POLL_STACK_CNT]; in do_select() local 140 pollset = pfd; in do_select()
|
/third_party/alsa-lib/include/ |
H A D | pcm_ioplug.h | 189 int (*poll_descriptors)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int space); 193 int (*poll_revents)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int nfds, unsigned short *revents);
|
/third_party/pulseaudio/src/modules/bluetooth/ |
H A D | backend-ofono.c | 293 struct pollfd pfd; in socket_accept() local 298 memset(&pfd, 0, sizeof(pfd)); in socket_accept() 299 pfd.fd = sock; in socket_accept() 300 pfd.events = POLLOUT; in socket_accept() 302 if (poll(&pfd, 1, 0) < 0) in socket_accept() 309 if ((pfd.revents & POLLOUT)) in socket_accept()
|
/kernel/linux/linux-5.10/tools/testing/selftests/ir/ |
H A D | ir_loopback.c | 167 struct pollfd pfd = { .fd = rlircfd, .events = POLLIN }; in main() local 170 poll(&pfd, 1, 1000); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/ir/ |
H A D | ir_loopback.c | 176 struct pollfd pfd = { .fd = rlircfd, .events = POLLIN }; in main() local 179 poll(&pfd, 1, 1000); in main()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/ |
H A D | epoll_wait01.c | 29 struct pollfd pfd[] = { in get_writesize() local 37 nfd = poll(pfd, 1, 1); in get_writesize()
|
/third_party/libuv/src/unix/ |
H A D | posix-poll.c | 79 struct pollfd pfd; in uv__pollfds_swap() local 80 pfd = loop->poll_fds[l]; in uv__pollfds_swap() 82 loop->poll_fds[r] = pfd; in uv__pollfds_swap()
|
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-alexa/ |
H A D | audio.c | 131 struct pollfd pfd; in set_hw_params() local 143 if (snd_pcm_poll_descriptors(*pcm, &pfd, 1) != 1) { in set_hw_params() 148 u.filefd = (lws_filefd_type)(long long)pfd.fd; in set_hw_params()
|
/third_party/node/deps/uv/src/unix/ |
H A D | posix-poll.c | 79 struct pollfd pfd; in uv__pollfds_swap() local 80 pfd = loop->poll_fds[l]; in uv__pollfds_swap() 82 loop->poll_fds[r] = pfd; in uv__pollfds_swap()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | libbpf.c | 10108 struct bpf_link *bpf_program__attach_perf_event_opts(const struct bpf_program *prog, int pfd, in bpf_program__attach_perf_event_opts() argument 10119 if (pfd < 0) { in bpf_program__attach_perf_event_opts() 10121 prog->name, pfd); in bpf_program__attach_perf_event_opts() 10136 link->perf_event_fd = pfd; in bpf_program__attach_perf_event_opts() 10143 link_fd = bpf_link_create(prog_fd, pfd, BPF_PERF_EVENT, &link_opts); in bpf_program__attach_perf_event_opts() 10147 prog->name, pfd, in bpf_program__attach_perf_event_opts() 10159 if (ioctl(pfd, PERF_EVENT_IOC_SET_BPF, prog_fd) < 0) { in bpf_program__attach_perf_event_opts() 10162 prog->name, pfd, libbpf_strerror_r(err, errmsg, sizeof(errmsg))); in bpf_program__attach_perf_event_opts() 10164 pr_warn("prog '%s': try add PERF_SAMPLE_CALLCHAIN to or remove exclude_callchain_[kernel|user] from pfd %d\n", in bpf_program__attach_perf_event_opts() 10165 prog->name, pfd); in bpf_program__attach_perf_event_opts() 10185 bpf_program__attach_perf_event(const struct bpf_program *prog, int pfd) bpf_program__attach_perf_event() argument 10257 int type, pfd; perf_event_open_probe() local 10409 int type, pfd, err; perf_event_kprobe_open_legacy() local 10489 int pfd; probe_kern_syscall_wrapper() local 10520 int pfd, err; bpf_program__attach_kprobe_opts() local 11072 int type, pfd, err; perf_event_uprobe_open_legacy() local 11378 int pfd, err; bpf_program__attach_uprobe_opts() local 11673 int tp_id, pfd, err; perf_event_open_tracepoint() local 11708 int pfd, err; bpf_program__attach_tracepoint_opts() local 11778 int prog_fd, pfd; bpf_program__attach_raw_tracepoint() local 11851 int prog_fd, pfd; bpf_program__attach_btf_id() local [all...] |
/kernel/linux/linux-6.6/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 74 int field, struct mtk_pin_field *pfd) in mtk_hw_pin_field_lookup() 128 /* Fill pfd from bits. For example 32-bit register applied is assumed in mtk_hw_pin_field_lookup() 131 pfd->index = c->i_base; in mtk_hw_pin_field_lookup() 132 pfd->offset = c->s_addr + c->x_addrs * (bits / c->sz_reg); in mtk_hw_pin_field_lookup() 133 pfd->bitpos = bits % c->sz_reg; in mtk_hw_pin_field_lookup() 134 pfd->mask = (1 << c->x_bits) - 1; in mtk_hw_pin_field_lookup() 136 /* pfd->next is used for indicating that bit wrapping-around happens in mtk_hw_pin_field_lookup() 140 pfd->next = pfd->bitpos + c->x_bits > c->sz_reg ? c->x_addrs : 0; in mtk_hw_pin_field_lookup() 147 int field, struct mtk_pin_field *pfd) in mtk_hw_pin_field_get() 72 mtk_hw_pin_field_lookup(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, int field, struct mtk_pin_field *pfd) mtk_hw_pin_field_lookup() argument 145 mtk_hw_pin_field_get(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, int field, struct mtk_pin_field *pfd) mtk_hw_pin_field_get() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/egl/gbm/ |
H A D | DisplayGbm.cpp | 505 pollfd pfd; in presentScreen() local 506 pfd.fd = fd; in presentScreen() 507 pfd.events = POLLIN; in presentScreen() 508 if (poll(&pfd, 1, 0) < 0) in presentScreen() 512 if (pfd.revents & POLLIN) in presentScreen()
|
/third_party/toybox/toys/pending/ |
H A D | traceroute.c | 200 struct pollfd pfd[1]; in do_trace() local 204 pfd[0].fd = TT.recv_sock; in do_trace() 205 pfd[0].events = POLLIN; in do_trace() 232 if (!(res = poll(pfd, 1, tleft))) { in do_trace() 244 if (pfd[0].revents) { in do_trace()
|