Home
last modified time | relevance | path

Searched refs:copy_skb (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/sun/
Dsunbmac.c851 struct sk_buff *copy_skb = netdev_alloc_skb(bp->dev, len + 2); in bigmac_rx() local
853 if (copy_skb == NULL) { in bigmac_rx()
857 skb_reserve(copy_skb, 2); in bigmac_rx()
858 skb_put(copy_skb, len); in bigmac_rx()
862 skb_copy_to_linear_data(copy_skb, (unsigned char *)skb->data, len); in bigmac_rx()
871 skb = copy_skb; in bigmac_rx()
Dsungem.c826 struct sk_buff *copy_skb = netdev_alloc_skb(dev, len + 2); in gem_rx() local
828 if (copy_skb == NULL) { in gem_rx()
833 skb_reserve(copy_skb, 2); in gem_rx()
834 skb_put(copy_skb, len); in gem_rx()
837 skb_copy_from_linear_data(skb, copy_skb->data, len); in gem_rx()
842 skb = copy_skb; in gem_rx()
Dsunhme.c1929 struct sk_buff *copy_skb = netdev_alloc_skb(dev, len + 2); in happy_meal_rx() local
1931 if (copy_skb == NULL) { in happy_meal_rx()
1936 skb_reserve(copy_skb, 2); in happy_meal_rx()
1937 skb_put(copy_skb, len); in happy_meal_rx()
1939 skb_copy_from_linear_data(skb, copy_skb->data, len); in happy_meal_rx()
1946 skb = copy_skb; in happy_meal_rx()
/linux-6.1.9/drivers/net/ethernet/dec/tulip/
Dde2104x.c404 struct sk_buff *skb, *copy_skb; in de_rx() local
437 copy_skb = netdev_alloc_skb(de->dev, buflen); in de_rx()
438 if (unlikely(!copy_skb)) { in de_rx()
452 dma_map_single(&de->pdev->dev, copy_skb->data, in de_rx()
454 de->rx_skb[rx_tail].skb = copy_skb; in de_rx()
458 skb_reserve(copy_skb, RX_OFFSET); in de_rx()
459 skb_copy_from_linear_data(skb, skb_put(copy_skb, len), in de_rx()
465 skb = copy_skb; in de_rx()
/linux-6.1.9/net/nfc/
Dllcp_core.c733 struct sk_buff *copy_skb = NULL; in nfc_llcp_tx_work() local
742 copy_skb = skb_copy(skb, GFP_ATOMIC); in nfc_llcp_tx_work()
753 kfree_skb(copy_skb); in nfc_llcp_tx_work()
757 if (ptype == LLCP_PDU_I && copy_skb) in nfc_llcp_tx_work()
759 copy_skb); in nfc_llcp_tx_work()
/linux-6.1.9/net/packet/
Daf_packet.c2249 struct sk_buff *copy_skb = NULL; in tpacket_rcv() local
2325 copy_skb = skb_clone(skb, GFP_ATOMIC); in tpacket_rcv()
2327 copy_skb = skb_get(skb); in tpacket_rcv()
2330 if (copy_skb) { in tpacket_rcv()
2331 memset(&PACKET_SKB_CB(copy_skb)->sa.ll, 0, in tpacket_rcv()
2332 sizeof(PACKET_SKB_CB(copy_skb)->sa.ll)); in tpacket_rcv()
2333 skb_set_owner_r(copy_skb, sk); in tpacket_rcv()
2391 if (copy_skb) { in tpacket_rcv()
2393 skb_clear_delivery_time(copy_skb); in tpacket_rcv()
2394 __skb_queue_tail(&sk->sk_receive_queue, copy_skb); in tpacket_rcv()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/
Db44.c832 struct sk_buff *copy_skb; in b44_rx() local
835 copy_skb = napi_alloc_skb(&bp->napi, len); in b44_rx()
836 if (copy_skb == NULL) in b44_rx()
839 skb_put(copy_skb, len); in b44_rx()
842 copy_skb->data, len); in b44_rx()
843 skb = copy_skb; in b44_rx()
/linux-6.1.9/drivers/net/ethernet/ibm/emac/
Dcore.c1789 struct sk_buff *copy_skb; in emac_poll_rx() local
1791 copy_skb = napi_alloc_skb(&dev->mal->napi, len); in emac_poll_rx()
1792 if (unlikely(!copy_skb)) in emac_poll_rx()
1795 memcpy(copy_skb->data - NET_IP_ALIGN, in emac_poll_rx()
1799 skb = copy_skb; in emac_poll_rx()