Lines Matching refs:cygaud

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()
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()
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()
426 static void handle_playback_irq(struct cygnus_audio *cygaud) in handle_playback_irq() argument
432 audio_io = cygaud->audio; in handle_playback_irq()
458 dev_dbg(cygaud->dev, in handle_playback_irq()
470 playstr = cygaud->portinfo[port].play_stream; in handle_playback_irq()
489 static void handle_capture_irq(struct cygnus_audio *cygaud) in handle_capture_irq() argument
495 audio_io = cygaud->audio; in handle_capture_irq()
519 dev_dbg(cygaud->dev, in handle_capture_irq()
525 capstr = cygaud->portinfo[port].capture_stream; in handle_capture_irq()
539 struct cygnus_audio *cygaud = data; in cygnus_dma_irq() local
549 r5_status = readl(cygaud->audio + INTH_R5F_STATUS_OFFSET); in cygnus_dma_irq()
556 handle_playback_irq(cygaud); in cygnus_dma_irq()
558 cygaud->audio + INTH_R5F_CLEAR_OFFSET); in cygnus_dma_irq()
563 handle_capture_irq(cygaud); in cygnus_dma_irq()
565 cygaud->audio + INTH_R5F_CLEAR_OFFSET); in cygnus_dma_irq()
657 ringbuf_set_initial(aio->cygaud->audio, p_rbuf, is_play, start, in cygnus_pcm_prepare()
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()
720 struct cygnus_audio *cygaud) in cygnus_soc_platform_register() argument
726 rc = devm_request_irq(dev, cygaud->irq_num, cygnus_dma_irq, in cygnus_soc_platform_register()
727 IRQF_SHARED, "cygnus-audio", cygaud); in cygnus_soc_platform_register()