Lines Matching refs:skb_copy
159 struct sk_buff *skb_copy = NULL; in hci_send_to_sock() local
190 if (!skb_copy) { in hci_send_to_sock()
192 skb_copy = __pskb_copy_fclone(skb, 1, GFP_ATOMIC, true); in hci_send_to_sock()
193 if (!skb_copy) in hci_send_to_sock()
197 memcpy(skb_push(skb_copy, 1), &bt_cb(skb)->pkt_type, 1); in hci_send_to_sock()
200 nskb = skb_clone(skb_copy, GFP_ATOMIC); in hci_send_to_sock()
210 kfree_skb(skb_copy); in hci_send_to_sock()
254 struct sk_buff *skb_copy = NULL; in hci_send_to_monitor() local
287 skb_copy = __pskb_copy_fclone(skb, HCI_MON_HDR_SIZE, GFP_ATOMIC, true); in hci_send_to_monitor()
288 if (!skb_copy) in hci_send_to_monitor()
292 hdr = (void *) skb_push(skb_copy, HCI_MON_HDR_SIZE); in hci_send_to_monitor()
297 hci_send_to_channel(HCI_CHANNEL_MONITOR, skb_copy, in hci_send_to_monitor()
299 kfree_skb(skb_copy); in hci_send_to_monitor()