Lines Matching defs:tx_buffers
61 struct smsc9420_ring_info *tx_buffers;
558 if (!pd->tx_buffers)
562 struct sk_buff *skb = pd->tx_buffers[i].skb;
565 BUG_ON(!pd->tx_buffers[i].mapping);
566 pci_unmap_single(pd->pdev, pd->tx_buffers[i].mapping,
578 kfree(pd->tx_buffers);
579 pd->tx_buffers = NULL;
968 BUG_ON(!pd->tx_buffers[index].skb);
969 BUG_ON(!pd->tx_buffers[index].mapping);
971 pci_unmap_single(pd->pdev, pd->tx_buffers[index].mapping,
972 pd->tx_buffers[index].skb->len, PCI_DMA_TODEVICE);
973 pd->tx_buffers[index].mapping = 0;
975 dev_kfree_skb_any(pd->tx_buffers[index].skb);
976 pd->tx_buffers[index].skb = NULL;
999 BUG_ON(pd->tx_buffers[index].skb);
1000 BUG_ON(pd->tx_buffers[index].mapping);
1009 pd->tx_buffers[index].skb = skb;
1010 pd->tx_buffers[index].mapping = mapping;
1247 pd->tx_buffers = kmalloc((sizeof(struct smsc9420_ring_info) *
1249 if (!pd->tx_buffers) {
1250 smsc_warn(IFUP, "Failed to allocated tx_buffers");
1256 pd->tx_buffers[i].skb = NULL;
1257 pd->tx_buffers[i].mapping = 0;
1720 /* tx_buffers and rx_buffers are freed in stop */
1721 BUG_ON(pd->tx_buffers);