• Home
  • Raw
  • Download

Lines Matching refs:gus

13 static int snd_gus_dram_poke(struct snd_gus_card *gus, char __user *_buffer,  in snd_gus_dram_poke()  argument
24 if (gus->interwave) { in snd_gus_dram_poke()
25 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gus_dram_poke()
26 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, 0x01); in snd_gus_dram_poke()
27 snd_gf1_dram_addr(gus, address); in snd_gus_dram_poke()
28 outsb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_poke()
29 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_gus_dram_poke()
35 snd_gf1_poke(gus, address++, *pbuffer++); in snd_gus_dram_poke()
44 int snd_gus_dram_write(struct snd_gus_card *gus, char __user *buffer, in snd_gus_dram_write() argument
47 return snd_gus_dram_poke(gus, buffer, address, size); in snd_gus_dram_write()
50 static int snd_gus_dram_peek(struct snd_gus_card *gus, char __user *_buffer, in snd_gus_dram_peek() argument
60 if (gus->interwave) { in snd_gus_dram_peek()
61 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gus_dram_peek()
62 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, rom ? 0x03 : 0x01); in snd_gus_dram_peek()
63 snd_gf1_dram_addr(gus, address); in snd_gus_dram_peek()
64 insb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_peek()
65 snd_gf1_write8(gus, SNDRV_GF1_GB_MEMORY_CONTROL, 0x01); in snd_gus_dram_peek()
66 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_gus_dram_peek()
72 *pbuffer++ = snd_gf1_peek(gus, address++); in snd_gus_dram_peek()
82 int snd_gus_dram_read(struct snd_gus_card *gus, char __user *buffer, in snd_gus_dram_read() argument
86 return snd_gus_dram_peek(gus, buffer, address, size, rom); in snd_gus_dram_read()