Lines Matching refs:buffer_used
1076 runtime->oss.buffer_used = 0; in snd_pcm_oss_change_params_locked()
1152 runtime->oss.buffer_used = 0; in snd_pcm_oss_prepare()
1408 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_write1()
1410 if (tmp + runtime->oss.buffer_used > runtime->oss.period_bytes) in snd_pcm_oss_write1()
1411 tmp = runtime->oss.period_bytes - runtime->oss.buffer_used; in snd_pcm_oss_write1()
1413 if (copy_from_user(runtime->oss.buffer + runtime->oss.buffer_used, buf, tmp)) { in snd_pcm_oss_write1()
1418 runtime->oss.buffer_used += tmp; in snd_pcm_oss_write1()
1423 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1()
1425 runtime->oss.buffer_used - runtime->oss.period_ptr, 1); in snd_pcm_oss_write1()
1432 runtime->oss.period_ptr == runtime->oss.buffer_used) in snd_pcm_oss_write1()
1433 runtime->oss.buffer_used = 0; in snd_pcm_oss_write1()
1518 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_read1()
1519 if (runtime->oss.buffer_used == 0) { in snd_pcm_oss_read1()
1525 runtime->oss.buffer_used = tmp; in snd_pcm_oss_read1()
1528 if ((size_t) tmp > runtime->oss.buffer_used) in snd_pcm_oss_read1()
1529 tmp = runtime->oss.buffer_used; in snd_pcm_oss_read1()
1530 …if (copy_to_user(buf, runtime->oss.buffer + (runtime->oss.period_ptr - runtime->oss.buffer_used), … in snd_pcm_oss_read1()
1537 runtime->oss.buffer_used -= tmp; in snd_pcm_oss_read1()
1576 runtime->oss.buffer_used = 0; in snd_pcm_oss_reset()
1618 runtime->oss.buffer_used = 0; in snd_pcm_oss_sync1()
1673 if (runtime->oss.buffer_used > 0) { in snd_pcm_oss_sync()
1677 size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width; in snd_pcm_oss_sync()
1679 runtime->oss.buffer + runtime->oss.buffer_used, in snd_pcm_oss_sync()
1738 runtime->oss.buffer_used = 0; in snd_pcm_oss_sync()
2211 fixup = runtime->oss.buffer_used; in snd_pcm_oss_get_ptr()
2215 fixup = -runtime->oss.buffer_used; in snd_pcm_oss_get_ptr()
2291 fixup = -runtime->oss.buffer_used; in snd_pcm_oss_get_space()
2295 fixup = runtime->oss.buffer_used; in snd_pcm_oss_get_space()