Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 – 25 of 59) sorted by relevance

123

/openbmc/pldm/common/
H A Dtransport.cpp11 struct pldm_transport* transport_impl_init(TransportImpl& impl, pollfd& pollfd,
36 pldm_transport_impl_mctp_demux_init(TransportImpl& impl, pollfd& pollfd) in pldm_transport_impl_mctp_demux_init() argument
61 pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in pldm_transport_impl_mctp_demux_init()
68 TransportImpl& impl, pollfd& pollfd, bool listening) in pldm_transport_impl_af_mctp_init() argument
98 pldm_transport_af_mctp_init_pollfd(pldmTransport, &pollfd); in pldm_transport_impl_af_mctp_init()
104 struct pldm_transport* transport_impl_init(TransportImpl& impl, pollfd& pollfd, in transport_impl_init() argument
108 return pldm_transport_impl_mctp_demux_init(impl, pollfd); in transport_impl_init()
110 return pldm_transport_impl_af_mctp_init(impl, pollfd, listening); in transport_impl_init()
H A Dtransport.hpp95 pollfd pfd;
/openbmc/libpldm/src/transport/
H A Dtransport.h7 struct pollfd;
28 struct pollfd *pollfd);
H A Dtest.h52 struct pollfd;
54 struct pollfd *pollfd);
H A Dtransport.c22 struct pollfd { struct
28 static inline int poll(struct pollfd *fds LIBPLDM_CC_UNUSED, in poll() argument
39 struct pollfd pollfd; in pldm_transport_poll() local
50 rc = transport->init_pollfd(transport, &pollfd); in pldm_transport_poll()
55 rc = poll(&pollfd, 1, timeout); in pldm_transport_poll()
H A Dtest.c35 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()
H A Daf-mctp.c56 struct pollfd *pollfd) in pldm_transport_af_mctp_init_pollfd() argument
59 pollfd->fd = ctx->socket; in pldm_transport_af_mctp_init_pollfd()
60 pollfd->events = POLLIN; in pldm_transport_af_mctp_init_pollfd()
H A Dmctp-demux.c74 struct pollfd *pollfd) in pldm_transport_mctp_demux_init_pollfd() argument
77 pollfd->fd = ctx->socket; in pldm_transport_mctp_demux_init_pollfd()
78 pollfd->events = POLLIN; in pldm_transport_mctp_demux_init_pollfd()
/openbmc/libpldm/include/libpldm/transport/
H A Dmctp-demux.h25 struct pollfd;
28 struct pollfd *pollfd);
H A Daf-mctp.h26 struct pollfd;
29 struct pollfd *pollfd);
/openbmc/libmctp/
H A Dlibmctp-serial.h20 struct pollfd;
22 struct pollfd *pollfd);
H A Dlibmctp-astlpc.h50 struct pollfd;
52 struct pollfd *pollfd);
H A Dserial.c351 struct pollfd *pollfd) in mctp_serial_init_pollfd() argument
353 pollfd->fd = serial->fd; in mctp_serial_init_pollfd()
354 pollfd->events = POLLIN; in mctp_serial_init_pollfd()
/openbmc/phosphor-debug-collector/host-transport-extensions/pldm/common/
H A Dpldm_utils.cpp144 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/obmc-console/
H A Dconsole-server.c66 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/libmctp/utils/
H A Dmctp-demux-daemon.c53 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()
466 ctx->pollfds = malloc(FD_NR * sizeof(struct pollfd)); in run_daemon()
497 sizeof(struct pollfd)); in run_daemon()
/openbmc/openpower-hw-diags/util/
H A Dpldm.cpp195 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/phosphor-logging/extensions/openpower-pels/
H A Dpldm_interface.cpp109 struct pollfd pollfd; in openMctpDemuxTransport() local
110 rc = pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd); in openMctpDemuxTransport()
118 return pollfd.fd; in openMctpDemuxTransport()
/openbmc/qemu/qga/
H A Dchannel-win32.c28 GPollFD pollfd; member
160 success = c->cb(watch->pollfd.revents, c->user_data); in ga_channel_dispatch()
195 watch->pollfd.fd = (gintptr) c->rstate.ov.hEvent; in ga_channel_create_watch()
196 g_source_add_poll(source, &watch->pollfd); in ga_channel_create_watch()
/openbmc/phosphor-ipmi-flash/internal/
H A Dsys.hpp45 virtual int poll(struct pollfd* fds, nfds_t nfds, int timeout) const = 0;
80 int poll(struct pollfd* fds, nfds_t nfds, int timeout) const override;
/openbmc/openbmc-tools/pwmtachtool/src/
H A DEINTR_wrappers.h63 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout);
64 int sigwrap_ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmo_p, const sigset_t *s…
/openbmc/openbmc-tools/adcapp/src/
H A DEINTR_wrappers.h63 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout);
64 int sigwrap_ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *tmo_p, const sigset_t *s…
/openbmc/openpower-occ-control/
H A Dpldm.cpp600 struct pollfd pollfd; in openMctpDemuxTransport() local
601 if (pldm_transport_mctp_demux_init_pollfd(pldmTransport, &pollfd)) in openMctpDemuxTransport()
609 pldmFd = pollfd.fd; in openMctpDemuxTransport()
639 struct pollfd pollfd; in openAfMctpTransport() local
640 if (pldm_transport_af_mctp_init_pollfd(pldmTransport, &pollfd)) in openAfMctpTransport()
648 pldmFd = pollfd.fd; in openAfMctpTransport()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_sockio.cpp84 struct pollfd sock_pollfd{sockfd_, POLLIN | POLLPRI, 0}; in recv()
/openbmc/qemu/audio/
H A Dsndioaudio.c37 struct pollfd *pfds;
65 struct pollfd *pfd; in sndio_poll_clear()
136 struct pollfd *pfd; in sndio_poll_wait()
431 self->pfds = g_malloc_n(nfds, sizeof(struct pollfd)); in sndio_init()

123