Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 6 of 6) sorted by relevance

/Zephyr-Core-2.7.6/lib/posix/
Deventfd.c26 struct zsock_pollfd *pfd, in eventfd_poll_prepare() argument
30 if (pfd->events & ZSOCK_POLLIN) { in eventfd_poll_prepare()
43 if (pfd->events & ZSOCK_POLLOUT) { in eventfd_poll_prepare()
60 struct zsock_pollfd *pfd, in eventfd_poll_update() argument
65 if (pfd->events & ZSOCK_POLLIN) { in eventfd_poll_update()
67 pfd->revents |= ZSOCK_POLLIN; in eventfd_poll_update()
72 if (pfd->events & ZSOCK_POLLOUT) { in eventfd_poll_update()
74 pfd->revents |= ZSOCK_POLLOUT; in eventfd_poll_update()
215 struct zsock_pollfd *pfd; in eventfd_ioctl_op() local
219 pfd = va_arg(args, struct zsock_pollfd *); in eventfd_ioctl_op()
[all …]
/Zephyr-Core-2.7.6/tests/posix/eventfd/src/
Dmain.c19 struct pollfd pfd; in is_blocked() local
22 pfd.fd = fd; in is_blocked()
23 pfd.events = *event; in is_blocked()
25 ret = poll(&pfd, 1, 0); in is_blocked()
28 *event = pfd.revents; in is_blocked()
108 struct pollfd pfd; in test_eventfd_poll_timeout() local
114 pfd.fd = fd; in test_eventfd_poll_timeout()
115 pfd.events = POLLIN; in test_eventfd_poll_timeout()
117 ret = poll(&pfd, 1, 500); in test_eventfd_poll_timeout()
/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dsocketpair.c743 struct zsock_pollfd *const pfd, in zsock_poll_prepare_ctx() argument
752 if (pfd->events & ZSOCK_POLLIN) { in zsock_poll_prepare_ctx()
769 if (pfd->events & ZSOCK_POLLOUT) { in zsock_poll_prepare_ctx()
817 struct zsock_pollfd *const pfd, in zsock_poll_update_ctx() argument
826 if (pfd->events & ZSOCK_POLLOUT) { in zsock_poll_update_ctx()
828 pfd->revents |= ZSOCK_POLLHUP; in zsock_poll_update_ctx()
846 pfd->revents |= ZSOCK_POLLOUT; in zsock_poll_update_ctx()
860 pfd->revents |= ZSOCK_POLLHUP; in zsock_poll_update_ctx()
866 if (pfd->events & ZSOCK_POLLIN) { in zsock_poll_update_ctx()
868 pfd->revents |= ZSOCK_POLLIN; in zsock_poll_update_ctx()
[all …]
Dsockets_tls.c1985 struct zsock_pollfd *pfd, in ztls_poll_prepare_ctx() argument
1993 short events = pfd->events; in ztls_poll_prepare_ctx()
1998 if ((pfd->events & ZSOCK_POLLIN) && (ctx->type == SOCK_DGRAM) && in ztls_poll_prepare_ctx()
2010 pfd->events &= ~ZSOCK_POLLIN; in ztls_poll_prepare_ctx()
2023 pfd, pev, pev_end); in ztls_poll_prepare_ctx()
2028 if (pfd->events & ZSOCK_POLLIN) { in ztls_poll_prepare_ctx()
2034 pfd->events = events; in ztls_poll_prepare_ctx()
2078 struct zsock_pollfd *pfd) in ztls_poll_update_pollin() argument
2085 pfd->revents |= ZSOCK_POLLIN; in ztls_poll_update_pollin()
2090 if (!(pfd->revents & ZSOCK_POLLIN)) { in ztls_poll_update_pollin()
[all …]
Dsockets.c1350 struct zsock_pollfd *pfd, in zsock_poll_prepare_ctx() argument
1354 if (pfd->events & ZSOCK_POLLIN) { in zsock_poll_prepare_ctx()
1366 if (pfd->events & ZSOCK_POLLOUT) { in zsock_poll_prepare_ctx()
1381 struct zsock_pollfd *pfd, in zsock_poll_update_ctx() argument
1387 if (pfd->events & ZSOCK_POLLOUT) { in zsock_poll_update_ctx()
1388 pfd->revents |= ZSOCK_POLLOUT; in zsock_poll_update_ctx()
1391 if (pfd->events & ZSOCK_POLLIN) { in zsock_poll_update_ctx()
1393 pfd->revents |= ZSOCK_POLLIN; in zsock_poll_update_ctx()
1399 pfd->revents |= ZSOCK_POLLHUP; in zsock_poll_update_ctx()
1417 struct zsock_pollfd *pfd; in zsock_poll_internal() local
[all …]
/Zephyr-Core-2.7.6/drivers/serial/
Duart_native_posix.c278 struct pollfd pfd = { .fd = d->out_fd, .events = POLLHUP }; in np_uart_poll_out() local
281 poll(&pfd, 1, 0); in np_uart_poll_out()
282 if (!(pfd.revents & POLLHUP)) { in np_uart_poll_out()