Lines Matching refs:gus

28 static int snd_gus_dram_poke(struct snd_gus_card *gus, char __user *_buffer,  in snd_gus_dram_poke()  argument
39 if (gus->interwave) { in snd_gus_dram_poke()
40 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gus_dram_poke()
41 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, 0x01); in snd_gus_dram_poke()
42 snd_gf1_dram_addr(gus, address); in snd_gus_dram_poke()
43 outsb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_poke()
44 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_gus_dram_poke()
50 snd_gf1_poke(gus, address++, *pbuffer++); in snd_gus_dram_poke()
59 int snd_gus_dram_write(struct snd_gus_card *gus, char __user *buffer, in snd_gus_dram_write() argument
62 return snd_gus_dram_poke(gus, buffer, address, size); in snd_gus_dram_write()
65 static int snd_gus_dram_peek(struct snd_gus_card *gus, char __user *_buffer, in snd_gus_dram_peek() argument
75 if (gus->interwave) { in snd_gus_dram_peek()
76 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gus_dram_peek()
77 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, rom ? 0x03 : 0x01); in snd_gus_dram_peek()
78 snd_gf1_dram_addr(gus, address); in snd_gus_dram_peek()
79 insb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_peek()
80 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, 0x01); in snd_gus_dram_peek()
81 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_gus_dram_peek()
87 *pbuffer++ = snd_gf1_peek(gus, address++); in snd_gus_dram_peek()
97 int snd_gus_dram_read(struct snd_gus_card *gus, char __user *buffer, in snd_gus_dram_read() argument
101 return snd_gus_dram_peek(gus, buffer, address, size, rom); in snd_gus_dram_read()