Home
last modified time | relevance | path

Searched refs:POLLIN (Results 1 – 25 of 123) sorted by relevance

12345

/openbmc/linux/tools/perf/tests/
H A Dfdarray.c41 fdarray__init_revents(fda, POLLIN); in test__fdarray__filter()
58 fda->entries[2].revents = POLLIN; in test__fdarray__filter()
70 fda->entries[0].revents = POLLIN; in test__fdarray__filter()
71 fda->entries[3].revents = POLLIN; in test__fdarray__filter()
127 FDA_ADD(0, 1, POLLIN, 1); in test__fdarray__add()
141 FDA_ADD(3, 88, POLLIN | POLLOUT, 4); in test__fdarray__add()
145 FDA_CHECK(0, 1, POLLIN); in test__fdarray__add()
148 FDA_CHECK(3, 88, POLLIN | POLLOUT); in test__fdarray__add()
/openbmc/linux/tools/testing/selftests/net/af_unix/
H A Dtest_unix_oob.c241 wait_for_data(pfd, POLLIN | POLLPRI); in main()
266 wait_for_data(pfd, POLLIN | POLLPRI); in main()
304 wait_for_data(pfd, POLLIN | POLLPRI); in main()
336 wait_for_data(pfd, POLLIN | POLLPRI); in main()
367 wait_for_data(pfd, POLLIN | POLLPRI); in main()
399 wait_for_data(pfd, POLLIN | POLLPRI); in main()
429 wait_for_data(pfd, POLLIN | POLLPRI); in main()
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c46 pollfd[0].events = POLLIN; in uffd_handler_thread_fn()
48 pollfd[1].events = POLLIN; in uffd_handler_thread_fn()
69 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn()
76 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
/openbmc/libmctp/utils/
H A Dmctp-pipe.c61 pollfds[0].events = POLLIN; in main()
63 pollfds[1].events = POLLIN; in main()
65 pollfds[2].events = POLLIN; in main()
/openbmc/obmc-console/
H A Dsocket-handler.c115 events = POLLIN; in client_set_blocked()
271 if (events & POLLIN) { in client_poll()
310 if (!(events & POLLIN)) { in socket_poll()
326 client->fd, POLLIN, client); in socket_poll()
387 client->fd, POLLIN, client); in dbus_create_socket_consumer()
475 NULL, sh->sd, POLLIN, NULL); in socket_init()
H A Dtty-handler.c77 events = POLLIN; in tty_set_blocked()
167 if (events & POLLIN) { in tty_poll()
290 th->fd, POLLIN, NULL); in tty_init()
/openbmc/linux/arch/um/drivers/
H A Dubd_user.c40 kernel_pollfd.events = POLLIN; in start_io_thread()
70 kernel_pollfd.events = POLLIN; in ubd_read_poll()
/openbmc/phosphor-mboxd/
H A Dmboxd.c59 context->fds[i].events = POLLIN; in poll_loop()
71 if (context->fds[SIG_FD].revents & POLLIN) { /* Signal */ in poll_loop()
105 if (context->fds[DBUS_FD].revents & POLLIN) { /* DBUS */ in poll_loop()
117 if (context->fds[MBOX_FD].revents & POLLIN) { /* MBOX */ in poll_loop()
/openbmc/linux/tools/testing/selftests/cgroup/
H A Dwait_inotify.c33 struct pollfd fds = { .events = POLLIN, }; in main()
73 if ((ret > 0) && (fds.revents & POLLIN)) in main()
/openbmc/linux/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c32 fds.events = POLLIN; in main()
97 if (!(fds.revents & POLLIN)) in main()
/openbmc/linux/samples/uhid/
H A Duhid-example.c430 pfds[0].events = POLLIN; in main()
432 pfds[1].events = POLLIN; in main()
450 if (pfds[0].revents & POLLIN) { in main()
455 if (pfds[1].revents & POLLIN) { in main()
/openbmc/ipmitool/lib/
H A Dipmi_tsol.c509 fds_wait[0].events = POLLIN; in ipmi_tsol_main()
512 fds_wait[1].events = POLLIN; in ipmi_tsol_main()
519 fds_data_wait[0].events = POLLIN | POLLOUT; in ipmi_tsol_main()
522 fds_data_wait[1].events = POLLIN; in ipmi_tsol_main()
540 if ((fds[0].revents & POLLIN) && (sizeof(out_buff) > out_buff_fill)) { in ipmi_tsol_main()
561 if ((fds[1].revents & POLLIN) && (sizeof(in_buff) > in_buff_fill)) { in ipmi_tsol_main()
/openbmc/phosphor-ipmi-flash/bmc/firmware-handler/
H A Dnet_handler.cpp76 fds.events = POLLIN; in copyFrom()
89 else if (fds.revents != POLLIN) in copyFrom()
/openbmc/linux/tools/testing/selftests/filesystems/epoll/
H A Depoll_wakeup_test.c68 pfd.events = POLLIN; in waiter_entry1ap()
95 pfd.events = POLLIN; in waiter_entry1op()
122 pfd.events = POLLIN; in waiter_entry2ap()
319 pfd.events = POLLIN; in TEST()
324 pfd.events = POLLIN; in TEST()
358 pfd.events = POLLIN; in TEST()
363 pfd.events = POLLIN; in TEST()
403 pfd.events = POLLIN; in TEST()
408 pfd.events = POLLIN; in TEST()
449 pfd.events = POLLIN; in TEST()
[all …]
/openbmc/linux/tools/lib/api/
H A Dio.h61 .events = POLLIN, in io__get_char()
68 if (n > 0 && !(pfds[0].revents & POLLIN)) { in io__get_char()
/openbmc/linux/tools/perf/
H A Dbuiltin-daemon.c448 .events = POLLIN, in daemon_session__wait()
487 .events = POLLIN, in daemon__wait()
513 struct pollfd pollfd = { .events = POLLIN, }; in daemon_session__control()
562 if (!(pollfd.revents & POLLIN)) { in daemon_session__control()
1307 sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1311 file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1315 signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
1329 if (fda.entries[sock_pos].revents & POLLIN) in __cmd_start()
1331 if (fda.entries[file_pos].revents & POLLIN) in __cmd_start()
1333 if (fda.entries[signal_pos].revents & POLLIN) in __cmd_start()
/openbmc/linux/tools/testing/selftests/net/
H A Dudpgso_bench_rx.c97 pfd.events = POLLIN; in do_poll()
120 if (pfd.revents != POLLIN) in do_poll()
122 pfd.revents, POLLIN); in do_poll()
/openbmc/linux/include/uapi/asm-generic/
H A Dpoll.h6 #define POLLIN 0x0001 macro
/openbmc/btbridge/
H A Dbtbridged.c429 context->fds[BT_FD].events = POLLIN; in bt_host_write()
438 if (context->fds[TIMER_FD].revents & POLLIN) { in dispatch_timer()
504 if (context->fds[BT_FD].revents & POLLIN) { in dispatch_bt()
720 context->fds[SD_BUS_FD].events = POLLIN; in main()
721 context->fds[BT_FD].events = POLLIN; in main()
722 context->fds[TIMER_FD].events = POLLIN; in main()
/openbmc/qemu/audio/
H A Dsndioaudio.c146 events |= POLLIN; in sndio_poll_wait()
163 (pfd->events & POLLIN) ? sndio_poll_in : NULL, in sndio_poll_wait()
203 if (revents & POLLIN) { in sndio_poll_event()
311 sndio_poll_event(pindex->self, pindex->index, POLLIN); in sndio_poll_in()
/openbmc/libpldm/src/transport/
H A Dtest.c76 { .fd = test->timerfd, .events = POLLIN }, in pldm_transport_test_init_pollfd()
95 pollfd->events = POLLIN; in pldm_transport_test_init_pollfd()
/openbmc/hiomapd/
H A Dmboxd.c125 context->fds[i].events = POLLIN; in poll_loop()
137 if (context->fds[SIG_FD].revents & POLLIN) { /* Signal */ in poll_loop()
166 if (context->fds[DBUS_FD].revents & POLLIN) { /* DBUS */ in poll_loop()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_sockio.cpp80 sockfd_, POLLIN | POLLPRI, 0 in recv()
/openbmc/linux/tools/testing/vsock/
H A DREADME64 POLLIN wakeups: C
70 C is number of 'poll()' wake ups with POLLIN bit set.
/openbmc/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c206 fds[0].events = POLLIN | POLLERR | POLLHUP; in ne_poll_enclave_fd()
697 fds[0].events = POLLIN; in ne_start_enclave_check_booted()
714 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted()

12345