Lines Matching refs:io_port
87 int io_port = joystick_port[dev];
89 if (!io_port)
94 if (io_port == 1) {
96 if (!(io_port = pci_resource_start(chip->pci, 2)))
100 if (io_port == 1) {
102 for (io_port = 0x201; io_port <= 0x205; io_port++) {
103 if (io_port == 0x203)
105 if ((r = request_region(io_port, 1, "YMFPCI gameport")) != NULL)
113 switch (io_port) {
119 printk(KERN_ERR "ymfpci: invalid joystick port %#x", io_port);
124 if (!r && !(r = request_region(io_port, 1, "YMFPCI gameport"))) {
125 printk(KERN_ERR "ymfpci: joystick port %#x is in use.\n", io_port);
140 gp->io = io_port;
144 pci_write_config_word(chip->pci, PCIR_DSXG_JOYBASE, io_port);