Lines Matching refs:CMX_BUFF_MASK
1209 dsp->rx_R = (hh->id & CMX_BUFF_MASK); in dsp_cmx_receive()
1212 & CMX_BUFF_MASK; in dsp_cmx_receive()
1215 & CMX_BUFF_MASK; in dsp_cmx_receive()
1226 dsp->rx_W = (hh->id & CMX_BUFF_MASK); in dsp_cmx_receive()
1233 if (((dsp->rx_W-dsp->rx_R) & CMX_BUFF_MASK) >= CMX_BUFF_HALF) { in dsp_cmx_receive()
1241 dsp->rx_R = (hh->id & CMX_BUFF_MASK); in dsp_cmx_receive()
1244 & CMX_BUFF_MASK; in dsp_cmx_receive()
1247 & CMX_BUFF_MASK; in dsp_cmx_receive()
1259 if (((dsp->rx_W - dsp->rx_R) & CMX_BUFF_MASK) >= in dsp_cmx_receive()
1269 dsp->rx_R = (hh->id & CMX_BUFF_MASK); in dsp_cmx_receive()
1271 & CMX_BUFF_MASK; in dsp_cmx_receive()
1293 d[w++ & CMX_BUFF_MASK] = *p++; in dsp_cmx_receive()
1298 dsp->rx_W = ((dsp->rx_W + len) & CMX_BUFF_MASK); in dsp_cmx_receive()
1300 showdelay(dsp, len, (dsp->rx_W-dsp->rx_R) & CMX_BUFF_MASK); in dsp_cmx_receive()
1374 rr = (r + len) & CMX_BUFF_MASK;
1403 t = (t + 1) & CMX_BUFF_MASK;
1404 r = (r + 1) & CMX_BUFF_MASK;
1425 t = (t + 1) & CMX_BUFF_MASK;
1426 r = (r + 1) & CMX_BUFF_MASK;
1432 memset(d, dsp_silence, (rr - r) & CMX_BUFF_MASK);
1442 t = (t + 1) & CMX_BUFF_MASK;
1443 r = (r + 1) & CMX_BUFF_MASK;
1447 r = (r + 1) & CMX_BUFF_MASK;
1466 o_rr = (other->rx_R + len) & CMX_BUFF_MASK;
1468 o_r = (o_rr - rr + r) & CMX_BUFF_MASK;
1478 t = (t + 1) & CMX_BUFF_MASK;
1479 o_r = (o_r + 1) & CMX_BUFF_MASK;
1483 o_r = (o_r + 1) & CMX_BUFF_MASK;
1501 t = (t + 1) & CMX_BUFF_MASK;
1502 r = (r + 1) & CMX_BUFF_MASK;
1503 o_r = (o_r + 1) & CMX_BUFF_MASK;
1507 r = (r + 1) & CMX_BUFF_MASK;
1508 o_r = (o_r + 1) & CMX_BUFF_MASK;
1530 r = (r + 1) & CMX_BUFF_MASK;
1531 t = (t + 1) & CMX_BUFF_MASK;
1541 r = (r + 1) & CMX_BUFF_MASK;
1557 t = (t + 1) & CMX_BUFF_MASK;
1558 r = (r + 1) & CMX_BUFF_MASK;
1568 r = (r + 1) & CMX_BUFF_MASK;
1717 rr = (r + length) & CMX_BUFF_MASK;
1721 r = (r + 1) & CMX_BUFF_MASK;
1743 rr = (r + length) & CMX_BUFF_MASK;
1747 r = (r + 1) & CMX_BUFF_MASK;
1754 delay = (dsp->rx_W-dsp->rx_R) & CMX_BUFF_MASK;
1761 delay = (dsp->tx_W-dsp->tx_R) & CMX_BUFF_MASK;
1790 & CMX_BUFF_MASK;
1794 r = (r + 1) & CMX_BUFF_MASK;
1821 & CMX_BUFF_MASK;
1825 r = (r + 1) & CMX_BUFF_MASK;
1874 space = (ww - w - 1) & CMX_BUFF_MASK;
1878 ww = (ww - 1) & CMX_BUFF_MASK; /* end one byte prior tx_R */
1885 ww = (w + skb->len) & CMX_BUFF_MASK;
1892 (u_long)dsp, (ww - w) & CMX_BUFF_MASK, w, ww, dsp->name);
1905 w = (w + 1) & CMX_BUFF_MASK;