Lines Matching refs:rx_buffers
52 struct smsc9420_ring_info *rx_buffers; member
528 if (!pd->rx_buffers) in smsc9420_free_rx_ring()
532 if (pd->rx_buffers[i].skb) in smsc9420_free_rx_ring()
533 dev_kfree_skb_any(pd->rx_buffers[i].skb); in smsc9420_free_rx_ring()
535 if (pd->rx_buffers[i].mapping) in smsc9420_free_rx_ring()
537 pd->rx_buffers[i].mapping, in smsc9420_free_rx_ring()
547 kfree(pd->rx_buffers); in smsc9420_free_rx_ring()
548 pd->rx_buffers = NULL; in smsc9420_free_rx_ring()
756 dma_unmap_single(&pd->pdev->dev, pd->rx_buffers[index].mapping, in smsc9420_rx_handoff()
758 pd->rx_buffers[index].mapping = 0; in smsc9420_rx_handoff()
760 skb = pd->rx_buffers[index].skb; in smsc9420_rx_handoff()
761 pd->rx_buffers[index].skb = NULL; in smsc9420_rx_handoff()
783 BUG_ON(pd->rx_buffers[index].skb); in smsc9420_alloc_rx_buffer()
784 BUG_ON(pd->rx_buffers[index].mapping); in smsc9420_alloc_rx_buffer()
797 pd->rx_buffers[index].skb = skb; in smsc9420_alloc_rx_buffer()
798 pd->rx_buffers[index].mapping = mapping; in smsc9420_alloc_rx_buffer()
1215 pd->rx_buffers = kmalloc_array(RX_RING_SIZE, in smsc9420_alloc_rx_ring()
1218 if (pd->rx_buffers == NULL) in smsc9420_alloc_rx_ring()
1226 pd->rx_buffers[i].skb = NULL; in smsc9420_alloc_rx_ring()
1227 pd->rx_buffers[i].mapping = 0; in smsc9420_alloc_rx_ring()
1636 BUG_ON(pd->rx_buffers); in smsc9420_remove()