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.h182 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
375 if (!gameport[ndev]) in snd_cmi8328_probe()
382 struct gameport *gp = cmi->gameport = gameport_allocate_port(); in snd_cmi8328_probe()
383 if (!cmi->gameport) in snd_cmi8328_probe()
411 if (cmi->gameport) { in snd_cmi8328_remove()
412 struct resource *res = gameport_get_port_data(cmi->gameport); in snd_cmi8328_remove()
413 gameport_unregister_port(cmi->gameport); in snd_cmi8328_remove()
/sound/pci/ymfpci/
Dymfpci.c85 struct gameport *gp; in snd_ymfpci_create_gameport()
132 chip->gameport = gp = gameport_allocate_port(); in snd_ymfpci_create_gameport()
153 gameport_register_port(chip->gameport); in snd_ymfpci_create_gameport()
160 if (chip->gameport) { in snd_ymfpci_free_gameport()
161 struct resource *r = gameport_get_port_data(chip->gameport); in snd_ymfpci_free_gameport()
163 gameport_unregister_port(chip->gameport); in snd_ymfpci_free_gameport()
164 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()
1013 if (acard->gameport) in snd_als4000_resume()
Dcs4281.c487 struct gameport *gameport; member
1199 static void snd_cs4281_gameport_trigger(struct gameport *gameport) in snd_cs4281_gameport_trigger() argument
1201 struct cs4281 *chip = gameport_get_port_data(gameport); in snd_cs4281_gameport_trigger()
1208 static unsigned char snd_cs4281_gameport_read(struct gameport *gameport) in snd_cs4281_gameport_read() argument
1210 struct cs4281 *chip = gameport_get_port_data(gameport); in snd_cs4281_gameport_read()
1218 static int snd_cs4281_gameport_cooked_read(struct gameport *gameport, in snd_cs4281_gameport_cooked_read() argument
1221 struct cs4281 *chip = gameport_get_port_data(gameport); in snd_cs4281_gameport_cooked_read()
1246 static int snd_cs4281_gameport_open(struct gameport *gameport, int mode) in snd_cs4281_gameport_open() argument
1263 struct gameport *gp; in snd_cs4281_create_gameport()
1265 chip->gameport = gp = gameport_allocate_port(); in snd_cs4281_create_gameport()
[all …]
Dazt3328.c300 struct gameport *gameport; member
1723 snd_azf3328_gameport_open(struct gameport *gameport, int mode) in snd_azf3328_gameport_open() argument
1725 struct snd_azf3328 *chip = gameport_get_port_data(gameport); in snd_azf3328_gameport_open()
1747 snd_azf3328_gameport_close(struct gameport *gameport) in snd_azf3328_gameport_close() argument
1749 struct snd_azf3328 *chip = gameport_get_port_data(gameport); in snd_azf3328_gameport_close()
1758 snd_azf3328_gameport_cooked_read(struct gameport *gameport, in snd_azf3328_gameport_cooked_read() argument
1763 struct snd_azf3328 *chip = gameport_get_port_data(gameport); in snd_azf3328_gameport_cooked_read()
1825 struct gameport *gp; in snd_azf3328_gameport()
1827 chip->gameport = gp = gameport_allocate_port(); in snd_azf3328_gameport()
1851 gameport_register_port(chip->gameport); in snd_azf3328_gameport()
[all …]
Dsonicvibes.c240 struct gameport *gameport; member
1190 struct gameport *gp; in snd_sonicvibes_create_gameport()
1192 sonic->gameport = gp = gameport_allocate_port(); in snd_sonicvibes_create_gameport()
1213 if (sonic->gameport) { in snd_sonicvibes_free_gameport()
1214 gameport_unregister_port(sonic->gameport); in snd_sonicvibes_free_gameport()
1215 sonic->gameport = NULL; in snd_sonicvibes_free_gameport()
Des1938.c236 struct gameport *gameport; member
1513 struct gameport *gp; in snd_es1938_create_gameport()
1515 chip->gameport = gp = gameport_allocate_port(); in snd_es1938_create_gameport()
1534 if (chip->gameport) { in snd_es1938_free_gameport()
1535 gameport_unregister_port(chip->gameport); in snd_es1938_free_gameport()
1536 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()
1966 gameport_register_port(chip->gameport); in snd_via686_create_gameport()
1973 if (chip->gameport) { in snd_via686_free_gameport()
1974 struct resource *r = gameport_get_port_data(chip->gameport); in snd_via686_free_gameport()
1976 gameport_unregister_port(chip->gameport); in snd_via686_free_gameport()
1977 chip->gameport = NULL; in snd_via686_free_gameport()
Dens1370.c443 struct gameport *gameport; member
1809 struct gameport *gp; in snd_ensoniq_create_gameport()
1839 ensoniq->gameport = gp = gameport_allocate_port(); in snd_ensoniq_create_gameport()
1859 gameport_register_port(ensoniq->gameport); in snd_ensoniq_create_gameport()
1866 if (ensoniq->gameport) { in snd_ensoniq_free_gameport()
1867 int port = ensoniq->gameport->io; in snd_ensoniq_free_gameport()
1869 gameport_unregister_port(ensoniq->gameport); in snd_ensoniq_free_gameport()
1870 ensoniq->gameport = NULL; in snd_ensoniq_free_gameport()
Des1968.c552 struct gameport *gameport; member
2453 struct gameport *gp; in snd_es1968_create_gameport()
2464 chip->gameport = gp = gameport_allocate_port(); in snd_es1968_create_gameport()
2488 if (chip->gameport) { in snd_es1968_free_gameport()
2489 struct resource *r = gameport_get_port_data(chip->gameport); in snd_es1968_free_gameport()
2491 gameport_unregister_port(chip->gameport); in snd_es1968_free_gameport()
2492 chip->gameport = NULL; in snd_es1968_free_gameport()
Dcmipci.c502 struct gameport *gameport; member
2867 struct gameport *gp; in snd_cmipci_create_gameport()
2891 cm->gameport = gp = gameport_allocate_port(); in snd_cmipci_create_gameport()
2905 gameport_register_port(cm->gameport); in snd_cmipci_create_gameport()
2912 if (cm->gameport) { in snd_cmipci_free_gameport()
2913 struct resource *r = gameport_get_port_data(cm->gameport); in snd_cmipci_free_gameport()
2915 gameport_unregister_port(cm->gameport); in snd_cmipci_free_gameport()
2916 cm->gameport = NULL; in snd_cmipci_free_gameport()
/sound/pci/trident/
Dtrident.h412 struct gameport *gameport; member
Dtrident_main.c3125 static unsigned char snd_trident_gameport_read(struct gameport *gameport) in snd_trident_gameport_read() argument
3127 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_read()
3134 static void snd_trident_gameport_trigger(struct gameport *gameport) in snd_trident_gameport_trigger() argument
3136 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_trigger()
3143 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in snd_trident_gameport_cooked_read() argument
3145 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_cooked_read()
3161 static int snd_trident_gameport_open(struct gameport *gameport, int mode) in snd_trident_gameport_open() argument
3163 struct snd_trident *chip = gameport_get_port_data(gameport); in snd_trident_gameport_open()
3183 struct gameport *gp; in snd_trident_create_gameport()
3185 chip->gameport = gp = gameport_allocate_port(); in snd_trident_create_gameport()
[all …]
/sound/pci/riptide/
Driptide.c2013 struct gameport *gameport; in snd_riptide_joystick_probe() local
2029 gameport = gameport_allocate_port(); in snd_riptide_joystick_probe()
2030 if (!gameport) { in snd_riptide_joystick_probe()
2038 gameport_free_port(gameport); in snd_riptide_joystick_probe()
2043 gameport->io = joystick_port[dev]; in snd_riptide_joystick_probe()
2044 gameport_register_port(gameport); in snd_riptide_joystick_probe()
2045 pci_set_drvdata(pci, gameport); in snd_riptide_joystick_probe()
2055 struct gameport *gameport = pci_get_drvdata(pci); in snd_riptide_joystick_remove() local
2056 if (gameport) { in snd_riptide_joystick_remove()
2057 release_region(gameport->io, 8); in snd_riptide_joystick_remove()
[all …]
/sound/pci/cs46xx/
Dcs46xx_lib.c2723 static void snd_cs46xx_gameport_trigger(struct gameport *gameport) in snd_cs46xx_gameport_trigger() argument
2725 struct snd_cs46xx *chip = gameport_get_port_data(gameport); in snd_cs46xx_gameport_trigger()
2732 static unsigned char snd_cs46xx_gameport_read(struct gameport *gameport) in snd_cs46xx_gameport_read() argument
2734 struct snd_cs46xx *chip = gameport_get_port_data(gameport); in snd_cs46xx_gameport_read()
2741 static int snd_cs46xx_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons) in snd_cs46xx_gameport_cooked_read() argument
2743 struct snd_cs46xx *chip = gameport_get_port_data(gameport); in snd_cs46xx_gameport_cooked_read()
2765 static int snd_cs46xx_gameport_open(struct gameport *gameport, int mode) in snd_cs46xx_gameport_open() argument
2780 struct gameport *gp; in snd_cs46xx_gameport()
2782 chip->gameport = gp = gameport_allocate_port(); in snd_cs46xx_gameport()
2809 if (chip->gameport) { in snd_cs46xx_remove_gameport()
[all …]
Dcs46xx.h1709 struct gameport *gameport; member