Home
last modified time | relevance | path

Searched refs:rx_skbuff (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v5.15/drivers/net/ethernet/amd/
Dpcnet32.c266 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 …]
Damd8111e.c223 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 …]
Dlance.c244 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member
846 struct sk_buff *skb = lp->rx_skbuff[i]; in lance_purge_ring()
847 lp->rx_skbuff[i] = NULL; in lance_purge_ring()
876 lp->rx_skbuff[i] = skb; in lance_init_ring()
/Linux-v5.15/drivers/net/ethernet/dec/tulip/
Dwinbond-840.c291 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member
793 np->rx_skbuff[i] = NULL; in init_rxtx_rings()
801 np->rx_skbuff[i] = skb; in init_rxtx_rings()
835 if (np->rx_skbuff[i]) { in free_rxtx_rings()
837 np->rx_skbuff[i]->len, in free_rxtx_rings()
839 dev_kfree_skb(np->rx_skbuff[i]); in free_rxtx_rings()
841 np->rx_skbuff[i] = NULL; in free_rxtx_rings()
1218 np->rx_skbuff[entry]->len, in netdev_rx()
1220 skb_copy_to_linear_data(skb, np->rx_skbuff[entry]->data, pkt_len); in netdev_rx()
1224 np->rx_skbuff[entry]->len, in netdev_rx()
[all …]
/Linux-v5.15/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c228 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()
1000 fep->rx_skbuff = (struct sk_buff **)&fep[1]; in fs_enet_probe()
1001 fep->tx_skbuff = fep->rx_skbuff + fpi->rx_ring; in fs_enet_probe()
1002 fep->mapped_as_page = (char *)(fep->rx_skbuff + fpi->rx_ring + in fs_enet_probe()
/Linux-v5.15/drivers/net/ethernet/packetengines/
Dhamachi.c486 struct sk_buff* rx_skbuff[RX_RING_SIZE]; member
1121 struct sk_buff *skb = hmp->rx_skbuff[i]; in hamachi_tx_timeout()
1128 hmp->rx_skbuff[i] = NULL; in hamachi_tx_timeout()
1136 hmp->rx_skbuff[i] = skb; in hamachi_tx_timeout()
1185 hmp->rx_skbuff[i] = NULL; in hamachi_init_ring()
1190 hmp->rx_skbuff[i] = skb; in hamachi_init_ring()
1431 buf_addr = (u8 *) hmp->rx_skbuff[entry]->data; in hamachi_rx()
1504 hmp->rx_skbuff[entry]->data, pkt_len); in hamachi_rx()
1519 skb_put(skb = hmp->rx_skbuff[entry], pkt_len); in hamachi_rx()
1520 hmp->rx_skbuff[entry] = NULL; in hamachi_rx()
[all …]
Dyellowfin.c311 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.15/drivers/net/ethernet/calxeda/
Dxgmac.c356 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.15/drivers/net/ethernet/sis/
Dsis900.c184 struct sk_buff *rx_skbuff[NUM_RX_DESC]; member
1169 sis_priv->rx_skbuff[i] = NULL; in sis900_init_rx_ring()
1188 sis_priv->rx_skbuff[i] = skb; in sis900_init_rx_ring()
1197 sis_priv->rx_skbuff[i] = NULL; in sis900_init_rx_ring()
1797 skb = sis_priv->rx_skbuff[entry]; in sis900_rx()
1805 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx()
1817 rx_skb = sis_priv->rx_skbuff[entry]; in sis900_rx()
1829 sis_priv->rx_skbuff[entry] = skb; in sis900_rx()
1838 sis_priv->rx_skbuff[entry] = NULL; in sis900_rx()
1854 if (sis_priv->rx_skbuff[entry] == NULL) { in sis900_rx()
[all …]
/Linux-v5.15/drivers/net/ethernet/smsc/
Depic100.c258 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.15/drivers/net/ethernet/3com/
D3c515.c302 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member
817 vp->rx_skbuff[i] = skb; in corkscrew_open()
1367 skb = vp->rx_skbuff[entry]; in boomerang_rx()
1368 vp->rx_skbuff[entry] = NULL; in boomerang_rx()
1388 if (vp->rx_skbuff[entry] == NULL) { in boomerang_rx()
1394 vp->rx_skbuff[entry] = skb; in boomerang_rx()
1438 if (vp->rx_skbuff[i]) { in corkscrew_close()
1439 dev_kfree_skb(vp->rx_skbuff[i]); in corkscrew_close()
1440 vp->rx_skbuff[i] = NULL; in corkscrew_close()
D3c59x.c602 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.15/drivers/net/ethernet/dlink/
Dsundance.c365 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 …]
Ddl2k.c440 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()
Ddl2k.h368 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member
/Linux-v5.15/drivers/net/ethernet/renesas/
Dsh_eth.c1280 if (mdp->rx_skbuff[i]) { in sh_eth_ring_free()
1296 if (mdp->rx_skbuff) { in sh_eth_ring_free()
1298 dev_kfree_skb(mdp->rx_skbuff[i]); in sh_eth_ring_free()
1300 kfree(mdp->rx_skbuff); in sh_eth_ring_free()
1301 mdp->rx_skbuff = NULL; in sh_eth_ring_free()
1341 mdp->rx_skbuff[i] = NULL; in sh_eth_ring_format()
1355 mdp->rx_skbuff[i] = skb; in sh_eth_ring_format()
1413 mdp->rx_skbuff = kcalloc(mdp->num_rx_ring, sizeof(*mdp->rx_skbuff), in sh_eth_ring_init()
1415 if (!mdp->rx_skbuff) in sh_eth_ring_init()
1627 skb = mdp->rx_skbuff[entry]; in sh_eth_rx()
[all …]
/Linux-v5.15/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c349 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.15/drivers/net/ethernet/aeroflex/
Dgreth.h102 struct sk_buff *rx_skbuff[GRETH_RXBD_NUM]; member
Dgreth.c175 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.15/drivers/net/wan/
Dfsl_ucc_hdlc.c204 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()
334 kfree(priv->rx_skbuff); in uhdlc_init()
766 kfree(priv->rx_skbuff); in uhdlc_memclean()
767 priv->rx_skbuff = NULL; in uhdlc_memclean()
Dfsl_ucc_hdlc.h94 struct sk_buff **rx_skbuff; member
/Linux-v5.15/drivers/net/fddi/
Ddefza.c692 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.15/drivers/net/hippi/
Drrunner.c653 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.15/drivers/net/ethernet/natsemi/
Dnatsemi.c544 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member
1933 if (np->rx_skbuff[entry] == NULL) { in refill_rx()
1936 np->rx_skbuff[entry] = skb; in refill_rx()
1944 np->rx_skbuff[entry] = NULL; in refill_rx()
2000 np->rx_skbuff[i] = NULL; in init_ring()
2032 if (np->rx_skbuff[i]) { in drain_rx()
2036 dev_kfree_skb(np->rx_skbuff[i]); in drain_rx()
2038 np->rx_skbuff[i] = NULL; in drain_rx()
2206 prefetch(&np->rx_skbuff[np->cur_rx % RX_RING_SIZE]); in intr_handler()
2362 np->rx_skbuff[entry]->data, pkt_len); in netdev_rx()
[all …]
/Linux-v5.15/drivers/net/ethernet/via/
Dvia-rhine.c442 struct sk_buff *rx_skbuff[RX_RING_SIZE]; member
1233 rp->rx_skbuff[entry] = sd->skb; in rhine_skb_dma_nic_store()
1256 rp->rx_skbuff[i] = NULL; in alloc_rbufs()
1289 if (rp->rx_skbuff[i]) { in free_rbufs()
1293 dev_kfree_skb(rp->rx_skbuff[i]); in free_rbufs()
1295 rp->rx_skbuff[i] = NULL; in free_rbufs()
2094 rp->rx_skbuff[entry]->data, in rhine_rx()
2107 skb = rp->rx_skbuff[entry]; in rhine_rx()

12