Lines Matching refs:dma
1404 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma,
1417 dma_addr_t olddma = txdr->dma;
1422 &txdr->dma, GFP_KERNEL);
1433 txdr->dma);
1499 tdba = adapter->tx_ring[0].dma;
1600 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma,
1614 dma_addr_t olddma = rxdr->dma;
1619 &rxdr->dma, GFP_KERNEL);
1632 rxdr->dma);
1772 rdba = adapter->rx_ring[0].dma;
1817 tx_ring->dma);
1840 if (buffer_info->dma) {
1842 dma_unmap_page(&adapter->pdev->dev, buffer_info->dma,
1845 dma_unmap_single(&adapter->pdev->dev, buffer_info->dma,
1848 buffer_info->dma = 0;
1926 rx_ring->dma);
1964 if (buffer_info->dma &&
1966 dma_unmap_single(&pdev->dev, buffer_info->dma,
1969 } else if (buffer_info->dma &&
1971 dma_unmap_page(&pdev->dev, buffer_info->dma,
1976 buffer_info->dma = 0;
2723 /* set time_stamp *before* dma to help avoid a possible race */
2726 buffer_info->dma = dma_map_single(&pdev->dev,
2729 if (dma_mapping_error(&pdev->dev, buffer_info->dma))
2768 buffer_info->dma = dma_map_page(&pdev->dev, frag->page,
2771 if (dma_mapping_error(&pdev->dev, buffer_info->dma))
2788 buffer_info->dma = 0;
2837 tx_desc->buffer_addr = cpu_to_le64(buffer_info->dma);
3626 dma_unmap_page(&pdev->dev, buffer_info->dma,
3628 buffer_info->dma = 0;
3834 dma_unmap_single(&pdev->dev, buffer_info->dma,
3836 buffer_info->dma = 0;
3993 if (!buffer_info->dma) {
3994 buffer_info->dma = dma_map_page(&pdev->dev,
3998 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) {
4003 buffer_info->dma = 0;
4010 rx_desc->buffer_addr = cpu_to_le64(buffer_info->dma);
4094 buffer_info->dma = dma_map_single(&pdev->dev,
4098 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) {
4101 buffer_info->dma = 0;
4109 (void *)(unsigned long)buffer_info->dma,
4111 e_err(rx_err, "dma align check failed: %u bytes at "
4113 (void *)(unsigned long)buffer_info->dma);
4117 dma_unmap_single(&pdev->dev, buffer_info->dma,
4120 buffer_info->dma = 0;
4126 rx_desc->buffer_addr = cpu_to_le64(buffer_info->dma);