Lines Matching refs:xd_dma_buffer
96 static char *xd_dma_buffer = 0; variable
169 if (!xd_dma_buffer) in xd_init()
170 xd_dma_buffer = (char *)xd_dma_mem_alloc(xd_maxsectors * 0x200); in xd_init()
171 if (!xd_dma_buffer) in xd_init()
347 if (nodma && xd_dma_buffer) { in xd_ioctl()
348 xd_dma_mem_free((unsigned long)xd_dma_buffer, xd_maxsectors * 0x200); in xd_ioctl()
349 xd_dma_buffer = 0; in xd_ioctl()
350 } else if (!nodma && !xd_dma_buffer) { in xd_ioctl()
351 xd_dma_buffer = (char *)xd_dma_mem_alloc(xd_maxsectors * 0x200); in xd_ioctl()
352 if (!xd_dma_buffer) in xd_ioctl()
449 if (xd_dma_buffer) { in xd_readwrite()
450 …mode = xd_setup_dma(operation == READ ? DMA_MODE_READ : DMA_MODE_WRITE,(u8 *)(xd_dma_buffer),temp … in xd_readwrite()
451 real_buffer = &xd_dma_buffer; in xd_readwrite()
452 memcpy(xd_dma_buffer, buffer, temp * 0x200); in xd_readwrite()
486 if (xd_dma_buffer) in xd_readwrite()
487 memcpy(buffer, xd_dma_buffer, (temp * 0x200)); in xd_readwrite()
1158 if (xd_dma_buffer) in cleanup_module()
1159 xd_dma_mem_free((unsigned long)xd_dma_buffer, xd_maxsectors * 0x200); in cleanup_module()