Lines Matching refs:size
54 #define fd_dma_mem_alloc(size) SW._dma_mem_alloc(size)
55 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io)
166 static unsigned long dma_mem_alloc(unsigned long size)
168 return __get_dma_pages(GFP_KERNEL, get_order(size));
172 static unsigned long vdma_mem_alloc(unsigned long size)
174 return (unsigned long) vmalloc(size);
178 #define nodma_mem_alloc(size) vdma_mem_alloc(size)
180 static void _fd_dma_mem_free(unsigned long addr, unsigned long size)
185 free_pages(addr, get_order(size));
188 #define fd_dma_mem_free(addr, size) _fd_dma_mem_free(addr, size)
190 static void _fd_chose_dma_mode(char *addr, unsigned long size)
195 _CROSS_64KB(addr, size, 0))
204 #define fd_chose_dma_mode(addr, size) _fd_chose_dma_mode(addr, size)
207 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io)
213 virtual_dma_count = size;
218 static int hard_dma_setup(char *addr, unsigned long size, int mode, int io)
221 if (CROSS_64KB(addr, size)) {
222 printk("DMA crossing 64-K boundary %p-%p\n", addr, addr+size);
231 set_dma_count(FLOPPY_DMA,size);
240 unsigned long (*_dma_mem_alloc) (unsigned long size);
241 int (*_dma_setup)(char *addr, unsigned long size, int mode, int io);