Lines Matching refs:pdev
58 pci_dma_sync_single_for_cpu(ep->pdev, in xilly_dma_sync_single_for_cpu_pci()
69 pci_dma_sync_single_for_device(ep->pdev, in xilly_dma_sync_single_for_device_pci()
109 addr = pci_map_single(ep->pdev, ptr, size, pci_direction); in xilly_map_single_pci()
111 if (pci_dma_mapping_error(ep->pdev, addr)) { in xilly_map_single_pci()
116 this->device = ep->pdev; in xilly_map_single_pci()
125 pci_unmap_single(ep->pdev, addr, size, pci_direction); in xilly_map_single_pci()
140 static int xilly_probe(struct pci_dev *pdev, in xilly_probe() argument
146 endpoint = xillybus_init_endpoint(pdev, &pdev->dev, &pci_hw); in xilly_probe()
151 pci_set_drvdata(pdev, endpoint); in xilly_probe()
153 rc = pcim_enable_device(pdev); in xilly_probe()
162 pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S); in xilly_probe()
164 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) { in xilly_probe()
170 rc = pcim_iomap_regions(pdev, 0x01, xillyname); in xilly_probe()
177 endpoint->registers = pcim_iomap_table(pdev)[0]; in xilly_probe()
179 pci_set_master(pdev); in xilly_probe()
182 if (pci_enable_msi(pdev)) { in xilly_probe()
187 rc = devm_request_irq(&pdev->dev, pdev->irq, xillybus_isr, 0, in xilly_probe()
202 if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32))) { in xilly_probe()
204 } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64))) { in xilly_probe()
214 static void xilly_remove(struct pci_dev *pdev) in xilly_remove() argument
216 struct xilly_endpoint *endpoint = pci_get_drvdata(pdev); in xilly_remove()