Lines Matching refs:tx_skb

828 	struct nv_skb_map *tx_skb;  member
1035 kfree(np->tx_skb); in free_rings()
1938 np->get_tx_ctx = np->put_tx_ctx = np->first_tx_ctx = np->tx_skb; in nv_init_tx()
1939 np->last_tx_ctx = &np->tx_skb[np->tx_ring_size-1]; in nv_init_tx()
1956 np->tx_skb[i].skb = NULL; in nv_init_tx()
1957 np->tx_skb[i].dma = 0; in nv_init_tx()
1958 np->tx_skb[i].dma_len = 0; in nv_init_tx()
1959 np->tx_skb[i].dma_single = 0; in nv_init_tx()
1960 np->tx_skb[i].first_tx_desc = NULL; in nv_init_tx()
1961 np->tx_skb[i].next_tx_ctx = NULL; in nv_init_tx()
1978 static void nv_unmap_txskb(struct fe_priv *np, struct nv_skb_map *tx_skb) in nv_unmap_txskb() argument
1980 if (tx_skb->dma) { in nv_unmap_txskb()
1981 if (tx_skb->dma_single) in nv_unmap_txskb()
1982 pci_unmap_single(np->pci_dev, tx_skb->dma, in nv_unmap_txskb()
1983 tx_skb->dma_len, in nv_unmap_txskb()
1986 pci_unmap_page(np->pci_dev, tx_skb->dma, in nv_unmap_txskb()
1987 tx_skb->dma_len, in nv_unmap_txskb()
1989 tx_skb->dma = 0; in nv_unmap_txskb()
1993 static int nv_release_txskb(struct fe_priv *np, struct nv_skb_map *tx_skb) in nv_release_txskb() argument
1995 nv_unmap_txskb(np, tx_skb); in nv_release_txskb()
1996 if (tx_skb->skb) { in nv_release_txskb()
1997 dev_kfree_skb_any(tx_skb->skb); in nv_release_txskb()
1998 tx_skb->skb = NULL; in nv_release_txskb()
2019 if (nv_release_txskb(np, &np->tx_skb[i])) { in nv_drain_tx()
2024 np->tx_skb[i].dma = 0; in nv_drain_tx()
2025 np->tx_skb[i].dma_len = 0; in nv_drain_tx()
2026 np->tx_skb[i].dma_single = 0; in nv_drain_tx()
2027 np->tx_skb[i].first_tx_desc = NULL; in nv_drain_tx()
2028 np->tx_skb[i].next_tx_ctx = NULL; in nv_drain_tx()
4652 np->tx_skb = (struct nv_skb_map *)tx_skbuff; in nv_set_ringparam()
4656 memset(np->tx_skb, 0, sizeof(struct nv_skb_map) * np->tx_ring_size); in nv_set_ringparam()
5034 struct sk_buff *tx_skb, *rx_skb; in nv_loopback_test() local
5072 tx_skb = netdev_alloc_skb(dev, pkt_len); in nv_loopback_test()
5073 if (!tx_skb) { in nv_loopback_test()
5077 test_dma_addr = pci_map_single(np->pci_dev, tx_skb->data, in nv_loopback_test()
5078 skb_tailroom(tx_skb), in nv_loopback_test()
5082 dev_kfree_skb_any(tx_skb); in nv_loopback_test()
5085 pkt_data = skb_put(tx_skb, pkt_len); in nv_loopback_test()
5137 (skb_end_pointer(tx_skb) - tx_skb->data), in nv_loopback_test()
5139 dev_kfree_skb_any(tx_skb); in nv_loopback_test()
5759 np->tx_skb = kcalloc(np->tx_ring_size, sizeof(struct nv_skb_map), GFP_KERNEL); in nv_probe()
5760 if (!np->rx_skb || !np->tx_skb) in nv_probe()