Lines Matching refs:rx_buffers
64 struct smsc9420_ring_info *rx_buffers; member
583 if (!pd->rx_buffers) in smsc9420_free_rx_ring()
587 if (pd->rx_buffers[i].skb) in smsc9420_free_rx_ring()
588 dev_kfree_skb_any(pd->rx_buffers[i].skb); in smsc9420_free_rx_ring()
590 if (pd->rx_buffers[i].mapping) in smsc9420_free_rx_ring()
591 pci_unmap_single(pd->pdev, pd->rx_buffers[i].mapping, in smsc9420_free_rx_ring()
601 kfree(pd->rx_buffers); in smsc9420_free_rx_ring()
602 pd->rx_buffers = NULL; in smsc9420_free_rx_ring()
811 pci_unmap_single(pd->pdev, pd->rx_buffers[index].mapping, in smsc9420_rx_handoff()
813 pd->rx_buffers[index].mapping = 0; in smsc9420_rx_handoff()
815 skb = pd->rx_buffers[index].skb; in smsc9420_rx_handoff()
816 pd->rx_buffers[index].skb = NULL; in smsc9420_rx_handoff()
838 BUG_ON(pd->rx_buffers[index].skb); in smsc9420_alloc_rx_buffer()
839 BUG_ON(pd->rx_buffers[index].mapping); in smsc9420_alloc_rx_buffer()
852 pd->rx_buffers[index].skb = skb; in smsc9420_alloc_rx_buffer()
853 pd->rx_buffers[index].mapping = mapping; in smsc9420_alloc_rx_buffer()
1275 pd->rx_buffers = kmalloc_array(RX_RING_SIZE, in smsc9420_alloc_rx_ring()
1278 if (pd->rx_buffers == NULL) in smsc9420_alloc_rx_ring()
1286 pd->rx_buffers[i].skb = NULL; in smsc9420_alloc_rx_ring()
1287 pd->rx_buffers[i].mapping = 0; in smsc9420_alloc_rx_ring()
1713 BUG_ON(pd->rx_buffers); in smsc9420_remove()