Lines Matching refs:dmasize
227 int dmasize; /* 16 or 64 */
519 lp->dmasize = 16; /* Could make this an option... */
871 if (lp->dmasize == 64)
908 if (bp >= lp->end_dma_buff) bp -= lp->dmasize*1024;
923 if (bp >= lp->end_dma_buff) bp -= lp->dmasize*1024;
1231 get_order(lp->dmasize * 1024));
1234 printk(KERN_ERR "%s: cannot get %dK memory for DMA\n", dev->name, lp->dmasize);
1244 !dma_page_eq(lp->dma_buff, lp->dma_buff+lp->dmasize*1024-1)) {
1248 memset(lp->dma_buff, 0, lp->dmasize * 1024); /* Why? */
1255 lp->end_dma_buff = lp->dma_buff + lp->dmasize*1024;
1261 set_dma_count(dev->dma, lp->dmasize*1024);
1619 free_pages((unsigned long)(lp->dma_buff), get_order(lp->dmasize * 1024));
1736 static int dmasize=16; /* or 64 */
1744 module_param(dmasize , int, 0);
1758 MODULE_PARM_DESC(dmasize , "cs89x0 DMA size in kB (16,64); ignored if use_dma=0");
1762 MODULE_PARM_DESC(dmasize , "(ignored)");
1818 lp->dmasize = dmasize;
1848 if (use_dma && dmasize != 16 && dmasize != 64) {
1849 printk(KERN_ERR "cs89x0.c: dma size must be either 16K or 64K, not %dK\n", dmasize);