Lines Matching refs:buffer_used
1087 runtime->oss.buffer_used = 0; in snd_pcm_oss_change_params_locked()
1163 runtime->oss.buffer_used = 0; in snd_pcm_oss_prepare()
1419 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1()
1421 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1()
1422 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1()
1424 if (copy_from_user(runtime->oss.buffer + runtime->oss.buffer_used, buf, tmp)) { in snd_pcm_oss_write1()
1429 runtime->oss.buffer_used += tmp; in snd_pcm_oss_write1()
1434 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1()
1436 runtime->oss.buffer_used - runtime->oss.period_ptr, 1); in snd_pcm_oss_write1()
1443 runtime->oss.period_ptr == runtime->oss.buffer_used) in snd_pcm_oss_write1()
1444 runtime->oss.buffer_used = 0; in snd_pcm_oss_write1()
1529 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_read1()
1530 if (runtime->oss.buffer_used == 0) { in snd_pcm_oss_read1()
1536 runtime->oss.buffer_used = tmp; in snd_pcm_oss_read1()
1539 if ((size_t) tmp > runtime->oss.buffer_used) in snd_pcm_oss_read1()
1540 tmp = runtime->oss.buffer_used; 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()
1548 runtime->oss.buffer_used -= tmp; in snd_pcm_oss_read1()
1587 runtime->oss.buffer_used = 0; in snd_pcm_oss_reset()
1629 runtime->oss.buffer_used = 0; in snd_pcm_oss_sync1()
1685 if (runtime->oss.buffer_used > 0) { in snd_pcm_oss_sync()
1689 size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width; in snd_pcm_oss_sync()
1691 runtime->oss.buffer + runtime->oss.buffer_used, in snd_pcm_oss_sync()
1750 runtime->oss.buffer_used = 0; in snd_pcm_oss_sync()
2225 fixup = runtime->oss.buffer_used; in snd_pcm_oss_get_ptr()
2229 fixup = -runtime->oss.buffer_used; in snd_pcm_oss_get_ptr()
2305 fixup = -runtime->oss.buffer_used; in snd_pcm_oss_get_space()
2309 fixup = runtime->oss.buffer_used; in snd_pcm_oss_get_space()