Lines Matching refs:sram_ch
135 const struct sram_channel *sram_ch = chan->sram_channels; in cx25821_risc_field_upstream() local
163 *(rp++) = cpu_to_le32(sram_ch->dma_ctl); in cx25821_risc_field_upstream()
249 const struct sram_channel *sram_ch = chan->sram_channels; in cx25821_stop_upstream_video() local
258 cx_set(PCI_INT_MSK, cx_read(PCI_INT_MSK) & ~(1 << sram_ch->irq_bit)); in cx25821_stop_upstream_video()
261 tmp = cx_read(sram_ch->int_msk); in cx25821_stop_upstream_video()
262 cx_write(sram_ch->int_msk, tmp & ~_intr_msk); in cx25821_stop_upstream_video()
265 tmp = cx_read(sram_ch->dma_ctl); in cx25821_stop_upstream_video()
266 cx_write(sram_ch->dma_ctl, tmp & ~(FLD_VID_FIFO_EN | FLD_VID_RISC_EN)); in cx25821_stop_upstream_video()
347 const struct sram_channel *sram_ch, in cx25821_upstream_buffer_prepare() argument
500 const struct sram_channel *sram_ch; in cx25821_upstream_irq() local
505 sram_ch = chan->sram_channels; in cx25821_upstream_irq()
507 vid_status = cx_read(sram_ch->int_stat); in cx25821_upstream_irq()
552 const struct sram_channel *sram_ch) in cx25821_start_video_dma_upstream() argument
568 cx_write(sram_ch->cmds_start + 0, out->_dma_phys_addr); in cx25821_start_video_dma_upstream()
570 cx_write(sram_ch->cmds_start + 4, 0); in cx25821_start_video_dma_upstream()
573 cx_write(sram_ch->gpcnt_ctl, 3); in cx25821_start_video_dma_upstream()
576 cx_write(sram_ch->int_stat, _intr_msk); in cx25821_start_video_dma_upstream()
579 cx_set(PCI_INT_MSK, cx_read(PCI_INT_MSK) | (1 << sram_ch->irq_bit)); in cx25821_start_video_dma_upstream()
580 tmp = cx_read(sram_ch->int_msk); in cx25821_start_video_dma_upstream()
581 cx_write(sram_ch->int_msk, tmp |= _intr_msk); in cx25821_start_video_dma_upstream()
592 tmp = cx_read(sram_ch->dma_ctl); in cx25821_start_video_dma_upstream()
593 cx_set(sram_ch->dma_ctl, tmp | FLD_VID_RISC_EN); in cx25821_start_video_dma_upstream()
610 const struct sram_channel *sram_ch; in cx25821_vidupstream_init() local
621 sram_ch = chan->sram_channels; in cx25821_vidupstream_init()
652 err = cx25821_sram_channel_setup_upstream(dev, sram_ch, in cx25821_vidupstream_init()
656 cx25821_set_pixelengine(chan, sram_ch, out->_pixel_format); in cx25821_vidupstream_init()
662 err = cx25821_upstream_buffer_prepare(chan, sram_ch, out->_line_size); in cx25821_vidupstream_init()
669 cx25821_start_video_dma_upstream(chan, sram_ch); in cx25821_vidupstream_init()