Lines Matching defs:psock
1258 struct spdk_posix_sock *psock = __posix_sock(sock);
1272 rc = recvmsg(psock->fd, &msgh, MSG_ERRQUEUE);
1348 struct spdk_posix_sock *psock = __posix_sock(sock);
1368 if (psock->zcopy) {
1389 if (psock->ssl) {
1390 rc = SSL_writev(psock->ssl, iovs, iovcnt);
1392 rc = sendmsg(psock->fd, &msg, flags);
1395 if (rc == 0 || errno == EAGAIN || errno == EWOULDBLOCK || (errno == ENOBUFS && psock->zcopy)) {
1404 /* Handling overflow case, because we use psock->sendmsg_idx - 1 for the
1406 if (spdk_unlikely(psock->sendmsg_idx == UINT32_MAX)) {
1407 psock->sendmsg_idx = 1;
1409 psock->sendmsg_idx++;
1456 req->internal.offset = psock->sendmsg_idx - 1;
1473 struct spdk_posix_sock *psock = __posix_sock(sock);
1475 if (psock->zcopy && !TAILQ_EMPTY(&sock->pending_reqs)) {
2013 struct spdk_posix_sock *psock, *ptmp;
2055 TAILQ_FOREACH(psock, &group->socks_with_data, link) {
2056 if (psock->zcopy && psock->placement_id >= 0 &&
2057 psock->placement_id != last_placement_id) {
2058 struct pollfd pfd = {psock->fd, POLLIN | POLLERR, 0};
2061 last_placement_id = psock->placement_id;
2088 psock = __posix_sock(sock);
2095 pfd.fd = psock->fd;
2104 psock = __posix_sock(sock);
2123 psock = __posix_sock(sock);
2127 if (!psock->socket_has_data && !psock->pipe_has_data) {
2128 TAILQ_INSERT_TAIL(&group->socks_with_data, psock, link);
2130 psock->socket_has_data = true;
2135 TAILQ_FOREACH_SAFE(psock, &group->socks_with_data, link, ptmp) {
2142 if (spdk_unlikely(psock->base.cb_fn == NULL)) {
2143 psock->socket_has_data = false;
2144 psock->pipe_has_data = false;
2145 TAILQ_REMOVE(&group->socks_with_data, psock, link);
2149 socks[num_events++] = &psock->base;
2156 * psock currently points at D. We want to rearrange the list to the following:
2162 if (psock != NULL) {
2166 pd = psock;