Lines Matching refs:pfd
2995 struct zsock_pollfd *pfd, in ztls_poll_prepare_ctx() argument
3003 short events = pfd->events; in ztls_poll_prepare_ctx()
3008 if ((pfd->events & ZSOCK_POLLIN) && (ctx->type == SOCK_DGRAM) && in ztls_poll_prepare_ctx()
3020 pfd->events &= ~ZSOCK_POLLIN; in ztls_poll_prepare_ctx()
3033 pfd, pev, pev_end); in ztls_poll_prepare_ctx()
3038 if (pfd->events & ZSOCK_POLLIN) { in ztls_poll_prepare_ctx()
3044 pfd->events = events; in ztls_poll_prepare_ctx()
3145 struct zsock_pollfd *pfd) in ztls_poll_update_pollin() argument
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()
3209 struct zsock_pollfd *pfd, in ztls_poll_update_ctx() argument
3216 short events = pfd->events; in ztls_poll_update_ctx()
3227 if ((pfd->events & ZSOCK_POLLIN) && in ztls_poll_update_ctx()
3235 pfd, pev, *pev + 1); in ztls_poll_update_ctx()
3252 pfd->events &= ~ZSOCK_POLLIN; in ztls_poll_update_ctx()
3256 pfd, pev); in ztls_poll_update_ctx()
3261 if (pfd->events & ZSOCK_POLLIN) { in ztls_poll_update_ctx()
3262 ret = ztls_poll_update_pollin(pfd->fd, ctx, pfd); in ztls_poll_update_ctx()
3263 if (ret == -EAGAIN && pfd->revents == 0) { in ztls_poll_update_ctx()
3272 pfd->events = events; in ztls_poll_update_ctx()
3282 struct zsock_pollfd *pfd) in poll_offload_dtls_client_retry() argument
3298 pfd->revents &= ~ZSOCK_POLLIN; in poll_offload_dtls_client_retry()
3310 pfd->revents |= ZSOCK_POLLERR; in poll_offload_dtls_client_retry()
3313 pfd->revents &= ~ZSOCK_POLLIN; in poll_offload_dtls_client_retry()
3730 struct zsock_pollfd *pfd; in tls_sock_ioctl_vmeth() local
3734 pfd = va_arg(args, struct zsock_pollfd *); in tls_sock_ioctl_vmeth()
3738 return ztls_poll_prepare_ctx(obj, pfd, pev, pev_end); in tls_sock_ioctl_vmeth()
3742 struct zsock_pollfd *pfd; in tls_sock_ioctl_vmeth() local
3745 pfd = va_arg(args, struct zsock_pollfd *); in tls_sock_ioctl_vmeth()
3748 return ztls_poll_update_ctx(obj, pfd, pev); in tls_sock_ioctl_vmeth()