Lines Matching refs:port
8 * NS558 based standard IBM game port driver for Linux
53 struct gameport *port;
63 * We must not be able to write arbitrary values to the port.
98 * And now find the number of mirrors of the port.
127 port = gameport_allocate_port();
128 if (!ns558 || !port) {
132 gameport_free_port(port);
138 ns558->gameport = port;
140 port->io = io;
141 gameport_set_name(port, "NS558 ISA Gameport");
142 gameport_set_phys(port, "isa%04x/gameport0", io & (-1 << i));
144 gameport_register_port(port);
185 struct gameport *port;
199 port = gameport_allocate_port();
200 if (!ns558 || !port) {
203 gameport_free_port(port);
210 ns558->gameport = port;
212 gameport_set_name(port, "NS558 PnP Gameport");
213 gameport_set_phys(port, "pnp%s/gameport0", dev_name(&dev->dev));
214 port->dev.parent = &dev->dev;
215 port->io = ioport;
217 gameport_register_port(port);