Lines Matching refs:pos
290 unsigned int pos, unsigned int count, in snd_gf1_pcm_poke_block() argument
309 snd_gf1_dram_addr(gus, pos); in snd_gf1_pcm_poke_block()
318 pos += 512; in snd_gf1_pcm_poke_block()
324 snd_gf1_poke(gus, pos++, *buf++); in snd_gf1_pcm_poke_block()
325 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
329 snd_gf1_poke(gus, pos++, *buf++ ^ invert); in snd_gf1_pcm_poke_block()
341 static int get_bpos(struct gus_pcm_private *pcmp, int voice, unsigned int pos, in get_bpos() argument
344 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2)); in get_bpos()
371 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy() argument
379 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_copy()
381 return pos; in snd_gf1_pcm_playback_copy()
388 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy_kernel() argument
396 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_copy_kernel()
398 return pos; in snd_gf1_pcm_playback_copy_kernel()
404 int voice, unsigned long pos, in snd_gf1_pcm_playback_silence() argument
412 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_silence()
414 return pos; in snd_gf1_pcm_playback_silence()
532 unsigned int pos; in snd_gf1_pcm_playback_pointer() local
535 pos = 0; in snd_gf1_pcm_playback_pointer()
540 pos = (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4) - pcmp->memory; in snd_gf1_pcm_playback_pointer()
542 pos <<= 1; in snd_gf1_pcm_playback_pointer()
543 pos = bytes_to_frames(runtime, pos); in snd_gf1_pcm_playback_pointer()
546 return pos; in snd_gf1_pcm_playback_pointer()
615 int pos = snd_dma_pointer(gus->gf1.dma2, gus->c_period_size); in snd_gf1_pcm_capture_pointer() local
616 pos = bytes_to_frames(substream->runtime, (gus->c_pos + pos) % gus->c_dma_size); in snd_gf1_pcm_capture_pointer()
617 return pos; in snd_gf1_pcm_capture_pointer()