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