Lines Matching refs:pci_dev
18 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_probe() local
22 if (pci_dev->device < 0x1000 || pci_dev->device > 0x103f) in vp_legacy_probe()
25 if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) in vp_legacy_probe()
28 rc = dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(64)); in vp_legacy_probe()
30 rc = dma_set_mask_and_coherent(&pci_dev->dev, DMA_BIT_MASK(32)); in vp_legacy_probe()
36 dma_set_coherent_mask(&pci_dev->dev, in vp_legacy_probe()
41 …dev_warn(&pci_dev->dev, "Failed to enable 64-bit or 32-bit DMA. Trying to continue, but this migh… in vp_legacy_probe()
43 rc = pci_request_region(pci_dev, 0, "virtio-pci-legacy"); in vp_legacy_probe()
47 ldev->ioaddr = pci_iomap(pci_dev, 0, 0); in vp_legacy_probe()
55 ldev->id.vendor = pci_dev->subsystem_vendor; in vp_legacy_probe()
56 ldev->id.device = pci_dev->subsystem_device; in vp_legacy_probe()
60 pci_release_region(pci_dev, 0); in vp_legacy_probe()
71 struct pci_dev *pci_dev = ldev->pci_dev; in vp_legacy_remove() local
73 pci_iounmap(pci_dev, ldev->ioaddr); in vp_legacy_remove()
74 pci_release_region(pci_dev, 0); in vp_legacy_remove()