Lines Matching refs:pdev
35 static int xilly_probe(struct pci_dev *pdev,
41 endpoint = xillybus_init_endpoint(&pdev->dev);
46 pci_set_drvdata(pdev, endpoint);
50 rc = pcim_enable_device(pdev);
59 pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S);
61 if (!(pci_resource_flags(pdev, 0) & IORESOURCE_MEM)) {
67 rc = pcim_iomap_regions(pdev, 0x01, xillyname);
74 endpoint->registers = pcim_iomap_table(pdev)[0];
76 pci_set_master(pdev);
79 if (pci_enable_msi(pdev)) {
84 rc = devm_request_irq(&pdev->dev, pdev->irq, xillybus_isr, 0,
99 if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(32))) {
101 } else if (!dma_set_mask(&pdev->dev, DMA_BIT_MASK(64))) {
111 static void xilly_remove(struct pci_dev *pdev)
113 struct xilly_endpoint *endpoint = pci_get_drvdata(pdev);