Lines Matching refs:period_ptr
1162 runtime->oss.period_ptr = 0; in snd_pcm_oss_prepare()
1435 tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr, in snd_pcm_oss_write1()
1436 runtime->oss.buffer_used - runtime->oss.period_ptr, 1); in snd_pcm_oss_write1()
1440 runtime->oss.period_ptr += tmp; in snd_pcm_oss_write1()
1441 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1()
1442 if (runtime->oss.period_ptr == 0 || in snd_pcm_oss_write1()
1443 runtime->oss.period_ptr == runtime->oss.buffer_used) in snd_pcm_oss_write1()
1535 runtime->oss.period_ptr = tmp; in snd_pcm_oss_read1()
1541 …if (copy_to_user(buf, runtime->oss.buffer + (runtime->oss.period_ptr - runtime->oss.buffer_used), … in snd_pcm_oss_read1()
1589 runtime->oss.period_ptr = 0; in snd_pcm_oss_reset()
1696 } else if (runtime->oss.period_ptr > 0) { in snd_pcm_oss_sync()
1700 size = runtime->oss.period_bytes - runtime->oss.period_ptr; in snd_pcm_oss_sync()