Lines Matching refs:base
47 v = readl(aaci->base + AACI_SLFR); in aaci_ac97_select_codec()
49 readl(aaci->base + AACI_SL2RX); in aaci_ac97_select_codec()
51 readl(aaci->base + AACI_SL1RX); in aaci_ac97_select_codec()
53 if (maincr != readl(aaci->base + AACI_MAINCR)) { in aaci_ac97_select_codec()
54 writel(maincr, aaci->base + AACI_MAINCR); in aaci_ac97_select_codec()
55 readl(aaci->base + AACI_MAINCR); in aaci_ac97_select_codec()
87 writel(val << 4, aaci->base + AACI_SL2TX); in aaci_ac97_write()
88 writel(reg << 12, aaci->base + AACI_SL1TX); in aaci_ac97_write()
97 v = readl(aaci->base + AACI_SLFR); in aaci_ac97_write()
126 writel((reg << 12) | (1 << 19), aaci->base + AACI_SL1TX); in aaci_ac97_read()
135 v = readl(aaci->base + AACI_SLFR); in aaci_ac97_read()
152 v = readl(aaci->base + AACI_SLFR) & (SLFR_1RXV|SLFR_2RXV); in aaci_ac97_read()
162 v = readl(aaci->base + AACI_SL1RX) >> 12; in aaci_ac97_read()
164 v = readl(aaci->base + AACI_SL2RX) >> 4; in aaci_ac97_read()
190 val = readl(aacirun->base + AACI_SR); in aaci_chan_wait_ready()
203 writel(ICLR_RXOEC1 << channel, aaci->base + AACI_INTCLR); in aaci_fifo_irq()
208 writel(ICLR_RXTOFEC1 << channel, aaci->base + AACI_INTCLR); in aaci_fifo_irq()
218 writel(0, aacirun->base + AACI_IE); in aaci_fifo_irq()
236 val = readl(aacirun->base + AACI_SR); in aaci_fifo_irq()
268 writel(ICLR_TXUEC1 << channel, aaci->base + AACI_INTCLR); in aaci_fifo_irq()
278 writel(0, aacirun->base + AACI_IE); in aaci_fifo_irq()
296 val = readl(aacirun->base + AACI_SR); in aaci_fifo_irq()
333 mask = readl(aaci->base + AACI_ALLINTS); in aaci_irq()
577 ie = readl(aacirun->base + AACI_IE); in aaci_pcm_playback_stop()
579 writel(ie, aacirun->base + AACI_IE); in aaci_pcm_playback_stop()
582 writel(aacirun->cr, aacirun->base + AACI_TXCR); in aaci_pcm_playback_stop()
592 ie = readl(aacirun->base + AACI_IE); in aaci_pcm_playback_start()
594 writel(ie, aacirun->base + AACI_IE); in aaci_pcm_playback_start()
595 writel(aacirun->cr, aacirun->base + AACI_TXCR); in aaci_pcm_playback_start()
655 ie = readl(aacirun->base + AACI_IE); in aaci_pcm_capture_stop()
657 writel(ie, aacirun->base+AACI_IE); in aaci_pcm_capture_stop()
661 writel(aacirun->cr, aacirun->base + AACI_RXCR); in aaci_pcm_capture_stop()
676 writel(aacirun->cr, aacirun->base + AACI_RXCR); in aaci_pcm_capture_start()
678 ie = readl(aacirun->base + AACI_IE); in aaci_pcm_capture_start()
680 writel(ie, aacirun->base + AACI_IE); in aaci_pcm_capture_start()
845 writel(0, aaci->base + AACI_RESET); in aaci_probe_ac97()
847 writel(RESET_NRST, aaci->base + AACI_RESET); in aaci_probe_ac97()
892 if (aaci->base) in aaci_free_card()
893 iounmap(aaci->base); in aaci_free_card()
960 writel(CR_FEN | CR_SZ16 | CR_EN, aacirun->base + AACI_TXCR); in aaci_size_fifo()
962 for (i = 0; !(readl(aacirun->base + AACI_SR) & SR_TXFF) && i < 4096; i++) in aaci_size_fifo()
965 writel(0, aacirun->base + AACI_TXCR); in aaci_size_fifo()
972 writel(aaci->maincr & ~MAINCR_IE, aaci->base + AACI_MAINCR); in aaci_size_fifo()
973 readl(aaci->base + AACI_MAINCR); in aaci_size_fifo()
975 writel(aaci->maincr, aaci->base + AACI_MAINCR); in aaci_size_fifo()
1003 aaci->base = ioremap(dev->res.start, resource_size(&dev->res)); in aaci_probe()
1004 if (!aaci->base) { in aaci_probe()
1013 aaci->playback.base = aaci->base + AACI_CSCH1; in aaci_probe()
1014 aaci->playback.fifo = aaci->base + AACI_DR1; in aaci_probe()
1020 aaci->capture.base = aaci->base + AACI_CSCH1; in aaci_probe()
1021 aaci->capture.fifo = aaci->base + AACI_DR1; in aaci_probe()
1024 void __iomem *base = aaci->base + i * 0x14; in aaci_probe() local
1026 writel(0, base + AACI_IE); in aaci_probe()
1027 writel(0, base + AACI_TXCR); in aaci_probe()
1028 writel(0, base + AACI_RXCR); in aaci_probe()
1031 writel(0x1fff, aaci->base + AACI_INTCLR); in aaci_probe()
1032 writel(aaci->maincr, aaci->base + AACI_MAINCR); in aaci_probe()
1037 readl(aaci->base + AACI_CSCH1); in aaci_probe()
1079 writel(0, aaci->base + AACI_MAINCR); in aaci_remove()