Lines Matching refs:base
1677 struct sbus_dma_info *base = &dma_cont->sbus_info; in sbus_dma_request() local
1681 spin_lock_irqsave(&base->lock, flags); in sbus_dma_request()
1682 csr = sbus_readl(base->regs + APCCSR); in sbus_dma_request()
1685 if (base->dir == APC_PLAY) in sbus_dma_request()
1691 if (base->dir == APC_PLAY) in sbus_dma_request()
1696 sbus_writel(bus_addr, base->regs + base->dir + APCNVA); in sbus_dma_request()
1697 sbus_writel(len, base->regs + base->dir + APCNC); in sbus_dma_request()
1699 spin_unlock_irqrestore(&base->lock, flags); in sbus_dma_request()
1707 struct sbus_dma_info *base = &dma_cont->sbus_info; in sbus_dma_prepare() local
1709 spin_lock_irqsave(&base->lock, flags); in sbus_dma_prepare()
1710 csr = sbus_readl(base->regs + APCCSR); in sbus_dma_prepare()
1714 if (base->dir == APC_RECORD) in sbus_dma_prepare()
1718 sbus_writel(csr, base->regs + APCCSR); in sbus_dma_prepare()
1719 spin_unlock_irqrestore(&base->lock, flags); in sbus_dma_prepare()
1726 struct sbus_dma_info *base = &dma_cont->sbus_info; in sbus_dma_enable() local
1728 spin_lock_irqsave(&base->lock, flags); in sbus_dma_enable()
1730 sbus_writel(0, base->regs + base->dir + APCNC); in sbus_dma_enable()
1731 sbus_writel(0, base->regs + base->dir + APCNVA); in sbus_dma_enable()
1732 if (base->dir == APC_PLAY) { in sbus_dma_enable()
1733 sbus_writel(0, base->regs + base->dir + APCC); in sbus_dma_enable()
1734 sbus_writel(0, base->regs + base->dir + APCVA); in sbus_dma_enable()
1739 csr = sbus_readl(base->regs + APCCSR); in sbus_dma_enable()
1741 if (base->dir == APC_PLAY) in sbus_dma_enable()
1747 sbus_writel(csr, base->regs + APCCSR); in sbus_dma_enable()
1752 sbus_writel(csr, base->regs + APCCSR); in sbus_dma_enable()
1754 spin_unlock_irqrestore(&base->lock, flags); in sbus_dma_enable()
1759 struct sbus_dma_info *base = &dma_cont->sbus_info; in sbus_dma_addr() local
1761 return sbus_readl(base->regs + base->dir + APCVA); in sbus_dma_addr()