Lines Matching refs:ch
439 const struct sram_channel *ch, in cx25821_sram_channel_setup() argument
445 if (ch->cmds_start == 0) { in cx25821_sram_channel_setup()
446 cx_write(ch->ptr1_reg, 0); in cx25821_sram_channel_setup()
447 cx_write(ch->ptr2_reg, 0); in cx25821_sram_channel_setup()
448 cx_write(ch->cnt2_reg, 0); in cx25821_sram_channel_setup()
449 cx_write(ch->cnt1_reg, 0); in cx25821_sram_channel_setup()
454 cdt = ch->cdt; in cx25821_sram_channel_setup()
455 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup()
468 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup()
476 cx_write(ch->fifo_start + 4 * i, i); in cx25821_sram_channel_setup()
479 if (ch->jumponly) in cx25821_sram_channel_setup()
480 cx_write(ch->cmds_start + 0, 8); in cx25821_sram_channel_setup()
482 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup()
484 cx_write(ch->cmds_start + 4, 0); /* 64 bits 63-32 */ in cx25821_sram_channel_setup()
485 cx_write(ch->cmds_start + 8, cdt); in cx25821_sram_channel_setup()
486 cx_write(ch->cmds_start + 12, (lines * 16) >> 3); in cx25821_sram_channel_setup()
487 cx_write(ch->cmds_start + 16, ch->ctrl_start); in cx25821_sram_channel_setup()
489 if (ch->jumponly) in cx25821_sram_channel_setup()
490 cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2)); in cx25821_sram_channel_setup()
492 cx_write(ch->cmds_start + 20, 64 >> 2); in cx25821_sram_channel_setup()
495 cx_write(ch->cmds_start + i, 0); in cx25821_sram_channel_setup()
498 cx_write(ch->ptr1_reg, ch->fifo_start); in cx25821_sram_channel_setup()
499 cx_write(ch->ptr2_reg, cdt); in cx25821_sram_channel_setup()
500 cx_write(ch->cnt2_reg, (lines * 16) >> 3); in cx25821_sram_channel_setup()
501 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup()
507 const struct sram_channel *ch, in cx25821_sram_channel_setup_audio() argument
513 if (ch->cmds_start == 0) { in cx25821_sram_channel_setup_audio()
514 cx_write(ch->ptr1_reg, 0); in cx25821_sram_channel_setup_audio()
515 cx_write(ch->ptr2_reg, 0); in cx25821_sram_channel_setup_audio()
516 cx_write(ch->cnt2_reg, 0); in cx25821_sram_channel_setup_audio()
517 cx_write(ch->cnt1_reg, 0); in cx25821_sram_channel_setup_audio()
522 cdt = ch->cdt; in cx25821_sram_channel_setup_audio()
523 lines = ch->fifo_size / bpl; in cx25821_sram_channel_setup_audio()
536 cx_write(cdt + 16 * i, ch->fifo_start + bpl * i); in cx25821_sram_channel_setup_audio()
543 if (ch->jumponly) in cx25821_sram_channel_setup_audio()
544 cx_write(ch->cmds_start + 0, 8); in cx25821_sram_channel_setup_audio()
546 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_audio()
548 cx_write(ch->cmds_start + 4, 0); /* 64 bits 63-32 */ in cx25821_sram_channel_setup_audio()
549 cx_write(ch->cmds_start + 8, cdt); in cx25821_sram_channel_setup_audio()
550 cx_write(ch->cmds_start + 12, (lines * 16) >> 3); in cx25821_sram_channel_setup_audio()
551 cx_write(ch->cmds_start + 16, ch->ctrl_start); in cx25821_sram_channel_setup_audio()
554 if (ch->jumponly) in cx25821_sram_channel_setup_audio()
555 cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2)); in cx25821_sram_channel_setup_audio()
557 cx_write(ch->cmds_start + 20, 64 >> 2); in cx25821_sram_channel_setup_audio()
561 cx_write(ch->cmds_start + i, 0); in cx25821_sram_channel_setup_audio()
564 cx_write(ch->ptr1_reg, ch->fifo_start); in cx25821_sram_channel_setup_audio()
565 cx_write(ch->ptr2_reg, cdt); in cx25821_sram_channel_setup_audio()
566 cx_write(ch->cnt2_reg, (lines * 16) >> 3); in cx25821_sram_channel_setup_audio()
567 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx25821_sram_channel_setup_audio()
573 void cx25821_sram_channel_dump(struct cx25821_dev *dev, const struct sram_channel *ch) in cx25821_sram_channel_dump() argument
594 pr_warn("%s: %s - dma channel status dump\n", dev->name, ch->name); in cx25821_sram_channel_dump()
597 i * 4, name[i], cx_read(ch->cmds_start + 4 * i)); in cx25821_sram_channel_dump()
601 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx25821_sram_channel_dump()
607 risc = cx_read(ch->ctrl_start + 4 * i); in cx25821_sram_channel_dump()
611 i * 4, ch->ctrl_start + 4 * i, i); in cx25821_sram_channel_dump()
614 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx25821_sram_channel_dump()
621 ch->fifo_start, ch->fifo_start + ch->fifo_size); in cx25821_sram_channel_dump()
623 ch->ctrl_start, ch->ctrl_start + 6 * 16); in cx25821_sram_channel_dump()
625 cx_read(ch->ptr1_reg)); in cx25821_sram_channel_dump()
627 cx_read(ch->ptr2_reg)); in cx25821_sram_channel_dump()
629 cx_read(ch->cnt1_reg)); in cx25821_sram_channel_dump()
631 cx_read(ch->cnt2_reg)); in cx25821_sram_channel_dump()
635 const struct sram_channel *ch) in cx25821_sram_channel_dump_audio() argument
658 dev->name, ch->name); in cx25821_sram_channel_dump_audio()
663 cx_read(ch->cmds_start + 4 * i)); in cx25821_sram_channel_dump_audio()
667 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx25821_sram_channel_dump_audio()
673 risc = cx_read(ch->ctrl_start + 4 * i); in cx25821_sram_channel_dump_audio()
677 i * 4, ch->ctrl_start + 4 * i, i); in cx25821_sram_channel_dump_audio()
681 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx25821_sram_channel_dump_audio()
688 ch->fifo_start, ch->fifo_start + ch->fifo_size); in cx25821_sram_channel_dump_audio()
690 ch->ctrl_start, ch->ctrl_start + 6 * 16); in cx25821_sram_channel_dump_audio()
692 cx_read(ch->ptr1_reg)); in cx25821_sram_channel_dump_audio()
694 cx_read(ch->ptr2_reg)); in cx25821_sram_channel_dump_audio()
696 cx_read(ch->cnt1_reg)); in cx25821_sram_channel_dump_audio()
698 cx_read(ch->cnt2_reg)); in cx25821_sram_channel_dump_audio()
701 risc = cx_read(ch->cmds_start + 56 + (i * 4)); in cx25821_sram_channel_dump_audio()
783 const struct sram_channel *ch) in cx25821_set_vip_mode() argument
785 cx_write(ch->pix_frmt, PIXEL_FRMT_422); in cx25821_set_vip_mode()
786 cx_write(ch->vip_ctl, PIXEL_ENGINE_VIP1); in cx25821_set_vip_mode()