Lines Matching full:gp
67 struct fm801_gp *gp; in fm801_gp_probe() local
71 gp = kzalloc(sizeof(*gp), GFP_KERNEL); in fm801_gp_probe()
73 if (!gp || !port) { in fm801_gp_probe()
74 printk(KERN_ERR "fm801-gp: Memory allocation failed\n"); in fm801_gp_probe()
92 gp->gameport = port; in fm801_gp_probe()
93 gp->res_port = request_region(port->io, 0x10, "FM801 GP"); in fm801_gp_probe()
94 if (!gp->res_port) { in fm801_gp_probe()
95 printk(KERN_DEBUG "fm801-gp: unable to grab region 0x%x-0x%x\n", in fm801_gp_probe()
101 pci_set_drvdata(pci, gp); in fm801_gp_probe()
112 kfree(gp); in fm801_gp_probe()
118 struct fm801_gp *gp = pci_get_drvdata(pci); in fm801_gp_remove() local
120 gameport_unregister_port(gp->gameport); in fm801_gp_remove()
121 release_resource(gp->res_port); in fm801_gp_remove()
122 kfree(gp); in fm801_gp_remove()