Home
last modified time | relevance | path

Searched refs:gp (Results 1 – 16 of 16) sorted by relevance

/sound/pci/au88x0/
Dau88x0_game.c84 struct gameport *gp; in vortex_gameport_register() local
86 vortex->gameport = gp = gameport_allocate_port(); in vortex_gameport_register()
87 if (!gp) { in vortex_gameport_register()
93 gameport_set_name(gp, "AU88x0 Gameport"); in vortex_gameport_register()
94 gameport_set_phys(gp, "pci%s/gameport0", pci_name(vortex->pci_dev)); in vortex_gameport_register()
95 gameport_set_dev_parent(gp, &vortex->pci_dev->dev); in vortex_gameport_register()
97 gp->read = vortex_game_read; in vortex_gameport_register()
98 gp->trigger = vortex_game_trigger; in vortex_gameport_register()
99 gp->cooked_read = vortex_game_cooked_read; in vortex_gameport_register()
100 gp->open = vortex_game_open; in vortex_gameport_register()
[all …]
/sound/mips/
Dad1843.c282 const struct ad1843_gain *gp = ad1843_gain[id]; in ad1843_get_gain_max() local
285 ret = (1 << gp->lfield->nbits); in ad1843_get_gain_max()
286 if (!gp->lmute) in ad1843_get_gain_max()
299 const struct ad1843_gain *gp = ad1843_gain[id]; in ad1843_get_gain() local
300 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_get_gain()
302 ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg); in ad1843_get_gain()
303 if (gp->negative) { in ad1843_get_gain()
307 if (gp->lmute) { in ad1843_get_gain()
308 ad1843_read_multi(ad1843, 2, gp->lmute, &lm, gp->rmute, &rm); in ad1843_get_gain()
325 const struct ad1843_gain *gp = ad1843_gain[id]; in ad1843_set_gain() local
[all …]
/sound/ppc/
Dtumbler.c158 #define do_gpio_write(gp, val) \ argument
159 pmac_call_feature(PMAC_FTR_WRITE_GPIO, NULL, (gp)->addr, val)
160 #define do_gpio_read(gp) \ argument
161 pmac_call_feature(PMAC_FTR_READ_GPIO, NULL, (gp)->addr, 0)
162 #define tumbler_gpio_free(gp) /* NOP */ argument
164 static void write_audio_gpio(struct pmac_gpio *gp, int active) in write_audio_gpio() argument
166 if (! gp->addr) in write_audio_gpio()
168 active = active ? gp->active_val : gp->inactive_val; in write_audio_gpio()
169 do_gpio_write(gp, active); in write_audio_gpio()
170 DBG("(I) gpio %x write %d\n", gp->addr, active); in write_audio_gpio()
[all …]
/sound/pci/ymfpci/
Dymfpci.c64 struct gameport *gp; in snd_ymfpci_create_gameport() local
117 chip->gameport = gp = gameport_allocate_port(); in snd_ymfpci_create_gameport()
118 if (!gp) { in snd_ymfpci_create_gameport()
125 gameport_set_name(gp, "Yamaha YMF Gameport"); in snd_ymfpci_create_gameport()
126 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_ymfpci_create_gameport()
127 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_ymfpci_create_gameport()
128 gp->io = io_port; in snd_ymfpci_create_gameport()
/sound/isa/
Dcmi8328.c383 struct gameport *gp = cmi->gameport = gameport_allocate_port(); in snd_cmi8328_probe() local
385 gameport_set_name(gp, "CMI8328 Gameport"); in snd_cmi8328_probe()
386 gameport_set_phys(gp, "%s/gameport0", dev_name(pdev)); in snd_cmi8328_probe()
387 gameport_set_dev_parent(gp, pdev); in snd_cmi8328_probe()
388 gp->io = 0x200; in snd_cmi8328_probe()
392 gameport_register_port(gp); in snd_cmi8328_probe()
/sound/pci/
Dals4000.c740 struct gameport *gp; in snd_als4000_create_gameport() local
765 acard->gameport = gp = gameport_allocate_port(); in snd_als4000_create_gameport()
766 if (!gp) { in snd_als4000_create_gameport()
771 gameport_set_name(gp, "ALS4000 Gameport"); in snd_als4000_create_gameport()
772 gameport_set_phys(gp, "pci%s/gameport0", pci_name(acard->pci)); in snd_als4000_create_gameport()
773 gameport_set_dev_parent(gp, &acard->pci->dev); in snd_als4000_create_gameport()
774 gp->io = io_port; in snd_als4000_create_gameport()
Dcs4281.c1233 struct gameport *gp; in snd_cs4281_create_gameport() local
1235 chip->gameport = gp = gameport_allocate_port(); in snd_cs4281_create_gameport()
1236 if (!gp) { in snd_cs4281_create_gameport()
1242 gameport_set_name(gp, "CS4281 Gameport"); in snd_cs4281_create_gameport()
1243 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_cs4281_create_gameport()
1244 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_cs4281_create_gameport()
1245 gp->open = snd_cs4281_gameport_open; in snd_cs4281_create_gameport()
1246 gp->read = snd_cs4281_gameport_read; in snd_cs4281_create_gameport()
1247 gp->trigger = snd_cs4281_gameport_trigger; in snd_cs4281_create_gameport()
1248 gp->cooked_read = snd_cs4281_gameport_cooked_read; in snd_cs4281_create_gameport()
[all …]
Dazt3328.c1797 struct gameport *gp; in snd_azf3328_gameport() local
1799 chip->gameport = gp = gameport_allocate_port(); in snd_azf3328_gameport()
1800 if (!gp) { in snd_azf3328_gameport()
1805 gameport_set_name(gp, "AZF3328 Gameport"); in snd_azf3328_gameport()
1806 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_azf3328_gameport()
1807 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_azf3328_gameport()
1808 gp->io = chip->game_io; in snd_azf3328_gameport()
1809 gameport_set_port_data(gp, chip); in snd_azf3328_gameport()
1811 gp->open = snd_azf3328_gameport_open; in snd_azf3328_gameport()
1812 gp->close = snd_azf3328_gameport_close; in snd_azf3328_gameport()
[all …]
Dsonicvibes.c1159 struct gameport *gp; in snd_sonicvibes_create_gameport() local
1162 sonic->gameport = gp = gameport_allocate_port(); in snd_sonicvibes_create_gameport()
1163 if (!gp) { in snd_sonicvibes_create_gameport()
1169 gameport_set_name(gp, "SonicVibes Gameport"); in snd_sonicvibes_create_gameport()
1170 gameport_set_phys(gp, "pci%s/gameport0", pci_name(sonic->pci)); in snd_sonicvibes_create_gameport()
1171 gameport_set_dev_parent(gp, &sonic->pci->dev); in snd_sonicvibes_create_gameport()
1172 gp->io = sonic->game_port; in snd_sonicvibes_create_gameport()
1174 gameport_register_port(gp); in snd_sonicvibes_create_gameport()
Des1938.c1493 struct gameport *gp; in snd_es1938_create_gameport() local
1495 chip->gameport = gp = gameport_allocate_port(); in snd_es1938_create_gameport()
1496 if (!gp) { in snd_es1938_create_gameport()
1502 gameport_set_name(gp, "ES1938"); in snd_es1938_create_gameport()
1503 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_es1938_create_gameport()
1504 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_es1938_create_gameport()
1505 gp->io = chip->game_port; in snd_es1938_create_gameport()
1507 gameport_register_port(gp); in snd_es1938_create_gameport()
Des1968.c2438 struct gameport *gp; in snd_es1968_create_gameport() local
2450 chip->gameport = gp = gameport_allocate_port(); in snd_es1968_create_gameport()
2451 if (!gp) { in snd_es1968_create_gameport()
2460 gameport_set_name(gp, "ES1968 Gameport"); in snd_es1968_create_gameport()
2461 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_es1968_create_gameport()
2462 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_es1968_create_gameport()
2463 gp->io = JOYSTICK_ADDR; in snd_es1968_create_gameport()
2465 gameport_register_port(gp); in snd_es1968_create_gameport()
Dvia82xx.c1913 struct gameport *gp; in snd_via686_create_gameport() local
1925 chip->gameport = gp = gameport_allocate_port(); in snd_via686_create_gameport()
1926 if (!gp) { in snd_via686_create_gameport()
1932 gameport_set_name(gp, "VIA686 Gameport"); in snd_via686_create_gameport()
1933 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_via686_create_gameport()
1934 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_via686_create_gameport()
1935 gp->io = JOYSTICK_ADDR; in snd_via686_create_gameport()
Dens1370.c1770 struct gameport *gp; in snd_ensoniq_create_gameport() local
1800 ensoniq->gameport = gp = gameport_allocate_port(); in snd_ensoniq_create_gameport()
1801 if (!gp) { in snd_ensoniq_create_gameport()
1808 gameport_set_name(gp, "ES137x"); in snd_ensoniq_create_gameport()
1809 gameport_set_phys(gp, "pci%s/gameport0", pci_name(ensoniq->pci)); in snd_ensoniq_create_gameport()
1810 gameport_set_dev_parent(gp, &ensoniq->pci->dev); in snd_ensoniq_create_gameport()
1811 gp->io = io_port; in snd_ensoniq_create_gameport()
Dcmipci.c2844 struct gameport *gp; in snd_cmipci_create_gameport() local
2870 cm->gameport = gp = gameport_allocate_port(); in snd_cmipci_create_gameport()
2871 if (!gp) { in snd_cmipci_create_gameport()
2875 gameport_set_name(gp, "C-Media Gameport"); in snd_cmipci_create_gameport()
2876 gameport_set_phys(gp, "pci%s/gameport0", pci_name(cm->pci)); in snd_cmipci_create_gameport()
2877 gameport_set_dev_parent(gp, &cm->pci->dev); in snd_cmipci_create_gameport()
2878 gp->io = io_port; in snd_cmipci_create_gameport()
/sound/pci/trident/
Dtrident_main.c3155 struct gameport *gp; in snd_trident_create_gameport() local
3157 chip->gameport = gp = gameport_allocate_port(); in snd_trident_create_gameport()
3158 if (!gp) { in snd_trident_create_gameport()
3164 gameport_set_name(gp, "Trident 4DWave"); in snd_trident_create_gameport()
3165 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_trident_create_gameport()
3166 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_trident_create_gameport()
3168 gameport_set_port_data(gp, chip); in snd_trident_create_gameport()
3169 gp->fuzz = 64; in snd_trident_create_gameport()
3170 gp->read = snd_trident_gameport_read; in snd_trident_create_gameport()
3171 gp->trigger = snd_trident_gameport_trigger; in snd_trident_create_gameport()
[all …]
/sound/pci/cs46xx/
Dcs46xx_lib.c2751 struct gameport *gp; in snd_cs46xx_gameport() local
2753 chip->gameport = gp = gameport_allocate_port(); in snd_cs46xx_gameport()
2754 if (!gp) { in snd_cs46xx_gameport()
2760 gameport_set_name(gp, "CS46xx Gameport"); in snd_cs46xx_gameport()
2761 gameport_set_phys(gp, "pci%s/gameport0", pci_name(chip->pci)); in snd_cs46xx_gameport()
2762 gameport_set_dev_parent(gp, &chip->pci->dev); in snd_cs46xx_gameport()
2763 gameport_set_port_data(gp, chip); in snd_cs46xx_gameport()
2765 gp->open = snd_cs46xx_gameport_open; in snd_cs46xx_gameport()
2766 gp->read = snd_cs46xx_gameport_read; in snd_cs46xx_gameport()
2767 gp->trigger = snd_cs46xx_gameport_trigger; in snd_cs46xx_gameport()
[all …]