Lines Matching full:aio
248 struct cygnus_aio_port *aio; in configure_ringbuf_regs() local
252 aio = cygnus_dai_get_dma_data(substream); in configure_ringbuf_regs()
256 p_rbuf = &aio->play_rb_regs; in configure_ringbuf_regs()
258 switch (aio->portnum) { in configure_ringbuf_regs()
275 p_rbuf = &aio->capture_rb_regs; in configure_ringbuf_regs()
277 switch (aio->portnum) { in configure_ringbuf_regs()
297 struct cygnus_aio_port *aio; in get_ringbuf() local
300 aio = cygnus_dai_get_dma_data(substream); in get_ringbuf()
303 p_rbuf = &aio->play_rb_regs; in get_ringbuf()
305 p_rbuf = &aio->capture_rb_regs; in get_ringbuf()
312 struct cygnus_aio_port *aio; in enable_intr() local
315 aio = cygnus_dai_get_dma_data(substream); in enable_intr()
318 clear_mask = BIT(aio->portnum); in enable_intr()
322 writel(clear_mask, aio->cygaud->audio + ESR0_STATUS_CLR_OFFSET); in enable_intr()
323 writel(clear_mask, aio->cygaud->audio + ESR1_STATUS_CLR_OFFSET); in enable_intr()
324 writel(clear_mask, aio->cygaud->audio + ESR3_STATUS_CLR_OFFSET); in enable_intr()
326 writel(clear_mask, aio->cygaud->audio + ESR0_MASK_CLR_OFFSET); in enable_intr()
327 writel(clear_mask, aio->cygaud->audio + ESR1_MASK_CLR_OFFSET); in enable_intr()
328 writel(clear_mask, aio->cygaud->audio + ESR3_MASK_CLR_OFFSET); in enable_intr()
331 aio->cygaud->audio + INTH_R5F_MASK_CLEAR_OFFSET); in enable_intr()
333 writel(clear_mask, aio->cygaud->audio + ESR2_STATUS_CLR_OFFSET); in enable_intr()
334 writel(clear_mask, aio->cygaud->audio + ESR4_STATUS_CLR_OFFSET); in enable_intr()
335 writel(clear_mask, aio->cygaud->audio + ESR2_MASK_CLR_OFFSET); in enable_intr()
336 writel(clear_mask, aio->cygaud->audio + ESR4_MASK_CLR_OFFSET); in enable_intr()
339 aio->cygaud->audio + INTH_R5F_MASK_CLEAR_OFFSET); in enable_intr()
347 struct cygnus_aio_port *aio; in disable_intr() local
350 aio = cygnus_dai_get_dma_data(substream); in disable_intr()
352 dev_dbg(snd_soc_rtd_to_cpu(rtd, 0)->dev, "%s on port %d\n", __func__, aio->portnum); in disable_intr()
355 set_mask = BIT(aio->portnum); in disable_intr()
359 writel(set_mask, aio->cygaud->audio + ESR0_MASK_SET_OFFSET); in disable_intr()
360 writel(set_mask, aio->cygaud->audio + ESR1_MASK_SET_OFFSET); in disable_intr()
361 writel(set_mask, aio->cygaud->audio + ESR3_MASK_SET_OFFSET); in disable_intr()
363 writel(set_mask, aio->cygaud->audio + ESR2_MASK_SET_OFFSET); in disable_intr()
364 writel(set_mask, aio->cygaud->audio + ESR4_MASK_SET_OFFSET); in disable_intr()
393 struct cygnus_aio_port *aio; in cygnus_pcm_period_elapsed() local
397 aio = cygnus_dai_get_dma_data(substream); in cygnus_pcm_period_elapsed()
409 regval = readl(aio->cygaud->audio + p_rbuf->rdaddr); in cygnus_pcm_period_elapsed()
411 writel(regval, aio->cygaud->audio + p_rbuf->wraddr); in cygnus_pcm_period_elapsed()
414 regval = readl(aio->cygaud->audio + p_rbuf->wraddr); in cygnus_pcm_period_elapsed()
415 writel(regval, aio->cygaud->audio + p_rbuf->rdaddr); in cygnus_pcm_period_elapsed()
576 struct cygnus_aio_port *aio; in cygnus_pcm_open() local
579 aio = cygnus_dai_get_dma_data(substream); in cygnus_pcm_open()
580 if (!aio) in cygnus_pcm_open()
583 dev_dbg(snd_soc_rtd_to_cpu(rtd, 0)->dev, "%s port %d\n", __func__, aio->portnum); in cygnus_pcm_open()
601 aio->play_stream = substream; in cygnus_pcm_open()
603 aio->capture_stream = substream; in cygnus_pcm_open()
612 struct cygnus_aio_port *aio; in cygnus_pcm_close() local
614 aio = cygnus_dai_get_dma_data(substream); in cygnus_pcm_close()
616 dev_dbg(snd_soc_rtd_to_cpu(rtd, 0)->dev, "%s port %d\n", __func__, aio->portnum); in cygnus_pcm_close()
619 aio->play_stream = NULL; in cygnus_pcm_close()
621 aio->capture_stream = NULL; in cygnus_pcm_close()
623 if (!aio->play_stream && !aio->capture_stream) in cygnus_pcm_close()
624 dev_dbg(snd_soc_rtd_to_cpu(rtd, 0)->dev, "freed port %d\n", aio->portnum); in cygnus_pcm_close()
634 struct cygnus_aio_port *aio; in cygnus_pcm_prepare() local
640 aio = cygnus_dai_get_dma_data(substream); in cygnus_pcm_prepare()
641 dev_dbg(snd_soc_rtd_to_cpu(rtd, 0)->dev, "%s port %d\n", __func__, aio->portnum); in cygnus_pcm_prepare()
657 ringbuf_set_initial(aio->cygaud->audio, p_rbuf, is_play, start, in cygnus_pcm_prepare()
666 struct cygnus_aio_port *aio; in cygnus_pcm_pointer() local
670 aio = cygnus_dai_get_dma_data(substream); in cygnus_pcm_pointer()
678 cur = readl(aio->cygaud->audio + p_rbuf->rdaddr); in cygnus_pcm_pointer()
680 cur = readl(aio->cygaud->audio + p_rbuf->wraddr); in cygnus_pcm_pointer()
682 base = readl(aio->cygaud->audio + p_rbuf->baseaddr); in cygnus_pcm_pointer()