Lines Matching refs:dma_buff
156 unsigned char *dma_buff; /* points to the beginning of the buffer */ member
455 skb_put_data(skb, lp->dma_buff, length - semi_cnt); in dma_rx()
477 if (lp->dma_buff) { in release_dma_buff()
478 free_pages((unsigned long)(lp->dma_buff), in release_dma_buff()
480 lp->dma_buff = NULL; in release_dma_buff()
888 lp->dma_buff = (unsigned char *)__get_dma_pages(GFP_KERNEL, in net_open()
890 if (!lp->dma_buff) { in net_open()
897 (unsigned long)lp->dma_buff, in net_open()
898 (unsigned long)isa_virt_to_bus(lp->dma_buff)); in net_open()
899 if ((unsigned long)lp->dma_buff >= MAX_DMA_ADDRESS || in net_open()
900 !dma_page_eq(lp->dma_buff, in net_open()
901 lp->dma_buff + lp->dmasize * 1024 - 1)) { in net_open()
905 memset(lp->dma_buff, 0, lp->dmasize * 1024); /* Why? */ in net_open()
912 lp->rx_dma_ptr = lp->dma_buff; in net_open()
913 lp->end_dma_buff = lp->dma_buff + lp->dmasize * 1024; in net_open()
918 set_dma_addr(dev->dma, isa_virt_to_bus(lp->dma_buff)); in net_open()