Lines Matching refs:size
43 #define fd_dma_mem_alloc(size) SW._dma_mem_alloc(size) argument
44 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) argument
154 static unsigned long dma_mem_alloc(unsigned long size) in dma_mem_alloc() argument
156 return __get_dma_pages(GFP_KERNEL|__GFP_NORETRY, get_order(size)); in dma_mem_alloc()
160 static unsigned long vdma_mem_alloc(unsigned long size) in vdma_mem_alloc() argument
162 return (unsigned long)vmalloc(size); in vdma_mem_alloc()
166 #define nodma_mem_alloc(size) vdma_mem_alloc(size) argument
168 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument
173 free_pages(addr, get_order(size)); in _fd_dma_mem_free()
176 #define fd_dma_mem_free(addr, size) _fd_dma_mem_free(addr, size) argument
178 static void _fd_chose_dma_mode(char *addr, unsigned long size) in _fd_chose_dma_mode() argument
183 _CROSS_64KB(addr, size, 0)) in _fd_chose_dma_mode()
192 #define fd_chose_dma_mode(addr, size) _fd_chose_dma_mode(addr, size) argument
195 static int vdma_dma_setup(char *addr, unsigned long size, int mode, int io) in vdma_dma_setup() argument
201 virtual_dma_count = size; in vdma_dma_setup()
206 static int hard_dma_setup(char *addr, unsigned long size, int mode, int io) in hard_dma_setup() argument
209 if (CROSS_64KB(addr, size)) { in hard_dma_setup()
210 printk("DMA crossing 64-K boundary %p-%p\n", addr, addr+size); in hard_dma_setup()
219 set_dma_count(FLOPPY_DMA, size); in hard_dma_setup()
228 unsigned long (*_dma_mem_alloc)(unsigned long size);
229 int (*_dma_setup)(char *addr, unsigned long size, int mode, int io);