Lines Matching refs:size
43 int truesize, size, loopsize, blocksize; in snd_emu10k1_sample_new() local
52 if (sp->v.size == 0) { in snd_emu10k1_sample_new()
66 if (sampleend > sp->v.size) in snd_emu10k1_sample_new()
67 sampleend = sp->v.size; in snd_emu10k1_sample_new()
80 truesize = sp->v.size + BLANK_HEAD_SIZE; in snd_emu10k1_sample_new()
106 size = BLANK_HEAD_SIZE; in snd_emu10k1_sample_new()
108 size *= 2; in snd_emu10k1_sample_new()
109 if (offset + size > blocksize) in snd_emu10k1_sample_new()
111 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
112 offset += size; in snd_emu10k1_sample_new()
115 size = loopend; in snd_emu10k1_sample_new()
117 size *= 2; in snd_emu10k1_sample_new()
118 if (offset + size > blocksize) in snd_emu10k1_sample_new()
120 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
125 offset += size; in snd_emu10k1_sample_new()
126 data += size; in snd_emu10k1_sample_new()
162 size = sp->v.size - loopend; in snd_emu10k1_sample_new()
163 if (size < 0) in snd_emu10k1_sample_new()
166 size *= 2; in snd_emu10k1_sample_new()
167 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
172 offset += size; in snd_emu10k1_sample_new()