• Home
  • Raw
  • Download

Lines Matching refs:risc

379 static int cx23885_risc_decode(u32 risc)  in cx23885_risc_decode()  argument
410 printk("0x%08x [ %s", risc, in cx23885_risc_decode()
411 instr[risc >> 28] ? instr[risc >> 28] : "INVALID"); in cx23885_risc_decode()
413 if (risc & (1 << (i + 12))) in cx23885_risc_decode()
415 printk(" count=%d ]\n", risc & 0xfff); in cx23885_risc_decode()
416 return incr[risc >> 28] ? incr[risc >> 28] : 1; in cx23885_risc_decode()
441 unsigned int bpl, u32 risc) in cx23885_sram_channel_setup() argument
484 cx_write(ch->cmds_start + 0, risc); in cx23885_sram_channel_setup()
530 u32 risc; in cx23885_sram_channel_dump() local
541 risc = cx_read(ch->cmds_start + 4 * (i + 14)); in cx23885_sram_channel_dump()
543 cx23885_risc_decode(risc); in cx23885_sram_channel_dump()
546 risc = cx_read(ch->ctrl_start + 4 * i); in cx23885_sram_channel_dump()
551 n = cx23885_risc_decode(risc); in cx23885_sram_channel_dump()
553 risc = cx_read(ch->ctrl_start + 4 * (i + j)); in cx23885_sram_channel_dump()
555 dev->name, i+j, risc, j); in cx23885_sram_channel_dump()
574 struct cx23885_riscmem *risc) in cx23885_risc_disasm() argument
580 dev->name, risc->cpu, (unsigned long)risc->dma); in cx23885_risc_disasm()
581 for (i = 0; i < (risc->size >> 2); i += n) { in cx23885_risc_disasm()
583 n = cx23885_risc_decode(le32_to_cpu(risc->cpu[i])); in cx23885_risc_disasm()
586 dev->name, i + j, risc->cpu[i + j], j); in cx23885_risc_disasm()
587 if (risc->cpu[i] == cpu_to_le32(RISC_JUMP)) in cx23885_risc_disasm()
1136 int cx23885_risc_buffer(struct pci_dev *pci, struct cx23885_riscmem *risc, in cx23885_risc_buffer() argument
1158 risc->size = instructions * 12; in cx23885_risc_buffer()
1159 risc->cpu = pci_alloc_consistent(pci, risc->size, &risc->dma); in cx23885_risc_buffer()
1160 if (risc->cpu == NULL) in cx23885_risc_buffer()
1164 rp = risc->cpu; in cx23885_risc_buffer()
1173 risc->jmp = rp; in cx23885_risc_buffer()
1174 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx23885_risc_buffer()
1179 struct cx23885_riscmem *risc, in cx23885_risc_databuffer() argument
1195 risc->size = instructions * 12; in cx23885_risc_databuffer()
1196 risc->cpu = pci_alloc_consistent(pci, risc->size, &risc->dma); in cx23885_risc_databuffer()
1197 if (risc->cpu == NULL) in cx23885_risc_databuffer()
1201 rp = risc->cpu; in cx23885_risc_databuffer()
1206 risc->jmp = rp; in cx23885_risc_databuffer()
1207 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx23885_risc_databuffer()
1211 int cx23885_risc_vbibuffer(struct pci_dev *pci, struct cx23885_riscmem *risc, in cx23885_risc_vbibuffer() argument
1233 risc->size = instructions * 12; in cx23885_risc_vbibuffer()
1234 risc->cpu = pci_alloc_consistent(pci, risc->size, &risc->dma); in cx23885_risc_vbibuffer()
1235 if (risc->cpu == NULL) in cx23885_risc_vbibuffer()
1238 rp = risc->cpu; in cx23885_risc_vbibuffer()
1253 risc->jmp = rp; in cx23885_risc_vbibuffer()
1254 BUG_ON((risc->jmp - risc->cpu + 2) * sizeof(*risc->cpu) > risc->size); in cx23885_risc_vbibuffer()
1261 struct cx23885_riscmem *risc = &buf->risc; in cx23885_free_buffer() local
1264 pci_free_consistent(dev->pci, risc->size, risc->cpu, risc->dma); in cx23885_free_buffer()
1335 port->ts_packet_size, buf->risc.dma); in cx23885_start_dma()
1339 cx23885_risc_disasm(port, &buf->risc); in cx23885_start_dma()
1474 cx23885_risc_databuffer(dev->pci, &buf->risc, in cx23885_buf_prepare()
1508 buf->risc.cpu[1] = cpu_to_le32(buf->risc.dma + 12); in cx23885_buf_queue()
1509 buf->risc.jmp[0] = cpu_to_le32(RISC_JUMP | RISC_CNT_INC); in cx23885_buf_queue()
1510 buf->risc.jmp[1] = cpu_to_le32(buf->risc.dma + 12); in cx23885_buf_queue()
1511 buf->risc.jmp[2] = cpu_to_le32(0); /* bits 63-32 */ in cx23885_buf_queue()
1519 buf->risc.cpu[0] |= cpu_to_le32(RISC_IRQ1); in cx23885_buf_queue()
1523 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); in cx23885_buf_queue()
1547 (unsigned long)buf->risc.dma); in do_cancel_buffers()