Lines Matching defs:bpos
40 unsigned int bpos;
116 curr = begin + (pcmp->bpos * pcmp->block_size) / runtime->channels;
194 pcmp->bpos++;
195 pcmp->bpos %= pcmp->blocks;
196 if (pcmp->bpos + 1 >= pcmp->blocks) { /* last block? */
201 end = pcmp->memory + (((pcmp->bpos + 1) * pcmp->block_size) / runtime->channels);
232 end = pcmp->bpos * pcmp->block_size;
323 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2));
324 if (snd_BUG_ON(bpos > pcmp->dma_size))
326 if (snd_BUG_ON(bpos + len > pcmp->dma_size))
328 return bpos;
332 unsigned int bpos, unsigned int len)
340 return snd_gf1_pcm_block_change(substream, bpos,
341 pcmp->memory + bpos, len);
345 return snd_gf1_pcm_poke_block(gus, runtime->dma_area + bpos,
346 pcmp->memory + bpos, len, w16, invert);
356 int bpos;
358 bpos = get_bpos(pcmp, voice, pos, len);
359 if (bpos < 0)
360 return bpos;
361 if (copy_from_iter(runtime->dma_area + bpos, len, src) != len)
363 return playback_copy_ack(substream, bpos, len);
373 int bpos;
375 bpos = get_bpos(pcmp, voice, pos, len);
376 if (bpos < 0)
377 return bpos;
378 snd_pcm_format_set_silence(runtime->format, runtime->dma_area + bpos,
380 return playback_copy_ack(substream, bpos, len);
457 pcmp->bpos = 0;