/sound/soc/txx9/ |
D | txx9aclc-ac97.c | 44 return __raw_readl(drvdata->base + ACINTSTS) & ACINT_REGACCRDY; in txx9aclc_regready() 52 void __iomem *base = drvdata->base; in txx9aclc_ac97_read() local 55 if (!(__raw_readl(base + ACINTSTS) & ACINT_CODECRDY(ac97->num))) in txx9aclc_ac97_read() 59 __raw_writel(dat, base + ACREGACC); in txx9aclc_ac97_read() 60 __raw_writel(ACINT_REGACCRDY, base + ACINTEN); in txx9aclc_ac97_read() 62 __raw_writel(ACINT_REGACCRDY, base + ACINTDIS); in txx9aclc_ac97_read() 67 dat = __raw_readl(base + ACREGACC); in txx9aclc_ac97_read() 76 __raw_writel(ACINT_REGACCRDY, base + ACINTDIS); in txx9aclc_ac97_read() 85 void __iomem *base = drvdata->base; in txx9aclc_ac97_write() local 89 base + ACREGACC); in txx9aclc_ac97_write() [all …]
|
D | txx9aclc.c | 161 void __iomem *base = drvdata->base; in txx9aclc_dma_tasklet() local 175 __raw_writel(ctlbit, base + ACCTLEN); in txx9aclc_dma_tasklet() 210 void __iomem *base = drvdata->base; in txx9aclc_pcm_trigger() local 225 __raw_writel(ctlbit, base + ACCTLDIS); in txx9aclc_pcm_trigger() 229 __raw_writel(ctlbit, base + ACCTLEN); in txx9aclc_pcm_trigger() 384 void __iomem *base = drvdata->base; in txx9aclc_pcm_remove() local 388 __raw_writel(ACCTL_AUDODMA | ACCTL_AUDIDMA, base + ACCTLDIS); in txx9aclc_pcm_remove() 390 __raw_writel(__raw_readl(base + ACAUDIDAT), base + ACAUDODAT); in txx9aclc_pcm_remove()
|
/sound/soc/fsl/ |
D | imx-ssi.c | 67 sccr = readl(ssi->base + SSI_STCCR); in imx_ssi_set_dai_tdm_slot() 70 writel(sccr, ssi->base + SSI_STCCR); in imx_ssi_set_dai_tdm_slot() 72 sccr = readl(ssi->base + SSI_SRCCR); in imx_ssi_set_dai_tdm_slot() 75 writel(sccr, ssi->base + SSI_SRCCR); in imx_ssi_set_dai_tdm_slot() 77 writel(~tx_mask, ssi->base + SSI_STMSK); in imx_ssi_set_dai_tdm_slot() 78 writel(~rx_mask, ssi->base + SSI_SRMSK); in imx_ssi_set_dai_tdm_slot() 92 scr = readl(ssi->base + SSI_SCR) & ~(SSI_SCR_SYN | SSI_SCR_NET); in imx_ssi_set_dai_fmt() 152 writel(strcr, ssi->base + SSI_STCR); in imx_ssi_set_dai_fmt() 153 writel(strcr, ssi->base + SSI_SRCR); in imx_ssi_set_dai_fmt() 154 writel(scr, ssi->base + SSI_SCR); in imx_ssi_set_dai_fmt() [all …]
|
/sound/soc/mxs/ |
D | mxs-saif.c | 114 scr = __raw_readl(master_saif->base + SAIF_CTRL); in mxs_saif_set_clk() 167 __raw_writel(scr, master_saif->base + SAIF_CTRL); in mxs_saif_set_clk() 209 __raw_writel(scr, master_saif->base + SAIF_CTRL); in mxs_saif_set_clk() 225 stat = __raw_readl(saif->base + SAIF_STAT); in mxs_saif_put_mclk() 235 saif->base + SAIF_CTRL + MXS_SET_ADDR); in mxs_saif_put_mclk() 237 saif->base + SAIF_CTRL + MXS_CLR_ADDR); in mxs_saif_put_mclk() 263 saif->base + SAIF_CTRL + MXS_CLR_ADDR); in mxs_saif_get_mclk() 267 saif->base + SAIF_CTRL + MXS_CLR_ADDR); in mxs_saif_get_mclk() 275 stat = __raw_readl(saif->base + SAIF_STAT); in mxs_saif_get_mclk() 292 saif->base + SAIF_CTRL + MXS_SET_ADDR); in mxs_saif_get_mclk() [all …]
|
/sound/arm/ |
D | aaci.c | 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() [all …]
|
/sound/drivers/ |
D | serial-u16550.c | 75 static int base[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 115200}; /* baud base */ variable 93 module_param_array(base, int, NULL, 0444); 94 MODULE_PARM_DESC(base, "Base for divisor in bauds."); 131 unsigned long base; member 194 outb(uart->tx_buff[buff_out], uart->base + UART_TX); in snd_uart16550_buffer_output() 216 while ((status = inb(uart->base + UART_LSR)) & UART_LSR_DR) { in snd_uart16550_io_loop() 218 c = inb(uart->base + UART_RX); in snd_uart16550_io_loop() 244 uart->rmidi->name, uart->base); in snd_uart16550_io_loop() 258 status = inb(uart->base + UART_MSR); in snd_uart16550_io_loop() 262 status = inb(uart->base + UART_MSR); in snd_uart16550_io_loop() [all …]
|
/sound/soc/sh/ |
D | siu_dai.c | 111 u32 __iomem *base = info->reg; in siu_dai_start() local 116 siu_write32(base + SIU_SRCTL, 0); in siu_dai_start() 125 siu_write32(base + SIU_SRCTL, 0x301); in siu_dai_start() 128 siu_write32(base + SIU_CKCTL, 0x40400000); in siu_dai_start() 131 siu_write32(base + SIU_BRGASEL, 0); in siu_dai_start() 132 siu_write32(base + SIU_BRRA, 0); in siu_dai_start() 135 siu_write32(base + SIU_BRGBSEL, 1); in siu_dai_start() 136 siu_write32(base + SIU_BRRB, 0); in siu_dai_start() 138 siu_write32(base + SIU_IFCTL, 0x44440000); in siu_dai_start() 141 siu_write32(base + SIU_SFORM, 0x0c0c0000); in siu_dai_start() [all …]
|
D | siu_pcm.c | 52 u32 __iomem *base = info->reg; in siu_pcm_stmwrite_stop() local 60 stfifo = siu_read32(base + SIU_STFIFO); in siu_pcm_stmwrite_stop() 61 siu_write32(base + SIU_STFIFO, stfifo & ~0x0c180c18); in siu_pcm_stmwrite_stop() 118 u32 __iomem *base = info->reg; in siu_pcm_wr_set() local 154 stfifo = siu_read32(base + SIU_STFIFO); in siu_pcm_wr_set() 155 siu_write32(base + SIU_STFIFO, stfifo | (port_info->stfifo & 0x0c180c18)); in siu_pcm_wr_set() 166 u32 __iomem *base = info->reg; in siu_pcm_rd_set() local 204 stfifo = siu_read32(base + SIU_STFIFO); in siu_pcm_rd_set() 205 siu_write32(base + SIU_STFIFO, siu_read32(base + SIU_STFIFO) | in siu_pcm_rd_set() 276 u32 __iomem *base = info->reg; in siu_pcm_stmread_stop() local [all …]
|
/sound/oss/ |
D | sb.h | 2 #define DSP_RESET (devc->base + 0x6) 3 #define DSP_READ (devc->base + 0xA) 4 #define DSP_WRITE (devc->base + 0xC) 5 #define DSP_COMMAND (devc->base + 0xC) 6 #define DSP_STATUS (devc->base + 0xC) 7 #define DSP_DATA_AVAIL (devc->base + 0xE) 8 #define DSP_DATA_AVL16 (devc->base + 0xF) 9 #define MIXER_ADDR (devc->base + 0x4) 10 #define MIXER_DATA (devc->base + 0x5) 11 #define OPL3_LEFT (devc->base + 0x0) [all …]
|
D | sb_common.c | 444 switch (devc->base) in relocate_ess1688() 484 inb(devc->base); in relocate_ess1688() 523 devc->base = hw_config->io_base; in sb_dsp_detect() 553 inb(devc->base + 0x09); in sb_dsp_detect() 554 inb(devc->base + 0x09); in sb_dsp_detect() 555 inb(devc->base + 0x09); in sb_dsp_detect() 556 inb(devc->base + 0x0b); in sb_dsp_detect() 557 inb(devc->base + 0x09); in sb_dsp_detect() 558 inb(devc->base + 0x0b); in sb_dsp_detect() 559 inb(devc->base + 0x09); in sb_dsp_detect() [all …]
|
/sound/soc/codecs/ |
D | arizona.c | 1367 int lrclk, bclk, mode, base; in arizona_set_fmt() local 1369 base = dai->driver->base; in arizona_set_fmt() 1439 regmap_update_bits_async(arizona->regmap, base + ARIZONA_AIF_BCLK_CTRL, in arizona_set_fmt() 1443 regmap_update_bits_async(arizona->regmap, base + ARIZONA_AIF_TX_PIN_CTRL, in arizona_set_fmt() 1447 base + ARIZONA_AIF_RX_PIN_CTRL, in arizona_set_fmt() 1450 regmap_update_bits(arizona->regmap, base + ARIZONA_AIF_FORMAT, in arizona_set_fmt() 1602 int base = dai->driver->base; in arizona_hw_params_rate() local 1649 if (base) in arizona_hw_params_rate() 1650 snd_soc_update_bits(codec, base + ARIZONA_AIF_RATE_CTRL, in arizona_hw_params_rate() 1656 if (base) in arizona_hw_params_rate() [all …]
|
D | arizona.h | 109 #define ARIZONA_GAINMUX_CONTROLS(name, base) \ argument 110 SOC_SINGLE_RANGE_TLV(name " Input Volume", base + 1, \ 114 #define ARIZONA_MIXER_CONTROLS(name, base) \ argument 115 SOC_SINGLE_RANGE_TLV(name " Input 1 Volume", base + 1, \ 118 SOC_SINGLE_RANGE_TLV(name " Input 2 Volume", base + 3, \ 121 SOC_SINGLE_RANGE_TLV(name " Input 3 Volume", base + 5, \ 124 SOC_SINGLE_RANGE_TLV(name " Input 4 Volume", base + 7, \ 215 ((unsigned long)&(struct soc_bytes) { .base = xbase, \ 222 ((unsigned long)&(struct soc_bytes) { .base = xbase, \ 287 unsigned int base; member [all …]
|
D | wm5100.c | 378 #define WM5100_MIXER_CONTROLS(name, base) \ argument 379 SOC_SINGLE_TLV(name " Input 1 Volume", base + 1 , \ 381 SOC_SINGLE_TLV(name " Input 2 Volume", base + 3 , \ 383 SOC_SINGLE_TLV(name " Input 3 Volume", base + 5 , \ 385 SOC_SINGLE_TLV(name " Input 4 Volume", base + 7 , \ 1286 int lrclk, bclk, mask, base; in wm5100_set_fmt() local 1288 base = dai->driver->base; in wm5100_set_fmt() 1342 snd_soc_update_bits(codec, base + 1, WM5100_AIF1_BCLK_MSTR | in wm5100_set_fmt() 1344 snd_soc_update_bits(codec, base + 2, WM5100_AIF1TX_LRCLK_MSTR | in wm5100_set_fmt() 1346 snd_soc_update_bits(codec, base + 3, WM5100_AIF1TX_LRCLK_MSTR | in wm5100_set_fmt() [all …]
|
/sound/i2c/other/ |
D | pt2258.c | 98 int base = kcontrol->private_value; in pt2258_stereo_volume_get() local 101 ucontrol->value.integer.value[0] = 79 - pt->volume[base]; in pt2258_stereo_volume_get() 102 ucontrol->value.integer.value[1] = 79 - pt->volume[base + 1]; in pt2258_stereo_volume_get() 110 int base = kcontrol->private_value; in pt2258_stereo_volume_put() local 118 if (val0 == pt->volume[base] && val1 == pt->volume[base + 1]) in pt2258_stereo_volume_put() 121 pt->volume[base] = val0; in pt2258_stereo_volume_put() 122 bytes[0] = pt2258_channel_code[2 * base] | (val0 / 10); in pt2258_stereo_volume_put() 123 bytes[1] = pt2258_channel_code[2 * base + 1] | (val0 % 10); in pt2258_stereo_volume_put() 129 pt->volume[base + 1] = val1; in pt2258_stereo_volume_put() 130 bytes[0] = pt2258_channel_code[2 * base + 2] | (val1 / 10); in pt2258_stereo_volume_put() [all …]
|
/sound/soc/sunxi/ |
D | sun8i-codec-analog.c | 137 void __iomem *base = (void __iomem *)context; in adda_reg_read() local 141 writel(readl(base) | ADDA_PR_RESET, base); in adda_reg_read() 144 writel(readl(base) & ~ADDA_PR_WRITE, base); in adda_reg_read() 147 tmp = readl(base); in adda_reg_read() 150 writel(tmp, base); in adda_reg_read() 153 *val = readl(base) & ADDA_PR_DATA_OUT_MASK; in adda_reg_read() 160 void __iomem *base = (void __iomem *)context; in adda_reg_write() local 164 writel(readl(base) | ADDA_PR_RESET, base); in adda_reg_write() 167 tmp = readl(base); in adda_reg_write() 170 writel(tmp, base); in adda_reg_write() [all …]
|
/sound/soc/sti/ |
D | uniperif.h | 20 ((readl_relaxed(ip->base + offset) >> shift) & mask) 22 writel_relaxed(((readl_relaxed(ip->base + offset) & \ 23 ~(mask << shift)) | (((value) & mask) << shift)), ip->base + offset) 25 writel_relaxed((((value) & mask) << shift), ip->base + offset) 34 readl_relaxed(ip->base + UNIPERIF_SOFT_RST_OFFSET(ip)) : 0) 36 writel_relaxed(value, ip->base + UNIPERIF_SOFT_RST_OFFSET(ip)) 58 writel_relaxed(value, ip->base + UNIPERIF_FIFO_DATA_OFFSET(ip)) 66 readl_relaxed(ip->base + UNIPERIF_CHANNEL_STA_REGN(ip, n)) 68 writel_relaxed(value, ip->base + \ 73 readl_relaxed(ip->base + UNIPERIF_CHANNEL_STA_REG0_OFFSET(ip)) [all …]
|
/sound/soc/zte/ |
D | zx-spdif.c | 94 static int zx_spdif_chanstats(void __iomem *base, unsigned int rate) in zx_spdif_chanstats() argument 132 writel_relaxed(cstas1, base + ZX_CH_STA_1); in zx_spdif_chanstats() 194 static void zx_spdif_cfg_tx(void __iomem *base, int on) in zx_spdif_cfg_tx() argument 198 val = readl_relaxed(base + ZX_CTRL); in zx_spdif_cfg_tx() 201 writel_relaxed(val, base + ZX_CTRL); in zx_spdif_cfg_tx() 203 val = readl_relaxed(base + ZX_FIFOCTRL); in zx_spdif_cfg_tx() 207 writel_relaxed(val, base + ZX_FIFOCTRL); in zx_spdif_cfg_tx() 291 static void zx_spdif_dev_init(void __iomem *base) in zx_spdif_dev_init() argument 295 writel_relaxed(0, base + ZX_CTRL); in zx_spdif_dev_init() 296 writel_relaxed(0, base + ZX_INT_MASK); in zx_spdif_dev_init() [all …]
|
D | zx-i2s.c | 105 static void zx_i2s_tx_en(void __iomem *base, bool on) in zx_i2s_tx_en() argument 109 val = readl_relaxed(base + ZX_I2S_PROCESS_CTRL); in zx_i2s_tx_en() 114 writel_relaxed(val, base + ZX_I2S_PROCESS_CTRL); in zx_i2s_tx_en() 117 static void zx_i2s_rx_en(void __iomem *base, bool on) in zx_i2s_rx_en() argument 121 val = readl_relaxed(base + ZX_I2S_PROCESS_CTRL); in zx_i2s_rx_en() 126 writel_relaxed(val, base + ZX_I2S_PROCESS_CTRL); in zx_i2s_rx_en() 129 static void zx_i2s_tx_dma_en(void __iomem *base, bool on) in zx_i2s_tx_dma_en() argument 133 val = readl_relaxed(base + ZX_I2S_FIFO_CTRL); in zx_i2s_tx_dma_en() 139 writel_relaxed(val, base + ZX_I2S_FIFO_CTRL); in zx_i2s_tx_dma_en() 142 static void zx_i2s_rx_dma_en(void __iomem *base, bool on) in zx_i2s_rx_dma_en() argument [all …]
|
/sound/soc/davinci/ |
D | davinci-vcif.c | 64 w = readl(davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_start() 71 writel(w, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_start() 83 w = readl(davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_stop() 89 writel(w, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_stop() 105 writel(DAVINCI_VC_CTRL_MASK, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_hw_params() 107 writel(DAVINCI_VC_INT_MASK, davinci_vc->base + DAVINCI_VC_INTCLR); in davinci_vcif_hw_params() 109 writel(DAVINCI_VC_INT_MASK, davinci_vc->base + DAVINCI_VC_INTEN); in davinci_vcif_hw_params() 111 w = readl(davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_hw_params() 139 writel(w, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_hw_params()
|
/sound/soc/img/ |
D | img-parallel-out.c | 39 void __iomem *base; member 73 writel(val, prl->base + reg); in img_prl_out_writel() 78 return readl(prl->base + reg); in img_prl_out_readl() 210 void __iomem *base; in img_prl_out_probe() local 223 base = devm_ioremap_resource(&pdev->dev, res); in img_prl_out_probe() 224 if (IS_ERR(base)) in img_prl_out_probe() 225 return PTR_ERR(base); in img_prl_out_probe() 227 prl->base = base; in img_prl_out_probe()
|
D | img-i2s-in.c | 55 void __iomem *base; member 67 writel(val, i2s->base + reg); in img_i2s_in_writel() 72 return readl(i2s->base + reg); in img_i2s_in_readl() 392 void __iomem *base; in img_i2s_in_probe() local 407 base = devm_ioremap_resource(dev, res); in img_i2s_in_probe() 408 if (IS_ERR(base)) in img_i2s_in_probe() 409 return PTR_ERR(base); in img_i2s_in_probe() 411 i2s->base = base; in img_i2s_in_probe() 421 i2s->channel_base = base + (max_i2s_chan_pow_2 * 0x20); in img_i2s_in_probe()
|
D | img-spdif-out.c | 44 void __iomem *base; member 78 writel(val, spdif->base + reg); in img_spdif_out_writel() 83 return readl(spdif->base + reg); in img_spdif_out_readl() 318 void __iomem *base; in img_spdif_out_probe() local 331 base = devm_ioremap_resource(&pdev->dev, res); in img_spdif_out_probe() 332 if (IS_ERR(base)) in img_spdif_out_probe() 333 return PTR_ERR(base); in img_spdif_out_probe() 335 spdif->base = base; in img_spdif_out_probe()
|
/sound/soc/atmel/ |
D | atmel-pcm.h | 83 #define ssc_readx(base, reg) (__raw_readl((base) + (reg))) argument 84 #define ssc_writex(base, reg, value) __raw_writel((value), (base) + (reg)) argument
|
/sound/soc/stm/ |
D | stm32_sai.c | 50 void __iomem *base; in stm32_sai_probe() local 58 base = devm_ioremap_resource(&pdev->dev, res); in stm32_sai_probe() 59 if (IS_ERR(base)) in stm32_sai_probe() 60 return PTR_ERR(base); in stm32_sai_probe()
|
/sound/sparc/ |
D | cs4231.c | 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() [all …]
|