Lines Matching refs:ch

439 				      struct sram_channel *ch,  in cx23885_sram_channel_setup()  argument
445 if (ch->cmds_start == 0) { in cx23885_sram_channel_setup()
447 ch->name); in cx23885_sram_channel_setup()
448 cx_write(ch->ptr1_reg, 0); in cx23885_sram_channel_setup()
449 cx_write(ch->ptr2_reg, 0); in cx23885_sram_channel_setup()
450 cx_write(ch->cnt2_reg, 0); in cx23885_sram_channel_setup()
451 cx_write(ch->cnt1_reg, 0); in cx23885_sram_channel_setup()
455 ch->name); in cx23885_sram_channel_setup()
459 cdt = ch->cdt; in cx23885_sram_channel_setup()
460 lines = ch->fifo_size / bpl; in cx23885_sram_channel_setup()
472 ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
473 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx23885_sram_channel_setup()
480 if (ch->jumponly) in cx23885_sram_channel_setup()
481 cx_write(ch->cmds_start + 0, 8); in cx23885_sram_channel_setup()
483 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup()
484 cx_write(ch->cmds_start + 4, 0); /* 64 bits 63-32 */ in cx23885_sram_channel_setup()
485 cx_write(ch->cmds_start + 8, cdt); in cx23885_sram_channel_setup()
486 cx_write(ch->cmds_start + 12, (lines*16) >> 3); in cx23885_sram_channel_setup()
487 cx_write(ch->cmds_start + 16, ch->ctrl_start); in cx23885_sram_channel_setup()
488 if (ch->jumponly) in cx23885_sram_channel_setup()
489 cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2)); in cx23885_sram_channel_setup()
491 cx_write(ch->cmds_start + 20, 64 >> 2); in cx23885_sram_channel_setup()
493 cx_write(ch->cmds_start + i, 0); in cx23885_sram_channel_setup()
496 cx_write(ch->ptr1_reg, ch->fifo_start); in cx23885_sram_channel_setup()
497 cx_write(ch->ptr2_reg, cdt); in cx23885_sram_channel_setup()
498 cx_write(ch->cnt2_reg, (lines*16) >> 3); in cx23885_sram_channel_setup()
499 cx_write(ch->cnt1_reg, (bpl >> 3) - 1); in cx23885_sram_channel_setup()
503 ch->name, in cx23885_sram_channel_setup()
511 struct sram_channel *ch) in cx23885_sram_channel_dump() argument
533 dev->name, ch->name); in cx23885_sram_channel_dump()
537 cx_read(ch->cmds_start + 4*i)); in cx23885_sram_channel_dump()
540 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump()
545 risc = cx_read(ch->ctrl_start + 4 * i); in cx23885_sram_channel_dump()
549 ch->ctrl_start + 4 * i, i); in cx23885_sram_channel_dump()
552 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx23885_sram_channel_dump()
559 dev->name, ch->fifo_start, ch->fifo_start+ch->fifo_size); in cx23885_sram_channel_dump()
561 dev->name, ch->ctrl_start, ch->ctrl_start + 6*16); in cx23885_sram_channel_dump()
563 dev->name, cx_read(ch->ptr1_reg)); in cx23885_sram_channel_dump()
565 dev->name, cx_read(ch->ptr2_reg)); in cx23885_sram_channel_dump()
567 dev->name, cx_read(ch->cnt1_reg)); in cx23885_sram_channel_dump()
569 dev->name, cx_read(ch->cnt2_reg)); in cx23885_sram_channel_dump()