Lines Matching +full:addr +full:- +full:mode
25 ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))
44 #define fd_dma_setup(addr, size, mode, io) SW._dma_setup(addr, size, mode, io) argument
78 lcount; lcount--, lptr++) { in floppy_hardint()
168 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument
170 if ((unsigned long)addr >= (unsigned long)high_memory) in _fd_dma_mem_free()
171 vfree((void *)addr); in _fd_dma_mem_free()
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
181 if ((unsigned long)addr >= (unsigned long)high_memory || in _fd_chose_dma_mode()
182 isa_virt_to_bus(addr) >= 0x1000000 || in _fd_chose_dma_mode()
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
199 virtual_dma_mode = (mode == DMA_MODE_WRITE); in vdma_dma_setup()
200 virtual_dma_addr = addr; 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()
211 return -1; in hard_dma_setup()
217 set_dma_mode(FLOPPY_DMA, mode); in hard_dma_setup()
218 set_dma_addr(FLOPPY_DMA, isa_virt_to_bus(addr)); in hard_dma_setup()
229 int (*_dma_setup)(char *addr, unsigned long size, int mode, int io);
249 static int FDC2 = -1;