Lines Matching refs:gus
33 struct snd_gus_card *gus = private_data; in snd_gus_iwffff_put_sample() local
41 block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc, in snd_gus_iwffff_put_sample()
48 err = snd_gus_dram_write(gus, data, in snd_gus_iwffff_put_sample()
51 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 0); in snd_gus_iwffff_put_sample()
52 snd_gf1_mem_xfree(&gus->gf1.mem_alloc, block); in snd_gus_iwffff_put_sample()
53 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 1); in snd_gus_iwffff_put_sample()
63 struct snd_gus_card *gus = private_data; in snd_gus_iwffff_get_sample() local
65 return snd_gus_dram_read(gus, data, wave->address.memory, wave->size, in snd_gus_iwffff_get_sample()
72 struct snd_gus_card *gus = private_data; in snd_gus_iwffff_remove_sample() local
76 return snd_gf1_mem_free(&gus->gf1.mem_alloc, wave->address.memory); in snd_gus_iwffff_remove_sample()
86 struct snd_gus_card *gus = private_data; in snd_gus_gf1_put_sample() local
92 block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc, in snd_gus_gf1_put_sample()
99 err = snd_gus_dram_write(gus, data, in snd_gus_gf1_put_sample()
102 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 0); in snd_gus_gf1_put_sample()
103 snd_gf1_mem_xfree(&gus->gf1.mem_alloc, block); in snd_gus_gf1_put_sample()
104 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 1); in snd_gus_gf1_put_sample()
114 struct snd_gus_card *gus = private_data; in snd_gus_gf1_get_sample() local
116 return snd_gus_dram_read(gus, data, wave->address.memory, wave->size, 0); in snd_gus_gf1_get_sample()
122 struct snd_gus_card *gus = private_data; in snd_gus_gf1_remove_sample() local
124 return snd_gf1_mem_free(&gus->gf1.mem_alloc, wave->address.memory); in snd_gus_gf1_remove_sample()
134 struct snd_gus_card *gus = private_data; in snd_gus_simple_put_sample() local
140 block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc, in snd_gus_simple_put_sample()
147 err = snd_gus_dram_write(gus, data, block->ptr, instr->size); in snd_gus_simple_put_sample()
149 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 0); in snd_gus_simple_put_sample()
150 snd_gf1_mem_xfree(&gus->gf1.mem_alloc, block); in snd_gus_simple_put_sample()
151 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 1); in snd_gus_simple_put_sample()
161 struct snd_gus_card *gus = private_data; in snd_gus_simple_get_sample() local
163 return snd_gus_dram_read(gus, data, instr->address.memory, instr->size, 0); in snd_gus_simple_get_sample()
169 struct snd_gus_card *gus = private_data; in snd_gus_simple_remove_sample() local
171 return snd_gf1_mem_free(&gus->gf1.mem_alloc, instr->address.memory); in snd_gus_simple_remove_sample()