Lines Matching refs:rx_skb
80 struct sk_buff *rx_skb; member
219 if (info->rx_skb == NULL) { in dtl1_receive()
220 info->rx_skb = bt_skb_alloc(HCI_MAX_FRAME_SIZE, GFP_ATOMIC); in dtl1_receive()
221 if (!info->rx_skb) { in dtl1_receive()
229 *skb_put(info->rx_skb, 1) = inb(iobase + UART_RX); in dtl1_receive()
230 nsh = (struct nsh *)info->rx_skb->data; in dtl1_receive()
242 bt_cb(info->rx_skb)->pkt_type = nsh->type; in dtl1_receive()
246 info->rx_skb->tail--; in dtl1_receive()
247 info->rx_skb->len--; in dtl1_receive()
251 skb_pull(info->rx_skb, NSHL); in dtl1_receive()
253 switch (bt_cb(info->rx_skb)->pkt_type) { in dtl1_receive()
256 dtl1_control(info, info->rx_skb); in dtl1_receive()
262 bt_cb(info->rx_skb)->pkt_type &= 0x0f; in dtl1_receive()
263 hci_recv_frame(info->hdev, info->rx_skb); in dtl1_receive()
267 BT_ERR("Unknown HCI packet with type 0x%02x received", bt_cb(info->rx_skb)->pkt_type); in dtl1_receive()
268 kfree_skb(info->rx_skb); in dtl1_receive()
274 info->rx_skb = NULL; in dtl1_receive()
446 info->rx_skb = NULL; in dtl1_open()