/Linux-v5.10/drivers/net/ethernet/amd/ |
D | pcnet32.c | 266 struct sk_buff **rx_skbuff; member 566 new_skb_list[new] = lp->rx_skbuff[new]; in pcnet32_realloc_rx_ring() 570 struct sk_buff *rx_skbuff; in pcnet32_realloc_rx_ring() local 572 rx_skbuff = new_skb_list[new]; in pcnet32_realloc_rx_ring() 573 if (!rx_skbuff) { in pcnet32_realloc_rx_ring() 579 skb_reserve(rx_skbuff, NET_IP_ALIGN); in pcnet32_realloc_rx_ring() 582 dma_map_single(&lp->pci_dev->dev, rx_skbuff->data, in pcnet32_realloc_rx_ring() 596 if (lp->rx_skbuff[new]) { in pcnet32_realloc_rx_ring() 602 dev_kfree_skb(lp->rx_skbuff[new]); in pcnet32_realloc_rx_ring() 606 kfree(lp->rx_skbuff); in pcnet32_realloc_rx_ring() [all …]
|
D | amd8111e.c | 223 struct sk_buff *rx_skbuff; in amd8111e_free_skbs() local 239 rx_skbuff = lp->rx_skbuff[i]; in amd8111e_free_skbs() 240 if(rx_skbuff != NULL){ in amd8111e_free_skbs() 244 dev_kfree_skb(lp->rx_skbuff[i]); in amd8111e_free_skbs() 245 lp->rx_skbuff[i] = NULL; in amd8111e_free_skbs() 313 lp->rx_skbuff[i] = netdev_alloc_skb(dev, lp->rx_buff_len); in amd8111e_init_ring() 314 if (!lp->rx_skbuff[i]) { in amd8111e_init_ring() 317 dev_kfree_skb(lp->rx_skbuff[i]); in amd8111e_init_ring() 320 skb_reserve(lp->rx_skbuff[i],2); in amd8111e_init_ring() 325 lp->rx_skbuff[i]->data, 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.10/drivers/net/ethernet/dec/tulip/ |
D | winbond-840.c | 291 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 795 np->rx_skbuff[i] = NULL; in init_rxtx_rings() 803 np->rx_skbuff[i] = skb; in init_rxtx_rings() 837 if (np->rx_skbuff[i]) { in free_rxtx_rings() 839 np->rx_skbuff[i]->len, in free_rxtx_rings() 841 dev_kfree_skb(np->rx_skbuff[i]); in free_rxtx_rings() 843 np->rx_skbuff[i] = NULL; in free_rxtx_rings() 1220 np->rx_skbuff[entry]->len, in netdev_rx() 1222 skb_copy_to_linear_data(skb, np->rx_skbuff[entry]->data, pkt_len); in netdev_rx() 1226 np->rx_skbuff[entry]->len, in netdev_rx() [all …]
|
/Linux-v5.10/drivers/net/ethernet/freescale/fs_enet/ |
D | fs_enet-main.c | 228 skbn = fep->rx_skbuff[curidx]; in fs_enet_napi() 230 skb = fep->rx_skbuff[curidx]; in fs_enet_napi() 284 fep->rx_skbuff[curidx] = skbn; in fs_enet_napi() 382 fep->rx_skbuff[i] = skb; in fs_init_bds() 395 fep->rx_skbuff[i] = NULL; in fs_init_bds() 436 if ((skb = fep->rx_skbuff[i]) == NULL) in fs_cleanup_bds() 444 fep->rx_skbuff[i] = NULL; in fs_cleanup_bds() 1001 fep->rx_skbuff = (struct sk_buff **)&fep[1]; in fs_enet_probe() 1002 fep->tx_skbuff = fep->rx_skbuff + fpi->rx_ring; in fs_enet_probe() 1003 fep->mapped_as_page = (char *)(fep->rx_skbuff + fpi->rx_ring + in fs_enet_probe()
|
/Linux-v5.10/drivers/net/ethernet/packetengines/ |
D | hamachi.c | 486 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 1118 struct sk_buff *skb = hmp->rx_skbuff[i]; in hamachi_tx_timeout() 1125 hmp->rx_skbuff[i] = NULL; in hamachi_tx_timeout() 1133 hmp->rx_skbuff[i] = skb; in hamachi_tx_timeout() 1182 hmp->rx_skbuff[i] = NULL; in hamachi_init_ring() 1187 hmp->rx_skbuff[i] = skb; in hamachi_init_ring() 1428 buf_addr = (u8 *) hmp->rx_skbuff[entry]->data; in hamachi_rx() 1501 hmp->rx_skbuff[entry]->data, pkt_len); in hamachi_rx() 1516 skb_put(skb = hmp->rx_skbuff[entry], pkt_len); in hamachi_rx() 1517 hmp->rx_skbuff[entry] = NULL; in hamachi_rx() [all …]
|
D | yellowfin.c | 311 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 744 yp->rx_skbuff[i] = skb; in yellowfin_init_ring() 755 dev_kfree_skb(yp->rx_skbuff[j]); in yellowfin_init_ring() 1060 struct sk_buff *rx_skb = yp->rx_skbuff[entry]; in yellowfin_rx() 1139 yp->rx_skbuff[entry] = NULL; in yellowfin_rx() 1163 if (yp->rx_skbuff[entry] == NULL) { in yellowfin_rx() 1167 yp->rx_skbuff[entry] = skb; in yellowfin_rx() 1268 if (yp->rx_skbuff[i]) { in yellowfin_close() 1269 dev_kfree_skb(yp->rx_skbuff[i]); in yellowfin_close() 1271 yp->rx_skbuff[i] = NULL; in yellowfin_close()
|
/Linux-v5.10/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.10/drivers/net/ethernet/sis/ |
D | sis900.c | 184 struct sk_buff *rx_skbuff[NUM_RX_DESC]; member 1171 sis_priv->rx_skbuff[i] = NULL; in sis900_init_rx_ring() 1190 sis_priv->rx_skbuff[i] = skb; in sis900_init_rx_ring() 1199 sis_priv->rx_skbuff[i] = NULL; in sis900_init_rx_ring() 1799 skb = sis_priv->rx_skbuff[entry]; in sis900_rx() 1807 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx() 1819 rx_skb = sis_priv->rx_skbuff[entry]; in sis900_rx() 1831 sis_priv->rx_skbuff[entry] = skb; in sis900_rx() 1840 sis_priv->rx_skbuff[entry] = NULL; in sis900_rx() 1856 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx() [all …]
|
/Linux-v5.10/drivers/net/ethernet/smsc/ |
D | epic100.c | 258 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 913 ep->rx_skbuff[i] = NULL; in epic_init_ring() 921 ep->rx_skbuff[i] = skb; in epic_init_ring() 1193 skb_copy_to_linear_data(skb, ep->rx_skbuff[entry]->data, pkt_len); in epic_rx() 1204 skb_put(skb = ep->rx_skbuff[entry], pkt_len); in epic_rx() 1205 ep->rx_skbuff[entry] = NULL; in epic_rx() 1219 if (ep->rx_skbuff[entry] == NULL) { in epic_rx() 1221 skb = ep->rx_skbuff[entry] = netdev_alloc_skb(dev, ep->rx_buf_sz + 2); in epic_rx() 1303 skb = ep->rx_skbuff[i]; in epic_close() 1304 ep->rx_skbuff[i] = NULL; in epic_close()
|
/Linux-v5.10/drivers/net/ethernet/3com/ |
D | 3c515.c | 302 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member 816 vp->rx_skbuff[i] = skb; in corkscrew_open() 1366 skb = vp->rx_skbuff[entry]; in boomerang_rx() 1367 vp->rx_skbuff[entry] = NULL; in boomerang_rx() 1387 if (vp->rx_skbuff[entry] == NULL) { in boomerang_rx() 1393 vp->rx_skbuff[entry] = skb; in boomerang_rx() 1437 if (vp->rx_skbuff[i]) { in corkscrew_close() 1438 dev_kfree_skb(vp->rx_skbuff[i]); in corkscrew_close() 1439 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.10/drivers/net/ethernet/dlink/ |
D | sundance.c | 365 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member 1029 np->rx_skbuff[i] = NULL; in init_ring() 1036 np->rx_skbuff[i] = skb; in init_ring() 1046 np->rx_skbuff[i] = NULL; in init_ring() 1375 skb_copy_to_linear_data(skb, np->rx_skbuff[entry]->data, pkt_len); in rx_poll() 1384 skb_put(skb = np->rx_skbuff[entry], pkt_len); in rx_poll() 1385 np->rx_skbuff[entry] = NULL; in rx_poll() 1422 if (np->rx_skbuff[entry] == NULL) { in refill_rx() 1424 np->rx_skbuff[entry] = skb; in refill_rx() 1434 np->rx_skbuff[entry] = NULL; in refill_rx() [all …]
|
D | dl2k.c | 440 skb = np->rx_skbuff[i]; in free_list() 446 np->rx_skbuff[i] = NULL; in free_list() 502 np->rx_skbuff[i] = skb; in alloc_list() 668 if (np->rx_skbuff[entry] == NULL) { in rio_timer() 678 np->rx_skbuff[entry] = skb; in rio_timer() 959 skb_put (skb = np->rx_skbuff[entry], pkt_len); in receive_packet() 960 np->rx_skbuff[entry] = NULL; in receive_packet() 967 np->rx_skbuff[entry]->data, in receive_packet() 994 if (np->rx_skbuff[entry] == NULL) { in receive_packet() 1004 np->rx_skbuff[entry] = skb; in receive_packet()
|
D | dl2k.h | 368 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member
|
/Linux-v5.10/drivers/net/ethernet/renesas/ |
D | sh_eth.c | 1273 if (mdp->rx_skbuff[i]) { in sh_eth_ring_free() 1289 if (mdp->rx_skbuff) { in sh_eth_ring_free() 1291 dev_kfree_skb(mdp->rx_skbuff[i]); in sh_eth_ring_free() 1293 kfree(mdp->rx_skbuff); in sh_eth_ring_free() 1294 mdp->rx_skbuff = NULL; in sh_eth_ring_free() 1334 mdp->rx_skbuff[i] = NULL; in sh_eth_ring_format() 1348 mdp->rx_skbuff[i] = skb; in sh_eth_ring_format() 1406 mdp->rx_skbuff = kcalloc(mdp->num_rx_ring, sizeof(*mdp->rx_skbuff), in sh_eth_ring_init() 1408 if (!mdp->rx_skbuff) in sh_eth_ring_init() 1620 skb = mdp->rx_skbuff[entry]; in sh_eth_rx() [all …]
|
/Linux-v5.10/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_main.c | 349 rx_ring->rx_skbuff[i] = skb; in sxgbe_init_rx_buffers() 381 kfree_skb(rx_ring->rx_skbuff[i]); in sxgbe_free_rx_buffers() 450 kfree(rx_ring->rx_skbuff); in free_rx_ring() 499 rx_ring->rx_skbuff = kmalloc_array(rx_rsize, in init_rx_ring() 501 if (!rx_ring->rx_skbuff) { in init_rx_ring() 530 kfree(rx_ring->rx_skbuff); in init_rx_ring() 1448 if (likely(priv->rxq[qnum]->rx_skbuff[entry] == NULL)) { in sxgbe_rx_refill() 1456 priv->rxq[qnum]->rx_skbuff[entry] = skb; in sxgbe_rx_refill() 1519 skb = priv->rxq[qnum]->rx_skbuff[entry]; in sxgbe_rx() 1525 priv->rxq[qnum]->rx_skbuff[entry] = NULL; in sxgbe_rx()
|
/Linux-v5.10/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.10/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() 330 kfree(priv->rx_skbuff); in uhdlc_init() 765 kfree(priv->rx_skbuff); in uhdlc_memclean() 766 priv->rx_skbuff = NULL; in uhdlc_memclean()
|
D | fsl_ucc_hdlc.h | 94 struct sk_buff **rx_skbuff; member
|
/Linux-v5.10/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.10/drivers/net/hippi/ |
D | rrunner.c | 653 rrpriv->rx_skbuff[i] = skb; in rr_init1() 702 struct sk_buff *skb = rrpriv->rx_skbuff[i]; in rr_init1() 712 rrpriv->rx_skbuff[i] = NULL; in rr_init1() 950 rx_skb = rrpriv->rx_skbuff[index]; in rx_int() 986 rrpriv->rx_skbuff[index] = newskb; in rx_int() 1135 struct sk_buff *skb = rrpriv->rx_skbuff[i]; in rr_raz_rx() 1147 rrpriv->rx_skbuff[i] = NULL; in rr_raz_rx()
|
/Linux-v5.10/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() 2035 if (np->rx_skbuff[i]) { in drain_rx() 2039 dev_kfree_skb(np->rx_skbuff[i]); in drain_rx() 2041 np->rx_skbuff[i] = NULL; in drain_rx() 2209 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler() 2365 np->rx_skbuff[entry]->data, pkt_len); in netdev_rx() [all …]
|
/Linux-v5.10/drivers/net/ethernet/via/ |
D | via-rhine.c | 442 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member 1238 rp->rx_skbuff[entry] = sd->skb; in rhine_skb_dma_nic_store() 1261 rp->rx_skbuff[i] = NULL; in alloc_rbufs() 1294 if (rp->rx_skbuff[i]) { in free_rbufs() 1298 dev_kfree_skb(rp->rx_skbuff[i]); in free_rbufs() 1300 rp->rx_skbuff[i] = NULL; in free_rbufs() 2099 rp->rx_skbuff[entry]->data, in rhine_rx() 2112 skb = rp->rx_skbuff[entry]; in rhine_rx()
|