Lines Matching refs:dev
135 static void e1000_tx_timeout(struct net_device *dev, unsigned int txqueue);
152 static int __maybe_unused e1000_suspend(struct device *dev);
153 static int __maybe_unused e1000_resume(struct device *dev);
962 SET_NETDEV_DEV(netdev, &pdev->dev); in e1000_probe()
1002 !dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64))) { in e1000_probe()
1005 err = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in e1000_probe()
1181 device_set_wakeup_enable(&adapter->pdev->dev, adapter->wol); in e1000_probe()
1514 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, &txdr->dma, in e1000_setup_tx_resources()
1529 txdr->desc = dma_alloc_coherent(&pdev->dev, txdr->size, in e1000_setup_tx_resources()
1533 dma_free_coherent(&pdev->dev, txdr->size, olddesc, in e1000_setup_tx_resources()
1540 dma_free_coherent(&pdev->dev, txdr->size, txdr->desc, in e1000_setup_tx_resources()
1542 dma_free_coherent(&pdev->dev, txdr->size, olddesc, in e1000_setup_tx_resources()
1550 dma_free_coherent(&pdev->dev, txdr->size, olddesc, in e1000_setup_tx_resources()
1706 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, &rxdr->dma, in e1000_setup_rx_resources()
1721 rxdr->desc = dma_alloc_coherent(&pdev->dev, rxdr->size, in e1000_setup_rx_resources()
1725 dma_free_coherent(&pdev->dev, rxdr->size, olddesc, in e1000_setup_rx_resources()
1732 dma_free_coherent(&pdev->dev, rxdr->size, rxdr->desc, in e1000_setup_rx_resources()
1734 dma_free_coherent(&pdev->dev, rxdr->size, olddesc, in e1000_setup_rx_resources()
1741 dma_free_coherent(&pdev->dev, rxdr->size, olddesc, in e1000_setup_rx_resources()
1934 dma_free_coherent(&pdev->dev, tx_ring->size, tx_ring->desc, in e1000_free_tx_resources()
1961 dma_unmap_page(&adapter->pdev->dev, buffer_info->dma, in e1000_unmap_and_free_tx_resource()
1964 dma_unmap_single(&adapter->pdev->dev, buffer_info->dma, in e1000_unmap_and_free_tx_resource()
2042 dma_free_coherent(&pdev->dev, rx_ring->size, rx_ring->desc, in e1000_free_rx_resources()
2098 dma_unmap_single(&pdev->dev, buffer_info->dma, in e1000_clean_rx_ring()
2107 dma_unmap_page(&pdev->dev, buffer_info->dma, in e1000_clean_rx_ring()
2876 buffer_info->dma = dma_map_single(&pdev->dev, in e1000_tx_map()
2879 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) in e1000_tx_map()
2928 buffer_info->dma = skb_frag_dma_map(&pdev->dev, frag, in e1000_tx_map()
2930 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) in e1000_tx_map()
2952 dev_err(&pdev->dev, "TX DMA map failed\n"); in e1000_tx_map()
4168 dma_unmap_page(&pdev->dev, buffer_info->dma, in e1000_clean_jumbo_rx_irq()
4332 dma_sync_single_for_cpu(&adapter->pdev->dev, buffer_info->dma, in e1000_copybreak()
4391 dma_unmap_single(&pdev->dev, buffer_info->dma, in e1000_clean_rx_irq()
4518 buffer_info->dma = dma_map_page(&pdev->dev, in e1000_alloc_jumbo_rx_buffers()
4522 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) { in e1000_alloc_jumbo_rx_buffers()
4612 buffer_info->dma = dma_map_single(&pdev->dev, in e1000_alloc_rx_buffers()
4616 if (dma_mapping_error(&pdev->dev, buffer_info->dma)) { in e1000_alloc_rx_buffers()
4635 dma_unmap_single(&pdev->dev, buffer_info->dma, in e1000_alloc_rx_buffers()
5138 static int __maybe_unused e1000_suspend(struct device *dev) in e1000_suspend() argument
5141 struct pci_dev *pdev = to_pci_dev(dev); in e1000_suspend()
5145 device_set_wakeup_enable(dev, wake); in e1000_suspend()
5150 static int __maybe_unused e1000_resume(struct device *dev) in e1000_resume() argument
5152 struct pci_dev *pdev = to_pci_dev(dev); in e1000_resume()