Lines Matching refs:risc

299 static int cx25821_risc_decode(u32 risc)  in cx25821_risc_decode()  argument
331 risc, instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx25821_risc_decode()
333 if (risc & (1 << (i + 12))) in cx25821_risc_decode()
336 pr_cont(" count=%d ]\n", risc & 0xfff); in cx25821_risc_decode()
337 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx25821_risc_decode()
419 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup() argument
461 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup()
487 unsigned int bpl, u32 risc) in cx25821_sram_channel_setup_audio() argument
525 cx_write(ch->cmds_start + 0, risc); in cx25821_sram_channel_setup_audio()
570 u32 risc; in cx25821_sram_channel_dump() local
580 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx25821_sram_channel_dump()
582 i += cx25821_risc_decode(risc); in cx25821_sram_channel_dump()
586 risc = cx_read(ch->ctrl_start + 4 * i); in cx25821_sram_channel_dump()
591 n = cx25821_risc_decode(risc); in cx25821_sram_channel_dump()
593 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx25821_sram_channel_dump()
595 4 * (i + j), i + j, risc, j); in cx25821_sram_channel_dump()
633 u32 risc, value, tmp; in cx25821_sram_channel_dump_audio() local
646 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx25821_sram_channel_dump_audio()
648 i += cx25821_risc_decode(risc); in cx25821_sram_channel_dump_audio()
652 risc = cx_read(ch->ctrl_start + 4 * i); in cx25821_sram_channel_dump_audio()
657 n = cx25821_risc_decode(risc); in cx25821_sram_channel_dump_audio()
660 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx25821_sram_channel_dump_audio()
662 4 * (i + j), i + j, risc, j); in cx25821_sram_channel_dump_audio()
680 risc = cx_read(ch->cmds_start + 56 + (i * 4)); in cx25821_sram_channel_dump_audio()
681 pr_warn("instruction %d = 0x%x\n", i, risc); in cx25821_sram_channel_dump_audio()
685 risc = cx_read(AUD_A_CDT); in cx25821_sram_channel_dump_audio()
686 pr_warn("\nread cdt loc=0x%x\n", risc); in cx25821_sram_channel_dump_audio()
688 n = cx_read(risc + i * 4); in cx25821_sram_channel_dump_audio()
966 struct cx25821_riscmem *risc, in cx25821_riscmem_alloc() argument
972 if (risc->cpu && risc->size < size) { in cx25821_riscmem_alloc()
973 dma_free_coherent(&pci->dev, risc->size, risc->cpu, risc->dma); in cx25821_riscmem_alloc()
974 risc->cpu = NULL; in cx25821_riscmem_alloc()
976 if (NULL == risc->cpu) { in cx25821_riscmem_alloc()
980 risc->cpu = cpu; in cx25821_riscmem_alloc()
981 risc->dma = dma; in cx25821_riscmem_alloc()
982 risc->size = size; in cx25821_riscmem_alloc()
1050 int cx25821_risc_buffer(struct pci_dev *pci, struct cx25821_riscmem *risc, in cx25821_risc_buffer() argument
1074 rc = cx25821_riscmem_alloc(pci, risc, instructions * 12); in cx25821_risc_buffer()
1080 rp = risc->cpu; in cx25821_risc_buffer()
1093 risc->jmp = rp; in cx25821_risc_buffer()
1094 BUG_ON((risc->jmp - risc->cpu + 3) * sizeof(*risc->cpu) > risc->size); in cx25821_risc_buffer()
1161 struct cx25821_riscmem *risc, in cx25821_risc_databuffer_audio() argument
1178 rc = cx25821_riscmem_alloc(pci, risc, instructions * 12); in cx25821_risc_databuffer_audio()
1183 rp = risc->cpu; in cx25821_risc_databuffer_audio()
1188 risc->jmp = rp; in cx25821_risc_databuffer_audio()
1189 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx25821_risc_databuffer_audio()
1196 if (WARN_ON(buf->risc.size == 0)) in cx25821_free_buffer()
1198 dma_free_coherent(&dev->pci->dev, buf->risc.size, buf->risc.cpu, in cx25821_free_buffer()
1199 buf->risc.dma); in cx25821_free_buffer()
1200 memset(&buf->risc, 0, sizeof(buf->risc)); in cx25821_free_buffer()