Home
last modified time | relevance | path

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

/linux-4.1.27/include/linux/
Dgameport.h20 struct gameport { struct
30 void (*trigger)(struct gameport *); argument
31 unsigned char (*read)(struct gameport *); argument
32 int (*cooked_read)(struct gameport *, int *, int *); argument
33 int (*calibrate)(struct gameport *, int *, int *); argument
34 int (*open)(struct gameport *, int); argument
35 void (*close)(struct gameport *); argument
41 void (*poll_handler)(struct gameport *); argument
43 struct gameport *parent, *child; argument
52 #define to_gameport_port(d) container_of(d, struct gameport, dev) argument
[all …]
/linux-4.1.27/drivers/input/gameport/
Dgameport.c48 static void gameport_add_port(struct gameport *gameport);
50 static void gameport_reconnect_port(struct gameport *gameport);
51 static void gameport_disconnect_port(struct gameport *gameport);
82 static int gameport_measure_speed(struct gameport *gameport) in gameport_measure_speed() argument
88 if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW)) in gameport_measure_speed()
97 gameport_read(gameport); in gameport_measure_speed()
107 gameport_close(gameport); in gameport_measure_speed()
114 static int old_gameport_measure_speed(struct gameport *gameport) in old_gameport_measure_speed() argument
121 if (gameport_open(gameport, NULL, GAMEPORT_MODE_RAW)) in old_gameport_measure_speed()
129 for (t = 0; t < 50; t++) gameport_read(gameport); in old_gameport_measure_speed()
[all …]
Dfm801-gp.c39 struct gameport *gameport; member
44 static int fm801_gp_cooked_read(struct gameport *gameport, int *axes, int *buttons) in fm801_gp_cooked_read() argument
48 w = inw(gameport->io + 2); in fm801_gp_cooked_read()
51 w = inw(gameport->io + 4); in fm801_gp_cooked_read()
53 w = inw(gameport->io + 6); in fm801_gp_cooked_read()
56 w = inw(gameport->io + 8); in fm801_gp_cooked_read()
58 outw(0xff, gameport->io); /* reset */ in fm801_gp_cooked_read()
64 static int fm801_gp_open(struct gameport *gameport, int mode) in fm801_gp_open() argument
83 struct gameport *port; in fm801_gp_probe()
107 gp->gameport = port; in fm801_gp_probe()
[all …]
Dlightning.c54 struct gameport *gameport; member
76 static int l4_cooked_read(struct gameport *gameport, int *axes, int *buttons) in l4_cooked_read() argument
78 struct l4 *l4 = gameport->port_data; in l4_cooked_read()
109 static int l4_open(struct gameport *gameport, int mode) in l4_open() argument
111 struct l4 *l4 = gameport->port_data; in l4_open()
196 static int l4_calibrate(struct gameport *gameport, int *axes, int *max) in l4_calibrate() argument
200 struct l4 *l4 = gameport->port_data; in l4_calibrate()
222 struct gameport *port; in l4_create_ports()
230 if (!(l4->gameport = port = gameport_allocate_port())) { in l4_create_ports()
233 gameport_free_port(l4->gameport); in l4_create_ports()
[all …]
DKconfig7 Gameport support is for the standard 15-pin PC gameport. If you
8 have a joystick, gamepad, gameport card, a soundcard with a gameport
9 or anything else that uses the gameport, say Y or M here and also to
13 S3 SonicVibes, Trident 4DWave, SiS7018, and ALi 5451 gameport
20 module will be called gameport.
25 tristate "Classic ISA and PnP gameport support"
27 Say Y here if you have an ISA or PnP gameport.
43 tristate "SB Live and Audigy gameport support"
47 Audigy card and want to use its gameport.
53 tristate "ForteMedia FM801 gameport support"
[all …]
Demu10k1-gp.c43 struct gameport *gameport; member
62 struct gameport *port; in emu_probe()
81 emu->gameport = port; in emu_probe()
113 gameport_unregister_port(emu->gameport); in emu_remove()
Dns558.c52 struct gameport *gameport; member
69 struct gameport *port; in ns558_isa_probe()
154 ns558->gameport = port; in ns558_isa_probe()
201 struct gameport *port; in ns558_pnp_probe()
226 ns558->gameport = port; in ns558_pnp_probe()
277 gameport_unregister_port(ns558->gameport); in ns558_exit()
DMakefile7 obj-$(CONFIG_GAMEPORT) += gameport.o
/linux-4.1.27/drivers/input/joystick/
Dgf2k.c81 struct gameport *gameport; member
94 static int gf2k_read_packet(struct gameport *gameport, int length, char *data) in gf2k_read_packet() argument
101 t = gameport_time(gameport, GF2K_START); in gf2k_read_packet()
102 p = gameport_time(gameport, GF2K_STROBE); in gf2k_read_packet()
108 gameport_trigger(gameport); in gf2k_read_packet()
109 v = gameport_read(gameport); in gf2k_read_packet()
113 v = gameport_read(gameport); in gf2k_read_packet()
130 static void gf2k_trigger_seq(struct gameport *gameport, short *seq) in gf2k_trigger_seq() argument
140 gameport_trigger(gameport); in gf2k_trigger_seq()
141 t = gameport_time(gameport, GF2K_TIMEOUT * 1000); in gf2k_trigger_seq()
[all …]
Da3d.c55 struct gameport *gameport; member
56 struct gameport *adc;
71 static int a3d_read_packet(struct gameport *gameport, int length, char *data) in a3d_read_packet() argument
79 t = gameport_time(gameport, A3D_MAX_START); in a3d_read_packet()
80 s = gameport_time(gameport, A3D_MAX_STROBE); in a3d_read_packet()
83 gameport_trigger(gameport); in a3d_read_packet()
84 v = gameport_read(gameport); in a3d_read_packet()
88 u = v; v = gameport_read(gameport); in a3d_read_packet()
178 static void a3d_poll(struct gameport *gameport) in a3d_poll() argument
180 struct a3d *a3d = gameport_get_drvdata(gameport); in a3d_poll()
[all …]
Dguillemot.c67 struct gameport *gameport; member
84 static int guillemot_read_packet(struct gameport *gameport, u8 *data) in guillemot_read_packet() argument
95 t = gameport_time(gameport, GUILLEMOT_MAX_START); in guillemot_read_packet()
96 s = gameport_time(gameport, GUILLEMOT_MAX_STROBE); in guillemot_read_packet()
99 gameport_trigger(gameport); in guillemot_read_packet()
100 v = gameport_read(gameport); in guillemot_read_packet()
104 u = v; v = gameport_read(gameport); in guillemot_read_packet()
121 static void guillemot_poll(struct gameport *gameport) in guillemot_poll() argument
123 struct guillemot *guillemot = gameport_get_drvdata(gameport); in guillemot_poll()
130 if (guillemot_read_packet(guillemot->gameport, data) != GUILLEMOT_MAX_LENGTH * 8 || in guillemot_poll()
[all …]
Dgrip_mp.c51 struct gameport *gameport; member
133 static inline int poll_until(u8 onbits, u8 offbits, int u_sec, struct gameport* gp, u8 *data) in poll_until()
163 static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *packet) in mp_io() argument
175 raw_data = gameport_read(gameport); in mp_io()
180 raw_data = gameport_read(gameport); in mp_io()
185 raw_data = gameport_read(gameport); in mp_io()
190 gameport_trigger(gameport); in mp_io()
192 if (!poll_until(0x10, 0, 308, gameport, &raw_data)) in mp_io()
216 if (!poll_until(0, 0x10, 77, gameport, &raw_data)) in mp_io()
224 if (!poll_until(0x10, 0, 77, gameport, &raw_data)) in mp_io()
[all …]
Dinteract.c54 struct gameport *gameport; member
91 static int interact_read_packet(struct gameport *gameport, int length, u32 *data) in interact_read_packet() argument
100 t = gameport_time(gameport, INTERACT_MAX_START); in interact_read_packet()
101 s = gameport_time(gameport, INTERACT_MAX_STROBE); in interact_read_packet()
104 gameport_trigger(gameport); in interact_read_packet()
105 v = gameport_read(gameport); in interact_read_packet()
109 u = v; v = gameport_read(gameport); in interact_read_packet()
128 static void interact_poll(struct gameport *gameport) in interact_poll() argument
130 struct interact *interact = gameport_get_drvdata(gameport); in interact_poll()
137 if (interact_read_packet(interact->gameport, interact->length, data) < interact->length) { in interact_poll()
[all …]
Dcobra.c48 struct gameport *gameport; member
56 static unsigned char cobra_read_packet(struct gameport *gameport, unsigned int *data) in cobra_read_packet() argument
64 int strobe = gameport_time(gameport, COBRA_MAX_STROBE); in cobra_read_packet()
73 u = gameport_read(gameport); in cobra_read_packet()
77 v = gameport_read(gameport); in cobra_read_packet()
110 static void cobra_poll(struct gameport *gameport) in cobra_poll() argument
112 struct cobra *cobra = gameport_get_drvdata(gameport); in cobra_poll()
119 if ((r = cobra_read_packet(gameport, data)) != cobra->exists) { in cobra_poll()
144 gameport_start_polling(cobra->gameport); in cobra_open()
152 gameport_stop_polling(cobra->gameport); in cobra_close()
[all …]
Dgrip.c55 struct gameport *gameport; member
84 static int grip_gpp_read_packet(struct gameport *gameport, int shift, unsigned int *data) in grip_gpp_read_packet() argument
91 int strobe = gameport_time(gameport, GRIP_STROBE_GPP); in grip_gpp_read_packet()
99 v = gameport_read(gameport) >> shift; in grip_gpp_read_packet()
103 u = v; v = (gameport_read(gameport) >> shift) & 3; in grip_gpp_read_packet()
124 static int grip_xt_read_packet(struct gameport *gameport, int shift, unsigned int *data) in grip_xt_read_packet() argument
132 int strobe = gameport_time(gameport, GRIP_STROBE_XT); in grip_xt_read_packet()
140 v = w = (gameport_read(gameport) >> shift) & 3; in grip_xt_read_packet()
144 u = (gameport_read(gameport) >> shift) & 3; in grip_xt_read_packet()
182 static void grip_poll(struct gameport *gameport) in grip_poll() argument
[all …]
Dsidewinder.c115 struct gameport *gameport; member
135 static int sw_read_packet(struct gameport *gameport, unsigned char *buf, int length, int id) in sw_read_packet() argument
142 …timeout = id ? gameport_time(gameport, SW_TIMEOUT * 1000) : 0; /* Set up global timeout for ID pac… in sw_read_packet()
143 kick = id ? gameport_time(gameport, SW_KICK) : 0; /* Set up kick timeout for ID packet */ in sw_read_packet()
144 start = gameport_time(gameport, SW_START); in sw_read_packet()
145 strobe = gameport_time(gameport, SW_STROBE); in sw_read_packet()
152 gameport_trigger(gameport); /* Trigger */ in sw_read_packet()
153 v = gameport_read(gameport); in sw_read_packet()
158 v = gameport_read(gameport); in sw_read_packet()
171 v = gameport_read(gameport); in sw_read_packet()
[all …]
Djoydump.c49 static int joydump_connect(struct gameport *gameport, struct gameport_driver *drv) in joydump_connect() argument
59 printk(KERN_INFO "joydump: | Dumping: %30s |\n", gameport->phys); in joydump_connect()
60 printk(KERN_INFO "joydump: | Speed: %28d kHz |\n", gameport->speed); in joydump_connect()
62 if (gameport_open(gameport, drv, GAMEPORT_MODE_RAW)) { in joydump_connect()
66 if (gameport_open(gameport, drv, GAMEPORT_MODE_COOKED)) { in joydump_connect()
73 gameport_cooked_read(gameport, axes, &buttons); in joydump_connect()
81 timeout = gameport_time(gameport, 10000); /* 10 ms */ in joydump_connect()
94 u = gameport_read(gameport); in joydump_connect()
100 gameport_trigger(gameport); in joydump_connect()
104 dump->data = gameport_read(gameport); in joydump_connect()
[all …]
Dtmdc.c124 struct gameport *gameport; member
146 static int tmdc_read_packet(struct gameport *gameport, unsigned char data[2][TMDC_MAX_LENGTH]) in tmdc_read_packet() argument
152 p = gameport_time(gameport, TMDC_MAX_STROBE); in tmdc_read_packet()
155 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet()
160 gameport_trigger(gameport); in tmdc_read_packet()
162 w = gameport_read(gameport) >> 4; in tmdc_read_packet()
166 w = gameport_read(gameport) >> 4; in tmdc_read_packet()
239 static void tmdc_poll(struct gameport *gameport) in tmdc_poll() argument
242 struct tmdc *tmdc = gameport_get_drvdata(gameport); in tmdc_poll()
248 if ((r = tmdc_read_packet(tmdc->gameport, data)) != tmdc->exists) in tmdc_poll()
[all …]
Danalog.c122 struct gameport *gameport; member
252 struct gameport *gameport = port->gameport; in analog_cooked_read() local
263 gameport_trigger(gameport); in analog_cooked_read()
276 this = gameport_read(gameport) & port->mask; in analog_cooked_read()
304 int strobe = gameport_time(port->gameport, ANALOG_SAITEK_TIME); in analog_button_read()
306 u = gameport_read(port->gameport); in analog_button_read()
320 gameport_trigger(port->gameport); in analog_button_read()
321 while (((u = gameport_read(port->gameport)) & port->mask) && t) t--; in analog_button_read()
332 static void analog_poll(struct gameport *gameport) in analog_poll() argument
334 struct analog_port *port = gameport_get_drvdata(gameport); in analog_poll()
[all …]
Dadi.c128 struct gameport *gameport; member
141 struct gameport *gameport = port->gameport; in adi_read_packet() local
148 t[i] = gameport_time(gameport, ADI_MAX_START); in adi_read_packet()
154 gameport_trigger(gameport); in adi_read_packet()
155 v = z = gameport_read(gameport); in adi_read_packet()
159 w = u ^ (v = x = gameport_read(gameport)); in adi_read_packet()
165 t[i] = gameport_time(gameport, ADI_MAX_STROBE); in adi_read_packet()
278 static void adi_poll(struct gameport *gameport) in adi_poll() argument
280 struct adi_port *port = gameport_get_drvdata(gameport); in adi_poll()
294 gameport_start_polling(port->gameport); in adi_open()
[all …]
DKconfig22 gameport. In addition to the usual PC analog joystick, this driver
39 A3D protocol over the PC gameport.
49 protocol over the PC gameport.
78 over the PC gameport.
88 that connects to the gameport and you connect gamepads to it.
98 protocol over the PC gameport.
107 Say Y here if you have an InterAct gameport or joystick
108 communicating digitally over the gameport.
118 Overdrive protocol over PC gameport.
128 DirectConnect (BSP) protocol over the PC gameport.
/linux-4.1.27/Documentation/input/
Dgameport-programming.txt1 Programming gameport drivers
4 1. A basic classic gameport
7 If the gameport doesn't provide more than the inb()/outb() functionality,
10 struct gameport gameport;
12 gameport.io = MY_IO_ADDRESS;
13 gameport_register_port(&gameport);
15 Make sure struct gameport is initialized to 0 in all other fields. The
16 gameport generic code will take care of the rest.
26 If your hardware supports a gameport address that is not mapped to ISA io
30 gameport. Although only one ioport is really used, the gameport usually
[all …]
Djoystick.txt91 For gameport joysticks, you'll have to load the gameport driver as well;
164 The analog.c uses the standard analog inputs of the gameport, and thus
283 combination of) devices on a single gameport, using an Y-cable or chained
305 single gameport.
345 are needed. Up to two TMDC devices can be connected to one gameport, using
355 Up to two of these can be used on a single gameport, using an Y-cable.
403 The Live! has a special PCI gameport, which, although it doesn't provide
411 sound drivers themselves. Make sure you select gameport support in the
/linux-4.1.27/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
/linux-4.1.27/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()
/linux-4.1.27/Documentation/sound/alsa/
DJoystick.txt10 using a joystick with the ALSA driver. For the details of gameport
16 built-in gameport support. Hence, when the ALSA PCI driver is built
18 gameport support on that card will be (silently) disabled.
62 The following drivers don't support gameport natively, but there are
63 additional modules. Load the corresponding module to add the gameport
74 built-in gameport support.
76 As mentioned above, ALSA PCI drivers have the built-in gameport
84 ALSA ISA drivers don't have the built-in gameport support.
DALSA-Configuration.txt291 EQ, mpu401, gameport. A3D and wavetable support are still in development.
1728 joystick - Enable gameport - 0 = disable (default), 1 = enable
1745 joystick - Enable gameport - 0 = disable (default), 1 = enable
/linux-4.1.27/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
/linux-4.1.27/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
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()
/linux-4.1.27/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 …]
/linux-4.1.27/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 …]
/linux-4.1.27/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
/linux-4.1.27/drivers/
DMakefile99 obj-$(CONFIG_GAMEPORT) += input/gameport/
/linux-4.1.27/drivers/input/
DKconfig197 source "drivers/input/gameport/Kconfig"
/linux-4.1.27/include/uapi/linux/
DKbuild136 header-y += gameport.h