• Home
  • Raw
  • Download

Lines Matching refs:priv

67 	struct kirkwood_dma_data *priv = prdata->data;  in kirkwood_dma_irq()  local
70 mask = readl(priv->io + KIRKWOOD_INT_MASK); in kirkwood_dma_irq()
71 status = readl(priv->io + KIRKWOOD_INT_CAUSE) & mask; in kirkwood_dma_irq()
73 cause = readl(priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
77 writel(cause, priv->io + KIRKWOOD_ERR_CAUSE); in kirkwood_dma_irq()
89 writel(status, priv->io + KIRKWOOD_INT_CAUSE); in kirkwood_dma_irq()
132 struct kirkwood_dma_data *priv; in kirkwood_dma_open() local
137 priv = snd_soc_dai_get_dma_data(cpu_dai, substream); in kirkwood_dma_open()
143 priv->burst * 2, in kirkwood_dma_open()
150 priv->burst); in kirkwood_dma_open()
156 priv->burst); in kirkwood_dma_open()
165 prdata->data = priv; in kirkwood_dma_open()
167 err = request_irq(priv->irq, kirkwood_dma_irq, IRQF_SHARED, in kirkwood_dma_open()
180 writel((unsigned long)-1, priv->io + KIRKWOOD_ERR_MASK); in kirkwood_dma_open()
187 kirkwood_dma_conf_mbus_windows(priv->io, in kirkwood_dma_open()
191 kirkwood_dma_conf_mbus_windows(priv->io, in kirkwood_dma_open()
204 struct kirkwood_dma_data *priv; in kirkwood_dma_close() local
206 priv = snd_soc_dai_get_dma_data(cpu_dai, substream); in kirkwood_dma_close()
208 if (!prdata || !priv) in kirkwood_dma_close()
217 writel(0, priv->io + KIRKWOOD_ERR_MASK); in kirkwood_dma_close()
218 free_irq(priv->irq, prdata); in kirkwood_dma_close()
248 struct kirkwood_dma_data *priv; in kirkwood_dma_prepare() local
251 priv = snd_soc_dai_get_dma_data(cpu_dai, substream); in kirkwood_dma_prepare()
259 writel(count, priv->io + KIRKWOOD_PLAY_BYTE_INT_COUNT); in kirkwood_dma_prepare()
260 writel(runtime->dma_addr, priv->io + KIRKWOOD_PLAY_BUF_ADDR); in kirkwood_dma_prepare()
261 writel(size, priv->io + KIRKWOOD_PLAY_BUF_SIZE); in kirkwood_dma_prepare()
263 writel(count, priv->io + KIRKWOOD_REC_BYTE_INT_COUNT); in kirkwood_dma_prepare()
264 writel(runtime->dma_addr, priv->io + KIRKWOOD_REC_BUF_ADDR); in kirkwood_dma_prepare()
265 writel(size, priv->io + KIRKWOOD_REC_BUF_SIZE); in kirkwood_dma_prepare()
277 struct kirkwood_dma_data *priv; in kirkwood_dma_pointer() local
280 priv = snd_soc_dai_get_dma_data(cpu_dai, substream); in kirkwood_dma_pointer()
284 readl(priv->io + KIRKWOOD_PLAY_BYTE_COUNT)); in kirkwood_dma_pointer()
287 readl(priv->io + KIRKWOOD_REC_BYTE_COUNT)); in kirkwood_dma_pointer()