Lines Matching refs:bufs
656 } bufs[2] = {
666 bufs[0].len = (hw->samples - hw->wpos) << hwshift;
667 bufs[1].len = (dead - (hw->samples - hw->wpos)) << hwshift;
670 bufs[0].len = dead << hwshift;
677 if (bufs[i].len) {
678 void *p = advance (oss->pcm_buf, bufs[i].add << hwshift);
679 nread = read (oss->fd, p, bufs[i].len);
684 "alignment %d\n", nread, bufs[i].add << hwshift,
688 hw->conv (hw->conv_buf + bufs[i].add, p, nread >> hwshift,
692 if (bufs[i].len - nread) {
702 bufs[i].len, p