Lines Matching refs:dregs
244 void __iomem *dregs; /* DMA controller regs. */ member
442 u32 csr = sbus_readl(lp->dregs + DMA_CSR); in init_restart_ledma()
446 while (sbus_readl(lp->dregs + DMA_CSR) & DMA_FIFO_ISDRAIN) in init_restart_ledma()
450 csr = sbus_readl(lp->dregs + DMA_CSR); in init_restart_ledma()
464 sbus_writel(csr, lp->dregs + DMA_CSR); in init_restart_ledma()
473 if (lp->dregs) in init_restart_lance()
490 if (lp->dregs) in init_restart_lance()
491 printk("dcsr=%8.8x\n", sbus_readl(lp->dregs + DMA_CSR)); in init_restart_lance()
499 if (lp->dregs) { in init_restart_lance()
500 u32 csr = sbus_readl(lp->dregs + DMA_CSR); in init_restart_lance()
503 sbus_writel(csr, lp->dregs + DMA_CSR); in init_restart_lance()
853 if (lp->dregs) { in lance_interrupt()
854 u32 addr = sbus_readl(lp->dregs + DMA_ADDR); in lance_interrupt()
865 if (lp->dregs) { in lance_interrupt()
866 u32 dma_csr = sbus_readl(lp->dregs + DMA_CSR); in lance_interrupt()
869 sbus_writel(dma_csr, lp->dregs + DMA_CSR); in lance_interrupt()
933 if (lp->dregs) { in lance_open()
936 sbus_writel(regval, lp->dregs + DMA_TEST); in lance_open()
992 if (lp->dregs) { in lance_reset()
996 csr = sbus_readl(lp->dregs + DMA_CSR); in lance_reset()
997 sbus_writel(csr | DMA_RST_ENET, lp->dregs + DMA_CSR); in lance_reset()
999 sbus_writel(csr & ~DMA_RST_ENET, lp->dregs + DMA_CSR); in lance_reset()
1002 sbus_writel(addr, lp->dregs + DMA_TEST); in lance_reset()
1158 if (lp->dregs) in lance_start_xmit()
1274 if (lp->dregs) { in lance_free_hwresources()
1277 of_iounmap(&ledma->resource[0], lp->dregs, in lance_free_hwresources()
1352 lp->dregs = of_ioremap(&ledma->resource[0], 0, in sparc_lance_probe_one()
1355 if (!lp->dregs) { in sparc_lance_probe_one()
1456 csr = sbus_readl(lp->dregs + DMA_CSR); in sparc_lance_probe_one()
1457 sbus_writel(csr | DMA_RST_ENET, lp->dregs + DMA_CSR); in sparc_lance_probe_one()
1459 sbus_writel(csr & ~DMA_RST_ENET, lp->dregs + DMA_CSR); in sparc_lance_probe_one()
1461 lp->dregs = NULL; in sparc_lance_probe_one()