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()
333 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
335 outw((unsigned short) addr, gus->gf1.reg_data16);
337 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel);
339 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8);
341 outb(SNDRV_GF1_GW_DRAM_IO16, gus->gf1.reg_regsel);
343 outw(data, gus->gf1.reg_data16);
357 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
359 outw((unsigned short) addr, gus->gf1.reg_data16);
361 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel);
363 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8);
365 outb(SNDRV_GF1_GW_DRAM_IO16, gus->gf1.reg_regsel);
367 res = inw(gus->gf1.reg_data16);
386 outb(SNDRV_GF1_GW_DRAM_IO_LOW, gus->gf1.reg_regsel);
388 outw((unsigned short) addr, gus->gf1.reg_data16);
390 outb(SNDRV_GF1_GB_DRAM_IO_HIGH, gus->gf1.reg_regsel);
392 outb((unsigned char) (addr >> 16), gus->gf1.reg_data8);
394 outb(SNDRV_GF1_GW_DRAM_IO16, gus->gf1.reg_regsel);
412 voices = gus->gf1.active_voices; in snd_gf1_select_active_voices()
417 if (gus->gf1.enh_mode) in snd_gf1_select_active_voices()
419 gus->gf1.active_voices = voices; in snd_gf1_select_active_voices()
420 gus->gf1.playback_freq = in snd_gf1_select_active_voices()
421 gus->gf1.enh_mode ? 44100 : voices_tbl[voices - 14]; in snd_gf1_select_active_voices()
422 if (!gus->gf1.enh_mode) { in snd_gf1_select_active_voices()
435 voice = gus->gf1.active_voice; in snd_gf1_print_voice_registers()
482 if (gus->gf1.enh_mode) {