Lines Matching refs:period_bytes
782 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_period_size()
964 n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size); in snd_pcm_oss_change_params_locked()
1064 runtime->oss.period_bytes = oss_period_size; in snd_pcm_oss_change_params_locked()
1068 runtime->oss.period_bytes, in snd_pcm_oss_change_params_locked()
1079 runtime->oss.buffer = kvzalloc(runtime->oss.period_bytes, GFP_KERNEL); in snd_pcm_oss_change_params_locked()
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()
1434 runtime->oss.buffer_used == runtime->oss.period_bytes) { in snd_pcm_oss_write1()
1441 runtime->oss.period_ptr %= runtime->oss.period_bytes; in snd_pcm_oss_write1()
1453 runtime->oss.period_bytes, 0); in snd_pcm_oss_write1()
1461 tmp != runtime->oss.period_bytes) in snd_pcm_oss_write1()
1529 if (bytes < runtime->oss.period_bytes || runtime->oss.buffer_used > 0) { in snd_pcm_oss_read1()
1531 tmp = snd_pcm_oss_read2(substream, runtime->oss.buffer, runtime->oss.period_bytes, 1); in snd_pcm_oss_read1()
1551 runtime->oss.period_bytes, 0); in snd_pcm_oss_read1()
1689 size = (8 * (runtime->oss.period_bytes - runtime->oss.buffer_used) + 7) / width; in snd_pcm_oss_sync()
1693 err = snd_pcm_oss_sync1(substream, runtime->oss.period_bytes); in snd_pcm_oss_sync()
1700 size = runtime->oss.period_bytes - runtime->oss.period_ptr; in snd_pcm_oss_sync()
1842 return substream->runtime->oss.period_bytes; in snd_pcm_oss_get_block_size()
2249 info.blocks = (runtime->oss.buffer_bytes - delay - fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
2251 info.blocks = (delay + fixup) / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
2255 info.blocks = delay / runtime->oss.period_bytes; in snd_pcm_oss_get_ptr()
2286 info.fragsize = runtime->oss.period_bytes; in snd_pcm_oss_get_space()
2290 info.bytes = runtime->oss.period_bytes * runtime->oss.periods; in snd_pcm_oss_get_space()
2314 info.fragments = info.bytes / runtime->oss.period_bytes; in snd_pcm_oss_get_space()