Lines Matching refs:dma_buff
228 unsigned char *dma_buff; /* points to the beginning of the buffer */
917 memcpy(skb_put(skb,length - semi_cnt), lp->dma_buff,
1230 lp->dma_buff = (unsigned char *)__get_dma_pages(GFP_KERNEL,
1233 if (!lp->dma_buff) {
1240 (unsigned long)lp->dma_buff,
1241 (unsigned long)isa_virt_to_bus(lp->dma_buff));
1243 if ((unsigned long) lp->dma_buff >= MAX_DMA_ADDRESS ||
1244 !dma_page_eq(lp->dma_buff, lp->dma_buff+lp->dmasize*1024-1)) {
1248 memset(lp->dma_buff, 0, lp->dmasize * 1024); /* Why? */
1254 lp->rx_dma_ptr = lp->dma_buff;
1255 lp->end_dma_buff = lp->dma_buff + lp->dmasize*1024;
1260 set_dma_addr(dev->dma, isa_virt_to_bus(lp->dma_buff));
1618 if (lp->dma_buff) {
1619 free_pages((unsigned long)(lp->dma_buff), get_order(lp->dmasize * 1024));
1620 lp->dma_buff = NULL;