Lines Matching refs:dmasize
299 unsigned dmasize; member
735 data = ((civ + 1) * dmabuf->fragsize - (2 * offset)) % dmabuf->dmasize; in ali_get_dma_addr()
778 if (dmabuf->count < dmabuf->dmasize && dmabuf->ready in __start_adc()
1012 dmabuf->dmasize = PAGE_SIZE << dmabuf->buforder; in prog_dmabuf()
1014 dmabuf->fragsize = dmabuf->dmasize / dmabuf->numfrag; in prog_dmabuf()
1017 dmabuf->userfrags = dmabuf->dmasize / dmabuf->ossfragsize; in prog_dmabuf()
1019 memset(dmabuf->rawbuf, 0, dmabuf->dmasize); in prog_dmabuf()
1100 if (rec && dmabuf->count < dmabuf->dmasize && (dmabuf->trigger & PCM_ENABLE_INPUT)) { in __ali_update_lvi()
1129 x = (dmabuf->dmasize + dmabuf->swptr - 1) % dmabuf->dmasize; in __ali_update_lvi()
1156 diff = (dmabuf->dmasize + hwptr - dmabuf->hwptr) % dmabuf->dmasize; in ali_update_ptr()
1160 if (dmabuf->count > dmabuf->dmasize) { in ali_update_ptr()
1178 (dmabuf->dmasize + hwptr - in ali_update_ptr()
1179 dmabuf->hwptr) % dmabuf->dmasize; in ali_update_ptr()
1201 if (dmabuf->count < (dmabuf->dmasize - dmabuf->userfragsize)) in ali_update_ptr()
1209 diff = (dmabuf->dmasize + hwptr - dmabuf->hwptr) % dmabuf->dmasize; in ali_update_ptr()
1227 if (dmabuf->count < (dmabuf->dmasize - dmabuf->userfragsize)) in ali_update_ptr()
1234 diff = (dmabuf->dmasize + hwptr - dmabuf->hwptr) % dmabuf->dmasize; in ali_update_ptr()
1254 if (dmabuf->count < (dmabuf->dmasize - dmabuf->userfragsize)) in ali_update_ptr()
1269 free = dmabuf->dmasize - dmabuf->count; in ali_get_free_write_space()
1282 if (dmabuf->count > dmabuf->dmasize) { in ali_get_available_read_data()
1283 dmabuf->count = dmabuf->dmasize; in ali_get_available_read_data()
1484 count = dmabuf->dmasize - dmabuf->count; in ali_channel_interrupt()
1518 count = dmabuf->dmasize - dmabuf->count; in ali_channel_interrupt()
1622 if (cnt > (dmabuf->dmasize - swptr)) in ali_read()
1623 cnt = dmabuf->dmasize - swptr; in ali_read()
1660 tmo = (dmabuf->dmasize * HZ * 2) / (dmabuf->rate * 4); in ali_read()
1673 dmabuf->dmasize, dmabuf->fragsize, in ali_read()
1692 swptr = (swptr + cnt) % dmabuf->dmasize; in ali_read()
1797 if (cnt > (dmabuf->dmasize - swptr)) in ali_write()
1798 cnt = dmabuf->dmasize - swptr; in ali_write()
1842 tmo = (dmabuf->dmasize * HZ * 2) / (dmabuf->rate * 4); in ali_write()
1866 swptr = (swptr + cnt) % dmabuf->dmasize; in ali_write()
1916 if ((signed) dmabuf->dmasize >= dmabuf->count + (signed) dmabuf->fragsize) in ali_poll()
2340 abinfo.bytes = dmabuf->dmasize; in ali_ioctl()
2375 dmabuf->swptr = (dmabuf->swptr + val) % dmabuf->dmasize; in ali_ioctl()
2382 dmabuf->swptr = (dmabuf->swptr + val) % dmabuf->dmasize; in ali_ioctl()
2388 dmabuf->swptr = (dmabuf->swptr + val) % dmabuf->dmasize; in ali_ioctl()
2429 dmabuf->swptr = (dmabuf->swptr + val) % dmabuf->dmasize; in ali_ioctl()
2490 dmabuf->swptr = (dmabuf->swptr + dmabuf->count) % dmabuf->dmasize; in ali_ioctl()
2512 dmabuf->swptr = (dmabuf->swptr + dmabuf->count) % dmabuf->dmasize; in ali_ioctl()
2534 dmabuf->swptr = (dmabuf->swptr + dmabuf->count) % dmabuf->dmasize; in ali_ioctl()
3357 if (dmabuf->dmasize < 16384) in ali_configure_clocking()
3360 dmabuf->count = dmabuf->dmasize; in ali_configure_clocking()