Lines Matching refs:recv_pkt
122 struct net_pkt *recv_pkt; member
739 pkt = sock->recv_pkt; in sockreadrecv_cb_work()
740 sock->recv_pkt = NULL; in sockreadrecv_cb_work()
807 sock->recv_pkt = net_pkt_rx_alloc_with_buffer( in on_cmd_sockread()
811 if (!sock->recv_pkt) { in on_cmd_sockread()
817 net_pkt_set_context(sock->recv_pkt, sock->context); in on_cmd_sockread()
820 hdr_len = pkt_setup_ip_data(sock->recv_pkt, sock); in on_cmd_sockread()
835 if (net_pkt_write_u8(sock->recv_pkt, c)) { in on_cmd_sockread()
837 net_pkt_unref(sock->recv_pkt); in on_cmd_sockread()
838 sock->recv_pkt = NULL; in on_cmd_sockread()
854 net_pkt_cursor_init(sock->recv_pkt); in on_cmd_sockread()
855 net_pkt_set_overwrite(sock->recv_pkt, true); in on_cmd_sockread()
858 net_pkt_skip(sock->recv_pkt, hdr_len); in on_cmd_sockread()