Lines Matching refs:skb_copy
206 struct sk_buff *skb_copy = NULL; in hci_send_to_sock() local
244 if (!skb_copy) { in hci_send_to_sock()
246 skb_copy = __pskb_copy_fclone(skb, 1, GFP_ATOMIC, true); in hci_send_to_sock()
247 if (!skb_copy) in hci_send_to_sock()
251 memcpy(skb_push(skb_copy, 1), &hci_skb_pkt_type(skb), 1); in hci_send_to_sock()
254 nskb = skb_clone(skb_copy, GFP_ATOMIC); in hci_send_to_sock()
264 kfree_skb(skb_copy); in hci_send_to_sock()
313 struct sk_buff *skb_copy = NULL; in hci_send_to_monitor() local
355 skb_copy = __pskb_copy_fclone(skb, HCI_MON_HDR_SIZE, GFP_ATOMIC, true); in hci_send_to_monitor()
356 if (!skb_copy) in hci_send_to_monitor()
360 hdr = skb_push(skb_copy, HCI_MON_HDR_SIZE); in hci_send_to_monitor()
365 hci_send_to_channel(HCI_CHANNEL_MONITOR, skb_copy, in hci_send_to_monitor()
367 kfree_skb(skb_copy); in hci_send_to_monitor()