Lines Matching refs:ch
440 struct sram_channel *ch, in cx23885_sram_channel_setup() argument
446 if (ch->cmds_start == 0) { in cx23885_sram_channel_setup()
448 ch->name); in cx23885_sram_channel_setup()
449 cx_write(ch->ptr1_reg, 0); in cx23885_sram_channel_setup()
450 cx_write(ch->ptr2_reg, 0); in cx23885_sram_channel_setup()
451 cx_write(ch->cnt2_reg, 0); in cx23885_sram_channel_setup()
452 cx_write(ch->cnt1_reg, 0); in cx23885_sram_channel_setup()
456 ch->name); in cx23885_sram_channel_setup()
460 cdt = ch->cdt; in cx23885_sram_channel_setup()
461 lines = ch->fifo_size / bpl; in cx23885_sram_channel_setup()
473 ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
474 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
481 if (ch->jumponly) in cx23885_sram_channel_setup()
482 cx_write(ch->cmds_start + 0, 8); in cx23885_sram_channel_setup()
484 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup()
485 cx_write(ch->cmds_start + 4, 0); /* 64 bits 63-32 */ in cx23885_sram_channel_setup()
486 cx_write(ch->cmds_start + 8, cdt); in cx23885_sram_channel_setup()
487 cx_write(ch->cmds_start + 12, (lines*16) >> 3); in cx23885_sram_channel_setup()
488 cx_write(ch->cmds_start + 16, ch->ctrl_start); in cx23885_sram_channel_setup()
489 if (ch->jumponly) in cx23885_sram_channel_setup()
490 cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2)); in cx23885_sram_channel_setup()
492 cx_write(ch->cmds_start + 20, 64 >> 2); in cx23885_sram_channel_setup()
494 cx_write(ch->cmds_start + i, 0); in cx23885_sram_channel_setup()
497 cx_write(ch->ptr1_reg, ch->fifo_start); in cx23885_sram_channel_setup()
498 cx_write(ch->ptr2_reg, cdt); in cx23885_sram_channel_setup()
499 cx_write(ch->cnt2_reg, (lines*16) >> 3); in cx23885_sram_channel_setup()
500 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx23885_sram_channel_setup()
504 ch->name, in cx23885_sram_channel_setup()
512 struct sram_channel *ch) in cx23885_sram_channel_dump() argument
534 dev->name, ch->name); in cx23885_sram_channel_dump()
538 cx_read(ch->cmds_start + 4*i)); in cx23885_sram_channel_dump()
541 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump()
546 risc = cx_read(ch->ctrl_start + 4 * i); in cx23885_sram_channel_dump()
550 ch->ctrl_start + 4 * i, i); in cx23885_sram_channel_dump()
553 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx23885_sram_channel_dump()
560 dev->name, ch->fifo_start, ch->fifo_start+ch->fifo_size); in cx23885_sram_channel_dump()
562 dev->name, ch->ctrl_start, ch->ctrl_start + 6*16); in cx23885_sram_channel_dump()
564 dev->name, cx_read(ch->ptr1_reg)); in cx23885_sram_channel_dump()
566 dev->name, cx_read(ch->ptr2_reg)); in cx23885_sram_channel_dump()
568 dev->name, cx_read(ch->cnt1_reg)); in cx23885_sram_channel_dump()
570 dev->name, cx_read(ch->cnt2_reg)); in cx23885_sram_channel_dump()