• Home
  • Raw
  • Download

Lines Matching refs:rxdr

104 				    struct e1000_rx_ring *rxdr);
1699 struct e1000_rx_ring *rxdr) in e1000_setup_rx_resources() argument
1704 size = sizeof(struct e1000_rx_buffer) * rxdr->count; in e1000_setup_rx_resources()
1705 rxdr->buffer_info = vzalloc(size); in e1000_setup_rx_resources()
1706 if (!rxdr->buffer_info) in e1000_setup_rx_resources()
1713 rxdr->size = rxdr->count * desc_len; in e1000_setup_rx_resources()
1714 rxdr->size = ALIGN(rxdr->size, 4096); in e1000_setup_rx_resources()
1716 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma, in e1000_setup_rx_resources()
1718 if (!rxdr->desc) { in e1000_setup_rx_resources()
1720 vfree(rxdr->buffer_info); in e1000_setup_rx_resources()
1725 if (!e1000_check_64k_bound(adapter, rxdr->desc, rxdr->size)) { in e1000_setup_rx_resources()
1726 void *olddesc = rxdr->desc; in e1000_setup_rx_resources()
1727 dma_addr_t olddma = rxdr->dma; in e1000_setup_rx_resources()
1729 rxdr->size, rxdr->desc); in e1000_setup_rx_resources()
1731 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, in e1000_setup_rx_resources()
1732 &rxdr->dma, GFP_KERNEL); in e1000_setup_rx_resources()
1734 if (!rxdr->desc) { in e1000_setup_rx_resources()
1735 dma_free_coherent(&pdev->dev, rxdr->size, olddesc, in e1000_setup_rx_resources()
1740 if (!e1000_check_64k_bound(adapter, rxdr->desc, rxdr->size)) { in e1000_setup_rx_resources()
1742 dma_free_coherent(&pdev->dev, rxdr->size, rxdr->desc, in e1000_setup_rx_resources()
1743 rxdr->dma); in e1000_setup_rx_resources()
1744 dma_free_coherent(&pdev->dev, rxdr->size, olddesc, in e1000_setup_rx_resources()
1751 dma_free_coherent(&pdev->dev, rxdr->size, olddesc, in e1000_setup_rx_resources()
1755 memset(rxdr->desc, 0, rxdr->size); in e1000_setup_rx_resources()
1757 rxdr->next_to_clean = 0; in e1000_setup_rx_resources()
1758 rxdr->next_to_use = 0; in e1000_setup_rx_resources()
1759 rxdr->rx_skb_top = NULL; in e1000_setup_rx_resources()