Lines Matching refs:block
94 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new()
95 if (sp->block == NULL) { in snd_emu10k1_sample_new()
111 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
120 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
121 snd_emu10k1_synth_free(emu, sp->block); in snd_emu10k1_sample_new()
122 sp->block = NULL; in snd_emu10k1_sample_new()
134 unsigned short *wblock = (unsigned short*)block; in snd_emu10k1_sample_new()
145 block[offset + i] = block[offset - i -1]; in snd_emu10k1_sample_new()
167 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
168 snd_emu10k1_synth_free(emu, sp->block); in snd_emu10k1_sample_new()
169 sp->block = NULL; in snd_emu10k1_sample_new()
176 snd_emu10k1_synth_bzero(emu, sp->block, offset, blocksize - offset); in snd_emu10k1_sample_new()
190 unsigned short *wblock = (unsigned short*)block; in snd_emu10k1_sample_new()
195 block[i] ^= 0x80; in snd_emu10k1_sample_new()
225 if (sp->block) { in snd_emu10k1_sample_free()
226 snd_emu10k1_synth_free(emu, sp->block); in snd_emu10k1_sample_free()
227 sp->block = NULL; in snd_emu10k1_sample_free()