Lines Matching refs:rx_pkt
998 NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr)); in ng_l2cap_l2ca_receive()
999 if (con->rx_pkt == NULL) in ng_l2cap_l2ca_receive()
1002 hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *); in ng_l2cap_l2ca_receive()
1077 M_PREPEND(con->rx_pkt, sizeof(uint16_t), M_NOWAIT); in ng_l2cap_l2ca_receive()
1078 if(con->rx_pkt == NULL) in ng_l2cap_l2ca_receive()
1080 idp = mtod(con->rx_pkt, uint16_t *); in ng_l2cap_l2ca_receive()
1083 NG_SEND_DATA_ONLY(error, l2cap->l2c, con->rx_pkt); in ng_l2cap_l2ca_receive()
1084 con->rx_pkt = NULL; in ng_l2cap_l2ca_receive()
1086 NG_FREE_M(con->rx_pkt); /* checks for != NULL */ in ng_l2cap_l2ca_receive()
1106 NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr)); in ng_l2cap_l2ca_clt_receive()
1107 if (con->rx_pkt == NULL) in ng_l2cap_l2ca_clt_receive()
1110 hdr = mtod(con->rx_pkt, struct _clt_pkt *); in ng_l2cap_l2ca_clt_receive()
1113 length = con->rx_pkt->m_pkthdr.len - sizeof(*hdr); in ng_l2cap_l2ca_clt_receive()
1167 NG_SEND_DATA_ONLY(error, l2cap->l2c, con->rx_pkt); in ng_l2cap_l2ca_clt_receive()
1168 con->rx_pkt = NULL; in ng_l2cap_l2ca_clt_receive()
1170 NG_FREE_M(con->rx_pkt); /* checks for != NULL */ in ng_l2cap_l2ca_clt_receive()