Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 53) sorted by relevance

123

/Zephyr-latest/tests/net/socket/poll/src/
Dmain.c74 zassert_equal(pollfds[0].revents, 0, ""); in ZTEST()
77 zassert_equal(pollfds[1].revents, 0, ""); in ZTEST()
100 zassert_equal(pollfds[0].revents, 0, ""); in ZTEST()
103 zassert_equal(pollfds[1].revents, ZSOCK_POLLIN, ""); in ZTEST()
114 zassert_equal(pollfds[1].revents, 0, ""); in ZTEST()
129 zassert_equal(pollout[0].revents, ZSOCK_POLLOUT, ""); in ZTEST()
151 zassert_equal(pollout[0].revents, ZSOCK_POLLOUT, ""); in ZTEST()
167 zassert_equal(pollfds[0].revents, ZSOCK_POLLNVAL, ""); in ZTEST()
168 zassert_equal(pollfds[1].revents, 0, ""); in ZTEST()
211 zassert_equal(pollout[0].revents, ZSOCK_POLLOUT, ""); in ZTEST()
[all …]
/Zephyr-latest/tests/net/lib/coap_client/src/
Dstubs.c21 short revents; member
42 fds[i].revents = in z_impl_zvfs_poll()
44 if (fds[i].revents) { in z_impl_zvfs_poll()
/Zephyr-latest/tests/net/socket/socketpair/src/
Dpoll.c117 zassert_equal(fds[0].revents & ZSOCK_POLLIN, ZSOCK_POLLIN, "POLLIN not set"); in ZTEST_F()
155 zassert_equal(fds[0].revents & ZSOCK_POLLHUP, ZSOCK_POLLHUP, "POLLHUP not set"); in ZTEST_F()
180 zassert_not_equal(fds[0].revents & ZSOCK_POLLOUT, 0, "POLLOUT not set"); in ZTEST_USER_F()
192 zassert_not_equal(fds[0].revents & ZSOCK_POLLIN, 0, "POLLIN not set"); in ZTEST_USER_F()
202 zassert_not_equal(fds[0].revents & ZSOCK_POLLOUT, 0, "POLLOUT not set"); in ZTEST_USER_F()
203 zassert_not_equal(fds[1].revents & ZSOCK_POLLIN, 0, "POLLIN not set"); in ZTEST_USER_F()
263 zassert_not_equal(fds[0].revents & ZSOCK_POLLIN, 0, "POLLIN not set"); in ZTEST_F()
286 zassert_not_equal(fds[0].revents & ZSOCK_POLLOUT, 0, "POLLOUT was not set"); in ZTEST_F()
309 zassert_not_equal(fds[0].revents & ZSOCK_POLLIN, ZSOCK_POLLIN, "POLLIN set"); in ZTEST_USER_F()
322 zassert_not_equal(fds[0].revents & ZSOCK_POLLIN, 0, "POLLIN not set"); in ZTEST_USER_F()
[all …]
/Zephyr-latest/modules/thrift/src/thrift/server/
DTFDServer.cpp59 .revents = 0, in read_virt()
64 .revents = 0, in read_virt()
84 if (pfd.revents & POLLNVAL) { in read_virt()
90 if (pollfds[0].revents & POLLIN) { in read_virt()
102 __ASSERT_NO_MSG(pollfds[1].revents & POLLIN); in read_virt()
/Zephyr-latest/lib/os/zvfs/
Dzvfs_select.c165 short revents = pfds[i].revents; in z_impl_zvfs_select() local
168 if (revents == 0) { in z_impl_zvfs_select()
178 if (revents & ZVFS_POLLNVAL) { in z_impl_zvfs_select()
183 if (revents & ZVFS_POLLIN) { in z_impl_zvfs_select()
190 if (revents & ZVFS_POLLOUT) { in z_impl_zvfs_select()
200 if (revents & (ZVFS_POLLPRI | ZVFS_POLLHUP | ZVFS_POLLERR)) { in z_impl_zvfs_select()
Dzvfs_poll.c124 pfd->revents = 0; in zvfs_poll_internal()
132 pfd->revents = ZVFS_POLLNVAL; in zvfs_poll_internal()
151 if (pfd->revents != 0) { in zvfs_poll_internal()
/Zephyr-latest/include/zephyr/net/
Dsocket_poll.h34 short revents; /**< Returned events */ member
/Zephyr-latest/tests/posix/headers/src/
Dpoll_h.c24 zassert_not_equal(-1, offsetof(struct pollfd, revents)); in ZTEST()
/Zephyr-latest/subsys/modem/backends/
Dmodem_backend_tty.c37 pd.revents = 0; in modem_backend_tty_routine()
44 if (pd.revents & POLLIN) { in modem_backend_tty_routine()
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.c60 short revents; member
129 fds->revents = my_events; in z_impl_zvfs_poll()
/Zephyr-latest/samples/net/sockets/socketpair/src/
Dmain.c168 fds[i].revents = 0; in setup_poll()
187 if ((fds[i].revents & POLLERR) != 0) { in handle_poll_events()
190 } else if ((fds[i].revents & POLLIN) != 0) { in handle_poll_events()
/Zephyr-latest/tests/posix/eventfd/src/
Dblocking.c125 zassert_equal(fds[0].revents, ZSOCK_POLLIN); in ZTEST_F()
161 zassert_equal(fds[0].revents, ZSOCK_POLLOUT); in ZTEST_F()
D_main.c28 *event = pfd.revents; in is_blocked()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_server.c770 sock_fds[sock_nfds].revents = 0; in coap_server_thread()
778 sock_fds[sock_nfds].revents = 0; in coap_server_thread()
793 sock_fds[i].revents & ZSOCK_POLLIN) { in coap_server_thread()
801 if (sock_fds[i].revents & ZSOCK_POLLIN) { in coap_server_thread()
806 if (sock_fds[i].revents & ZSOCK_POLLERR) { in coap_server_thread()
809 if (sock_fds[i].revents & ZSOCK_POLLHUP) { in coap_server_thread()
812 if (sock_fds[i].revents & ZSOCK_POLLNVAL) { in coap_server_thread()
/Zephyr-latest/drivers/modem/
Dmodem_socket.c323 fds[i].revents |= ZSOCK_POLLOUT; in modem_socket_poll()
326 fds[i].revents |= ZSOCK_POLLIN; in modem_socket_poll()
376 pfd->revents |= ZSOCK_POLLIN; in modem_socket_poll_update()
385 pfd->revents |= ZSOCK_POLLOUT; in modem_socket_poll_update()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_engine.c781 sock_fds[i].revents = 0; in socket_reset_pollfd_events()
871 short revents = sock_fds[i].revents; in socket_loop() local
873 if (IS_ENABLED(CONFIG_LWM2M_TICKLESS) && (revents & ZSOCK_POLLIN) && in socket_loop()
885 if (revents & (ZSOCK_POLLERR | ZSOCK_POLLNVAL | ZSOCK_POLLHUP)) { in socket_loop()
886 LOG_ERR("Poll reported a socket error, %02x.", revents); in socket_loop()
893 if (revents & ZSOCK_POLLIN) { in socket_loop()
904 if (revents & ZSOCK_POLLOUT) { in socket_loop()
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_tcp_receiver.c137 if ((pev->event.revents & ZSOCK_POLLERR) || in tcp_recv_data()
138 (pev->event.revents & ZSOCK_POLLNVAL)) { in tcp_recv_data()
149 if (!(pev->event.revents & ZSOCK_POLLIN)) { in tcp_recv_data()
/Zephyr-latest/subsys/shell/backends/
Dshell_websocket.c168 if ((evt->event.revents & ZSOCK_POLLERR) || in ws_server_cb()
169 (evt->event.revents & ZSOCK_POLLNVAL)) { in ws_server_cb()
181 if (!(evt->event.revents & ZSOCK_POLLIN)) { in ws_server_cb()
/Zephyr-latest/subsys/net/lib/ptp/
Dptp.c73 if (!(fd->revents & (ZSOCK_POLLIN | ZSOCK_POLLPRI))) { in ptp_thread()
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_service.c248 if (ret > 0 && ctx.events[0].revents) { in socket_service_thread()
259 if (ctx.events[i].revents > 0) { in socket_service_thread()
Dsocketpair.c837 pfd->revents |= ZSOCK_POLLHUP; in zsock_poll_update_ctx()
855 pfd->revents |= ZSOCK_POLLOUT; in zsock_poll_update_ctx()
869 pfd->revents |= ZSOCK_POLLHUP; in zsock_poll_update_ctx()
877 pfd->revents |= ZSOCK_POLLIN; in zsock_poll_update_ctx()
882 pfd->revents |= ZSOCK_POLLIN; in zsock_poll_update_ctx()
896 pfd->revents |= ZSOCK_POLLIN; in zsock_poll_update_ctx()
Dsockets_tls.c756 if (fds.revents & ZSOCK_POLLNVAL) { in wait()
760 if (fds.revents & ZSOCK_POLLERR) { in wait()
3152 pfd->revents |= ZSOCK_POLLIN; in ztls_poll_update_pollin()
3158 if (!(pfd->revents & ZSOCK_POLLIN)) { in ztls_poll_update_pollin()
3172 if (!is_handshake_complete(ctx) && !(pfd->revents & ZSOCK_POLLIN)) { in ztls_poll_update_pollin()
3178 if (ret == -ENOTCONN || (pfd->revents & ZSOCK_POLLHUP)) { in ztls_poll_update_pollin()
3183 pfd->revents &= ~ZSOCK_POLLIN; in ztls_poll_update_pollin()
3185 pfd->revents |= ZSOCK_POLLHUP; in ztls_poll_update_pollin()
3189 pfd->revents |= ZSOCK_POLLERR; in ztls_poll_update_pollin()
3203 pfd->revents &= ~ZSOCK_POLLIN; in ztls_poll_update_pollin()
[all …]
/Zephyr-latest/subsys/net/lib/mqtt_sn/
Dmqtt_sn_transport_udp.c233 LOG_DBG("revents %d", pollfd.revents & ZSOCK_POLLIN); in tp_udp_poll()
235 return pollfd.revents & ZSOCK_POLLIN; in tp_udp_poll()
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_core.c548 if (ret == 1 && ctx->fds[0].revents) { in http_server_run()
560 if (ctx->fds[i].revents & ZSOCK_POLLHUP) { in http_server_run()
572 if (ctx->fds[i].revents & ZSOCK_POLLERR) { in http_server_run()
590 if (!(ctx->fds[i].revents & ZSOCK_POLLIN)) { in http_server_run()
612 ctx->fds[j].revents = 0; in http_server_run()
/Zephyr-latest/tests/net/lib/mqtt/v3_1_1/mqtt_client/src/
Dmain.c406 zassert_false((fds[i].revents & ZSOCK_POLLERR) || in broker_process()
407 (fds[i].revents & ZSOCK_POLLHUP) || in broker_process()
408 (fds[i].revents & ZSOCK_POLLNVAL), in broker_process()
410 fds[i].revents); in broker_process()
412 if (!(fds[i].revents & ZSOCK_POLLIN)) { in broker_process()

123