Lines Matching refs:pkt_first
134 if (s->pkt_first) { in local_socket_enqueue()
166 if (s->pkt_first) { in local_socket_enqueue()
169 s->pkt_first = p; in local_socket_enqueue()
198 for (p = s->pkt_first; p; p = n) { in local_socket_destroy()
232 if (s->closing || s->has_write_error || s->pkt_first == NULL) { in local_socket_close()
259 while ((p = s->pkt_first) != nullptr) { in local_socket_event_func()
282 s->pkt_first = p->next; in local_socket_event_func()
283 if (s->pkt_first == 0) { in local_socket_event_func()
660 if (s->pkt_first == 0) { in smart_socket_enqueue()
661 s->pkt_first = p; in smart_socket_enqueue()
664 if ((s->pkt_first->len + p->len) > s->get_max_payload()) { in smart_socket_enqueue()
670 memcpy(s->pkt_first->data + s->pkt_first->len, p->data, p->len); in smart_socket_enqueue()
671 s->pkt_first->len += p->len; in smart_socket_enqueue()
674 p = s->pkt_first; in smart_socket_enqueue()
828 if (s->pkt_first) { in smart_socket_close()
829 put_apacket(s->pkt_first); in smart_socket_close()