Lines Matching refs:risc

384 static int cx23885_risc_decode(u32 risc)  in cx23885_risc_decode()  argument
415 printk(KERN_DEBUG "0x%08x [ %s", risc, in cx23885_risc_decode()
416 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx23885_risc_decode()
418 if (risc & (1 << (i + 12))) in cx23885_risc_decode()
420 pr_cont(" count=%d ]\n", risc & 0xfff); in cx23885_risc_decode()
421 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx23885_risc_decode()
456 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument
499 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup()
545 u32 risc; in cx23885_sram_channel_dump() local
556 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump()
558 cx23885_risc_decode(risc); in cx23885_sram_channel_dump()
561 risc = cx_read(ch->ctrl_start + 4 * i); in cx23885_sram_channel_dump()
566 n = cx23885_risc_decode(risc); in cx23885_sram_channel_dump()
568 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx23885_sram_channel_dump()
570 dev->name, i+j, risc, j); in cx23885_sram_channel_dump()
589 struct cx23885_riscmem *risc) in cx23885_risc_disasm() argument
595 dev->name, risc->cpu, (unsigned long)risc->dma); in cx23885_risc_disasm()
596 for (i = 0; i < (risc->size >> 2); i += n) { in cx23885_risc_disasm()
598 n = cx23885_risc_decode(le32_to_cpu(risc->cpu[i])); in cx23885_risc_disasm()
601 dev->name, i + j, risc->cpu[i + j], j); in cx23885_risc_disasm()
602 if (risc->cpu[i] == cpu_to_le32(RISC_JUMP)) in cx23885_risc_disasm()
1198 int cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, in cx23885_risc_buffer() argument
1220 risc->size = instructions * 12; in cx23885_risc_buffer()
1221 risc->cpu = dma_alloc_coherent(&pci->dev, risc->size, &risc->dma, in cx23885_risc_buffer()
1223 if (risc->cpu == NULL) in cx23885_risc_buffer()
1227 rp = risc->cpu; in cx23885_risc_buffer()
1236 risc->jmp = rp; in cx23885_risc_buffer()
1237 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx23885_risc_buffer()
1242 struct cx23885_riscmem *risc, in cx23885_risc_databuffer() argument
1258 risc->size = instructions * 12; in cx23885_risc_databuffer()
1259 risc->cpu = dma_alloc_coherent(&pci->dev, risc->size, &risc->dma, in cx23885_risc_databuffer()
1261 if (risc->cpu == NULL) in cx23885_risc_databuffer()
1265 rp = risc->cpu; in cx23885_risc_databuffer()
1270 risc->jmp = rp; in cx23885_risc_databuffer()
1271 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx23885_risc_databuffer()
1275 int cx23885_risc_vbibuffer(struct pci_dev *pci, struct cx23885_riscmem *risc, in cx23885_risc_vbibuffer() argument
1297 risc->size = instructions * 12; in cx23885_risc_vbibuffer()
1298 risc->cpu = dma_alloc_coherent(&pci->dev, risc->size, &risc->dma, in cx23885_risc_vbibuffer()
1300 if (risc->cpu == NULL) in cx23885_risc_vbibuffer()
1303 rp = risc->cpu; in cx23885_risc_vbibuffer()
1318 risc->jmp = rp; in cx23885_risc_vbibuffer()
1319 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx23885_risc_vbibuffer()
1326 struct cx23885_riscmem *risc = &buf->risc; in cx23885_free_buffer() local
1328 dma_free_coherent(&dev->pci->dev, risc->size, risc->cpu, risc->dma); in cx23885_free_buffer()
1414 port->ts_packet_size, buf->risc.dma); in cx23885_start_dma()
1418 cx23885_risc_disasm(port, &buf->risc); in cx23885_start_dma()
1587 cx23885_risc_databuffer(dev->pci, &buf->risc, in cx23885_buf_prepare()
1621 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in cx23885_buf_queue()
1622 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx23885_buf_queue()
1623 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in cx23885_buf_queue()
1624 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in cx23885_buf_queue()
1632 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in cx23885_buf_queue()
1636 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in cx23885_buf_queue()
1659 (unsigned long)buf->risc.dma); in do_cancel_buffers()