Lines Matching refs:desc
1514 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in e1000_setup_tx_resources()
1516 if (!txdr->desc) { in e1000_setup_tx_resources()
1523 if (!e1000_check_64k_bound(adapter, txdr->desc, txdr->size)) { in e1000_setup_tx_resources()
1524 void *olddesc = txdr->desc; in e1000_setup_tx_resources()
1527 txdr->size, txdr->desc); in e1000_setup_tx_resources()
1529 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, in e1000_setup_tx_resources()
1532 if (!txdr->desc) { in e1000_setup_tx_resources()
1538 if (!e1000_check_64k_bound(adapter, txdr->desc, txdr->size)) { in e1000_setup_tx_resources()
1540 dma_free_coherent(&pdev->dev, txdr->size, txdr->desc, in e1000_setup_tx_resources()
1554 memset(txdr->desc, 0, txdr->size); in e1000_setup_tx_resources()
1706 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma, in e1000_setup_rx_resources()
1708 if (!rxdr->desc) { in e1000_setup_rx_resources()
1715 if (!e1000_check_64k_bound(adapter, rxdr->desc, rxdr->size)) { in e1000_setup_rx_resources()
1716 void *olddesc = rxdr->desc; in e1000_setup_rx_resources()
1719 rxdr->size, rxdr->desc); in e1000_setup_rx_resources()
1721 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, in e1000_setup_rx_resources()
1724 if (!rxdr->desc) { in e1000_setup_rx_resources()
1730 if (!e1000_check_64k_bound(adapter, rxdr->desc, rxdr->size)) { in e1000_setup_rx_resources()
1732 dma_free_coherent(&pdev->dev, rxdr->size, rxdr->desc, in e1000_setup_rx_resources()
1745 memset(rxdr->desc, 0, rxdr->size); in e1000_setup_rx_resources()
1934 dma_free_coherent(&pdev->dev, tx_ring->size, tx_ring->desc, in e1000_free_tx_resources()
1937 tx_ring->desc = NULL; in e1000_free_tx_resources()
2003 memset(tx_ring->desc, 0, tx_ring->size); in e1000_clean_tx_ring()
2042 dma_free_coherent(&pdev->dev, rx_ring->size, rx_ring->desc, in e1000_free_rx_resources()
2045 rx_ring->desc = NULL; in e1000_free_rx_resources()
2127 memset(rx_ring->desc, 0, rx_ring->size); in e1000_clean_rx_ring()
3404 for (i = 0; tx_ring->desc && (i < tx_ring->count); i++) { in e1000_dump()
3446 for (i = 0; rx_ring->desc && (i < rx_ring->count); i++) { in e1000_dump()