Lines Matching defs:gameport
36 #include <linux/gameport.h>
3056 * gameport interface
3061 static unsigned char snd_trident_gameport_read(struct gameport *gameport)
3063 struct snd_trident *chip = gameport_get_port_data(gameport);
3070 static void snd_trident_gameport_trigger(struct gameport *gameport)
3072 struct snd_trident *chip = gameport_get_port_data(gameport);
3079 static int snd_trident_gameport_cooked_read(struct gameport *gameport, int *axes, int *buttons)
3081 struct snd_trident *chip = gameport_get_port_data(gameport);
3097 static int snd_trident_gameport_open(struct gameport *gameport, int mode)
3099 struct snd_trident *chip = gameport_get_port_data(gameport);
3119 struct gameport *gp;
3121 chip->gameport = gp = gameport_allocate_port();
3123 printk(KERN_ERR "trident: cannot allocate memory for gameport\n");
3145 if (chip->gameport) {
3146 gameport_unregister_port(chip->gameport);
3147 chip->gameport = NULL;