Lines Matching defs:gameport
22 #include <linux/gameport.h>
3092 * gameport interface
3097 static unsigned char snd_trident_gameport_read(struct gameport *gameport)
3099 struct snd_trident *chip = gameport_get_port_data(gameport);
3106 static void snd_trident_gameport_trigger(struct gameport *gameport)
3108 struct snd_trident *chip = gameport_get_port_data(gameport);
3115 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
3117 struct snd_trident *chip = gameport_get_port_data(gameport);
3133 static int snd_trident_gameport_open(struct gameport *gameport, int mode)
3135 struct snd_trident *chip = gameport_get_port_data(gameport);
3155 struct gameport *gp;
3157 chip->gameport = gp = gameport_allocate_port();
3160 "cannot allocate memory for gameport\n");
3182 if (chip->gameport) {
3183 gameport_unregister_port(chip->gameport);
3184 chip->gameport = NULL;