Lines Matching refs:pci_dev

47 #define CP500_IS_CP035(dev)	((dev)->pci_dev->device == PCI_DEVICE_ID_KEBA_CP035)
48 #define CP500_IS_CP505(dev) ((dev)->pci_dev->device == PCI_DEVICE_ID_KEBA_CP505)
49 #define CP500_IS_CP520(dev) ((dev)->pci_dev->device == PCI_DEVICE_ID_KEBA_CP520)
80 struct pci_dev *pci_dev; member
241 cp500->i2c->auxdev.dev.parent = &cp500->pci_dev->dev; in cp500_register_i2c()
274 struct device *dev = &cp500->pci_dev->dev; in cp500_register_auxiliary_devs()
304 dev_err(&cp500->pci_dev->dev, "AXI response error at 0x%08x\n", in cp500_axi_handler()
316 axi_irq = pci_irq_vector(cp500->pci_dev, CP500_AXI_MSIX); in cp500_enable()
320 dev_err(&cp500->pci_dev->dev, in cp500_enable()
334 axi_irq = pci_irq_vector(cp500->pci_dev, CP500_AXI_MSIX); in cp500_disable()
339 static int cp500_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) in cp500_probe() argument
341 struct device *dev = &pci_dev->dev; in cp500_probe()
351 cp500->pci_dev = pci_dev; in cp500_probe()
352 cp500->sys_hwbase = pci_resource_start(pci_dev, CP500_SYS_BAR); in cp500_probe()
353 cp500->ecm_hwbase = pci_resource_start(pci_dev, CP500_ECM_BAR); in cp500_probe()
366 ret = pci_enable_device(pci_dev); in cp500_probe()
369 pci_set_master(pci_dev); in cp500_probe()
371 startup = *pci_resource_n(pci_dev, CP500_SYS_BAR); in cp500_probe()
373 cp500->system_startup_addr = devm_ioremap_resource(&pci_dev->dev, in cp500_probe()
380 cp500->msix_num = pci_alloc_irq_vectors(pci_dev, CP500_NUM_MSIX_NO_MMI, in cp500_probe()
383 dev_err(&pci_dev->dev, in cp500_probe()
395 dev_info(&pci_dev->dev, "FPGA version %s", buf); in cp500_probe()
397 pci_set_drvdata(pci_dev, cp500); in cp500_probe()
409 pci_free_irq_vectors(pci_dev); in cp500_probe()
411 pci_clear_master(pci_dev); in cp500_probe()
412 pci_disable_device(pci_dev); in cp500_probe()
417 static void cp500_remove(struct pci_dev *pci_dev) in cp500_remove() argument
419 struct cp500 *cp500 = pci_get_drvdata(pci_dev); in cp500_remove()
425 pci_set_drvdata(pci_dev, 0); in cp500_remove()
427 pci_free_irq_vectors(pci_dev); in cp500_remove()
429 pci_clear_master(pci_dev); in cp500_remove()
430 pci_disable_device(pci_dev); in cp500_remove()