/openbmc/pldm/common/ |
H A D | transport.cpp | 11 struct pldm_transport* transport_impl_init(TransportImpl& impl, pollfd& pollfd); 35 pldm_transport_impl_mctp_demux_init(TransportImpl& impl, pollfd& pollfd) in pldm_transport_impl_mctp_demux_init() argument 60 pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in pldm_transport_impl_mctp_demux_init() 67 TransportImpl& impl, pollfd& pollfd) in pldm_transport_impl_af_mctp_init() argument 97 pldm_transport_af_mctp_init_pollfd(pldmTransport, &pollfd); in pldm_transport_impl_af_mctp_init() 103 struct pldm_transport* transport_impl_init(TransportImpl& impl, pollfd& pollfd) in transport_impl_init() argument 106 return pldm_transport_impl_mctp_demux_init(impl, pollfd); in transport_impl_init() 108 return pldm_transport_impl_af_mctp_init(impl, pollfd); in transport_impl_init()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 41 struct pollfd pollfd[2]; in uffd_handler_thread_fn() local 45 pollfd[0].fd = uffd; in uffd_handler_thread_fn() 46 pollfd[0].events = POLLIN; in uffd_handler_thread_fn() 47 pollfd[1].fd = pipefd; in uffd_handler_thread_fn() 48 pollfd[1].events = POLLIN; in uffd_handler_thread_fn() 50 r = poll(pollfd, 2, -1); in uffd_handler_thread_fn() 64 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn() 69 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn() 70 r = read(pollfd[1].fd, &tmp_chr, 1); in uffd_handler_thread_fn() 76 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
|
/openbmc/linux/tools/leds/ |
H A D | led_hw_brightness_mon.c | 30 struct pollfd pollfd; in main() local 55 pollfd.fd = fd; in main() 56 pollfd.events = POLLPRI; in main() 59 ret = poll(&pollfd, 1, -1); in main() 73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | sigio.c | 38 struct pollfd *poll; 54 struct pollfd *p; in write_sigio_thread() 105 struct pollfd *new; in need_poll() 110 new = uml_kmalloc(n * sizeof(struct pollfd), UM_GFP_ATOMIC); in need_poll() 117 memcpy(new, polls->poll, polls->used * sizeof(struct pollfd)); in need_poll() 169 struct pollfd *p; in __add_sigio_fd() 192 current_poll.used * sizeof(struct pollfd)); in __add_sigio_fd() 214 struct pollfd *p; in __ignore_sigio_fd() 259 static struct pollfd *setup_initial_poll(int fd) in setup_initial_poll() 261 struct pollfd *p; in setup_initial_poll() [all …]
|
/openbmc/libpldm/src/transport/ |
H A D | transport.c | 21 struct pollfd { struct 27 static inline int poll(struct pollfd *fds LIBPLDM_CC_UNUSED, in poll() argument 38 struct pollfd pollfd; in pldm_transport_poll() local 49 rc = transport->init_pollfd(transport, &pollfd); in pldm_transport_poll() 54 rc = poll(&pollfd, 1, timeout); in pldm_transport_poll()
|
H A D | transport.h | 7 struct pollfd; 28 struct pollfd *pollfd);
|
H A D | test.h | 52 struct pollfd; 54 struct pollfd *pollfd);
|
H A D | test.c | 35 struct pollfd *pollfd) in pldm_transport_test_init_pollfd() argument 74 struct pollfd pfds[] = { in pldm_transport_test_init_pollfd() 93 pollfd->fd = test->timerfd; in pldm_transport_test_init_pollfd() 94 pollfd->events = POLLIN; in pldm_transport_test_init_pollfd()
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | uffd-common.c | 497 struct pollfd pollfd[2]; in uffd_poll_thread() local 506 pollfd[0].fd = uffd; in uffd_poll_thread() 507 pollfd[0].events = POLLIN; in uffd_poll_thread() 508 pollfd[1].fd = pipefd[cpu*2]; in uffd_poll_thread() 509 pollfd[1].events = POLLIN; in uffd_poll_thread() 514 ret = poll(pollfd, 2, -1); in uffd_poll_thread() 520 if (pollfd[1].revents) { in uffd_poll_thread() 521 if (!(pollfd[1].revents & POLLIN)) in uffd_poll_thread() 522 err("pollfd[1].revents %d", pollfd[1].revents); in uffd_poll_thread() 523 if (read(pollfd[1].fd, &tmp_chr, 1) != 1) in uffd_poll_thread() [all …]
|
/openbmc/libpldm/include/libpldm/transport/ |
H A D | mctp-demux.h | 25 struct pollfd; 28 struct pollfd *pollfd);
|
H A D | af-mctp.h | 26 struct pollfd; 29 struct pollfd *pollfd);
|
/openbmc/libmctp/ |
H A D | libmctp-serial.h | 20 struct pollfd; 22 struct pollfd *pollfd);
|
H A D | libmctp-astlpc.h | 50 struct pollfd; 52 struct pollfd *pollfd);
|
/openbmc/obmc-console/ |
H A D | console-server.c | 66 static bool console_server_pollfd_reclaimable(struct pollfd *p) in console_server_pollfd_reclaimable() 75 struct pollfd *p = &server->pollfds[i]; in console_server_find_released_pollfd() 89 struct pollfd *pollfd; in console_server_request_pollfd() local 96 struct pollfd *newarr = reallocarray(server->pollfds, newcap, in console_server_request_pollfd() 97 sizeof(struct pollfd)); in console_server_request_pollfd() 108 pollfd = &server->pollfds[index]; in console_server_request_pollfd() 109 pollfd->fd = fd; in console_server_request_pollfd() 110 pollfd->events = events; in console_server_request_pollfd() 111 pollfd->revents = 0; in console_server_request_pollfd() 123 struct pollfd *pfd = &server->pollfds[pollfd_index]; in console_server_release_pollfd() [all …]
|
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/ |
H A D | pldm_utils.cpp | 144 struct pollfd pollfd; in openMctpDemuxTransport() local 145 rc = pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in openMctpDemuxTransport() 153 return pollfd.fd; in openMctpDemuxTransport()
|
/openbmc/linux/tools/testing/selftests/powerpc/tm/ |
H A D | tm-signal-pagefault.c | 88 struct pollfd pollfd; in fault_handler_thread() local 94 pollfd.fd = uffd; in fault_handler_thread() 95 pollfd.events = POLLIN; in fault_handler_thread() 96 if (poll(&pollfd, 1, -1) == -1) { in fault_handler_thread()
|
/openbmc/libmctp/utils/ |
H A D | mctp-demux-daemon.c | 53 int (*init_pollfd)(struct binding *binding, struct pollfd *pollfd); 73 struct pollfd *pollfds; 201 struct pollfd *pollfd) in binding_serial_init_pollfd() argument 203 return mctp_serial_init_pollfd(binding->data, pollfd); in binding_serial_init_pollfd() 247 struct pollfd *pollfd) in binding_astlpc_init_pollfd() argument 249 return mctp_astlpc_init_pollfd(binding->data, pollfd); in binding_astlpc_init_pollfd() 465 ctx->pollfds = malloc(FD_NR * sizeof(struct pollfd)); in run_daemon() 496 sizeof(struct pollfd)); in run_daemon()
|
/openbmc/openpower-hw-diags/util/ |
H A D | pldm.cpp | 195 struct pollfd pollfd; in openMctpDemuxTransport() local 196 rc = pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in openMctpDemuxTransport() 204 return pollfd.fd; in openMctpDemuxTransport() 228 struct pollfd pollfd; in openAfMctpTransport() local 229 rc = pldm_transport_af_mctp_init_pollfd(pldmTransport, &pollfd); in openAfMctpTransport() 237 return pollfd.fd; in openAfMctpTransport()
|
/openbmc/linux/tools/lib/api/fd/ |
H A D | array.c | 26 size_t size = sizeof(struct pollfd) * nr_alloc; in fdarray__grow() 27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow() 38 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow() 93 struct pollfd *entry; in fdarray__dup_entry_from()
|
H A D | array.h | 7 struct pollfd; 23 struct pollfd *entries;
|
/openbmc/linux/fs/ |
H A D | select.c | 840 struct pollfd entries[]; 843 #define POLLFD_PER_PAGE ((PAGE_SIZE-sizeof(struct poll_list)) / sizeof(struct pollfd)) 846 * Fish for pollable events on the pollfd->fd file descriptor. We're only 847 * interested in events matching the pollfd->events mask, and the result 848 * matching that mask is both recorded in pollfd->revents and returned. The 852 static inline __poll_t do_pollfd(struct pollfd *pollfd, poll_table *pwait, 856 int fd = pollfd->fd; in do_pollfd() 868 filter = demangle_poll(pollfd->events) | EPOLLERR | EPOLLHUP; in do_pollfd() 878 pollfd in do_pollfd() 855 do_pollfd(struct pollfd * pollfd,poll_table * pwait,bool * can_busy_poll,__poll_t busy_flag) do_pollfd() argument [all...] |
/openbmc/linux/tools/lib/perf/ |
H A D | evlist.c | 32 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init() 159 fdarray__exit(&evlist->pollfd); in perf_evlist__exit() 339 if (fdarray__available_entries(&evlist->pollfd) < nfds && in perf_evlist__alloc_pollfd() 340 fdarray__grow(&evlist->pollfd, nfds) < 0) in perf_evlist__alloc_pollfd() 349 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags); in perf_evlist__add_pollfd() 352 evlist->pollfd.priv[pos].ptr = ptr; in perf_evlist__add_pollfd() 370 return fdarray__filter(&evlist->pollfd, revents_and_mask, in perf_evlist__filter_pollfd() 376 return fdarray__poll(&evlist->pollfd, timeout); in perf_evlist__poll() 659 if (evlist->pollfd.entries == NULL && perf_evlist__alloc_pollfd(evlist) < 0) in perf_evlist__mmap_ops()
|
/openbmc/linux/include/linux/ |
H A D | restart_block.h | 14 struct pollfd; 50 struct pollfd __user *ufds;
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | pldm_interface.cpp | 121 struct pollfd pollfd; in openMctpDemuxTransport() local 122 rc = pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in openMctpDemuxTransport() 130 return pollfd.fd; in openMctpDemuxTransport()
|
/openbmc/linux/tools/perf/ |
H A D | builtin-ftrace.c | 568 struct pollfd pollfd = { in __cmd_ftrace() local 621 pollfd.fd = trace_fd; in __cmd_ftrace() 644 if (poll(&pollfd, 1, -1) < 0) in __cmd_ftrace() 647 if (pollfd.revents & POLLIN) { in __cmd_ftrace() 883 struct pollfd pollfd = { in __cmd_latency() local 905 pollfd.fd = trace_fd; in __cmd_latency() 914 if (poll(&pollfd, 1, -1) < 0) in __cmd_latency() 917 if (pollfd.revents & POLLIN) { in __cmd_latency()
|