Lines Matching defs:port
8 * NS558 based standard IBM game port driver for Linux
50 struct gameport *port;
60 * We must not be able to write arbitrary values to the port.
95 * And now find the number of mirrors of the port.
124 port = gameport_allocate_port();
125 if (!ns558 || !port) {
129 gameport_free_port(port);
135 ns558->gameport = port;
137 port->io = io;
138 gameport_set_name(port, "NS558 ISA Gameport");
139 gameport_set_phys(port, "isa%04x/gameport0", io & (-1 << i));
141 gameport_register_port(port);
182 struct gameport *port;
196 port = gameport_allocate_port();
197 if (!ns558 || !port) {
200 gameport_free_port(port);
207 ns558->gameport = port;
209 gameport_set_name(port, "NS558 PnP Gameport");
210 gameport_set_phys(port, "pnp%s/gameport0", dev_name(&dev->dev));
211 port->dev.parent = &dev->dev;
212 port->io = ioport;
214 gameport_register_port(port);