Home
last modified time | relevance | path

Searched refs:dmasize (Results 1 – 22 of 22) sorted by relevance

/linux-2.4.37.9/drivers/sound/
Dau1000.c155 unsigned dmasize; // Total DMA buffer size member
519 if (buf2 >= db->dmaaddr + db->dmasize) in start_dac()
520 buf2 -= db->dmasize; in start_dac()
564 if (buf2 >= db->dmaaddr + db->dmasize) in start_adc()
565 buf2 -= db->dmasize; in start_adc()
682 db->dmasize = db->dma_fragsize * db->numfrag; in prog_dmabuf()
690 dbg("numfrag=%d, dmasize=%d", db->numfrag, db->dmasize); in prog_dmabuf()
734 if (dac->nextOut >= dac->rawbuf + dac->dmasize) in dac_dma_interrupt()
735 dac->nextOut -= dac->dmasize; in dac_dma_interrupt()
739 if (newptr >= dac->dmaaddr + dac->dmasize) in dac_dma_interrupt()
[all …]
Dymfpci.c395 dmabuf->dmasize = dmabuf->numfrag << dmabuf->fragshift; in prog_dmabuf()
405 dmabuf->dmasize = dmabuf->numfrag << dmabuf->fragshift; in prog_dmabuf()
409 memset(dmabuf->rawbuf, w_16 ? 0 : 0x80, dmabuf->dmasize); in prog_dmabuf()
437 dmabuf->fragsize, dmabuf->dmasize); in prog_dmabuf()
628 if (pos < 0 || pos >= dmabuf->dmasize) { /* ucode bug */ in ymf_pcm_interrupt()
631 dmabuf->hwptr, pos, dmabuf->dmasize); in ymf_pcm_interrupt()
635 delta = dmabuf->dmasize - dmabuf->hwptr; in ymf_pcm_interrupt()
654 distance = dmabuf->dmasize - (swptr - pos); in ymf_pcm_interrupt()
689 distance = dmabuf->dmasize - (pos - swptr); in ymf_pcm_interrupt()
700 if (dmabuf->count < dmabuf->dmasize / 2) { in ymf_pcm_interrupt()
[all …]
Dali5455.c299 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()
[all …]
Dite8172.c313 unsigned dmasize; member
598 if (buf2 >= db->dmaaddr + db->dmasize) in start_dac()
599 buf2 -= db->dmasize; in start_dac()
633 if (buf2 >= db->dmaaddr + db->dmasize) in start_adc()
634 buf2 -= db->dmasize; in start_adc()
728 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
733 rate, db->fragsize, db->numfrag, db->dmasize); in prog_dmabuf()
803 if (adc->count > adc->dmasize - adc->fragsize) { in it8172_interrupt()
810 if (newptr >= adc->dmaaddr + adc->dmasize) in it8172_interrupt()
811 newptr -= adc->dmasize; in it8172_interrupt()
[all …]
Dau1550_i2s.c141 unsigned dmasize; member
430 if (db->nextIn >= db->rawbuf + db->dmasize) in start_adc()
431 db->nextIn -= db->dmasize; in start_adc()
503 db->dmasize = db->dma_fragsize * db->numfrag; in prog_dmabuf()
511 dbg("numfrag=%d, dmasize=%d", db->numfrag, db->dmasize); in prog_dmabuf()
557 if (db->nextOut >= db->rawbuf + db->dmasize) in dac_dma_interrupt()
558 db->nextOut -= db->dmasize; in dac_dma_interrupt()
582 if ((dp->count + obytes) > dp->dmasize) { in adc_dma_interrupt()
596 if (dp->nextIn >= dp->rawbuf + dp->dmasize) in adc_dma_interrupt()
597 dp->nextIn -= dp->dmasize; in adc_dma_interrupt()
[all …]
Di810_audio.c380 unsigned dmasize; member
785 % dmabuf->dmasize); in i810_get_dma_addr()
820 if (dmabuf->count < dmabuf->dmasize && dmabuf->ready && !dmabuf->enable && in __start_adc()
988 dmabuf->dmasize = PAGE_SIZE << dmabuf->buforder; in prog_dmabuf()
990 dmabuf->fragsize = dmabuf->dmasize/dmabuf->numfrag; in prog_dmabuf()
994 dmabuf->userfrags = dmabuf->dmasize/dmabuf->ossfragsize; in prog_dmabuf()
996 memset(dmabuf->rawbuf, 0, dmabuf->dmasize); in prog_dmabuf()
1059 dmabuf->fragsize, dmabuf->dmasize); in prog_dmabuf()
1078 count = dmabuf->dmasize - count; in __i810_update_lvi()
1113 x = MODULOP2(MASKP2(dmabuf->swptr, fragsize) - 1, dmabuf->dmasize); in __i810_update_lvi()
[all …]
Desssolo1.c206 unsigned dmasize; member
383 …if (!(s->ena & FMODE_READ) && (s->dma_adc.mapped || s->dma_adc.count < (signed)(s->dma_adc.dmasize in start_adc()
396 outw(s->dma_adc.dmasize-1, s->ddmabase+4); in start_adc()
479 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
503 outw(s->dma_adc.dmasize-1, s->ddmabase+4); in prog_dmabuf_adc()
520 …memset(s->dma_dac.rawbuf, (s->fmt & (AFMT_U8 | AFMT_U16_LE)) ? 0 : 0x80, s->dma_dac.dmasize); /* a… in prog_dmabuf_dac()
522 if ((va ^ (va + s->dma_dac.dmasize - 1)) & ~((1<<20)-1)) in prog_dmabuf_dac()
526 outw(s->dma_dac.dmasize, s->iobase+4); in prog_dmabuf_dac()
555 hwptr = (s->dma_adc.dmasize - 1 - inw(s->ddmabase+4)) % s->dma_adc.dmasize; in solo1_update_ptr()
556 diff = (s->dma_adc.dmasize + hwptr - s->dma_adc.hwptr) % s->dma_adc.dmasize; in solo1_update_ptr()
[all …]
Dtrident.c319 unsigned dmasize; member
955 channel->eso = dmabuf->dmasize >> sample_shift[dmabuf->fmt]; in trident_play_setup()
1051 channel->eso = dmabuf->dmasize >> sample_shift[dmabuf->fmt]; in trident_rec_setup()
1114 return (cso % dmabuf->dmasize); in trident_get_dma_addr()
1147 if ((dmabuf->mapped || dmabuf->count < (signed)dmabuf->dmasize) && dmabuf->ready) { in start_adc()
1340 dmabuf->dmasize = dmabuf->numfrag << dmabuf->fragshift; in prog_dmabuf()
1343 dmabuf->dmasize); in prog_dmabuf()
1359 dmabuf->fragsize, dmabuf->dmasize); in prog_dmabuf()
1384 if (swptr == 0 || swptr == dmabuf->dmasize / 2 || swptr == dmabuf->dmasize) in trident_clear_tail()
1387 if (swptr < dmabuf->dmasize/2) in trident_clear_tail()
[all …]
Dcmpci.c383 unsigned dmasize; member
525 curr_addr = s->dma_dac.dmasize - curr_addr; in get_dmadac()
536 curr_addr = s->dma_adc.dmasize - curr_addr; in get_dmaadc()
1087 if ((s->dma_adc.mapped || s->dma_adc.count < (signed)(s->dma_adc.dmasize - 2*s->dma_adc.fragsize)) in start_adc_unlocked()
1291 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
1292 db->dmasamples = db->dmasize >> sample_shift[fmt]; in prog_dmabuf()
1293 memset(db->rawbuf, (fmt & CM_CFMT_16BIT) ? 0 : 0x80, db->dmasize); in prog_dmabuf()
1297 set_dmadac1(s, db->rawphys, db->dmasize >> sample_shift[fmt]); in prog_dmabuf()
1299 set_dmaadc(s, db->rawphys, db->dmasize >> sample_shift[fmt]); in prog_dmabuf()
1303 set_dmadac(s, db->rawphys, db->dmasize >> sample_shift[fmt]); in prog_dmabuf()
[all …]
Dau1550_psc.c137 unsigned dmasize; member
639 if (db->nextIn >= db->rawbuf + db->dmasize) in start_adc()
640 db->nextIn -= db->dmasize; in start_adc()
711 db->dmasize = db->dma_fragsize * db->numfrag; in prog_dmabuf()
719 dbg("numfrag=%d, dmasize=%d", db->numfrag, db->dmasize); in prog_dmabuf()
763 if (db->nextOut >= db->rawbuf + db->dmasize) in dac_dma_interrupt()
764 db->nextOut -= db->dmasize; in dac_dma_interrupt()
788 if ((dp->count + obytes) > dp->dmasize) { in adc_dma_interrupt()
802 if (dp->nextIn >= dp->rawbuf + dp->dmasize) in adc_dma_interrupt()
803 dp->nextIn -= dp->dmasize; in adc_dma_interrupt()
[all …]
Dmaestro3.c233 unsigned dmasize; member
689 s->dma_adc.count >= (signed)(s->dma_adc.dmasize - 2*s->dma_adc.fragsize)) in start_adc()
1120 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
1122 …(DPSTR,"prog_dmabuf: numfrag: %d fragsize: %d dmasize: %d\n",db->numfrag,db->fragsize,db->dmasize); in prog_dmabuf()
1124 memset(db->rawbuf, (fmt & ESS_FMT_16BIT) ? 0 : 0x80, db->dmasize); in prog_dmabuf()
1127 m3_rec_setup(s, fmt, s->rateadc, db->rawbuf, db->dmasize); in prog_dmabuf()
1129 m3_play_setup(s, fmt, s->ratedac, db->rawbuf, db->dmasize); in prog_dmabuf()
1143 unsigned bsize = s->dma_dac.dmasize; in clear_advance()
1165 hwptr = get_dmac(s) % s->dma_adc.dmasize; in m3_update_ptr()
1166 diff = (s->dma_adc.dmasize + hwptr - s->dma_adc.hwptr) % s->dma_adc.dmasize; in m3_update_ptr()
[all …]
Dmaestro.c422 unsigned dmasize; member
1339 if ((s->dma_adc.mapped || s->dma_adc.count < (signed)(s->dma_adc.dmasize - 2*s->dma_adc.fragsize)) in start_adc()
1780 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
1782 …"maestro: setup oss: numfrag: %d fragsize: %d dmasize: %d\n",db->numfrag,db->fragsize,db->dmasize); in prog_dmabuf()
1784 memset(db->rawbuf, (fmt & ESS_FMT_16BIT) ? 0 : 0x80, db->dmasize); in prog_dmabuf()
1788 ess_rec_setup(s, fmt, s->rateadc, db->rawbuf, db->dmasize); in prog_dmabuf()
1790 ess_play_setup(s, fmt, s->ratedac, db->rawbuf, db->dmasize); in prog_dmabuf()
1804 unsigned bsize = s->dma_dac.dmasize; in clear_advance()
1832 hwptr = (get_dmac(s)*2) % s->dma_adc.dmasize; in ess_update_ptr()
1834 hwptr = get_dmac(s) % s->dma_adc.dmasize; in ess_update_ptr()
[all …]
Dsonicvibes.c346 unsigned dmasize; member
691 if ((s->dma_adc.mapped || s->dma_adc.count < (signed)(s->dma_adc.dmasize - 2*s->dma_adc.fragsize)) in start_adc()
786 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
787 memset(db->rawbuf, (fmt & SV_CFMT_16BIT) ? 0 : 0x80, db->dmasize); in prog_dmabuf()
810 unsigned bsize = s->dma_dac.dmasize; in clear_advance()
831 hwptr = (s->dma_adc.dmasize - get_dmac(s)) % s->dma_adc.dmasize; in sv_update_ptr()
832 diff = (s->dma_adc.dmasize + hwptr - s->dma_adc.hwptr) % s->dma_adc.dmasize; in sv_update_ptr()
839 if (s->dma_adc.count > (signed)(s->dma_adc.dmasize - ((3 * s->dma_adc.fragsize) >> 1))) { in sv_update_ptr()
848 hwptr = (s->dma_dac.dmasize - get_dmaa(s)) % s->dma_dac.dmasize; in sv_update_ptr()
849 diff = (s->dma_dac.dmasize + hwptr - s->dma_dac.hwptr) % s->dma_dac.dmasize; in sv_update_ptr()
[all …]
Des1370.c366 unsigned dmasize; member
532 …_ADC_EN) && (s->dma_adc.mapped || s->dma_adc.count < (signed)(s->dma_adc.dmasize - 2*s->dma_adc.fr… in start_adc()
611 db->dmasize = db->numfrag << db->fragshift; in prog_dmabuf()
612 memset(db->rawbuf, (fmt & ES1370_FMT_S16) ? 0 : 0x80, db->dmasize); in prog_dmabuf()
615 outl((db->dmasize >> 2)-1, s->io+((reg + 4) & 0xff)); in prog_dmabuf()
648 diff = (db->dmasize + hwptr - db->hwptr) % db->dmasize; in get_hwptr()
677 if (s->dma_adc.count > (signed)(s->dma_adc.dmasize - ((3 * s->dma_adc.fragsize) >> 1))) { in es1370_update_ptr()
699 clear_advance(s->dma_dac1.rawbuf, s->dma_dac1.dmasize, s->dma_dac1.swptr, in es1370_update_ptr()
703 if (s->dma_dac1.count + (signed)s->dma_dac1.fragsize <= (signed)s->dma_dac1.dmasize) in es1370_update_ptr()
722 clear_advance(s->dma_dac2.rawbuf, s->dma_dac2.dmasize, s->dma_dac2.swptr, in es1370_update_ptr()
[all …]
Des1371.c440 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()
[all …]
Dcs46xx.c288 unsigned dmasize; member
1087 ((dmabuf->mapped || dmabuf->count < (signed)dmabuf->dmasize) in start_adc()
1315 dmabuf->dmasize = 4096; in __prog_dmabuf()
1319 dmabuf->dmasize); in __prog_dmabuf()
1338 dmabuf->fragsize, dmabuf->dmasize) ); in __prog_dmabuf()
1406 dmabuf->dmasize = dmabuf->numfrag*4096; in __prog_dmabuf()
1417 dmabuf->dmasize = 4096; in __prog_dmabuf()
1424 dmabuf->dmasize); in __prog_dmabuf()
1441 dmabuf->fragsize, dmabuf->dmasize) ); in __prog_dmabuf()
1507 tmo = (dmabuf->dmasize * HZ) / dmabuf->rate; in drain_dac()
[all …]
Dad1889.c414 diff = (dmabuf->dmasize + hwptr - dmabuf->hwptr) % dmabuf->dmasize;
419 if (dmabuf->count > dmabuf->dmasize)
420 dmabuf->count = dmabuf->dmasize;
592 if ((int)dmabuf->dmasize >= dmabuf->count + in ad1889_poll()
Dymfpci.h307 unsigned dmasize; /* Total rawbuf[] size */ member
/linux-2.4.37.9/drivers/net/
Dcs89x0.c209 int dmasize; /* 16 or 64 */ member
404 lp->dmasize = 16; /* Could make this an option... */ in cs89x0_probe1()
805 if (lp->dmasize == 64) in dma_busctl()
842 if (bp >= lp->end_dma_buff) bp -= lp->dmasize*1024; in dma_rx()
858 if (bp >= lp->end_dma_buff) bp -= lp->dmasize*1024; in dma_rx()
1174 get_order(lp->dmasize * 1024)); in net_open()
1177 printk(KERN_ERR "%s: cannot get %dK memory for DMA\n", dev->name, lp->dmasize); in net_open()
1187 !dma_page_eq(lp->dma_buff, lp->dma_buff+lp->dmasize*1024-1)) { in net_open()
1191 memset(lp->dma_buff, 0, lp->dmasize * 1024); /* Why? */ in net_open()
1198 lp->end_dma_buff = lp->dma_buff + lp->dmasize*1024; in net_open()
[all …]
/linux-2.4.37.9/drivers/sound/cs4281/
Dcs4281m.c305 unsigned dmasize; // 2**buforder. member
1691 (signed) (s->dma_adc.dmasize - 2 * s->dma_adc.fragsize)) in start_adc()
1877 db->dmasize = db->fragsize * 2; in prog_dmabuf()
1882 if (db->dmasize > bufs) { in prog_dmabuf()
1887 db->dmasize = bufs; // Use all the alloc'ed buffer. in prog_dmabuf()
1922 s->dma_adc.dmasize); in prog_dmabuf_adc()
1933 count = s->dma_adc.dmasize; in prog_dmabuf_adc()
1964 s->dma_dac.dmasize); in prog_dmabuf_dac()
1968 count = s->dma_dac.dmasize; in prog_dmabuf_dac()
2017 (s->dma_adc.dmasize + hwptr - in cs4281_update_ptr()
[all …]
/linux-2.4.37.9/drivers/usb/
Daudio.c291 unsigned int dmasize; member
551 db->dmasize = db->numfrag << db->fragshift; in dmabuf_init()
561 if ((nr << PAGE_SHIFT) >= db->dmasize) in dmabuf_init()
570 db->numfrag, db->dmasize, db->bufsize, db->format, db->srate)); in dmabuf_init()
605 rem = db->dmasize - db->wrptr; in dmabuf_copyin()
612 if (db->wrptr >= db->dmasize) in dmabuf_copyin()
629 rem = db->dmasize - db->rdptr; in dmabuf_copyout()
636 if (db->rdptr >= db->dmasize) in dmabuf_copyout()
654 rem = db->dmasize - ptr; in dmabuf_copyin_user()
662 if (ptr >= db->dmasize) in dmabuf_copyin_user()
[all …]
/linux-2.4.37.9/Documentation/networking/
Dcs89x0.txt226 * dmasize=# (16 or 64) - DMA size 16K or 64K. Default value is set to 16.