Lines Matching refs:skb_copy
156 struct sk_buff *skb_copy = NULL; in hci_send_to_sock() local
192 if (!skb_copy) { in hci_send_to_sock()
194 skb_copy = __pskb_copy_fclone(skb, 1, GFP_ATOMIC, true); in hci_send_to_sock()
195 if (!skb_copy) in hci_send_to_sock()
199 memcpy(skb_push(skb_copy, 1), &bt_cb(skb)->pkt_type, 1); in hci_send_to_sock()
202 nskb = skb_clone(skb_copy, GFP_ATOMIC); in hci_send_to_sock()
212 kfree_skb(skb_copy); in hci_send_to_sock()
256 struct sk_buff *skb_copy = NULL; in hci_send_to_monitor() local
292 skb_copy = __pskb_copy_fclone(skb, HCI_MON_HDR_SIZE, GFP_ATOMIC, true); in hci_send_to_monitor()
293 if (!skb_copy) in hci_send_to_monitor()
297 hdr = (void *) skb_push(skb_copy, HCI_MON_HDR_SIZE); in hci_send_to_monitor()
302 hci_send_to_channel(HCI_CHANNEL_MONITOR, skb_copy, in hci_send_to_monitor()
304 kfree_skb(skb_copy); in hci_send_to_monitor()