Lines Matching refs:i2s_base

103 	void __iomem *i2s_base = kmb_i2s->i2s_base;  in kmb_pcm_tx_fn()  local
113 writel(((u16(*)[2])buf)[tx_ptr][0], i2s_base + LRBR_LTHR(0)); in kmb_pcm_tx_fn()
114 writel(((u16(*)[2])buf)[tx_ptr][1], i2s_base + RRBR_RTHR(0)); in kmb_pcm_tx_fn()
116 writel(((u32(*)[2])buf)[tx_ptr][0], i2s_base + LRBR_LTHR(0)); in kmb_pcm_tx_fn()
117 writel(((u32(*)[2])buf)[tx_ptr][1], i2s_base + RRBR_RTHR(0)); in kmb_pcm_tx_fn()
136 void __iomem *i2s_base = kmb_i2s->i2s_base; in kmb_pcm_rx_fn() local
146 readl(i2s_base + LRBR_LTHR(j)); in kmb_pcm_rx_fn()
148 readl(i2s_base + RRBR_RTHR(j)); in kmb_pcm_rx_fn()
151 readl(i2s_base + LRBR_LTHR(j)); in kmb_pcm_rx_fn()
153 readl(i2s_base + RRBR_RTHR(j)); in kmb_pcm_rx_fn()
175 writel(0, kmb_i2s->i2s_base + TER(i)); in kmb_i2s_disable_channels()
178 writel(0, kmb_i2s->i2s_base + RER(i)); in kmb_i2s_disable_channels()
189 readl(kmb_i2s->i2s_base + TOR(i)); in kmb_i2s_clear_irqs()
192 readl(kmb_i2s->i2s_base + ROR(i)); in kmb_i2s_clear_irqs()
208 irq = readl(kmb_i2s->i2s_base + IMR(i)); in kmb_i2s_irq_trigger()
215 writel(irq, kmb_i2s->i2s_base + IMR(i)); in kmb_i2s_irq_trigger()
305 isr[i] = readl(kmb_i2s->i2s_base + ISR(i)); in kmb_i2s_irq_handler()
310 tx_enabled = readl(kmb_i2s->i2s_base + ITER); in kmb_i2s_irq_handler()
420 dma_reg = readl(kmb_i2s->i2s_base + I2S_DMACR); in kmb_i2s_enable_dma()
427 writel(dma_reg, kmb_i2s->i2s_base + I2S_DMACR); in kmb_i2s_enable_dma()
434 dma_reg = readl(kmb_i2s->i2s_base + I2S_DMACR); in kmb_i2s_disable_dma()
438 writel(1, kmb_i2s->i2s_base + I2S_RTXDMA); in kmb_i2s_disable_dma()
441 writel(1, kmb_i2s->i2s_base + I2S_RRXDMA); in kmb_i2s_disable_dma()
443 writel(dma_reg, kmb_i2s->i2s_base + I2S_DMACR); in kmb_i2s_disable_dma()
452 writel(1, kmb_i2s->i2s_base + IER); in kmb_i2s_start()
455 writel(1, kmb_i2s->i2s_base + ITER); in kmb_i2s_start()
457 writel(1, kmb_i2s->i2s_base + IRER); in kmb_i2s_start()
466 writel(1, kmb_i2s->i2s_base + CER); in kmb_i2s_start()
468 writel(0, kmb_i2s->i2s_base + CER); in kmb_i2s_start()
478 writel(0, kmb_i2s->i2s_base + ITER); in kmb_i2s_stop()
480 writel(0, kmb_i2s->i2s_base + IRER); in kmb_i2s_stop()
485 writel(0, kmb_i2s->i2s_base + CER); in kmb_i2s_stop()
486 writel(0, kmb_i2s->i2s_base + IER); in kmb_i2s_stop()
561 kmb_i2s->i2s_base + TCR(ch_reg)); in kmb_i2s_config()
564 kmb_i2s->i2s_base + TFCR(ch_reg)); in kmb_i2s_config()
566 writel(1, kmb_i2s->i2s_base + TER(ch_reg)); in kmb_i2s_config()
569 kmb_i2s->i2s_base + RCR(ch_reg)); in kmb_i2s_config()
572 kmb_i2s->i2s_base + RFCR(ch_reg)); in kmb_i2s_config()
574 writel(1, kmb_i2s->i2s_base + RER(ch_reg)); in kmb_i2s_config()
657 writel(kmb_i2s->ccr, kmb_i2s->i2s_base + CCR); in kmb_dai_hw_params()
682 writel(1, kmb_i2s->i2s_base + TXFFR); in kmb_dai_prepare()
684 writel(1, kmb_i2s->i2s_base + RXFFR); in kmb_dai_prepare()
717 writel(0, kmb_i2s->i2s_base + ITER); in kmb_dai_hw_free()
719 writel(0, kmb_i2s->i2s_base + IRER); in kmb_dai_hw_free()
727 writel(0, kmb_i2s->i2s_base + CER); in kmb_dai_hw_free()
728 writel(0, kmb_i2s->i2s_base + IER); in kmb_dai_hw_free()
858 kmb_i2s->i2s_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in kmb_plat_dai_probe()
859 if (IS_ERR(kmb_i2s->i2s_base)) in kmb_plat_dai_probe()
860 return PTR_ERR(kmb_i2s->i2s_base); in kmb_plat_dai_probe()
868 comp1_reg = readl(kmb_i2s->i2s_base + I2S_COMP_PARAM_1); in kmb_plat_dai_probe()