Lines Matching refs:ns558
31 struct ns558 { struct
52 struct ns558 *ns558; in ns558_isa_probe() argument
126 ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL); in ns558_isa_probe()
128 if (!ns558 || !port) { in ns558_isa_probe()
131 kfree(ns558); in ns558_isa_probe()
136 ns558->io = io; in ns558_isa_probe()
137 ns558->size = 1 << i; in ns558_isa_probe()
138 ns558->gameport = port; in ns558_isa_probe()
146 list_add(&ns558->node, &ns558_list); in ns558_isa_probe()
184 struct ns558 *ns558; in ns558_pnp_probe() local
198 ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL); in ns558_pnp_probe()
200 if (!ns558 || !port) { in ns558_pnp_probe()
202 kfree(ns558); in ns558_pnp_probe()
207 ns558->io = ioport; in ns558_pnp_probe()
208 ns558->size = iolen; in ns558_pnp_probe()
209 ns558->dev = dev; in ns558_pnp_probe()
210 ns558->gameport = port; in ns558_pnp_probe()
219 list_add_tail(&ns558->node, &ns558_list); in ns558_pnp_probe()
258 struct ns558 *ns558, *safe; in ns558_exit() local
260 list_for_each_entry_safe(ns558, safe, &ns558_list, node) { in ns558_exit()
261 gameport_unregister_port(ns558->gameport); in ns558_exit()
262 release_region(ns558->io & ~(ns558->size - 1), ns558->size); in ns558_exit()
263 kfree(ns558); in ns558_exit()