Lines Matching defs:gameport
22 #include <linux/gameport.h>
3060 * gameport interface
3065 static unsigned char snd_trident_gameport_read(struct gameport *gameport)
3067 struct snd_trident *chip = gameport_get_port_data(gameport);
3074 static void snd_trident_gameport_trigger(struct gameport *gameport)
3076 struct snd_trident *chip = gameport_get_port_data(gameport);
3083 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
3085 struct snd_trident *chip = gameport_get_port_data(gameport);
3101 static int snd_trident_gameport_open(struct gameport *gameport, int mode)
3103 struct snd_trident *chip = gameport_get_port_data(gameport);
3123 struct gameport *gp;
3125 chip->gameport = gp = gameport_allocate_port();
3128 "cannot allocate memory for gameport\n");
3150 if (chip->gameport) {
3151 gameport_unregister_port(chip->gameport);
3152 chip->gameport = NULL;