Lines Matching refs:tx_buffers
51 struct smsc9420_ring_info *tx_buffers; member
494 if (!pd->tx_buffers) in smsc9420_free_tx_ring()
498 struct sk_buff *skb = pd->tx_buffers[i].skb; in smsc9420_free_tx_ring()
501 BUG_ON(!pd->tx_buffers[i].mapping); in smsc9420_free_tx_ring()
503 pd->tx_buffers[i].mapping, skb->len, in smsc9420_free_tx_ring()
515 kfree(pd->tx_buffers); in smsc9420_free_tx_ring()
516 pd->tx_buffers = NULL; in smsc9420_free_tx_ring()
905 BUG_ON(!pd->tx_buffers[index].skb); in smsc9420_complete_tx()
906 BUG_ON(!pd->tx_buffers[index].mapping); in smsc9420_complete_tx()
909 pd->tx_buffers[index].mapping, in smsc9420_complete_tx()
910 pd->tx_buffers[index].skb->len, in smsc9420_complete_tx()
912 pd->tx_buffers[index].mapping = 0; in smsc9420_complete_tx()
914 dev_kfree_skb_any(pd->tx_buffers[index].skb); in smsc9420_complete_tx()
915 pd->tx_buffers[index].skb = NULL; in smsc9420_complete_tx()
938 BUG_ON(pd->tx_buffers[index].skb); in smsc9420_hard_start_xmit()
939 BUG_ON(pd->tx_buffers[index].mapping); in smsc9420_hard_start_xmit()
949 pd->tx_buffers[index].skb = skb; in smsc9420_hard_start_xmit()
950 pd->tx_buffers[index].mapping = mapping; in smsc9420_hard_start_xmit()
1182 pd->tx_buffers = kmalloc_array(TX_RING_SIZE, in smsc9420_alloc_tx_ring()
1185 if (!pd->tx_buffers) in smsc9420_alloc_tx_ring()
1190 pd->tx_buffers[i].skb = NULL; in smsc9420_alloc_tx_ring()
1191 pd->tx_buffers[i].mapping = 0; in smsc9420_alloc_tx_ring()
1635 BUG_ON(pd->tx_buffers); in smsc9420_remove()