Lines Matching refs:swptr
329 * the swptr.
1946 int swptr, hwptr, hw_avail, sw_avail, swidx;
1953 swptr = li_read_swptr(&wport->chan);
1954 hw_unavail = (swptr - hwptr + hwsize) % hwsize;
1988 if (nb > hwsize - swptr)
1989 nb = hwsize - swptr; /* don't overflow hwbuf */
1997 DBGP("hwsize = %d, swptr = %d\n", hwsize, swptr);
2002 swidx, swidx + nb, swptr, swptr + nb);
2003 pcm_copy_out(wport, swidx, swptr, nb);
2004 li_write_swptr(&wport->chan, (swptr + nb) % hwsize);
2071 int swptr, hwptr, hw_avail, sw_avail, swidx;
2076 swptr = li_read_swptr(&rport->chan);
2077 hw_avail = (hwptr - swptr + hwsize) % hwsize & -fragsize;
2104 if (nb > hwsize - swptr)
2105 nb = hwsize - swptr; /* don't overflow hwbuf */
2113 DBGP("hwsize = %d, swptr = %d\n", hwsize, swptr);
2118 swptr, swptr + nb, swidx, swidx + nb);
2119 pcm_copy_in(rport, swidx, swptr, nb);
2120 li_write_swptr(&rport->chan, (swptr + nb) % hwsize);
2749 int swptr, hwptr, hwframes, hwbytes, hwsize;
2754 swptr = li_read_swptr(&wport->chan);
2759 hwbytes = (swptr - hwptr + hwsize) % hwsize;