Lines Matching refs:dmasize
440 unsigned dmasize; member
866 …_ADC_EN) && (s->dma_adc.mapped || s->dma_adc.count < (signed)(s->dma_adc.dmasize - 2*s->dma_adc.fr… in start_adc()
946 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
947 memset(db->rawbuf, (fmt & ES1371_FMT_S16) ? 0 : 0x80, db->dmasize); in prog_dmabuf()
950 outl((db->dmasize >> 2)-1, s->io+((reg + 4) & 0xff)); in prog_dmabuf()
983 diff = (db->dmasize + hwptr - db->hwptr) % db->dmasize; in get_hwptr()
1012 if (s->dma_adc.count > (signed)(s->dma_adc.dmasize - ((3 * s->dma_adc.fragsize) >> 1))) { in es1371_update_ptr()
1034 clear_advance(s->dma_dac1.rawbuf, s->dma_dac1.dmasize, s->dma_dac1.swptr, in es1371_update_ptr()
1038 if (s->dma_dac1.count + (signed)s->dma_dac1.fragsize <= (signed)s->dma_dac1.dmasize) in es1371_update_ptr()
1057 clear_advance(s->dma_dac2.rawbuf, s->dma_dac2.dmasize, s->dma_dac2.swptr, in es1371_update_ptr()
1061 if (s->dma_dac2.count + (signed)s->dma_dac2.fragsize <= (signed)s->dma_dac2.dmasize) in es1371_update_ptr()
1356 cnt = s->dma_adc.dmasize-swptr; in es1371_read()
1392 swptr = (swptr + cnt) % s->dma_adc.dmasize; in es1371_read()
1439 cnt = s->dma_dac2.dmasize-swptr; in es1371_write()
1440 if (s->dma_dac2.count + cnt > s->dma_dac2.dmasize) in es1371_write()
1441 cnt = s->dma_dac2.dmasize - s->dma_dac2.count; in es1371_write()
1475 swptr = (swptr + cnt) % s->dma_dac2.dmasize; in es1371_write()
1525 if ((signed)s->dma_dac2.dmasize >= s->dma_dac2.count + (signed)s->dma_dac2.fragsize) in es1371_poll()
1773 abinfo.bytes = s->dma_dac2.dmasize - count; in es1371_ioctl()
2047 cnt = s->dma_dac1.dmasize-swptr; in es1371_write_dac()
2048 if (s->dma_dac1.count + cnt > s->dma_dac1.dmasize) in es1371_write_dac()
2049 cnt = s->dma_dac1.dmasize - s->dma_dac1.count; in es1371_write_dac()
2076 swptr = (swptr + cnt) % s->dma_dac1.dmasize; in es1371_write_dac()
2110 if ((signed)s->dma_dac1.dmasize >= s->dma_dac1.count + (signed)s->dma_dac1.fragsize) in es1371_poll_dac()
2262 abinfo.bytes = s->dma_dac1.dmasize - count; in es1371_ioctl_dac()