Lines Matching refs:sparc_ebus_dmas

42 } sparc_ebus_dmas[PARPORT_PC_MAX_PORTS];  variable
50 if (xchg(&sparc_ebus_dmas[dmanr].lock, 1) != 0) in request_dma()
61 if (xchg(&sparc_ebus_dmas[dmanr].lock, 0) == 0) { in free_dma()
69 ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 1); in enable_dma()
71 if (ebus_dma_request(&sparc_ebus_dmas[dmanr].info, in enable_dma()
72 sparc_ebus_dmas[dmanr].addr, in enable_dma()
73 sparc_ebus_dmas[dmanr].count)) in enable_dma()
79 ebus_dma_enable(&sparc_ebus_dmas[dmanr].info, 0); in disable_dma()
89 ebus_dma_prepare(&sparc_ebus_dmas[dmanr].info, (mode != DMA_MODE_WRITE)); in set_dma_mode()
94 sparc_ebus_dmas[dmanr].addr = addr; in set_dma_addr()
99 sparc_ebus_dmas[dmanr].count = count; in set_dma_count()
104 return ebus_dma_residue(&sparc_ebus_dmas[dmanr].info); in get_dma_residue()
136 spin_lock_init(&sparc_ebus_dmas[slot].info.lock); in ecpp_probe()
139 sparc_ebus_dmas[slot].info.regs = in ecpp_probe()
142 if (!sparc_ebus_dmas[slot].info.regs) in ecpp_probe()
145 sparc_ebus_dmas[slot].info.flags = 0; in ecpp_probe()
146 sparc_ebus_dmas[slot].info.callback = NULL; in ecpp_probe()
147 sparc_ebus_dmas[slot].info.client_cookie = NULL; in ecpp_probe()
148 sparc_ebus_dmas[slot].info.irq = 0xdeadbeef; in ecpp_probe()
149 strcpy(sparc_ebus_dmas[slot].info.name, "parport"); in ecpp_probe()
150 if (ebus_dma_register(&sparc_ebus_dmas[slot].info)) in ecpp_probe()
153 ebus_dma_irq_enable(&sparc_ebus_dmas[slot].info, 1); in ecpp_probe()
183 ebus_dma_irq_enable(&sparc_ebus_dmas[slot].info, 0); in ecpp_probe()
184 ebus_dma_unregister(&sparc_ebus_dmas[slot].info); in ecpp_probe()
187 of_iounmap(&op->resource[2], sparc_ebus_dmas[slot].info.regs, d_len); in ecpp_probe()
209 ebus_dma_irq_enable(&sparc_ebus_dmas[slot].info, 0); in ecpp_remove()
210 ebus_dma_unregister(&sparc_ebus_dmas[slot].info); in ecpp_remove()
212 sparc_ebus_dmas[slot].info.regs, in ecpp_remove()