Lines Matching refs:gdev
44 struct uio_pci_generic_dev *gdev = to_uio_pci_generic_dev(info); in release() local
54 pci_clear_master(gdev->pdev); in release()
62 struct uio_pci_generic_dev *gdev = to_uio_pci_generic_dev(info); in irqhandler() local
64 if (!pci_check_and_mask_intx(gdev->pdev)) in irqhandler()
74 struct uio_pci_generic_dev *gdev; in probe() local
89 gdev = kzalloc(sizeof(struct uio_pci_generic_dev), GFP_KERNEL); in probe()
90 if (!gdev) { in probe()
95 gdev->info.name = "uio_pci_generic"; in probe()
96 gdev->info.version = DRIVER_VERSION; in probe()
97 gdev->info.release = release; in probe()
98 gdev->pdev = pdev; in probe()
100 gdev->info.irq = pdev->irq; in probe()
101 gdev->info.irq_flags = IRQF_SHARED; in probe()
102 gdev->info.handler = irqhandler; in probe()
108 err = uio_register_device(&pdev->dev, &gdev->info); in probe()
111 pci_set_drvdata(pdev, gdev); in probe()
115 kfree(gdev); in probe()
124 struct uio_pci_generic_dev *gdev = pci_get_drvdata(pdev); in remove() local
126 uio_unregister_device(&gdev->info); in remove()
128 kfree(gdev); in remove()