Lines Matching refs:io_port
66 int io_port = joystick_port[dev]; in snd_ymfpci_create_gameport() local
68 if (!io_port) in snd_ymfpci_create_gameport()
73 if (io_port == 1) { in snd_ymfpci_create_gameport()
75 io_port = pci_resource_start(chip->pci, 2); in snd_ymfpci_create_gameport()
76 if (!io_port) in snd_ymfpci_create_gameport()
80 if (io_port == 1) { in snd_ymfpci_create_gameport()
82 for (io_port = 0x201; io_port <= 0x205; io_port++) { in snd_ymfpci_create_gameport()
83 if (io_port == 0x203) in snd_ymfpci_create_gameport()
85 r = request_region(io_port, 1, "YMFPCI gameport"); in snd_ymfpci_create_gameport()
95 switch (io_port) { in snd_ymfpci_create_gameport()
101 if (io_port > 0) in snd_ymfpci_create_gameport()
104 chip->card->shortname, (unsigned int)io_port); in snd_ymfpci_create_gameport()
110 r = devm_request_region(&chip->pci->dev, io_port, 1, in snd_ymfpci_create_gameport()
114 "joystick port %#x is in use.\n", io_port); in snd_ymfpci_create_gameport()
130 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()