Lines Matching refs:lastdata
309 union lwip_sock_lastdata *lastdata);
310 …id free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata);
390 union lwip_sock_lastdata lastdata; in done_socket() local
401 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata); in done_socket()
407 free_socket_free_elements(is_tcp, conn, &lastdata); in done_socket()
532 sockets[i].lastdata.pbuf = NULL; in alloc_socket()
558 union lwip_sock_lastdata *lastdata) in free_socket_locked() argument
571 *lastdata = sock->lastdata; in free_socket_locked()
572 sock->lastdata.pbuf = NULL; in free_socket_locked()
581 free_socket_free_elements(int is_tcp, struct netconn *conn, union lwip_sock_lastdata *lastdata) in free_socket_free_elements() argument
583 if (lastdata->pbuf != NULL) { in free_socket_free_elements()
585 pbuf_free(lastdata->pbuf); in free_socket_free_elements()
587 netbuf_delete(lastdata->netbuf); in free_socket_free_elements()
607 union lwip_sock_lastdata lastdata; in free_socket() local
613 freed = free_socket_locked(sock, is_tcp, &conn, &lastdata); in free_socket()
618 free_socket_free_elements(is_tcp, conn, &lastdata); in free_socket()
807 LWIP_ASSERT("sock->lastdata == NULL", sock->lastdata.pbuf == NULL); in lwip_close_internal()
968 …BUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: top while sock->lastdata=%p\n", (void *)sock->lastdata.pbuf)); in lwip_recv_tcp()
970 if (sock->lastdata.pbuf) { in lwip_recv_tcp()
971 p = sock->lastdata.pbuf; in lwip_recv_tcp()
996 sock->lastdata.pbuf = p; in lwip_recv_tcp()
1029 sock->lastdata.pbuf = pbuf_free_header(p, copylen); in lwip_recv_tcp()
1030 …LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recv_tcp: lastdata now pbuf=%p\n", (void *)sock->lastdata.pbuf)); in lwip_recv_tcp()
1032 sock->lastdata.pbuf = NULL; in lwip_recv_tcp()
1136 …DEBUG, ("lwip_recvfrom_udp_raw[UDP/RAW]: top sock->lastdata=%p\n", (void *)sock->lastdata.netbuf)); in lwip_recvfrom_udp_raw()
1138 buf = sock->lastdata.netbuf; in lwip_recvfrom_udp_raw()
1150 sock->lastdata.netbuf = buf; in lwip_recvfrom_udp_raw()
1220 sock->lastdata.netbuf = NULL; in lwip_recvfrom_udp_raw()
1930 void *lastdata = sock->lastdata.pbuf; in lwip_selscan() local
1938 if (readset_in && FD_ISSET(i, readset_in) && ((lastdata != NULL) || (rcvevent > 0))) { in lwip_selscan()
2292 void* lastdata = sock->lastdata.pbuf; in lwip_pollscan() local
2319 if ((fds[fdi].events & POLLIN) != 0 && ((lastdata != NULL) || (rcvevent > 0))) { in lwip_pollscan()
3851 if (sock->lastdata.netbuf) { in lwip_ioctl()
3852 nb = sock->lastdata.netbuf; in lwip_ioctl()
3860 sock->lastdata.netbuf = rxbuf; in lwip_ioctl()
3877 if (sock->lastdata.netbuf) { in lwip_ioctl()
3879 recv_avail += sock->lastdata.pbuf->tot_len; in lwip_ioctl()
3881 recv_avail += sock->lastdata.netbuf->p->tot_len; in lwip_ioctl()