Lines Matching refs:ch
334 const struct sram_channel *ch, in cx88_sram_channel_setup() argument
341 cdt = ch->cdt; in cx88_sram_channel_setup()
342 lines = ch->fifo_size / bpl; in cx88_sram_channel_setup()
349 cx_write(cdt + 16*i, ch->fifo_start + bpl*i); in cx88_sram_channel_setup()
352 cx_write(ch->cmds_start + 0, risc); in cx88_sram_channel_setup()
353 cx_write(ch->cmds_start + 4, cdt); in cx88_sram_channel_setup()
354 cx_write(ch->cmds_start + 8, (lines*16) >> 3); in cx88_sram_channel_setup()
355 cx_write(ch->cmds_start + 12, ch->ctrl_start); in cx88_sram_channel_setup()
356 cx_write(ch->cmds_start + 16, 64 >> 2); in cx88_sram_channel_setup()
358 cx_write(ch->cmds_start + i, 0); in cx88_sram_channel_setup()
361 cx_write(ch->ptr1_reg, ch->fifo_start); in cx88_sram_channel_setup()
362 cx_write(ch->ptr2_reg, cdt); in cx88_sram_channel_setup()
363 cx_write(ch->cnt1_reg, (bpl >> 3) -1); in cx88_sram_channel_setup()
364 cx_write(ch->cnt2_reg, (lines*16) >> 3); in cx88_sram_channel_setup()
366 dprintk(2,"sram setup %s: bpl=%d lines=%d\n", ch->name, bpl, lines); in cx88_sram_channel_setup()
413 const struct sram_channel *ch) in cx88_sram_channel_dump() argument
432 core->name,ch->name); in cx88_sram_channel_dump()
436 cx_read(ch->cmds_start + 4*i)); in cx88_sram_channel_dump()
438 risc = cx_read(ch->cmds_start + 4 * (i+11)); in cx88_sram_channel_dump()
446 risc = cx_read(ch->ctrl_start + 4 * i); in cx88_sram_channel_dump()
450 risc = cx_read(ch->ctrl_start + 4 * (i+j)); in cx88_sram_channel_dump()
457 core->name, ch->fifo_start, ch->fifo_start+ch->fifo_size); in cx88_sram_channel_dump()
459 core->name, ch->ctrl_start, ch->ctrl_start+6*16); in cx88_sram_channel_dump()
461 core->name,cx_read(ch->ptr1_reg)); in cx88_sram_channel_dump()
463 core->name,cx_read(ch->ptr2_reg)); in cx88_sram_channel_dump()
465 core->name,cx_read(ch->cnt1_reg)); in cx88_sram_channel_dump()
467 core->name,cx_read(ch->cnt2_reg)); in cx88_sram_channel_dump()