Lines Matching refs:io_port
72 int io_port = joystick_port[dev]; in snd_ymfpci_create_gameport() local
74 if (!io_port) in snd_ymfpci_create_gameport()
79 if (io_port == 1) { in snd_ymfpci_create_gameport()
81 if (!(io_port = pci_resource_start(chip->pci, 2))) in snd_ymfpci_create_gameport()
85 if (io_port == 1) { in snd_ymfpci_create_gameport()
87 for (io_port = 0x201; io_port <= 0x205; io_port++) { in snd_ymfpci_create_gameport()
88 if (io_port == 0x203) in snd_ymfpci_create_gameport()
90 if ((r = request_region(io_port, 1, "YMFPCI gameport")) != NULL) in snd_ymfpci_create_gameport()
99 switch (io_port) { in snd_ymfpci_create_gameport()
106 "invalid joystick port %#x", io_port); in snd_ymfpci_create_gameport()
111 if (!r && !(r = request_region(io_port, 1, "YMFPCI gameport"))) { in snd_ymfpci_create_gameport()
113 "joystick port %#x is in use.\n", io_port); in snd_ymfpci_create_gameport()
129 gp->io = io_port; in snd_ymfpci_create_gameport()
133 pci_write_config_word(chip->pci, PCIR_DSXG_JOYBASE, io_port); in snd_ymfpci_create_gameport()