Lines Matching refs:sram_ch
108 struct sram_channel *sram_ch =
124 *(rp++) = sram_ch->dma_ctl;
125 *(rp++) = sram_ch->fld_aud_fifo_en;
219 struct sram_channel *sram_ch =
229 cx_write(sram_ch->int_msk, 0);
232 tmp = cx_read(sram_ch->dma_ctl);
233 cx_write(sram_ch->dma_ctl,
234 tmp & ~(sram_ch->fld_aud_fifo_en | sram_ch->fld_aud_risc_en));
264 struct sram_channel *sram_ch)
362 struct sram_channel *sram_ch)
444 struct sram_channel *sram_ch,
484 ret = cx25821_openfile_audio(dev, sram_ch);
606 struct sram_channel *sram_ch;
611 sram_ch = dev->channels[dev->_audio_upstream_channel_select].
614 msk_stat = cx_read(sram_ch->int_mstat);
615 audio_status = cx_read(sram_ch->int_stat);
635 struct sram_channel *sram_ch)
645 tmp = cx_read(sram_ch->dma_ctl);
655 } while (!(tmp & sram_ch->fld_aud_fifo_en));
660 struct sram_channel *sram_ch)
667 cx_write(sram_ch->cmds_start + 0, dev->_risc_phys_addr);
669 cx_write(sram_ch->cmds_start + 4, 0);
672 cx_write(sram_ch->gpcnt_ctl, 3);
676 cx_write(sram_ch->aud_length, AUDIO_LINE_SIZE & FLD_AUD_DST_LN_LNGTH);
679 tmp = cx_read(sram_ch->aud_cfg);
683 cx_write(sram_ch->aud_cfg, tmp);
686 tmp = cx_read(sram_ch->int_stat);
687 cx_write(sram_ch->int_stat, tmp);
690 cx_write(sram_ch->int_stat, _intr_msk);
693 cx_set(PCI_INT_MSK, cx_read(PCI_INT_MSK) | (1 << sram_ch->irq_bit));
694 tmp = cx_read(sram_ch->int_msk);
695 cx_write(sram_ch->int_msk, tmp |= _intr_msk);
707 tmp = cx_read(sram_ch->dma_ctl);
708 cx_set(sram_ch->dma_ctl, tmp | sram_ch->fld_aud_risc_en);
714 cx25821_wait_fifo_enable(dev, sram_ch);
725 struct sram_channel *sram_ch;
736 sram_ch = dev->channels[channel_select].sram_channels;
781 cx25821_sram_channel_setup_upstream_audio(dev, sram_ch, _line_size,
791 cx25821_audio_upstream_buffer_prepare(dev, sram_ch, _line_size);
799 cx25821_start_audio_dma_upstream(dev, sram_ch);