Lines Matching refs:tx_skb

828 	struct nv_skb_map *tx_skb;
1038 kfree(np->tx_skb);
1957 np->get_tx_ctx = np->tx_skb;
1958 np->put_tx_ctx = np->tx_skb;
1959 np->last_tx_ctx = &np->tx_skb[np->tx_ring_size-1];
1976 np->tx_skb[i].skb = NULL;
1977 np->tx_skb[i].dma = 0;
1978 np->tx_skb[i].dma_len = 0;
1979 np->tx_skb[i].dma_single = 0;
1980 np->tx_skb[i].first_tx_desc = NULL;
1981 np->tx_skb[i].next_tx_ctx = NULL;
1998 static void nv_unmap_txskb(struct fe_priv *np, struct nv_skb_map *tx_skb)
2000 if (tx_skb->dma) {
2001 if (tx_skb->dma_single)
2002 dma_unmap_single(&np->pci_dev->dev, tx_skb->dma,
2003 tx_skb->dma_len,
2006 dma_unmap_page(&np->pci_dev->dev, tx_skb->dma,
2007 tx_skb->dma_len,
2009 tx_skb->dma = 0;
2013 static int nv_release_txskb(struct fe_priv *np, struct nv_skb_map *tx_skb)
2015 nv_unmap_txskb(np, tx_skb);
2016 if (tx_skb->skb) {
2017 dev_kfree_skb_any(tx_skb->skb);
2018 tx_skb->skb = NULL;
2039 if (nv_release_txskb(np, &np->tx_skb[i])) {
2044 np->tx_skb[i].dma = 0;
2045 np->tx_skb[i].dma_len = 0;
2046 np->tx_skb[i].dma_single = 0;
2047 np->tx_skb[i].first_tx_desc = NULL;
2048 np->tx_skb[i].next_tx_ctx = NULL;
2279 np->put_tx_ctx = np->tx_skb;
2305 tmp_tx_ctx = np->tx_skb;
2328 np->put_tx_ctx = np->tx_skb;
2337 if (unlikely(np->put_tx_ctx == np->tx_skb))
2457 np->put_tx_ctx = np->tx_skb;
2483 tmp_tx_ctx = np->tx_skb;
2506 np->put_tx_ctx = np->tx_skb;
2515 if (unlikely(np->put_tx_ctx == np->tx_skb))
2664 np->get_tx_ctx = np->tx_skb;
2721 np->get_tx_ctx = np->tx_skb;
4759 np->tx_skb = (struct nv_skb_map *)tx_skbuff;
4763 memset(np->tx_skb, 0, sizeof(struct nv_skb_map) * np->tx_ring_size);
5141 struct sk_buff *tx_skb, *rx_skb;
5179 tx_skb = netdev_alloc_skb(dev, pkt_len);
5180 if (!tx_skb) {
5184 test_dma_addr = dma_map_single(&np->pci_dev->dev, tx_skb->data,
5185 skb_tailroom(tx_skb),
5189 dev_kfree_skb_any(tx_skb);
5192 pkt_data = skb_put(tx_skb, pkt_len);
5244 (skb_end_pointer(tx_skb) - tx_skb->data),
5246 dev_kfree_skb_any(tx_skb);
5870 np->tx_skb = kcalloc(np->tx_ring_size, sizeof(struct nv_skb_map), GFP_KERNEL);
5871 if (!np->rx_skb || !np->tx_skb)