| /Linux-v5.4/drivers/net/ethernet/amd/ |
| D | pcnet32.c | 270 struct sk_buff **rx_skbuff; member 571 new_skb_list[new] = lp->rx_skbuff[new]; in pcnet32_realloc_rx_ring() 575 struct sk_buff *rx_skbuff; in pcnet32_realloc_rx_ring() local 577 rx_skbuff = new_skb_list[new]; in pcnet32_realloc_rx_ring() 578 if (!rx_skbuff) { in pcnet32_realloc_rx_ring() 584 skb_reserve(rx_skbuff, NET_IP_ALIGN); in pcnet32_realloc_rx_ring() 587 pci_map_single(lp->pci_dev, rx_skbuff->data, in pcnet32_realloc_rx_ring() 602 if (lp->rx_skbuff[new]) { in pcnet32_realloc_rx_ring() 609 dev_kfree_skb(lp->rx_skbuff[new]); in pcnet32_realloc_rx_ring() 613 kfree(lp->rx_skbuff); in pcnet32_realloc_rx_ring() [all …]
|
| D | amd8111e.c | 224 struct sk_buff *rx_skbuff; in amd8111e_free_skbs() local 238 rx_skbuff = lp->rx_skbuff[i]; in amd8111e_free_skbs() 239 if(rx_skbuff != NULL){ in amd8111e_free_skbs() 242 dev_kfree_skb(lp->rx_skbuff[i]); in amd8111e_free_skbs() 243 lp->rx_skbuff[i] = NULL; in amd8111e_free_skbs() 311 lp->rx_skbuff[i] = netdev_alloc_skb(dev, lp->rx_buff_len); in amd8111e_init_ring() 312 if (!lp->rx_skbuff[i]) { in amd8111e_init_ring() 315 dev_kfree_skb(lp->rx_skbuff[i]); in amd8111e_init_ring() 318 skb_reserve(lp->rx_skbuff[i],2); in amd8111e_init_ring() 323 lp->rx_skbuff[i]->data,lp->rx_buff_len-2, PCI_DMA_FROMDEVICE); in amd8111e_init_ring() [all …]
|
| D | lance.c | 244 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 844 struct sk_buff *skb = lp->rx_skbuff[i]; in lance_purge_ring() 845 lp->rx_skbuff[i] = NULL; in lance_purge_ring() 874 lp->rx_skbuff[i] = skb; in lance_init_ring()
|
| /Linux-v5.4/drivers/net/ethernet/dec/tulip/ |
| D | winbond-840.c | 301 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 804 np->rx_skbuff[i] = NULL; in init_rxtx_rings() 812 np->rx_skbuff[i] = skb; in init_rxtx_rings() 845 if (np->rx_skbuff[i]) { in free_rxtx_rings() 848 np->rx_skbuff[i]->len, in free_rxtx_rings() 850 dev_kfree_skb(np->rx_skbuff[i]); in free_rxtx_rings() 852 np->rx_skbuff[i] = NULL; in free_rxtx_rings() 1231 np->rx_skbuff[entry]->len, in netdev_rx() 1233 skb_copy_to_linear_data(skb, np->rx_skbuff[entry]->data, pkt_len); in netdev_rx() 1236 np->rx_skbuff[entry]->len, in netdev_rx() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/freescale/fs_enet/ |
| D | fs_enet-main.c | 229 skbn = fep->rx_skbuff[curidx]; in fs_enet_napi() 231 skb = fep->rx_skbuff[curidx]; in fs_enet_napi() 285 fep->rx_skbuff[curidx] = skbn; in fs_enet_napi() 383 fep->rx_skbuff[i] = skb; in fs_init_bds() 396 fep->rx_skbuff[i] = NULL; in fs_init_bds() 437 if ((skb = fep->rx_skbuff[i]) == NULL) in fs_cleanup_bds() 445 fep->rx_skbuff[i] = NULL; in fs_cleanup_bds() 1008 fep->rx_skbuff = (struct sk_buff **)&fep[1]; in fs_enet_probe() 1009 fep->tx_skbuff = fep->rx_skbuff + fpi->rx_ring; in fs_enet_probe() 1010 fep->mapped_as_page = (char *)(fep->rx_skbuff + fpi->rx_ring + in fs_enet_probe()
|
| D | fs_enet.h | 133 struct sk_buff **rx_skbuff; member
|
| /Linux-v5.4/drivers/net/ethernet/packetengines/ |
| D | hamachi.c | 486 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 1115 struct sk_buff *skb = hmp->rx_skbuff[i]; in hamachi_tx_timeout() 1122 hmp->rx_skbuff[i] = NULL; in hamachi_tx_timeout() 1130 hmp->rx_skbuff[i] = skb; in hamachi_tx_timeout() 1177 hmp->rx_skbuff[i] = NULL; in hamachi_init_ring() 1182 hmp->rx_skbuff[i] = skb; in hamachi_init_ring() 1420 buf_addr = (u8 *) hmp->rx_skbuff[entry]->data; in hamachi_rx() 1493 hmp->rx_skbuff[entry]->data, pkt_len); in hamachi_rx() 1507 skb_put(skb = hmp->rx_skbuff[entry], pkt_len); in hamachi_rx() 1508 hmp->rx_skbuff[entry] = NULL; in hamachi_rx() [all …]
|
| D | yellowfin.c | 311 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 739 yp->rx_skbuff[i] = skb; in yellowfin_init_ring() 748 dev_kfree_skb(yp->rx_skbuff[j]); in yellowfin_init_ring() 1050 struct sk_buff *rx_skb = yp->rx_skbuff[entry]; in yellowfin_rx() 1128 yp->rx_skbuff[entry] = NULL; in yellowfin_rx() 1152 if (yp->rx_skbuff[entry] == NULL) { in yellowfin_rx() 1156 yp->rx_skbuff[entry] = skb; in yellowfin_rx() 1255 if (yp->rx_skbuff[i]) { in yellowfin_close() 1256 dev_kfree_skb(yp->rx_skbuff[i]); in yellowfin_close() 1258 yp->rx_skbuff[i] = NULL; in yellowfin_close()
|
| /Linux-v5.4/drivers/net/ethernet/calxeda/ |
| D | xgmac.c | 356 struct sk_buff **rx_skbuff; member 689 if (priv->rx_skbuff[entry] == NULL) { in xgmac_rx_refill() 701 priv->rx_skbuff[entry] = skb; in xgmac_rx_refill() 732 priv->rx_skbuff = kcalloc(DMA_RX_RING_SZ, sizeof(struct sk_buff *), in xgmac_dma_desc_rings_init() 734 if (!priv->rx_skbuff) in xgmac_dma_desc_rings_init() 785 kfree(priv->rx_skbuff); in xgmac_dma_desc_rings_init() 794 if (!priv->rx_skbuff) in xgmac_free_rx_skbufs() 798 struct sk_buff *skb = priv->rx_skbuff[i]; in xgmac_free_rx_skbufs() 806 priv->rx_skbuff[i] = NULL; in xgmac_free_rx_skbufs() 855 kfree(priv->rx_skbuff); in xgmac_free_dma_desc_rings() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/sis/ |
| D | sis900.c | 184 struct sk_buff *rx_skbuff[NUM_RX_DESC]; member 1170 sis_priv->rx_skbuff[i] = NULL; in sis900_init_rx_ring() 1189 sis_priv->rx_skbuff[i] = skb; in sis900_init_rx_ring() 1196 sis_priv->rx_skbuff[i] = NULL; in sis900_init_rx_ring() 1794 skb = sis_priv->rx_skbuff[entry]; in sis900_rx() 1802 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx() 1814 rx_skb = sis_priv->rx_skbuff[entry]; in sis900_rx() 1826 sis_priv->rx_skbuff[entry] = skb; in sis900_rx() 1834 sis_priv->rx_skbuff[entry] = NULL; in sis900_rx() 1850 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/smsc/ |
| D | epic100.c | 258 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 908 ep->rx_skbuff[i] = NULL; in epic_init_ring() 916 ep->rx_skbuff[i] = skb; in epic_init_ring() 1184 skb_copy_to_linear_data(skb, ep->rx_skbuff[entry]->data, pkt_len); in epic_rx() 1194 skb_put(skb = ep->rx_skbuff[entry], pkt_len); in epic_rx() 1195 ep->rx_skbuff[entry] = NULL; in epic_rx() 1209 if (ep->rx_skbuff[entry] == NULL) { in epic_rx() 1211 skb = ep->rx_skbuff[entry] = netdev_alloc_skb(dev, ep->rx_buf_sz + 2); in epic_rx() 1291 skb = ep->rx_skbuff[i]; in epic_close() 1292 ep->rx_skbuff[i] = NULL; in epic_close()
|
| /Linux-v5.4/drivers/net/ethernet/3com/ |
| D | 3c515.c | 308 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member 830 vp->rx_skbuff[i] = skb; in corkscrew_open() 1380 skb = vp->rx_skbuff[entry]; in boomerang_rx() 1381 vp->rx_skbuff[entry] = NULL; in boomerang_rx() 1401 if (vp->rx_skbuff[entry] == NULL) { in boomerang_rx() 1407 vp->rx_skbuff[entry] = skb; in boomerang_rx() 1451 if (vp->rx_skbuff[i]) { in corkscrew_close() 1452 dev_kfree_skb(vp->rx_skbuff[i]); in corkscrew_close() 1453 vp->rx_skbuff[i] = NULL; in corkscrew_close()
|
| D | 3c59x.c | 602 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 1742 vp->rx_skbuff[i] = skb; in vortex_open() 1768 if (vp->rx_skbuff[i]) { in vortex_open() 1769 dev_kfree_skb(vp->rx_skbuff[i]); in vortex_open() 1770 vp->rx_skbuff[i] = NULL; in vortex_open() 2631 skb_put_data(skb, vp->rx_skbuff[entry]->data, in boomerang_rx() 2654 skb = vp->rx_skbuff[entry]; in boomerang_rx() 2655 vp->rx_skbuff[entry] = newskb; in boomerang_rx() 2754 if (vp->rx_skbuff[i]) { in vortex_close() 2757 dev_kfree_skb(vp->rx_skbuff[i]); in vortex_close() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/dlink/ |
| D | sundance.c | 373 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 1042 np->rx_skbuff[i] = NULL; in init_ring() 1049 np->rx_skbuff[i] = skb; in init_ring() 1059 np->rx_skbuff[i] = NULL; in init_ring() 1389 skb_copy_to_linear_data(skb, np->rx_skbuff[entry]->data, pkt_len); in rx_poll() 1398 skb_put(skb = np->rx_skbuff[entry], pkt_len); in rx_poll() 1399 np->rx_skbuff[entry] = NULL; in rx_poll() 1436 if (np->rx_skbuff[entry] == NULL) { in refill_rx() 1438 np->rx_skbuff[entry] = skb; in refill_rx() 1448 np->rx_skbuff[entry] = NULL; in refill_rx() [all …]
|
| D | dl2k.c | 445 skb = np->rx_skbuff[i]; in free_list() 450 np->rx_skbuff[i] = NULL; in free_list() 505 np->rx_skbuff[i] = skb; in alloc_list() 672 if (np->rx_skbuff[entry] == NULL) { in rio_timer() 682 np->rx_skbuff[entry] = skb; in rio_timer() 965 skb_put (skb = np->rx_skbuff[entry], pkt_len); in receive_packet() 966 np->rx_skbuff[entry] = NULL; in receive_packet() 973 np->rx_skbuff[entry]->data, in receive_packet() 1000 if (np->rx_skbuff[entry] == NULL) { in receive_packet() 1010 np->rx_skbuff[entry] = skb; in receive_packet()
|
| /Linux-v5.4/drivers/net/ethernet/renesas/ |
| D | sh_eth.c | 1315 if (mdp->rx_skbuff[i]) { in sh_eth_ring_free() 1331 if (mdp->rx_skbuff) { in sh_eth_ring_free() 1333 dev_kfree_skb(mdp->rx_skbuff[i]); in sh_eth_ring_free() 1335 kfree(mdp->rx_skbuff); in sh_eth_ring_free() 1336 mdp->rx_skbuff = NULL; in sh_eth_ring_free() 1376 mdp->rx_skbuff[i] = NULL; in sh_eth_ring_format() 1390 mdp->rx_skbuff[i] = skb; in sh_eth_ring_format() 1448 mdp->rx_skbuff = kcalloc(mdp->num_rx_ring, sizeof(*mdp->rx_skbuff), in sh_eth_ring_init() 1450 if (!mdp->rx_skbuff) in sh_eth_ring_init() 1662 skb = mdp->rx_skbuff[entry]; in sh_eth_rx() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/samsung/sxgbe/ |
| D | sxgbe_main.c | 349 rx_ring->rx_skbuff[i] = skb; in sxgbe_init_rx_buffers() 378 kfree_skb(rx_ring->rx_skbuff[i]); in sxgbe_free_rx_buffers() 446 kfree(rx_ring->rx_skbuff); in free_rx_ring() 494 rx_ring->rx_skbuff = kmalloc_array(rx_rsize, in init_rx_ring() 496 if (!rx_ring->rx_skbuff) { in init_rx_ring() 525 kfree(rx_ring->rx_skbuff); in init_rx_ring() 1442 if (likely(priv->rxq[qnum]->rx_skbuff[entry] == NULL)) { in sxgbe_rx_refill() 1450 priv->rxq[qnum]->rx_skbuff[entry] = skb; in sxgbe_rx_refill() 1513 skb = priv->rxq[qnum]->rx_skbuff[entry]; in sxgbe_rx() 1519 priv->rxq[qnum]->rx_skbuff[entry] = NULL; in sxgbe_rx()
|
| /Linux-v5.4/drivers/net/ethernet/aeroflex/ |
| D | greth.h | 102 struct sk_buff *rx_skbuff[GRETH_RXBD_NUM]; member
|
| D | greth.c | 175 if (greth->rx_skbuff[i] != NULL) { in greth_clean_rings() 176 dev_kfree_skb(greth->rx_skbuff[i]); in greth_clean_rings() 263 greth->rx_skbuff[i] = skb; in greth_init_rings() 868 skb = greth->rx_skbuff[greth->rx_cur]; in greth_rx_gbit() 927 greth->rx_skbuff[greth->rx_cur] = newskb; in greth_rx_gbit()
|
| /Linux-v5.4/drivers/net/wan/ |
| D | fsl_ucc_hdlc.c | 204 priv->rx_skbuff = kcalloc(priv->rx_ring_size, in uhdlc_init() 205 sizeof(*priv->rx_skbuff), in uhdlc_init() 207 if (!priv->rx_skbuff) in uhdlc_init() 325 kfree(priv->rx_skbuff); in uhdlc_init() 762 kfree(priv->rx_skbuff); in uhdlc_memclean() 763 priv->rx_skbuff = NULL; in uhdlc_memclean()
|
| D | fsl_ucc_hdlc.h | 94 struct sk_buff **rx_skbuff; member
|
| /Linux-v5.4/drivers/net/fddi/ |
| D | defza.c | 692 skb = fp->rx_skbuff[i]; in fza_rx() 766 fp->rx_skbuff[i] = skb; in fza_rx() 1176 dev_kfree_skb(fp->rx_skbuff[i]); in fza_open() 1178 fp->rx_skbuff[i] = NULL; in fza_open() 1182 fp->rx_skbuff[i] = skb; in fza_open() 1255 if (fp->rx_skbuff[i]) { in fza_close() 1258 dev_kfree_skb(fp->rx_skbuff[i]); in fza_close() 1260 fp->rx_skbuff[i] = NULL; in fza_close()
|
| /Linux-v5.4/drivers/net/hippi/ |
| D | rrunner.c | 650 rrpriv->rx_skbuff[i] = skb; in rr_init1() 699 struct sk_buff *skb = rrpriv->rx_skbuff[i]; in rr_init1() 709 rrpriv->rx_skbuff[i] = NULL; in rr_init1() 947 rx_skb = rrpriv->rx_skbuff[index]; in rx_int() 982 rrpriv->rx_skbuff[index] = newskb; in rx_int() 1130 struct sk_buff *skb = rrpriv->rx_skbuff[i]; in rr_raz_rx() 1140 rrpriv->rx_skbuff[i] = NULL; in rr_raz_rx()
|
| /Linux-v5.4/drivers/net/ethernet/natsemi/ |
| D | natsemi.c | 544 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member 1936 if (np->rx_skbuff[entry] == NULL) { in refill_rx() 1939 np->rx_skbuff[entry] = skb; in refill_rx() 1947 np->rx_skbuff[entry] = NULL; in refill_rx() 2003 np->rx_skbuff[i] = NULL; in init_ring() 2036 if (np->rx_skbuff[i]) { in drain_rx() 2040 dev_kfree_skb(np->rx_skbuff[i]); in drain_rx() 2042 np->rx_skbuff[i] = NULL; in drain_rx() 2211 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler() 2367 np->rx_skbuff[entry]->data, pkt_len); in netdev_rx() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/via/ |
| D | via-rhine.c | 448 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member 1249 rp->rx_skbuff[entry] = sd->skb; in rhine_skb_dma_nic_store() 1272 rp->rx_skbuff[i] = NULL; in alloc_rbufs() 1305 if (rp->rx_skbuff[i]) { in free_rbufs() 1309 dev_kfree_skb(rp->rx_skbuff[i]); in free_rbufs() 1311 rp->rx_skbuff[i] = NULL; in free_rbufs() 2108 rp->rx_skbuff[entry]->data, in rhine_rx() 2121 skb = rp->rx_skbuff[entry]; in rhine_rx()
|