Lines Matching refs:ch
455 struct sram_channel *ch,
461 if (ch->cmds_start == 0) {
463 ch->name);
464 cx_write(ch->ptr1_reg, 0);
465 cx_write(ch->ptr2_reg, 0);
466 cx_write(ch->cnt2_reg, 0);
467 cx_write(ch->cnt1_reg, 0);
471 ch->name);
475 cdt = ch->cdt;
476 lines = ch->fifo_size / bpl;
488 ch->fifo_start + bpl*i);
489 cx_write(cdt + 16*i, ch->fifo_start + bpl*i);
496 if (ch->jumponly)
497 cx_write(ch->cmds_start + 0, 8);
499 cx_write(ch->cmds_start + 0, risc);
500 cx_write(ch->cmds_start + 4, 0); /* 64 bits 63-32 */
501 cx_write(ch->cmds_start + 8, cdt);
502 cx_write(ch->cmds_start + 12, (lines*16) >> 3);
503 cx_write(ch->cmds_start + 16, ch->ctrl_start);
504 if (ch->jumponly)
505 cx_write(ch->cmds_start + 20, 0x80000000 | (64 >> 2));
507 cx_write(ch->cmds_start + 20, 64 >> 2);
509 cx_write(ch->cmds_start + i, 0);
512 cx_write(ch->ptr1_reg, ch->fifo_start);
513 cx_write(ch->ptr2_reg, cdt);
514 cx_write(ch->cnt2_reg, (lines*16) >> 3);
515 cx_write(ch->cnt1_reg, (bpl >> 3) - 1);
519 ch->name,
527 struct sram_channel *ch)
549 dev->name, ch->name);
553 cx_read(ch->cmds_start + 4*i));
556 risc = cx_read(ch->cmds_start + 4 * (i + 14));
561 risc = cx_read(ch->ctrl_start + 4 * i);
565 ch->ctrl_start + 4 * i, i);
568 risc = cx_read(ch->ctrl_start + 4 * (i + j));
575 dev->name, ch->fifo_start, ch->fifo_start+ch->fifo_size);
577 dev->name, ch->ctrl_start, ch->ctrl_start + 6*16);
579 dev->name, cx_read(ch->ptr1_reg));
581 dev->name, cx_read(ch->ptr2_reg));
583 dev->name, cx_read(ch->cnt1_reg));
585 dev->name, cx_read(ch->cnt2_reg));