Lines Matching refs:cnt
1590 int cnt;
1628 cnt = ali_get_available_read_data(state);
1630 if (cnt > (dmabuf->dmasize - swptr))
1631 cnt = dmabuf->dmasize - swptr;
1633 if (cnt > count)
1634 cnt = count;
1643 cnt &= ~0x3;
1644 if (cnt <= 0) {
1694 if (copy_to_user(buffer, dmabuf->rawbuf + swptr, cnt)) {
1700 swptr = (swptr + cnt) % dmabuf->dmasize;
1707 dmabuf->count -= cnt;
1709 count -= cnt;
1710 buffer += cnt;
1711 ret += cnt;
1731 int cnt, x;
1800 cnt = ali_get_free_write_space(state);
1806 if (cnt > (dmabuf->dmasize - swptr))
1807 cnt = dmabuf->dmasize - swptr;
1812 cnt);
1814 if (cnt > count)
1815 cnt = count;
1824 cnt &= ~0x3;
1825 if (cnt <= 0) {
1868 if (copy_from_user(dmabuf->rawbuf + swptr, buffer, cnt)) {
1874 swptr = (swptr + cnt) % dmabuf->dmasize;
1882 dmabuf->count += cnt;
1883 count -= cnt;
1884 buffer += cnt;
1885 ret += cnt;