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