Home
last modified time | relevance | path

Searched refs:gameport (Results 1 – 19 of 19) sorted by relevance

/sound/pci/au88x0/
Dau88x0_game.c43 static unsigned char vortex_game_read(struct gameport *gameport) in vortex_game_read() argument
45 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_read()
49 static void vortex_game_trigger(struct gameport *gameport) in vortex_game_trigger() argument
51 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_trigger()
56 vortex_game_cooked_read(struct gameport *gameport, int *axes, int *buttons) in vortex_game_cooked_read() argument
58 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_cooked_read()
72 static int vortex_game_open(struct gameport *gameport, int mode) in vortex_game_open() argument
74 vortex_t *vortex = gameport_get_port_data(gameport); in vortex_game_open()
97 struct gameport *gp; in vortex_gameport_register()
99 vortex->gameport = gp = gameport_allocate_port(); in vortex_gameport_register()
[all …]
Dau88x0.h184 struct gameport *gameport; member
/sound/isa/
Dcmi8328.c46 static bool gameport[CMI8328_MAX] = {[0 ... (CMI8328_MAX-1)] = true}; variable
68 module_param_array(gameport, bool, NULL, 0444);
69 MODULE_PARM_DESC(gameport, "Enable gameport.");
79 struct gameport *gameport; member
374 if (!gameport[ndev]) in snd_cmi8328_probe()
381 struct gameport *gp = cmi->gameport = gameport_allocate_port(); in snd_cmi8328_probe()
382 if (!cmi->gameport) in snd_cmi8328_probe()
410 if (cmi->gameport) { in snd_cmi8328_remove()
411 struct resource *res = gameport_get_port_data(cmi->gameport); in snd_cmi8328_remove()
412 gameport_unregister_port(cmi->gameport); in snd_cmi8328_remove()
/sound/pci/ymfpci/
Dymfpci.c85 struct gameport *gp; in snd_ymfpci_create_gameport()
129 chip->gameport = gp = gameport_allocate_port(); in snd_ymfpci_create_gameport()
149 gameport_register_port(chip->gameport); in snd_ymfpci_create_gameport()
156 if (chip->gameport) { in snd_ymfpci_free_gameport()
157 struct resource *r = gameport_get_port_data(chip->gameport); in snd_ymfpci_free_gameport()
159 gameport_unregister_port(chip->gameport); in snd_ymfpci_free_gameport()
160 chip->gameport = NULL; in snd_ymfpci_free_gameport()
Dymfpci.h299 struct gameport *gameport; member
/sound/pci/
Dals4000.c115 struct gameport *gameport; member
775 struct gameport *gp; in snd_als4000_create_gameport()
798 acard->gameport = gp = gameport_allocate_port(); in snd_als4000_create_gameport()
814 gameport_register_port(acard->gameport); in snd_als4000_create_gameport()
821 if (acard->gameport) { in snd_als4000_free_gameport()
822 struct resource *r = gameport_get_port_data(acard->gameport); in snd_als4000_free_gameport()
824 gameport_unregister_port(acard->gameport); in snd_als4000_free_gameport()
825 acard->gameport = NULL; in snd_als4000_free_gameport()
1031 if (acard->gameport) in snd_als4000_resume()
Dcs4281.c487 struct gameport *gameport; member
1200 static void snd_cs4281_gameport_trigger(struct gameport *gameport) in snd_cs4281_gameport_trigger() argument
1202 struct cs4281 *chip = gameport_get_port_data(gameport); in snd_cs4281_gameport_trigger()
1209 static unsigned char snd_cs4281_gameport_read(struct gameport *gameport) in snd_cs4281_gameport_read() argument
1211 struct cs4281 *chip = gameport_get_port_data(gameport); in snd_cs4281_gameport_read()
1219 static int snd_cs4281_gameport_cooked_read(struct gameport *gameport, in snd_cs4281_gameport_cooked_read() argument
1222 struct cs4281 *chip = gameport_get_port_data(gameport); in snd_cs4281_gameport_cooked_read()
1247 static int snd_cs4281_gameport_open(struct gameport *gameport, int mode) in snd_cs4281_gameport_open() argument
1264 struct gameport *gp; in snd_cs4281_create_gameport()
1266 chip->gameport = gp = gameport_allocate_port(); in snd_cs4281_create_gameport()
[all …]
Dazt3328.c355 struct gameport *gameport; member
1802 snd_azf3328_gameport_open(struct gameport *gameport, int mode) in snd_azf3328_gameport_open() argument
1804 struct snd_azf3328 *chip = gameport_get_port_data(gameport); in snd_azf3328_gameport_open()
1826 snd_azf3328_gameport_close(struct gameport *gameport) in snd_azf3328_gameport_close() argument
1828 struct snd_azf3328 *chip = gameport_get_port_data(gameport); in snd_azf3328_gameport_close()
1837 snd_azf3328_gameport_cooked_read(struct gameport *gameport, in snd_azf3328_gameport_cooked_read() argument
1842 struct snd_azf3328 *chip = gameport_get_port_data(gameport); in snd_azf3328_gameport_cooked_read()
1905 struct gameport *gp; in snd_azf3328_gameport()
1907 chip->gameport = gp = gameport_allocate_port(); in snd_azf3328_gameport()
1931 gameport_register_port(chip->gameport); in snd_azf3328_gameport()
[all …]
Dsonicvibes.c241 struct gameport *gameport; member
1197 struct gameport *gp; in snd_sonicvibes_create_gameport()
1199 sonic->gameport = gp = gameport_allocate_port(); in snd_sonicvibes_create_gameport()
1219 if (sonic->gameport) { in snd_sonicvibes_free_gameport()
1220 gameport_unregister_port(sonic->gameport); in snd_sonicvibes_free_gameport()
1221 sonic->gameport = NULL; in snd_sonicvibes_free_gameport()
Des1938.c237 struct gameport *gameport; member
1544 struct gameport *gp; in snd_es1938_create_gameport()
1546 chip->gameport = gp = gameport_allocate_port(); in snd_es1938_create_gameport()
1564 if (chip->gameport) { in snd_es1938_free_gameport()
1565 gameport_unregister_port(chip->gameport); in snd_es1938_free_gameport()
1566 chip->gameport = NULL; in snd_es1938_free_gameport()
Dvia82xx.c403 struct gameport *gameport; member
1935 struct gameport *gp; in snd_via686_create_gameport()
1948 chip->gameport = gp = gameport_allocate_port(); in snd_via686_create_gameport()
1965 gameport_register_port(chip->gameport); in snd_via686_create_gameport()
1972 if (chip->gameport) { in snd_via686_free_gameport()
1973 struct resource *r = gameport_get_port_data(chip->gameport); in snd_via686_free_gameport()
1975 gameport_unregister_port(chip->gameport); in snd_via686_free_gameport()
1976 chip->gameport = NULL; in snd_via686_free_gameport()
Dens1370.c443 struct gameport *gameport; member
1824 struct gameport *gp; in snd_ensoniq_create_gameport()
1852 ensoniq->gameport = gp = gameport_allocate_port(); in snd_ensoniq_create_gameport()
1871 gameport_register_port(ensoniq->gameport); in snd_ensoniq_create_gameport()
1878 if (ensoniq->gameport) { in snd_ensoniq_free_gameport()
1879 int port = ensoniq->gameport->io; in snd_ensoniq_free_gameport()
1881 gameport_unregister_port(ensoniq->gameport); in snd_ensoniq_free_gameport()
1882 ensoniq->gameport = NULL; in snd_ensoniq_free_gameport()
Des1968.c552 struct gameport *gameport; member
2470 struct gameport *gp; in snd_es1968_create_gameport()
2481 chip->gameport = gp = gameport_allocate_port(); in snd_es1968_create_gameport()
2504 if (chip->gameport) { in snd_es1968_free_gameport()
2505 struct resource *r = gameport_get_port_data(chip->gameport); in snd_es1968_free_gameport()
2507 gameport_unregister_port(chip->gameport); in snd_es1968_free_gameport()
2508 chip->gameport = NULL; in snd_es1968_free_gameport()
Dcmipci.c502 struct gameport *gameport; member
2872 struct gameport *gp; in snd_cmipci_create_gameport()
2896 cm->gameport = gp = gameport_allocate_port(); in snd_cmipci_create_gameport()
2910 gameport_register_port(cm->gameport); in snd_cmipci_create_gameport()
2917 if (cm->gameport) { in snd_cmipci_free_gameport()
2918 struct resource *r = gameport_get_port_data(cm->gameport); in snd_cmipci_free_gameport()
2920 gameport_unregister_port(cm->gameport); in snd_cmipci_free_gameport()
2921 cm->gameport = NULL; in snd_cmipci_free_gameport()
/sound/pci/trident/
Dtrident.h412 struct gameport *gameport; member
Dtrident_main.c3138 static unsigned char snd_trident_gameport_read(struct gameport *gameport) in snd_trident_gameport_read() argument
3140 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_read()
3147 static void snd_trident_gameport_trigger(struct gameport *gameport) in snd_trident_gameport_trigger() argument
3149 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_trigger()
3156 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in snd_trident_gameport_cooked_read() argument
3158 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_cooked_read()
3174 static int snd_trident_gameport_open(struct gameport *gameport, int mode) in snd_trident_gameport_open() argument
3176 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_open()
3196 struct gameport *gp; in snd_trident_create_gameport()
3198 chip->gameport = gp = gameport_allocate_port(); in snd_trident_create_gameport()
[all …]
/sound/pci/riptide/
Driptide.c2034 struct gameport *gameport; in snd_riptide_joystick_probe() local
2046 gameport = gameport_allocate_port(); in snd_riptide_joystick_probe()
2047 if (!gameport) in snd_riptide_joystick_probe()
2053 gameport_free_port(gameport); in snd_riptide_joystick_probe()
2057 gameport->io = joystick_port[dev]; in snd_riptide_joystick_probe()
2058 gameport_register_port(gameport); in snd_riptide_joystick_probe()
2059 pci_set_drvdata(pci, gameport); in snd_riptide_joystick_probe()
2065 struct gameport *gameport = pci_get_drvdata(pci); in snd_riptide_joystick_remove() local
2066 if (gameport) { in snd_riptide_joystick_remove()
2067 release_region(gameport->io, 8); in snd_riptide_joystick_remove()
[all …]
/sound/pci/cs46xx/
Dcs46xx_lib.c2564 static void snd_cs46xx_gameport_trigger(struct gameport *gameport) in snd_cs46xx_gameport_trigger() argument
2566 struct snd_cs46xx *chip = gameport_get_port_data(gameport); in snd_cs46xx_gameport_trigger()
2573 static unsigned char snd_cs46xx_gameport_read(struct gameport *gameport) in snd_cs46xx_gameport_read() argument
2575 struct snd_cs46xx *chip = gameport_get_port_data(gameport); in snd_cs46xx_gameport_read()
2582 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in snd_cs46xx_gameport_cooked_read() argument
2584 struct snd_cs46xx *chip = gameport_get_port_data(gameport); in snd_cs46xx_gameport_cooked_read()
2606 static int snd_cs46xx_gameport_open(struct gameport *gameport, int mode) in snd_cs46xx_gameport_open() argument
2621 struct gameport *gp; in snd_cs46xx_gameport()
2623 chip->gameport = gp = gameport_allocate_port(); in snd_cs46xx_gameport()
2649 if (chip->gameport) { in snd_cs46xx_remove_gameport()
[all …]
Dcs46xx.h1709 struct gameport *gameport; member