Lines Matching refs:period_ptr
1105 runtime->oss.period_ptr = 0;
1380 tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr,
1381 runtime->oss.buffer_used - runtime->oss.period_ptr, 1);
1385 runtime->oss.period_ptr += tmp;
1386 runtime->oss.period_ptr %= runtime->oss.period_bytes;
1387 if (runtime->oss.period_ptr == 0 ||
1388 runtime->oss.period_ptr == runtime->oss.buffer_used)
1470 runtime->oss.period_ptr = tmp;
1476 if (copy_to_user(buf, runtime->oss.buffer + (runtime->oss.period_ptr - runtime->oss.buffer_used), tmp)) {
1518 runtime->oss.period_ptr = 0;
1618 } else if (runtime->oss.period_ptr > 0) {
1620 printk(KERN_DEBUG "sync: period_ptr\n");
1622 size = runtime->oss.period_bytes - runtime->oss.period_ptr;