Lines Matching refs:emu
25 struct emu { struct
45 struct emu *emu; in emu_probe() argument
49 emu = kzalloc(sizeof(struct emu), GFP_KERNEL); in emu_probe()
51 if (!emu || !port) { in emu_probe()
61 emu->io = pci_resource_start(pdev, 0); in emu_probe()
62 emu->size = pci_resource_len(pdev, 0); in emu_probe()
64 emu->dev = pdev; in emu_probe()
65 emu->gameport = port; in emu_probe()
70 port->io = emu->io; in emu_probe()
72 if (!request_region(emu->io, emu->size, "emu10k1-gp")) { in emu_probe()
74 emu->io, emu->io + emu->size - 1); in emu_probe()
79 pci_set_drvdata(pdev, emu); in emu_probe()
89 kfree(emu); in emu_probe()
95 struct emu *emu = pci_get_drvdata(pdev); in emu_remove() local
97 gameport_unregister_port(emu->gameport); in emu_remove()
98 release_region(emu->io, emu->size); in emu_remove()
99 kfree(emu); in emu_remove()