Lines Matching refs:bpos
40 unsigned int bpos;
123 curr = begin + (pcmp->bpos * pcmp->block_size) / runtime->channels;
207 pcmp->bpos++;
208 pcmp->bpos %= pcmp->blocks;
209 if (pcmp->bpos + 1 >= pcmp->blocks) { /* last block? */
214 end = pcmp->memory + (((pcmp->bpos + 1) * pcmp->block_size) / runtime->channels);
245 end = pcmp->bpos * pcmp->block_size;
344 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2));
345 if (snd_BUG_ON(bpos > pcmp->dma_size))
347 if (snd_BUG_ON(bpos + len > pcmp->dma_size))
349 return bpos;
353 unsigned int bpos, unsigned int len)
361 return snd_gf1_pcm_block_change(substream, bpos,
362 pcmp->memory + bpos, len);
366 return snd_gf1_pcm_poke_block(gus, runtime->dma_area + bpos,
367 pcmp->memory + bpos, len, w16, invert);
377 int bpos;
379 bpos = get_bpos(pcmp, voice, pos, len);
380 if (bpos < 0)
382 if (copy_from_iter(runtime->dma_area + bpos, len, src) != len)
384 return playback_copy_ack(substream, bpos, len);
394 int bpos;
396 bpos = get_bpos(pcmp, voice, pos, len);
397 if (bpos < 0)
399 snd_pcm_format_set_silence(runtime->format, runtime->dma_area + bpos,
401 return playback_copy_ack(substream, bpos, len);
478 pcmp->bpos = 0;