Lines Matching refs:ns558
28 struct ns558 { struct
49 struct ns558 *ns558; in ns558_isa_probe() argument
123 ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL); in ns558_isa_probe()
125 if (!ns558 || !port) { in ns558_isa_probe()
128 kfree(ns558); in ns558_isa_probe()
133 ns558->io = io; in ns558_isa_probe()
134 ns558->size = 1 << i; in ns558_isa_probe()
135 ns558->gameport = port; in ns558_isa_probe()
143 list_add(&ns558->node, &ns558_list); in ns558_isa_probe()
181 struct ns558 *ns558; in ns558_pnp_probe() local
195 ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL); in ns558_pnp_probe()
197 if (!ns558 || !port) { in ns558_pnp_probe()
199 kfree(ns558); in ns558_pnp_probe()
204 ns558->io = ioport; in ns558_pnp_probe()
205 ns558->size = iolen; in ns558_pnp_probe()
206 ns558->dev = dev; in ns558_pnp_probe()
207 ns558->gameport = port; in ns558_pnp_probe()
216 list_add_tail(&ns558->node, &ns558_list); in ns558_pnp_probe()
255 struct ns558 *ns558, *safe; in ns558_exit() local
257 list_for_each_entry_safe(ns558, safe, &ns558_list, node) { in ns558_exit()
258 gameport_unregister_port(ns558->gameport); in ns558_exit()
259 release_region(ns558->io & ~(ns558->size - 1), ns558->size); in ns558_exit()
260 kfree(ns558); in ns558_exit()