Lines Matching refs:gf1

35 	outb(reg | 0x80, gus->gf1.reg_regsel);  in __snd_gf1_ctrl_stop()
37 value = inb(gus->gf1.reg_data8); in __snd_gf1_ctrl_stop()
39 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop()
41 outb((value | 0x03) & ~(0x80 | 0x20), gus->gf1.reg_data8); in __snd_gf1_ctrl_stop()
49 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write8()
51 outb(data, gus->gf1.reg_data8); in __snd_gf1_write8()
58 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_look8()
60 return inb(gus->gf1.reg_data8); in __snd_gf1_look8()
66 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write16()
68 outw((unsigned short) data, gus->gf1.reg_data16); in __snd_gf1_write16()
75 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_look16()
77 return inw(gus->gf1.reg_data16); in __snd_gf1_look16()
83 outb(reg, gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
84 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
85 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
86 outb(data, gus->gf1.reg_timerdata); in __snd_gf1_adlib_write()
87 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
88 inb(gus->gf1.reg_timerctrl); in __snd_gf1_adlib_write()
94 if (gus->gf1.enh_mode) { in __snd_gf1_write_addr()
111 if (gus->gf1.enh_mode) { in __snd_gf1_read_addr()
276 outb(0x43, gus->gf1.reg_regsel); in snd_gf1_dram_addr()
278 outw((unsigned short) addr, gus->gf1.reg_data16); in snd_gf1_dram_addr()
280 outb(0x44, gus->gf1.reg_regsel); in snd_gf1_dram_addr()
282 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8); in snd_gf1_dram_addr()
291 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel); in snd_gf1_poke()
293 outw((unsigned short) addr, gus->gf1.reg_data16); in snd_gf1_poke()
295 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel); in snd_gf1_poke()
297 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8); in snd_gf1_poke()
299 outb(data, gus->gf1.reg_dram); in snd_gf1_poke()
309 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel); in snd_gf1_peek()
311 outw((unsigned short) addr, gus->gf1.reg_data16); in snd_gf1_peek()
313 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel); in snd_gf1_peek()
315 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8); in snd_gf1_peek()
317 res = inb(gus->gf1.reg_dram); in snd_gf1_peek()
331 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
333 outw((unsigned short) addr, gus->gf1.reg_data16);
335 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel);
337 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8);
339 outb(SNDRV_GF1_GW_DRAM_IO16, gus->gf1.reg_regsel);
341 outw(data, gus->gf1.reg_data16);
353 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
355 outw((unsigned short) addr, gus->gf1.reg_data16);
357 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel);
359 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8);
361 outb(SNDRV_GF1_GW_DRAM_IO16, gus->gf1.reg_regsel);
363 res = inw(gus->gf1.reg_data16);
380 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
382 outw((unsigned short) addr, gus->gf1.reg_data16);
384 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel);
386 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8);
388 outb(SNDRV_GF1_GW_DRAM_IO16, gus->gf1.reg_regsel);
406 voices = gus->gf1.active_voices; in snd_gf1_select_active_voices()
411 if (gus->gf1.enh_mode) in snd_gf1_select_active_voices()
413 gus->gf1.active_voices = voices; in snd_gf1_select_active_voices()
414 gus->gf1.playback_freq = in snd_gf1_select_active_voices()
415 gus->gf1.enh_mode ? 44100 : voices_tbl[voices - 14]; in snd_gf1_select_active_voices()
416 if (!gus->gf1.enh_mode) { in snd_gf1_select_active_voices()
429 voice = gus->gf1.active_voice; in snd_gf1_print_voice_registers()
539 if (gus->gf1.enh_mode) {