Lines Matching refs:ns558
47 struct ns558 {
68 struct ns558 *ns558;
75 if (!request_region(io, 1, "ns558-isa"))
121 if (!request_region(io & (-1 << i), (1 << i), "ns558-isa"))
138 if (!request_region(io & (-1 << i), (1 << i), "ns558-isa"))
142 ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL);
144 if (!ns558 || !port) {
145 printk(KERN_ERR "ns558: Memory allocation failed.\n");
147 kfree(ns558);
152 ns558->io = io;
153 ns558->size = 1 << i;
154 ns558->gameport = port;
162 list_add(&ns558->node, &ns558_list);
200 struct ns558 *ns558;
204 printk(KERN_WARNING "ns558: No i/o ports on a gameport? Weird\n");
211 if (!request_region(ioport, iolen, "ns558-pnp"))
214 ns558 = kzalloc(sizeof(struct ns558), GFP_KERNEL);
216 if (!ns558 || !port) {
217 printk(KERN_ERR "ns558: Memory allocation failed\n");
218 kfree(ns558);
223 ns558->io = ioport;
224 ns558->size = iolen;
225 ns558->dev = dev;
226 ns558->gameport = port;
235 list_add_tail(&ns558->node, &ns558_list);
240 .name = "ns558",
274 struct ns558 *ns558, *safe;
276 list_for_each_entry_safe(ns558, safe, &ns558_list, node) {
277 gameport_unregister_port(ns558->gameport);
278 release_region(ns558->io & ~(ns558->size - 1), ns558->size);
279 kfree(ns558);