Lines Matching refs:fds
360 struct zsock_pollfd fds[1]; in test_prepare_dtls_connection() local
398 fds[0].fd = s_sock; in test_prepare_dtls_connection()
399 fds[0].events = ZSOCK_POLLIN; in test_prepare_dtls_connection()
400 ret = zsock_poll(fds, 1, 1000); in test_prepare_dtls_connection()
1549 struct zsock_pollfd fds[1]; in ZTEST() local
1553 fds[0].fd = new_sock; in ZTEST()
1554 fds[0].events = ZSOCK_POLLIN; in ZTEST()
1556 ret = zsock_poll(fds, 1, 0); in ZTEST()
1562 ret = zsock_poll(fds, 1, 100); in ZTEST()
1564 zassert_equal(fds[0].revents, ZSOCK_POLLIN, "No POLLIN event"); in ZTEST()
1584 struct zsock_pollfd fds[1]; in ZTEST() local
1588 fds[0].fd = s_sock; in ZTEST()
1589 fds[0].events = ZSOCK_POLLIN; in ZTEST()
1591 ret = zsock_poll(fds, 1, 0); in ZTEST()
1598 ret = zsock_poll(fds, 1, 100); in ZTEST()
1600 zassert_equal(fds[0].revents, ZSOCK_POLLIN, "No POLLIN event"); in ZTEST()
1618 struct zsock_pollfd fds[1]; in ZTEST() local
1622 fds[0].fd = c_sock; in ZTEST()
1623 fds[0].events = ZSOCK_POLLOUT; in ZTEST()
1625 ret = zsock_poll(fds, 1, 0); in ZTEST()
1627 zassert_equal(fds[0].revents, ZSOCK_POLLOUT, "No POLLOUT event"); in ZTEST()
1644 ret = zsock_poll(fds, 1, 0); in ZTEST()
1652 ret = zsock_poll(fds, 1, 100); in ZTEST()
1654 zassert_equal(fds[0].revents, ZSOCK_POLLOUT, "No POLLOUT event"); in ZTEST()
1663 struct zsock_pollfd fds[1]; in ZTEST() local
1668 fds[0].fd = c_sock; in ZTEST()
1669 fds[0].events = ZSOCK_POLLOUT; in ZTEST()
1672 ret = zsock_poll(fds, 1, 0); in ZTEST()
1674 zassert_equal(fds[0].revents, ZSOCK_POLLOUT, "No POLLOUT event"); in ZTEST()
1684 struct zsock_pollfd fds[1]; in ZTEST() local
1690 fds[0].fd = new_sock; in ZTEST()
1691 fds[0].events = ZSOCK_POLLIN; in ZTEST()
1696 ret = zsock_poll(fds, 1, 100); in ZTEST()
1698 zassert_true(fds[0].revents & ZSOCK_POLLIN, "No POLLIN event"); in ZTEST()
1699 zassert_true(fds[0].revents & ZSOCK_POLLHUP, "No POLLHUP event"); in ZTEST()
1712 struct zsock_pollfd fds[1]; in ZTEST() local
1718 fds[0].fd = s_sock; in ZTEST()
1719 fds[0].events = ZSOCK_POLLIN; in ZTEST()
1724 ret = zsock_poll(fds, 1, 100); in ZTEST()
1726 zassert_equal(fds[0].revents, ZSOCK_POLLHUP, "No POLLHUP event"); in ZTEST()
1745 struct zsock_pollfd fds[1]; in ZTEST() local
1752 fds[0].fd = new_sock; in ZTEST()
1753 fds[0].events = ZSOCK_POLLIN; in ZTEST()
1760 ret = zsock_poll(fds, 1, 100); in ZTEST()
1762 zassert_true(fds[0].revents & ZSOCK_POLLERR, "No POLLERR event"); in ZTEST()
1782 struct zsock_pollfd fds[1]; in ZTEST() local
1789 fds[0].fd = s_sock; in ZTEST()
1790 fds[0].events = ZSOCK_POLLIN; in ZTEST()
1797 ret = zsock_poll(fds, 1, 100); in ZTEST()
1799 zassert_true(fds[0].revents & ZSOCK_POLLERR, "No POLLERR event"); in ZTEST()