Lines Matching refs:bpos
364 size_t bpos, n;
375 bpos = ((u->out_mmap_current + (unsigned) u->out_mmap_saved_nfrags) * u->out_fragment_size) % u->out_hwbuf_size;
377 if (bpos <= (size_t) info.ptr)
378 n = u->out_hwbuf_size - ((size_t) info.ptr - bpos);
380 n = bpos - (size_t) info.ptr;
382 /* pa_log("n = %u, bpos = %u, ptr = %u, total=%u, fragsize = %u, n_frags = %u\n", n, bpos, (unsigned) info.ptr, total, u->out_fragment_size, u->out_fragments); */
389 size_t bpos, n;
399 bpos = ((u->in_mmap_current + (unsigned) u->in_mmap_saved_nfrags) * u->in_fragment_size) % u->in_hwbuf_size;
401 if (bpos <= (size_t) info.ptr)
402 n = (size_t) info.ptr - bpos;
404 n = u->in_hwbuf_size - bpos + (size_t) info.ptr;
406 /* pa_log("n = %u, bpos = %u, ptr = %u, total=%u, fragsize = %u, n_frags = %u\n", n, bpos, (unsigned) info.ptr, total, u->in_fragment_size, u->in_fragments); */