Lines Matching refs:rxdr

140                              struct e1000_rx_ring *rxdr);
1762 struct e1000_rx_ring *rxdr) argument
1767 size = sizeof(struct e1000_buffer) * rxdr->count;
1768 rxdr->buffer_info = vmalloc(size);
1769 if (!rxdr->buffer_info) {
1774 memset(rxdr->buffer_info, 0, size);
1776 size = sizeof(struct e1000_ps_page) * rxdr->count;
1777 rxdr->ps_page = kmalloc(size, GFP_KERNEL);
1778 if (!rxdr->ps_page) {
1779 vfree(rxdr->buffer_info);
1784 memset(rxdr->ps_page, 0, size);
1786 size = sizeof(struct e1000_ps_page_dma) * rxdr->count;
1787 rxdr->ps_page_dma = kmalloc(size, GFP_KERNEL);
1788 if (!rxdr->ps_page_dma) {
1789 vfree(rxdr->buffer_info);
1790 kfree(rxdr->ps_page);
1795 memset(rxdr->ps_page_dma, 0, size);
1804 rxdr->size = rxdr->count * desc_len;
1805 E1000_ROUNDUP(rxdr->size, 4096);
1807 rxdr->desc = pci_alloc_consistent(pdev, rxdr->size, &rxdr->dma);
1809 if (!rxdr->desc) {
1813 vfree(rxdr->buffer_info);
1814 kfree(rxdr->ps_page);
1815 kfree(rxdr->ps_page_dma);
1820 if (!e1000_check_64k_bound(adapter, rxdr->desc, rxdr->size)) {
1821 void *olddesc = rxdr->desc;
1822 dma_addr_t olddma = rxdr->dma;
1824 "at %p\n", rxdr->size, rxdr->desc);
1826 rxdr->desc = pci_alloc_consistent(pdev, rxdr->size, &rxdr->dma);
1828 if (!rxdr->desc) {
1829 pci_free_consistent(pdev, rxdr->size, olddesc, olddma);
1836 if (!e1000_check_64k_bound(adapter, rxdr->desc, rxdr->size)) {
1838 pci_free_consistent(pdev, rxdr->size, rxdr->desc,
1839 rxdr->dma);
1840 pci_free_consistent(pdev, rxdr->size, olddesc, olddma);
1847 pci_free_consistent(pdev, rxdr->size, olddesc, olddma);
1850 memset(rxdr->desc, 0, rxdr->size);
1852 rxdr->next_to_clean = 0;
1853 rxdr->next_to_use = 0;